/* Intake wizard: styled after the Happy Labs on-trade ad (deep purple, lime, gold, cream, Montserrat).
   Colors come from /ui/tokens.css brand palette variables. Pinned light (data-theme="light"). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 500; line-height: 1.55;
  color: var(--purple-700); background: var(--cream-50);
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
a { color: var(--purple-500); }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 6px; }

/* ---- hero band ---- */
.hero {
  color: var(--cream-500);
  background:
    radial-gradient(120% 80% at 85% 0%, rgba(131, 49, 119, .55), transparent 60%),
    linear-gradient(160deg, #3a2238 0%, var(--purple-700) 55%, #2f1c2d 100%);
  padding: 18px 0 64px;
  border-bottom: 4px solid var(--gold-400);
}
.hero-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img.wordmark { height: 54px; width: auto; }
.brand b { display: block; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; }
.brand small { display: block; font-size: .75rem; color: var(--cream-500); }
.trade-pill { border: 2px solid var(--gold-400); color: var(--gold-400); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; color: var(--cream-500); }
.hero h1 em { font-style: normal; color: var(--green-400); display: block; }
.lede { max-width: 620px; font-size: 1.1rem; color: #F3EBD0; margin: 14px 0 0; }

/* ---- layout ---- */
.layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: -40px; padding-bottom: 140px; }
@media (min-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; padding-bottom: 48px; } }

.wizard { background: #fff; border-radius: 22px; box-shadow: 0 18px 40px rgba(75, 48, 72, .14); padding: 22px 18px 18px; }
@media (min-width: 600px) { .wizard { padding: 32px; } }

.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; }
.progress li { flex: 1; height: 6px; border-radius: 3px; background: var(--purple-100); }
.progress li.on { background: var(--green-500); }
.progress li.now { background: var(--purple-500); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 900; font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.15; margin-bottom: 14px; padding: 0; letter-spacing: -.01em; }
legend .num { display: block; color: var(--green-500); font-size: .95rem; letter-spacing: .04em; margin-bottom: 4px; }
.step[hidden] { display: none; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { position: relative; cursor: pointer; }
.card input { position: absolute; opacity: 0; inset: 0; }
.card-in { display: block; height: 100%; border: 2px solid var(--purple-100); border-radius: 16px; padding: 16px; min-height: 96px; transition: border-color .15s, background .15s; }
.card b { display: block; font-size: 1.1rem; font-weight: 800; }
.card small { display: block; color: var(--color-ink-2); font-size: .92rem; margin-top: 4px; }
.card input:checked + .card-in { border-color: var(--purple-500); background: var(--purple-50); box-shadow: inset 0 0 0 1px var(--purple-500); }
.card input:focus-visible + .card-in { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 800; font-size: .95rem; }
.help { color: var(--color-muted); font-size: .9rem; margin: 0 0 12px; }
.small { font-size: .88rem; }
.input { width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--purple-700); background: #fff; border: 1.5px solid var(--color-border-strong); border-radius: 12px; padding: 10px 12px; }
textarea.input { resize: vertical; min-height: 110px; }
.input:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-100); }
.input[aria-invalid="true"] { border-color: var(--color-danger); }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
output { color: var(--purple-500); font-weight: 900; font-size: 1.15rem; }

