/* What's slowing you down? One question per screen. Self-contained on purpose: no scroll engine,
   so the page is light and the first tap is instant. Palette is the main site's. */
:root {
  --bg: #070b14; --surface: #0f1626; --surface-2: #141d31; --ink: #eef2fa; --soft: #a3aec4; --muted: #7d889e;
  --line: rgba(238, 242, 250, .1); --line-2: rgba(238, 242, 250, .2);
  --accent: #4c8dff; --accent-ink: #06101f; --mint: #6fe3a1;
  --good: #6fe3a1; --mid: #f6c35b; --bad: #ff7a7a;
  --r: 14px; --r-lg: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--ink); font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg);
  background-image: radial-gradient(60rem 30rem at 85% -10%, rgba(76, 141, 255, .18), transparent 60%), radial-gradient(40rem 24rem at -10% 110%, rgba(111, 227, 161, .08), transparent 60%);
  background-attachment: fixed; overflow-x: hidden;
}
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 1rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 10px; }
.skip:focus-visible { top: 1rem; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; width: 100%; margin: 0 auto; padding: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.top__call { color: var(--soft); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.top__call:hover { color: var(--ink); }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; outline: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.1; cursor: pointer; text-decoration: none; transition: transform .14s ease, background-color .14s ease, border-color .14s ease, opacity .14s ease; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #6aa1ff; }
.btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--soft); }
.btn--big { min-height: 54px; padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn:active { transform: translateY(1px) scale(.98); }
.link { background: none; border: 0; color: var(--soft); text-decoration: underline; cursor: pointer; padding: 6px; }

/* ---------- intro ---------- */
.intro { padding-top: clamp(12px, 6vh, 56px); }
.kicker { margin: 0 0 14px; color: var(--mint); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.intro__h { margin: 0; font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 650; text-wrap: balance; }
.intro__sub { margin: 18px 0 26px; font-size: clamp(1.05rem, 3.6vw, 1.25rem); line-height: 1.55; color: var(--soft); max-width: 40em; text-wrap: pretty; }
.intro__time { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.intro__get { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 10px; }
.intro__get li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(15, 22, 38, .6); color: var(--soft); line-height: 1.5; }
.intro__get b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.intro__who { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0 0; padding: 16px 0; border-top: 1px solid var(--line); }
.intro__who img { flex: none; border-radius: 9px; }
.intro__who p { margin: 0; color: var(--soft); line-height: 1.55; }
.intro__privacy { margin: 8px 0 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }

/* ---------- the quiz ---------- */
.quiz { padding-top: 4px; }
.quiz__bar { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 5vh, 44px); }
.quiz__back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--soft); cursor: pointer; min-height: 40px; }
.quiz__back:hover { color: var(--ink); border-color: var(--line-2); }
.quiz__back span { font-size: .9rem; }
.quiz__progress { flex: 1; height: 6px; border-radius: 99px; background: rgba(238, 242, 250, .08); overflow: hidden; }
.quiz__progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--mint)); transition: width .35s ease; }
.quiz__count { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz__screen { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.quiz__q { margin: 0; font-size: clamp(1.5rem, 5.6vw, 2.2rem); line-height: 1.18; letter-spacing: -.02em; font-weight: 620; text-wrap: balance; outline: none; }
.quiz__help { margin: 10px 0 0; color: var(--soft); line-height: 1.5; }
.quiz__help:empty { display: none; }
.quiz__body { margin-top: 22px; display: grid; gap: 10px; }
.quiz__actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.quiz__actions:empty { display: none; }
/* On a phone the Continue button stays in reach under a long list. */
@media (max-width: 699px) {
  .quiz__actions { position: sticky; bottom: 0; z-index: 2; margin-left: -16px; margin-right: -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7, 11, 20, 0), var(--bg) 35%); }
  .quiz__actions .btn { flex: 1; }
}
.quiz__keys { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }
@media (hover: none), (max-width: 640px) { .quiz__keys { display: none; } }

