/* Waitlist page. Sits on top of site.css (app tokens, buttons, stage, fam, faq, final). Mobile first. */

[hidden] { display: none !important; }

/* hero */
.wl-hero { align-items: start; padding-top: 20px; }
.wl-hero p.lead { margin-top: 16px; }
.wl-hero .stage { margin-top: 8px; }
.invited { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-btn); background: var(--panel); font-size: 14px; font-weight: 600; }
.invited .ic { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--navy); color: var(--lime); stroke-width: 2.4; }
.card { margin-top: 24px; background: #fff; border-radius: var(--r-big); padding: 22px; box-shadow: 0 0 0 1px var(--line) inset, 0 24px 48px -30px rgba(11,22,54,.35); max-width: 560px; scroll-margin-top: 12px; }

/* form (the app's FormField: label above, 12px corners, navy focus) */
.wlf { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { min-width: 0; border: 0; }
.fld label, .fld legend { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; padding: 0; }
.fld input[type=text], .fld input[type=email], .fld input[type=tel] { width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--input); background: #fff; font: inherit; font-size: 16px; color: var(--navy); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.fld input::placeholder { color: var(--faint); }
.fld input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,22,54,.12); }
.fld.bad input[type=text], .fld.bad input[type=email], .fld.bad input[type=tel] { border-color: var(--destructive); }
.fld.ok input[type=text], .fld.ok input[type=email] { border-color: var(--navy); }
.err { font-size: 13px; font-weight: 600; color: var(--destructive); margin-top: 5px; }
.err:empty { display: none; }
/* segmented choice: the app's segmented control, selected = navy (owner: navy for active states) */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--soft); }
.seg label { position: relative; margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 42px; padding: 6px 8px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink-2); transition: background-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease); }
.seg label:hover span { background: #fff; color: var(--navy); }
.seg input:checked + span { background: var(--navy); color: #fff; box-shadow: 0 2px 6px -2px rgba(11,22,54,.4); }
.seg input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.seg label:active span { transform: scale(.97); }
.fld.bad .seg { box-shadow: 0 0 0 1.5px var(--destructive) inset; }
.opt summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 2px 0; }
.opt summary::-webkit-details-marker { display: none; }
.opt summary span { color: var(--muted); font-weight: 500; }
.opt summary .ic { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--panel); stroke-width: 2.6; transition: transform .2s var(--ease); }
.opt[open] summary .ic { transform: rotate(45deg); }
.opt input { margin-top: 10px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.go { width: 100%; justify-content: center; margin-top: 2px; }
.go[disabled] { opacity: .8; cursor: progress; }
.go.busy .arr { animation: spin .9s linear infinite; border: 2.5px solid rgba(255,255,255,.3); border-top-color: var(--lime); background: none; border-radius: 99px; }
.go.busy .arr .ic { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.formerr { font-size: 14px; font-weight: 600; color: var(--destructive); background: var(--destructive-t); border-radius: var(--r-btn); padding: 12px 14px; }
.formerr:empty { display: none; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }

/* thanks */
.thx { outline: none; }
.thx .kicker { margin-bottom: 8px; }
.thx-h { font-family: var(--head); font-size: 34px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.spot { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.spot::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--grad); }
.spot .n { font-family: var(--head); font-weight: 800; font-size: 56px; letter-spacing: -0.01em; line-height: 1; color: var(--lime); font-variant-numeric: tabular-nums; }
.spot .n b { font-weight: 800; }
.spot-l { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pro-muted); }
.up { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.up .refs { font-weight: 700; color: var(--navy); }
.share { margin-top: 12px; display: flex; gap: 8px; }
.share .link { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: var(--r-btn); border: 1px solid var(--input); background: var(--surface); font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); }
.share .copy { flex: none; padding: 0 18px; height: 50px; }
.nshare { width: 100%; justify-content: center; margin-top: 10px; }
.next { margin-top: 18px; padding: 16px; border-radius: var(--r-card); background: var(--surface); }
.next b { font-size: 15px; }
.next .launch { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 15px; line-height: 1.45; }
.next .launch b { color: var(--lime, #CDFE02); font-size: 16px; }
.next ol { margin-top: 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.next li::marker { font-weight: 800; color: var(--navy); }

/* what you're joining: the 12-month plan on a navy card (the app's pro tokens) */
.club .sh { max-width: 720px; }
.plan12 { background: var(--navy); color: #fff; border-radius: var(--r-big); padding: 32px; position: relative; overflow: hidden; }
.plan12 > * { position: relative; }
.p-hd { display: flex; gap: 16px; align-items: flex-start; max-width: 640px; }
.p-hd .ib { width: 48px; height: 48px; border-radius: var(--r-btn); background: var(--lime); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.p-hd .ib .ic { width: 24px; height: 24px; stroke-width: 2.3; }
.p-hd b { display: block; font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.p-hd span { display: block; margin-top: 6px; color: var(--pro-muted); font-size: 16px; }
.months { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 28px; position: relative; }
.m { position: relative; display: flex; align-items: center; justify-content: center; height: 48px; border-radius: var(--r); background: var(--pro-surface); border: 1px solid var(--pro-line); }
.m b { font-size: 15px; font-weight: 700; color: var(--pro-muted); font-variant-numeric: tabular-nums; }
.m.on { background: var(--lime); border-color: var(--lime); }
.m.on b { color: var(--navy); }
.m.end { background: #fff; border-color: #fff; }
.m.end b { color: var(--navy); }
.m-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--pro-muted); }
.m-cap span { display: inline-flex; align-items: center; gap: 8px; }
.m-cap .ic { width: 18px; height: 18px; color: var(--lime); }
.m-cap span:last-child .ic { color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.tile { background: #fff; border-radius: var(--r-big); padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .2s, transform .2s var(--ease); }
.tile:hover { box-shadow: 0 0 0 1.5px var(--navy) inset; }
.tile .b { width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--panel); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile .b .ic { width: 22px; height: 22px; stroke-width: 2.3; }
.tile > b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.tile > span { font-size: 15px; color: var(--ink-2); }
.bonus { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink-2); text-align: center; }
.bonus .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--lime); color: var(--navy); flex: none; }

/* families tweaks */
#families .fam h2 { margin-top: 2px; }
#families .tree { margin-top: 24px; }

/* final */
.wl-final { grid-template-columns: 1fr 1.05fr; align-items: center; }
.wl-final .card p { margin-top: 0; max-width: none; }
.wl-final .card p.fine { font-size: 13px; color: var(--muted); }
.wl-final .card p.err { font-size: 13px; margin-top: 5px; color: var(--destructive); }
.wl-final .card p.formerr { font-size: 14px; color: var(--destructive); }
.wl-final .card p.up { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.wl-final .card { margin-top: 0; max-width: none; box-shadow: 0 30px 60px -30px rgba(11,22,54,.55); }
.wl-final .card .thx-h, .wl-final .card .next b { color: var(--navy); }

/* footer: navy on white, the everyday lockup */
.wl-foot { padding: 64px 0 40px; }
.wl-fgrid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.wl-fgrid .about { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.flinks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; font-weight: 600; }
.flinks a { color: var(--ink-2); text-decoration: none; }
.flinks a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.copy { padding-top: 18px; font-size: 13px; color: var(--muted); }

/* 404 */
.nf { padding: 80px 0 100px; text-align: center; position: relative; }
.nf h1 { font-size: 64px; }
.nf .lead { margin: 16px auto 28px; }
.nf .tile404 { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; background: var(--grad); display: flex; align-items: center; justify-content: center; }
.nf .tile404 svg { position: static; width: 72px; height: auto; fill: var(--navy); }
.nf .tile404 .k { fill: #fff; }

@media (max-width: 1100px) and (min-width: 768px) {
  .wl-hero .card { max-width: 640px; }
  .wl-final { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .topnav .btn .lg-only { display: none; }
  .wl-hero { display: block; padding: 6px 0 44px; }
  .wl-hero .eyechip { height: 30px; font-size: 12px; }
  .wl-hero .eyechip .dotb { width: 22px; height: 22px; }
  .wl-hero h1 { font-size: 42px; margin-top: 10px; }
  .wl-hero p.lead { font-size: 16px; margin-top: 8px; line-height: 1.45; }
  .wl-hero .stage { margin: 36px 0 0; height: 440px; }
  .card { margin-top: 14px; padding: 16px; border-radius: 16px; }
  .wlf { gap: 12px; }
  .row2 { grid-template-columns: 1fr; gap: 12px; }
  .fld label, .fld legend { font-size: 13px; margin-bottom: 5px; }
  .fld input[type=text], .fld input[type=email], .fld input[type=tel] { height: 48px; }
  .seg span { min-height: 38px; font-size: 13px; padding: 4px 3px; }
  .plan12 { padding: 24px 18px; }
  .p-hd b { font-size: 26px; }
  .p-hd span { font-size: 15px; }
  .months { grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 22px; }
  .m { height: 42px; }
  .m-cap { flex-direction: column; gap: 8px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; }
  .tile { padding: 18px; border-radius: 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; }
  .tile .b { grid-row: span 2; margin-bottom: 0; }
  .bonus { justify-content: flex-start; text-align: left; font-size: 15px; }
  .wl-final { grid-template-columns: 1fr; }
  .wl-final .card { padding: 16px; }
  .spot .n { font-size: 48px; }
  .share { flex-direction: column; }
  .share .link { flex: none; width: 100%; }
  .share .copy { justify-content: center; }
  .nf h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .go.busy .arr { animation: none; } }