input[type="range"] { width: 100%; height: 44px; accent-color: var(--purple-500); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 140px; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border: 2px solid var(--purple-100); border-radius: 999px; font-weight: 700; font-size: .93rem; cursor: pointer; }
.seg input:checked + span { background: var(--purple-700); border-color: var(--purple-700); color: var(--cream-500); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.chips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; min-height: 64px; padding: 12px 14px; border: 2px solid var(--purple-100); border-radius: 14px; cursor: pointer; }
.chip b { font-weight: 800; }
.chip i { font-style: normal; font-weight: 800; color: var(--green-700); font-size: .9rem; white-space: nowrap; }
.chip small { grid-column: 1 / -1; color: var(--color-ink-2); font-size: .85rem; line-height: 1.4; }
.chip input:checked + span { border-color: var(--green-500); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-500); }
.chip input:checked + span b::before { content: "\2713  "; color: var(--green-700); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.chip.included span { border-style: dashed; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.btn { min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; }
.btn.gold { background: var(--gold-400); color: var(--purple-700); flex: 1; max-width: 320px; margin-left: auto; }
.btn.gold:hover { background: var(--gold-500); }
.btn.ghost { background: transparent; color: var(--purple-700); border-color: var(--color-border-strong); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn[hidden] { display: none; }
.err { color: var(--color-danger); font-weight: 700; }

.done { text-align: center; padding: 24px 8px; }
.done h2 { font-weight: 900; font-size: 1.7rem; margin: 10px 0; }

/* ---- quote panel: purple card, gold numbers ---- */
.quote { background: var(--purple-700); color: #F3EBD0; border-radius: 22px; box-shadow: 0 18px 40px rgba(75, 48, 72, .2); }
.quote .eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--green-400); }
.quote .range { font-weight: 900; color: var(--gold-400); font-variant-numeric: tabular-nums; }
.quote .big { font-size: 2rem; line-height: 1.1; margin: 4px 0 6px; }
.quote-body { padding: 22px; }
.lines { list-style: none; padding: 0; margin: 14px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.lines li span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; white-space: nowrap; }
.fine { font-size: .78rem; color: var(--on-brand-muted, #D9C9D6); margin: 12px 0 0; }
.quote-toggle { display: none; }

@media (min-width: 900px) { .quote { position: sticky; top: 16px; } }
@media (max-width: 899px) {
  .quote { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20; max-height: 75vh; overflow: auto; border-radius: 18px; }
  .quote-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 10px 18px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
  .quote-toggle .range { font-size: 1.15rem; }
  .quote-body { display: none; padding-top: 0; }
  .quote-body > .eyebrow, .quote-body > .big { display: none; }
  .quote.open .quote-body { display: block; }
}

.foot { padding: 28px 16px 40px; color: var(--color-ink-2); font-size: .9rem; }
@media (max-width: 899px) { .foot { padding-bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

[hidden] { display: none !important; }
@media (max-width: 899px) { .quote-toggle .range { white-space: nowrap; font-size: 1.05rem; } .quote-toggle .eyebrow { max-width: 7em; } }

/* "What happens next" panel (no prices on the public site, Richard 2026-10-14). Static on phones. */
.quote.next .next-steps { margin: 10px 0 14px; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.45; }
.quote.next .next-steps b { color: var(--gold-400); }
.cf-turnstile { margin: 14px 0 6px; min-height: 65px; }
@media (max-width: 899px) {
  .quote.next { position: static; max-height: none; margin-top: 16px; }
  .quote.next .quote-body { display: block; padding-top: 22px; }
  .quote.next .quote-body > .eyebrow { display: block; }
  .foot { padding-bottom: 40px; }
}

/* "What happens next" panel (no prices on the public site, Richard 2026-10-14). Static on phones. */
.quote.next .next-steps { margin: 10px 0 14px; padding-left: 1.2em; display: grid; gap: 10px; line-height: 1.45; }
.quote.next .next-steps b { color: var(--gold-400); }
.cf-turnstile { margin: 14px 0 6px; min-height: 65px; }
@media (max-width: 899px) {
  .quote.next { position: static; max-height: none; margin-top: 16px; }
  .quote.next .quote-body { display: block; padding-top: 22px; }
  .quote.next .quote-body > .eyebrow { display: block; }
  .foot { padding-bottom: 40px; }
}

/* The wordmark is wider than the old mascot mark: let the header wrap on phones. */
@media (max-width: 480px) { .hero-in { flex-wrap: wrap; gap: 10px; } .brand small { max-width: 150px; } }

/* limited clients per quarter / waitlist note (Richard 2026-10-14) */
.avail-note { margin-top: 12px; font-size: 15px; color: var(--cream-500, #ECD898); opacity: .9; max-width: 60ch; }
.avail-note.is-full { color: #FFC845; font-weight: 700; opacity: 1; }
