/* Go On Ask - public site.
   Warmer and larger than the product UI: this page has to persuade, not operate.
   The product's indigo carries across so the two feel like one thing. */

:root {
  color-scheme: light dark;

  --ink: #141824;
  --ink-soft: #4a5161;
  --ink-faint: #767f92;
  --surface: #ffffff;
  --surface-sunk: #f6f7fb;
  --surface-warm: #fff8f2;
  --line: #e2e6f0;
  --line-strong: #c8cfdf;

  --brand: #2c4bd8;
  --brand-deep: #1b2f8f;
  --brand-ink: #ffffff;
  --brand-soft: #eaeeff;

  --warm: #d2691e;
  --warm-soft: #fdeee2;
  --good: #1d7a4c;
  --good-soft: #e7f5ee;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 30, 0.05), 0 3px 10px rgba(16, 20, 30, 0.05);
  --shadow-lg: 0 2px 6px rgba(16, 20, 30, 0.06), 0 18px 46px rgba(16, 20, 30, 0.10);
  --gutter: 24px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f8;
    --ink-soft: #adb6c8;
    --ink-faint: #7d869b;
    --surface: #141720;
    --surface-sunk: #0d0f16;
    --surface-warm: #1d1912;
    --line: #2a3040;
    --line-strong: #3b4357;

    --brand: #90a5ff;
    --brand-deep: #b9c6ff;
    --brand-ink: #0c1022;
    --brand-soft: #1b2340;

    --warm: #f0a068;
    --warm-soft: #2e2113;
    --good: #6fd6a0;
    --good-soft: #12291f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 46px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }
.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--ink-soft); max-width: 56ch; }

/* ------------------------------------------------------------------ nav --- */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem;
        color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo svg { flex: none; }
.nav__links { display: flex; gap: 18px; align-items: center; margin-left: auto; flex-wrap: wrap; }
/* :not(.btn) so a button in the nav keeps its own colour -- a bare
   `.nav__links a` rule out-specifies `.btn--primary` and greys the label out. */
.nav__links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links .btn { text-decoration: none; font-size: 0.95rem; padding: 10px 18px; min-height: 42px; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; text-decoration: none;
  padding: 13px 22px; min-height: 50px;
  border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform 80ms ease, box-shadow 140ms ease, background 140ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--large { padding: 16px 30px; min-height: 58px; font-size: 1.05rem; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--brand); }

/* ----------------------------------------------------------------- hero --- */

.hero { position: relative; overflow: hidden; padding: clamp(44px, 8vw, 96px) 0 clamp(36px, 6vw, 72px); }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 30% -20%; z-index: -1;
  background: radial-gradient(closest-side, var(--brand-soft), transparent 70%);
  opacity: 0.9;
}
.hero::after {
  content: ""; position: absolute; inset: 20% -25% -35% 55%; z-index: -1;
  background: radial-gradient(closest-side, var(--warm-soft), transparent 70%);
  opacity: 0.95;
}
.hero__grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
              grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
.hero__art { width: 100%; height: auto; display: block; }
.hero h1 .accent { color: var(--brand); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-faint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--warm); background: var(--warm-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art-wrap { order: -1; }
}

/* -------------------------------------------------------------- sections -- */

.section { padding: clamp(46px, 7vw, 88px) 0; }
.section--sunk { background: var(--surface-sunk); }
.section--warm { background: var(--surface-warm); }
.section__head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 44px); }
.section__head.center { margin-inline: auto; text-align: center; }

/* `minmax(Npx, 1fr)` cannot shrink below N, so an auto-fit grid overflows any
   viewport narrower than N plus the gutters. `min(Npx, 100%)` lets the column
   collapse on a small screen while keeping the same wrapping behaviour above it. */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
}
.card__icon--warm { background: var(--warm-soft); color: var(--warm); }
.card__icon--good { background: var(--good-soft); color: var(--good); }

.split { display: grid; gap: clamp(26px, 5vw, 56px); align-items: center;
         grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.split__art { width: 100%; height: auto; display: block; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1.05rem;
}
.steps h3 { margin-bottom: 3px; }
.steps p { margin: 0; color: var(--ink-soft); }

.quote {
  border-left: 4px solid var(--warm); padding: 4px 0 4px 22px; margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; font-weight: 600;
  letter-spacing: -0.015em;
}
.quote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 500;
              font-style: normal; color: var(--ink-faint); letter-spacing: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none;
               display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); max-width: 68ch; }

.cta {
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 60px);
  text-align: center;
}
.cta h2 { color: var(--brand-ink); }
.cta p { color: color-mix(in srgb, var(--brand-ink) 82%, transparent); max-width: 52ch; margin-inline: auto; }
.cta .btn { background: var(--surface); border-color: var(--surface); color: var(--brand); }
.cta .btn:hover { background: var(--surface); }