/* the tap cards */
.opt-card {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 16px; text-align: left;
  background: rgba(15, 22, 38, .75); border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease, transform .14s ease;
}
.opt-card:hover { border-color: rgba(76, 141, 255, .6); background: var(--surface-2); }
.opt-card:active { transform: scale(.99); }
.opt-card[aria-pressed="true"], .opt-card[aria-checked="true"] { border-color: var(--accent); background: rgba(76, 141, 255, .14); }
.opt-card__key { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .8rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.opt-card[aria-pressed="true"] .opt-card__key, .opt-card[aria-checked="true"] .opt-card__key { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt-card__text { flex: 1; min-width: 0; font-size: 1.04rem; line-height: 1.35; overflow-wrap: anywhere; }
.opt-card__sub { display: block; margin-top: 3px; font-size: .86rem; color: var(--muted); }
.opt-card__tick { flex: none; width: 22px; height: 22px; opacity: 0; color: var(--accent); }
.opt-card[aria-pressed="true"] .opt-card__tick, .opt-card[aria-checked="true"] .opt-card__tick { opacity: 1; }

/* quick numbers */
.field { display: grid; gap: 10px; margin-bottom: 16px; }
.field__label { font-weight: 600; line-height: 1.4; }
.field__hint { color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 10px 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: rgba(15, 22, 38, .75); cursor: pointer; font-size: .98rem; }
.chip:hover { border-color: rgba(76, 141, 255, .6); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(76, 141, 255, .18); }
.money { display: flex; align-items: center; max-width: 260px; border: 1.5px solid var(--line-2); border-radius: 12px; background: rgba(15, 22, 38, .75); }
.money:focus-within { border-color: var(--accent); }
.money span { padding: 0 4px 0 14px; color: var(--soft); font-size: 1.1rem; }
.money input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 1.1rem; padding: 13px 14px 13px 4px; outline: none; }

/* open answers */
.open { position: relative; }
.open textarea {
  width: 100%; min-height: 132px; resize: vertical; padding: 14px 58px 14px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: rgba(15, 22, 38, .75); color: var(--ink); font: inherit; font-size: 1.04rem; line-height: 1.5;
}
.open textarea:focus { outline: none; border-color: var(--accent); }
.mic {
  position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.mic:hover { border-color: var(--accent); }
.mic[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #1a0606; animation: pulse 1.4s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 122, .5); } 50% { box-shadow: 0 0 0 8px rgba(255, 122, 122, 0); } }
.open__status { margin: 8px 0 0; font-size: .86rem; color: var(--muted); min-height: 1.3em; }

/* ---------- result ---------- */
.res__h { margin: 8px 0 18px; font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 640; outline: none; }
.res__scores { display: grid; gap: 8px; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(15, 22, 38, .6); }
.score__label { font-weight: 600; }
.score__num { font-variant-numeric: tabular-nums; font-weight: 650; }
.score__num small { font-weight: 400; color: var(--muted); }
.score__bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(238, 242, 250, .08); overflow: hidden; }
.score__bar i { display: block; height: 100%; border-radius: inherit; }
.score__word { grid-column: 1 / -1; font-size: .84rem; color: var(--muted); margin-top: -2px; }
.score--good .score__bar i { background: var(--good); } .score--good .score__num { color: var(--good); }
.score--mid .score__bar i { background: var(--mid); } .score--mid .score__num { color: var(--mid); }
.score--bad .score__bar i { background: var(--bad); } .score--bad .score__num { color: var(--bad); }
.score--na .score__num { color: var(--muted); }

.res__top { margin: 26px 0 0; padding: 20px; border-radius: var(--r-lg); border: 1px solid rgba(76, 141, 255, .45); background: linear-gradient(180deg, rgba(76, 141, 255, .14), rgba(76, 141, 255, .04)); }
.res__top:empty { display: none; }
.res__kick { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.res__toph { margin: 0; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.01em; }
.res__quote { margin: 12px 0 0; padding-left: 14px; border-left: 3px solid var(--mint); color: var(--ink); font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.res__quote small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
.res__jump { margin-top: 16px; }
.res__recs { margin-top: 16px; display: grid; gap: 10px; }
.rec { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(15, 22, 38, .6); }
.rec__t { margin: 0; font-size: 1.04rem; font-weight: 600; line-height: 1.35; }
.rec__said { margin: 4px 0 0; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.rec__fix { margin: 10px 0 0; line-height: 1.5; color: var(--soft); }
.rec__fix b { color: var(--ink); }
.rec__badge { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; vertical-align: 1px; }
.rec__badge--built { background: rgba(111, 227, 161, .16); color: var(--good); }
.rec__badge--build { background: rgba(246, 195, 91, .16); color: var(--mid); }
.res__none { color: var(--soft); line-height: 1.55; }

.res__mail { margin-top: 30px; padding: 22px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.res__mailh { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.res__mailp { margin: 8px 0 18px; color: var(--soft); line-height: 1.55; }
.mail { display: grid; gap: 14px; }
.mail label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.mail .opt { font-style: normal; font-weight: 400; color: var(--muted); font-size: .85rem; }
.mail input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(7, 11, 20, .6); color: var(--ink); font: inherit; font-size: 1.02rem; }
.mail input:focus { outline: none; border-color: var(--accent); }
.mail input[aria-invalid="true"] { border-color: var(--bad); }
.mail__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mail__human:empty { display: none; }
.mail__note { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.mail__note.is-error { color: var(--bad); }
.res__done { margin-top: 30px; padding: 22px 18px; border-radius: var(--r-lg); background: rgba(111, 227, 161, .08); border: 1px solid rgba(111, 227, 161, .35); outline: none; }
.res__done h3 { margin: 0; font-size: 1.35rem; }
.res__done p { color: var(--soft); line-height: 1.55; }
.res__small { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.res__again { margin: 24px 0 0; text-align: center; }

/* ---------- footer ---------- */
.foot { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 16px 30px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); }
.foot a { color: var(--soft); }

@media (min-width: 700px) {
  .intro__get { grid-template-columns: repeat(3, 1fr); }
  .res__scores { grid-template-columns: 1fr 1fr; }
  .mail { grid-template-columns: 1fr 1fr; }
  .mail .btn, .mail__note, .mail__human { grid-column: 1 / -1; }
  .mail .btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
