/* Marketing site + auth pages. Builds on app.css tokens. */
.site { background: var(--bg); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.site-nav { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.brandmark, .auth-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
.brandmark i, .auth-logo i { width: 28px; height: 28px; border-radius: 9px 9px 9px 2px; background: var(--brand); position: relative; display: inline-block; }
.brandmark i::after, .auth-logo i::after { content: ''; position: absolute; inset: 9px 7px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; border-radius: 1px; }
.site-nav .links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.site-nav .links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-nav .links a:not(.btn):hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.025em; max-width: 12ch; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 22px 0 28px; line-height: 1.55; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta .btn { padding: 12px 20px; font-size: 16px; }
.hero .fine { font-size: 13.5px; color: var(--faint); margin-top: 14px; }

/* The live chat in the hero */
.demo { background: var(--chat-bg); border: 1px solid var(--line); border-radius: 22px; padding: 0; overflow: hidden; box-shadow: var(--shadow); }
.demo-head { background: var(--side); color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.demo-head .avatar { width: 34px; height: 34px; background: var(--marigold); color: #3b2500; }
.demo-head b { display: block; font-size: 15px; }
.demo-head span { font-size: 12.5px; color: var(--side-ink); }
.demo-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 380px; }
.demo .bubble { font-size: 14.5px; }
.demo .chips { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 80%; }
.demo .chips span { background: var(--surface); border: 1px solid var(--line); color: #2563eb; border-radius: 99px; padding: 4px 12px; font-size: 13.5px; font-weight: 600; }
.demo .note { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; margin: 6px 0; }
.demo .reveal { opacity: 0; transform: translateY(6px); animation: pop .35s ease-out forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo .reveal { animation: none; opacity: 1; transform: none; } }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 10px; }

.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.cap { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.cap svg { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.cap h3 { font-size: 18px; font-family: var(--display); margin-bottom: 4px; }
.cap p { color: var(--muted); margin: 0; }

.howto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: h; }
.howto li { counter-increment: h; }
.howto li::before { content: counter(h); display: block; font-family: var(--display); font-size: 56px; font-weight: 700; line-height: 1; color: var(--marigold); margin-bottom: 10px; }
.howto h3 { font-size: 19px; font-family: var(--display); margin-bottom: 6px; }
.howto p { color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }

.closing { background: var(--side); color: #fff; border-radius: 22px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 24px 0 72px; }
.closing h2 { font-size: clamp(26px, 3vw, 36px); max-width: 20ch; }
.closing p { color: var(--side-ink); margin: 8px 0 0; }
.closing .btn { padding: 12px 20px; font-size: 16px; background: var(--marigold); border-color: var(--marigold); color: #2b1a00; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.site-foot a { color: var(--muted); }

.legal { max-width: 70ch; padding: 24px 0 72px; }
.legal h1 { font-size: 36px; margin-bottom: 18px; }
.legal h2 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); line-height: 1.65; }

/* Auth */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); }
.auth { width: min(420px, 100%); }
.auth-logo { margin: 0 auto 22px; display: flex; justify-content: center; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card > .muted { margin-bottom: 18px; }
.auth-card h1 + label { margin-top: 18px; }
.btn.wide { width: 100%; padding: 11px; font-size: 15px; }
.auth-err { color: var(--danger); font-size: 14px; min-height: 1px; margin: 0 0 10px; }
.auth-err:empty { margin: 0; }
.auth-alt { text-align: center; margin: 14px 0 0; font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .capabilities { grid-template-columns: 1fr; }
  .howto { grid-template-columns: 1fr; }
  .closing { padding: 32px 24px; }
  .site-nav .links a.hide-sm { display: none; }
}