/* ----------------------------------------------------------------- forms -- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--ink-faint); font-size: 0.88rem; margin-top: -2px; margin-bottom: 7px; }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; width: 100%; padding: 13px 14px;
  border-radius: var(--radius); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: 0.88rem; font-weight: 600; margin-top: 6px; }
@media (prefers-color-scheme: dark) {
  .field--error input, .field--error select, .field--error textarea { border-color: #ff9b93; }
  .field__error { color: #ff9b93; }
}
.field-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.address-preview {
  font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px;
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px;
}
.address-preview strong { color: var(--brand); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 15px 18px; border-radius: var(--radius); margin-bottom: 22px; border: 1px solid var(--line); }
.notice--error { background: #fceceb; border-color: transparent; color: #7a1c16; }
.notice--good { background: var(--good-soft); border-color: transparent; }
@media (prefers-color-scheme: dark) { .notice--error { background: #33191a; color: #ffc9c4; } }

/* ----------------------------------------------------------------- guide -- */

.guide-body { max-width: 72ch; }
.guide-body h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.guide-body h3 { margin-top: 1.4em; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin: 0 0 1em; }
.guide-body li { margin-bottom: 0.5em; }
.guide-body .callout {
  background: var(--brand-soft); border-radius: var(--radius);
  padding: 18px 20px; margin: 1.4em 0;
}
.guide-body .callout--warm { background: var(--warm-soft); }
.guide-body .callout p:last-child { margin-bottom: 0; }
.toc { background: var(--surface-sunk); border: 1px solid var(--line);
       border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 34px; }
.toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
          color: var(--ink-faint); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; }

/* ---------------------------------------------------------------- footer -- */

.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--surface-sunk);
          font-size: 0.94rem; color: var(--ink-soft); }
.footer__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.footer h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
             color: var(--ink-faint); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 7px; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
                 font-size: 0.88rem; color: var(--ink-faint); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Illustrations use these so they follow the theme. */
.art-ink { fill: var(--ink); }
.art-brand { fill: var(--brand); }
.art-brand-soft { fill: var(--brand-soft); }
.art-warm { fill: var(--warm); }
.art-warm-soft { fill: var(--warm-soft); }
.art-surface { fill: var(--surface); }
.art-line { stroke: var(--line-strong); }
.art-muted { fill: var(--line-strong); }

/* --------------------------------------------------------------- utilities -
   A strict `style-src 'self'` policy blocks inline style attributes as well as
   inline <style> blocks, so any `style="..."` in a template is silently dropped.
   These small classes replace the ones that used to be written inline.
-------------------------------------------------------------------------- */

.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 34px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 18px; }
.center { text-align: center; }
.text-left { text-align: left; }
.inline { display: inline; }
.mi-auto { margin-inline: auto; }
.w-full { width: 100%; }
.w-narrow { max-width: 220px; }
.card-narrow { max-width: 520px; }
.measure { max-width: 52ch; }
.measure-tight { max-width: 34ch; }
.grow { flex: 1 1 190px; }
.textarea-sm { min-height: 70px; }
.pt-tight { padding-top: 20px; }
.pb-tight { padding-bottom: 22px; }
.h-sm { font-size: 1.15rem; }
.art-inline { max-width: 340px; margin: 0 auto 8px; }
.list-muted { padding-left: 20px; color: var(--ink-soft); }
.rule { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
.note-muted { color: var(--ink-soft); }

/* --------------------------------------------------------------------- join -
   The landing page's primary action: get a visitor into the room they are
   already sitting in.
-------------------------------------------------------------------------- */

.join { margin-top: 28px; max-width: 520px; }
.join__form label { display: block; font-weight: 700; margin-bottom: 8px; }
.join__row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.join__row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  font-size: 1.02rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}
.join__row input:focus { border-color: var(--brand); }
.join__row .btn { flex: 0 0 auto; }
.join__hint { margin: 10px 0 0; font-size: 0.9rem; color: var(--ink-faint); }
.join__error {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #b3261e;
}
@media (prefers-color-scheme: dark) { .join__error { color: #ff9b93; } }

.card--feature { padding: 30px; }
.card--feature h3 { font-size: 1.3rem; margin-bottom: 10px; }

/* A second button on the brand-coloured call to action panel. */
.cta .btn--onbrand {
  background: transparent;
  border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent);
  color: var(--brand-ink);
}
.cta .btn--onbrand:hover { background: color-mix(in srgb, var(--brand-ink) 12%, transparent); }
.cta .btn + .btn { margin-left: 10px; }
@media (max-width: 520px) {
  .cta .btn { display: flex; width: 100%; }
  .cta .btn + .btn { margin-left: 0; margin-top: 10px; }
}
