/* LeadMax free tools — shared design system (quiz-funnel look). Fonts self-hosted (SIL OFL). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/inter-400-800.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/poppins-800.woff2) format('woff2'); }
:root {
  --ink: #00163D; --text: #1B2233; --muted: #5E6678; --faint: #646B7A; --line: #DADFE8; --line2: #E8EBF1;
  --bg: #FFFFFF; --band: #F2F4F8; --accent: #003A99; --accent-ink: #FFFFFF; --accent-soft: #E8EEF9; --accent-deep: #002A70; --gold: #FCBB1F; --gold-deep: #E5A50F; --gold-ink: #00163D;
  --ok: #0B7A55; --ok-soft: #E7F7F0; --warn: #B54708; --warn-soft: #FFF4E6; --err: #C0262D;
  --display: 'Poppins', 'Inter', system-ui, sans-serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.top { background: var(--accent); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand-mark { width: 22px; height: 22px; display: block; }
.top-cta { background: var(--accent); color: #fff; border: 0; border-radius: 999px; font: 700 14px/1 var(--sans); padding: 10px 16px; cursor: pointer; text-decoration: none; }
.top-cta:hover { background: var(--accent-deep); }

/* Landing */
.landing { text-align: center; padding: 28px 20px 8px; }
.landing-in { max-width: 760px; margin: 0 auto; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 13px; line-height: 1.3; border-radius: 999px; padding: 7px 14px; margin: 0 0 16px; }
h1, h2, h3, .display { font-family: var(--display); color: var(--ink); }
h1 { font-weight: 800; font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; }
h1 .hl { color: var(--accent); }
.sub { color: var(--muted); font-size: 17px; line-height: 1.55; margin: 0 auto 24px; max-width: 34em; }
.kicker { font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.fine { font-size: 12.5px; color: var(--faint); max-width: 32em; margin: 14px auto 0; line-height: 1.5; }
.fine a { color: var(--muted); }
.sub-cta { font-size: 15px; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 720px) { h1 { font-size: 48px; } .landing { padding-top: 36px; } .sub { font-size: 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font: 800 16px/1 var(--sans); letter-spacing: .02em; text-transform: uppercase; padding: 19px 36px; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(252, 187, 31, .55); transition: transform .08s ease, background .15s ease; min-height: 56px; }
.btn:hover { background: var(--accent-deep); } .btn:active { transform: translateY(1px); }
.btn:focus-visible, .top-cta:focus-visible, .opt:focus-within, .nav-btn:focus-visible { outline: 3px solid #FCBB1F; outline-offset: 2px; }
.btn.block { width: 100%; }
.btn2 { display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; font: 700 15px/1 var(--sans); padding: 14px 18px; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn2:hover { border-color: var(--ink); }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 0; font: 500 14px var(--sans); cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* Hero report mock (stacked cards) */
.mock { position: relative; width: 300px; max-width: 86%; height: 214px; margin: 6px auto 30px; }
.mock .back { position: absolute; top: 18px; width: 64%; height: 150px; background: #fff; border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 8px 22px rgba(10,15,28,.08); }
.mock .back.l { left: -12%; transform: rotate(-6deg); } .mock .back.r { right: -12%; transform: rotate(5deg); }
.mock .back::before { content: ''; display: block; height: 22px; background: #C9CFDB; border-radius: 12px 12px 0 0; }
.mock .back::after { content: ''; display: block; margin: 16px 14px; height: 46px; background: repeating-linear-gradient(#EEF0F5 0 8px, transparent 8px 16px); }
.mock .front { position: absolute; left: 50%; top: 0; transform: translateX(-50%) rotate(-1.5deg); width: 100%; background: #fff; border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 22px 50px -12px rgba(10,15,28,.28); overflow: hidden; text-align: center; }
.mock .bar { background: var(--ink); color: #fff; display: flex; justify-content: space-between; padding: 9px 12px; font: 700 9.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.mock .bar span:last-child { color: #8A93A8; }
.mock .body { padding: 14px 16px 14px; }
.mock .big { font: 800 30px/1 var(--display); color: var(--ink); letter-spacing: -.02em; margin: 2px 0 4px; }
.mock .big.acc { color: var(--accent); }
.mock .lab { font: 700 9px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mock .ttl { font: 700 14px/1.25 var(--display); color: var(--ink); margin: 4px 0 10px; }
.mock .ln { height: 7px; background: #EEF0F5; border-radius: 4px; margin: 6px 0; } .mock .ln.s { width: 64%; }
.mock .tagx { display: inline-block; margin-top: 8px; background: var(--accent-soft); color: var(--accent-deep); font: 700 9px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.mock .ring { width: 74px; height: 74px; margin: 2px auto 6px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), #E6E9F0 0); }
.mock .ring b { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 800 20px/1 var(--display); color: var(--ink); }
.mock .ex { display: none; position: absolute; right: -6px; top: -12px; z-index: 3; background: #fff; border: 1px solid var(--line); color: var(--muted); font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; box-shadow: 0 4px 10px rgba(10,15,28,.08); }
@media (min-width: 720px) { .mock { width: 340px; height: 232px; } }

/* Band below the fold */
.band { background: var(--band); margin-top: 48px; padding: 44px 20px; }
.band-in { max-width: 980px; margin: 0 auto; }
.band h2 { text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 24px; }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps3 li { background: #fff; border: 1px solid var(--line2); border-radius: 16px; padding: 18px 18px 18px 64px; position: relative; font-size: 15px; color: var(--muted); counter-increment: s; }
.steps3 li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font: 800 15px/32px var(--display); text-align: center; }
.steps3 strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
@media (min-width: 820px) { .steps3 { grid-template-columns: repeat(3, 1fr); } .band h2 { font-size: 30px; } }

/* Quiz */
.quiz { max-width: 560px; margin: 0 auto; padding: 22px 20px 36px; }
.prog { margin: 0 0 26px; }
.prog-t { font: 500 14px/1 var(--sans); color: var(--muted); margin: 0 0 8px; }
.prog-t b { color: var(--ink); font-weight: 700; }
.prog-bar { height: 5px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.prog-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.screen h2 { font-family: var(--sans); font-weight: 800; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; text-align: center; margin: 0 0 8px; color: var(--ink); }
.screen .help { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 auto 22px; max-width: 30em; }
@media (min-width: 720px) { .screen h2 { font-size: 30px; } }
.opts { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 14px 16px; min-height: 58px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); transition: border-color .12s, background .12s; }
.opt:hover { border-color: #AEB6C6; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .k { flex: 0 0 auto; width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 7px; display: grid; place-items: center; font: 600 13px/1 var(--sans); color: var(--muted); background: #fff; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:checked) .k { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); } .opt.sel .k { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 15px; font-weight: 500; cursor: pointer; background: #fff; color: var(--ink); }
.chip input { position: absolute; opacity: 0; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.chip:focus-within { outline: 3px solid #FCBB1F; outline-offset: 1px; }

.field { margin: 0 0 16px; text-align: left; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin: 0 0 6px; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 400 17px/1.3 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 14px; min-height: 54px; appearance: none; -webkit-appearance: none; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 58, 153, .16); }
.bigin { position: relative; }
.bigin input { font: 800 30px/1.1 var(--display); text-align: center; padding: 16px 44px; min-height: 76px; letter-spacing: -.01em; }
.bigin .pre, .bigin .post { position: absolute; top: 50%; transform: translateY(-50%); font: 700 24px/1 var(--display); color: var(--faint); }
.bigin .pre { left: 18px; } .bigin .post { right: 18px; }
.derived { text-align: center; color: var(--muted); font-size: 14.5px; margin: 10px 0 0; min-height: 1.2em; }
.swap { text-align: center; margin: 14px 0 0; }
.err { display: none; color: var(--err); font-size: 14px; margin: 8px 0 0; text-align: left; }
.invalid .err, .invalid + .err { display: block; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--err); }
.invalid .opt { border-color: #F1B7BA; }
.range-row { display: flex; align-items: center; gap: 14px; }
input[type=range] { flex: 1; width: 100%; accent-color: var(--accent); height: 36px; }
.range-val { font: 800 34px/1 var(--display); color: var(--accent); min-width: 84px; text-align: right; }
.range-scale { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; margin-top: 2px; }
.two { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 500; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.nav { display: flex; gap: 12px; margin-top: 26px; }
.nav-btn { flex: 1; border: 0; border-radius: 10px; font: 700 17px/1 var(--sans); padding: 16px 18px; min-height: 54px; cursor: pointer; }
.nav-btn.prev { background: #fff; color: var(--ink); border: 1.5px solid var(--line); flex: 0 0 auto; padding: 16px 22px; }
.nav-btn.next { background: var(--accent); color: #fff; }
.nav-btn.next:hover { background: var(--accent-deep); }
.skip { text-align: center; margin: 14px 0 0; }

/* Interstitial */
.inter { background: radial-gradient(120% 120% at 0% 0%, #003A99 0%, var(--ink) 60%); color: #fff; border-radius: 18px; padding: 30px 24px; text-align: center; position: relative; overflow: hidden; }
.inter .big { font: 800 44px/1 var(--display); letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.inter p { color: #C5CCDB; margin: 0 auto; max-width: 26em; font-size: 15.5px; }
.inter .lab { font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #FCBB1F; margin: 0 0 14px; }

/* Gate */
.gate-card { border: 1.5px solid var(--line2); border-radius: 18px; padding: 22px 18px 18px; box-shadow: 0 18px 40px -20px rgba(10,15,28,.25); }
.gate-ok { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 13px/1 var(--sans); color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 8px 12px; width: max-content; margin: 0 auto 14px; }
.gate-card .fine { text-align: center; }

/* Result */
.result { max-width: 720px; margin: 0 auto; padding: 26px 20px 40px; }
.result-hi { text-align: center; margin: 0 0 20px; }
.result-hi h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.result-hi p { color: var(--muted); margin: 0 auto; max-width: 34em; }
@media (min-width: 720px) { .result-hi h2 { font-size: 36px; } }
.report { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line2); box-shadow: 0 30px 60px -28px rgba(10,15,28,.35); }
.report-bar { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; padding: 12px 18px; font: 700 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.report-bar span:last-child { color: #8A93A8; text-align: right; overflow: visible; text-overflow: unset; white-space: normal; overflow-wrap: anywhere; }
.report-main { background: radial-gradient(120% 140% at 50% 0%, #003A99 0%, var(--ink) 70%); color: #fff; text-align: center; padding: 28px 20px 30px; }
.report-main .lab { font: 700 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #FCBB1F; margin: 0 0 10px; }
.report-main .big { font: 800 52px/1 var(--display); letter-spacing: -.03em; margin: 0 0 12px; color: #fff; }
.report-main .big.s { font-size: 34px; line-height: 1.12; }
.report-main p { color: #C5CCDB; margin: 0 auto; max-width: 30em; font-size: 15.5px; }
@media (min-width: 720px) { .report-main .big { font-size: 68px; } .report-main .big.s { font-size: 42px; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 18px 18px; border-top: 1px solid var(--line2); }
.stat:nth-child(odd) { border-right: 1px solid var(--line2); }
.stat .k { font: 700 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }
.stat .v { font: 800 24px/1.1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.stat .d { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
@media (min-width: 720px) { .stat .v { font-size: 28px; } .stat { padding: 20px 24px; } }
.recover { padding: 20px 18px 22px; border-top: 1px solid var(--line2); background: #FAFBFD; }
.recover .k { font: 700 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
.recover .v { font: 800 30px/1.1 var(--display); color: var(--accent); letter-spacing: -.02em; }
.recover .d { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.recover label { font-weight: 600; font-size: 14px; color: var(--ink); display: block; margin-bottom: 2px; }
.recover .range-val { font-size: 24px; min-width: 60px; }
.meters { padding: 6px 18px 20px; }
.meter-row { padding: 16px 0 4px; border-top: 1px solid var(--line2); }
.meter-row:first-child { border-top: 0; }
.meter-row h3 { font: 800 18px/1.2 var(--display); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 0 0 8px; }
.meter i { height: 10px; border-radius: 3px; background: var(--line2); }
.meter i.on { background: var(--accent); }
.meter-row:not(.is-top) .meter i.on { background: #94A3C8; }
.meter-row .sig { font-size: 14px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.meter-row ul { margin: 0 0 6px; padding-left: 18px; font-size: 14.5px; color: var(--text); }
.meter-row li { margin: 0 0 6px; }
.tag { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; border-radius: 999px; padding: 5px 9px; }
.block { margin: 26px 0 0; }
.block h3 { font: 800 21px/1.2 var(--display); margin: 0 0 12px; letter-spacing: -.01em; }
.moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: m; }
.moves li { position: relative; border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px 14px 56px; font-size: 15px; color: var(--muted); counter-increment: m; background: #fff; }
.moves li::before { content: counter(m); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-deep); font: 800 14px/28px var(--display); text-align: center; }
.moves strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 15.5px; }
.explain { font-size: 15px; color: var(--muted); } .explain p { margin: 0 0 10px; } .explain strong { color: var(--ink); }
.note { background: var(--band); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--muted); margin: 22px 0 0; }
.cta { margin: 26px 0 0; border-radius: 20px; background: var(--ink); color: #C5CCDB; padding: 26px 22px; text-align: center; }
.cta h3 { color: #fff; font: 800 24px/1.2 var(--display); margin: 0 0 10px; letter-spacing: -.01em; }
.cta p { margin: 0 auto 18px; max-width: 32em; font-size: 15.5px; }
.cta .micro { margin: 12px 0 0; font-size: 13.5px; color: #8A93A8; }
.cta.light { background: var(--band); color: var(--muted); text-align: left; }
.cta.light h3 { color: var(--ink); }
.cta.light a { color: var(--accent-deep); font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.actions > * { flex: 1 1 auto; }
.toast { min-height: 1.3em; color: var(--ok); font-weight: 600; font-size: 14px; margin: 8px 0 0; }
.restart { text-align: center; margin: 22px 0 0; }
.gaps { padding: 18px; border-top: 1px solid var(--line2); background: var(--warn-soft); color: #7A3306; font-size: 14.5px; }
.gaps ul { margin: 8px 0 0; padding-left: 18px; } .gaps li { margin: 0 0 5px; }
.gaps.ok { background: var(--ok-soft); color: #075E42; }
.out { color: var(--text); padding: 8px 18px 18px; margin: 0; overflow-wrap: anywhere; }
.out-head { font: 800 15px/1.3 var(--display); color: #fff; background: var(--accent); margin: -8px -18px 16px; padding: 14px 18px; letter-spacing: .02em; text-transform: uppercase; }
.out-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 15px; }
.out-meta dt { color: var(--muted); font-weight: 600; }
.out-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.out-sec { border-top: 1px solid var(--line2); padding: 14px 0 4px; }
.out-sec h3 { font: 800 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.out-sec p { margin: 0 0 6px; font-size: 15px; }
.out-sec.next h3 { color: var(--ok); }
.out-sec.missing h3 { color: var(--warn); }
.optional.done .optional-intro { display: none; }
.optional { margin: 30px 0 0; border: 1.5px solid var(--line2); border-radius: 18px; padding: 22px 18px; }
.optional h3 { font: 800 21px/1.2 var(--display); margin: 0 0 6px; }
.optional > p { color: var(--muted); margin: 0 0 16px; font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line2); padding: 22px 20px 34px; text-align: center; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
footer p { margin: 0 auto 6px; max-width: 52em; }
footer a { color: var(--muted); }
body.in-flow .band { display: none; }

body.in-flow .top-cta { display: none; }

.field .opt { display: flex; margin: 0; font-size: 16px; font-weight: 500; }
.field .chip { display: inline-flex; margin: 0; font-size: 15px; font-weight: 500; }
.field .check { display: flex; margin: 0; font-size: 15.5px; font-weight: 500; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.mock .bar span:last-child { color: #FCBB1F; }

/* Audit fixes, Nov 13: wrapping buttons at 320px, 44px tap targets, room for the fixed Netlify badge. */
.btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding: 18px 26px; }
.top-cta { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; text-align: left; line-height: 1.35; }
.chip { min-height: 44px; }
input[type=range] { height: 44px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.fine a, .cta a:not(.btn), .note a, .sub a, .explain a, #team-thanks a, .w a { padding: 15px 0; }
.brand { min-height: 44px; }
/* Bottom safe area. The Netlify badge reserve is gone; the site now moves to Cloudflare Pages, which adds no badge.
   Only the device safe area (iPhone home bar) is kept. */
:root { --badge-safe: env(safe-area-inset-bottom, 0px); }
footer { padding-bottom: calc(24px + var(--badge-safe)); }

/* Brand pass (Nov 13): gold primary CTA with navy text (9.8:1), royal blue structure, real logos. */
.btn { background: var(--gold); color: var(--gold-ink); }
.btn:hover { background: var(--gold-deep); }
.top-cta { background: var(--gold); color: var(--gold-ink); }
.top-cta:hover { background: var(--gold-deep); }
.brand img { display: block; height: 28px; width: auto; }
.mock .bar img { height: 14px; width: auto; display: block; }
.mock .bar { align-items: center; }
.mock .bar span:last-child { color: var(--gold); }
.report-bar { background: var(--accent); align-items: center; }
.report-bar span:last-child { color: #C9D6EE; }
.mock .bar { background: var(--accent); }
.steps3 li::before { background: var(--accent); }
.cta { background: linear-gradient(160deg, #003A99 0%, #00163D 75%); color: #C9D6EE; }
.cta .micro { color: #C9D6EE; }
.landing { padding-bottom: 28px; }
.result-hi p { font-size: 15.5px; }
.moves li { font-size: 14.5px; }
.copy-row { text-align: center; margin: 14px 0 0; }
.mock .bar span:nth-child(2) { flex: 1; text-align: left; margin-left: 8px; }
.nav { position: sticky; bottom: var(--badge-safe); z-index: 5; background: #fff; padding: 10px 0; margin-top: 16px; box-shadow: 0 -12px 16px -12px rgba(0,22,61,.12); }
@media (max-width: 360px) { h1 { font-size: 27px; } }
/* Hide the header CTA on small screens so it never jams the wordmark; the landing button is the action. */
@media (max-width: 719px) { .top-cta { display: none !important; } }
@media (min-width: 720px) { .top-cta { max-width: min(48%, 360px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* Short phones: drop the example card so the main button lands above the fold and clear of the badge. */
@media (max-width: 480px) and (max-height: 760px) { .mock { display: none; } .landing { padding-top: 22px; } }

/* First screen fills the viewport so the footer (and privacy fine-print) start below the fold.
   Extra padding keeps the landing CTA clear of the badge. */
#step-landing > .landing {
  min-height: calc(100dvh - 56px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: var(--badge-safe);
}
.landing-fine { padding: 8px 20px calc(12px + var(--badge-safe)); margin: 0 auto; }
.cta { padding-bottom: calc(26px + var(--badge-safe)); }
.result, #step-done.result { padding-bottom: calc(40px + var(--badge-safe)); }
.quiz { padding-bottom: var(--badge-safe); }


.screen:not(.hidden):has(.gate-ok) { display: flex; flex-direction: column; }
.screen .gate-ok { order: -1; margin: 0 auto 12px; }

/* Result-page plan, insight, pain, and print-only worksheet (Nov 13). */
.print-only { display: none; }
.plan-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.plan-actions > * { flex: 1 1 160px; min-height: 48px; }
.insight .tip { margin: 10px 0 0; padding: 10px 14px; background: var(--band); border-radius: 10px; border-left: 3px solid var(--gold); color: var(--text); }
.insight p, .pain p { margin: 0; font-size: 15.5px; color: var(--text); line-height: 1.5; }
.pain { }

/* t56u: plan line before the start button; scorecard step-by-step plan (print). */
.plan-line { font-size: 14.5px; font-weight: 600; color: var(--ink); max-width: 30em; margin: -10px auto 14px; line-height: 1.4; }
.plan-more { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Free bonuses (t59u): shown after the unlock, next to the plan download. Screen only; never in the plan PDF. */
.bonuses { margin-top: 20px; border: 1.5px solid var(--line2); border-radius: 16px; padding: 16px 16px 6px; background: #FFFBEF; }
.bonuses h3 { font: 800 19px/1.2 var(--display); margin: 0 0 10px; }
.bonus-list { list-style: none; margin: 0; padding: 0; }
.bonus-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--line2); }
.bonus-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.bonus-list li > div { flex: 1 1 240px; min-width: 0; }
.bonus-list strong { display: block; color: var(--ink); font-size: 15.5px; }
.bonus-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.bonus-list .btn2 { flex: 0 0 auto; }

/* Rep Gap Finder */
.gap-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gap-table th, .gap-table td { padding: 10px 10px; text-align: right; border-top: 1px solid var(--line2); }
.gap-table th:first-child, .gap-table td:first-child { text-align: left; }
.gap-table th { font: 700 11px/1.25 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: #FAFBFD; }
.gap-table tr.is-best td { background: var(--ok-soft); }
.gap-table tr.is-focus td { background: var(--accent-soft); font-weight: 700; }
.gap-table tfoot td { font-weight: 800; color: var(--ink); }
.gap-table .tag { font-size: 9.5px; padding: 4px 7px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.gap-table .tag-focus { background: var(--ink); }
.focus-line { color: var(--ink); font-size: 15px; margin: 10px 0 0; }
.small-note { font-size: 13.5px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; }
.recover p { margin: 0 0 8px; }
.rep-err { display: none; }
.screen[data-rep] .field label { font-weight: 600; }
@media (max-width: 520px) {
  .gap-table { font-size: 13px; }
  .gap-table th, .gap-table td { padding: 8px 5px; }
  .gap-table th:first-child, .gap-table td:first-child { padding-left: 10px; }
  .gap-table th:last-child, .gap-table td:last-child { padding-right: 10px; }
  .gap-table th { font-size: 10.5px; letter-spacing: 0; text-transform: none; line-height: 1.2; vertical-align: bottom; }
  .gap-table .tag { display: block; width: max-content; margin: 4px 0 0; font-size: 8.5px; letter-spacing: .03em; padding: 3px 6px; }
}
@media (max-width: 360px) {
  .gap-table { font-size: 12px; }
  .gap-table th, .gap-table td { padding: 7px 3px; }
  .gap-table th:first-child, .gap-table td:first-child { padding-left: 8px; }
  .gap-table th:last-child, .gap-table td:last-child { padding-right: 8px; }
  .gap-table th { font-size: 9px; white-space: nowrap; }
  .gap-table th:nth-child(4), .gap-table th:last-child { white-space: normal; }
  .gap-table .tag { font-size: 7.5px; padding: 3px 5px; letter-spacing: .02em; }
}

@media print {
  /* Rep Gap Finder PDF: 1 analysis, 2 the 30-day plan + insight, 3 checklist + tracker. */
  html[data-offer="repgap"] .gap-table { font-size: 11.5px; }
  html[data-offer="repgap"] .gap-table th, html[data-offer="repgap"] .gap-table td { padding: 5px 6px; }
  html[data-offer="repgap"] .recover { padding: 10px 14px; font-size: 12.5px; }
  html[data-offer="repgap"] .report-main p { font-size: 12.5px; }
  html[data-offer="repgap"] .rg-plan h3 { font: 800 13.5px/1.25 var(--display); color: #0B1F4D; margin: 8px 0 3px; }
  html[data-offer="repgap"] .rg-plan .steps { gap: 2px; padding-left: 18px; }
  html[data-offer="repgap"] .rg-plan .steps li { font-size: 11.5px; line-height: 1.38; }
  html[data-offer="repgap"] #print-plan-page .print-brand { margin-bottom: 6px; }
  html[data-offer="repgap"] #print-plan-page .print-title { font-size: 18px; margin-bottom: 4px; }
  html[data-offer="repgap"] #print-plan-page .insight { margin-top: 8px; }
  html[data-offer="repgap"] #print-plan-page .insight h3 { font-size: 13px; margin: 0 0 3px; }
  html[data-offer="repgap"] #print-plan-page .insight p { font-size: 11.5px; margin: 0; }
  html[data-offer="repgap"] #print-plan-page .insight .tip { margin-top: 4px; padding: 5px 9px; }
  html[data-offer="repgap"] #print-sheet h3 { font: 800 14px/1.25 var(--display); color: #0B1F4D; margin: 0 0 6px; }
  html[data-offer="repgap"] .watch-table td { height: 28px; }
  .bonuses { display: none !important; }

  @page { size: letter; margin: 0.6in; }
  .print-desc { font-size: 13px; color: #334155; line-height: 1.45; margin: 0 0 12px; }
  #monday-plan .print-title { margin: 0 0 6px; }
  .part h3 { font: 800 18px/1.25 var(--display); color: #0B1F4D; margin: 0 0 4px; }
  .part-meta { font-size: 12.5px; color: #334155; background: #F8FAFC; border-left: 3px solid #003A99; padding: 6px 10px; margin: 0 0 8px; line-height: 1.4; }
  .part .steps { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
  .part .steps li { font-size: 13px; line-height: 1.45; color: #0B1F4D; break-inside: avoid; page-break-inside: avoid; }
  .part .steps strong { display: inline; }
  .part .wd { display: block; font-size: 12px; color: #475569; font-style: italic; margin-top: 1px; }
  .log-h { font: 800 14px/1.2 var(--display); color: #0B1F4D; margin: 12px 0 6px; }
  .log-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .log-table th, .log-table td { border: 1px solid #CBD5E1; padding: 5px 6px; text-align: left; vertical-align: top; }
  .log-table th { background: #F8FAFC; font-weight: 700; color: #0B1F4D; }
  .log-table td { height: 30px; }
  html[data-offer="paid-for"] #print-plan-page .insight { margin-top: 10px; }
  html[data-offer="paid-for"] #print-plan-page .insight h3 { font-size: 14px; margin: 0 0 4px; }
  html[data-offer="paid-for"] #print-plan-page .insight p { font-size: 12.5px; }
  html[data-offer="paid-for"] #print-plan-page .insight .tip { margin-top: 6px; padding: 6px 10px; }
  header, .top, footer, .noprint, .btn, .btn2, .optional, .cta, .band, .restart,
  .copy-row, .toast, .plan-actions, .landing, .quiz, .landing-fine, nav,
  #nl-badge-frame, iframe#nl-badge-frame, iframe[title="Powered by Netlify"] { display: none !important; }
  .print-only { display: block !important; }
  .print-brand { display: block !important; margin: 0 0 14px; }
  .print-brand img { width: 56px; height: 56px; }
  .print-title { font: 800 22px/1.2 var(--display); letter-spacing: -.02em; color: #0B1F4D; margin: 0 0 14px; }
  .print-plan-page, #print-sheet, .print-page + .print-page {
    break-before: page;
    page-break-before: always;
  }
  .print-analysis { break-before: auto; page-break-before: auto; }
  #print-sheet { display: block !important; margin-top: 0; break-inside: avoid; page-break-inside: avoid; }
  .moves li, .insight, .print-analysis .report { break-inside: avoid; page-break-inside: avoid; }
  .report-main { padding: 14px 16px; }
  .report-main .big { font-size: 40px !important; }
  .report-main .big.s { font-size: 26px !important; }
  .result-hi { margin: 0 0 12px; }
  .result-hi h2 { font-size: 20px; }
  .stat { padding: 10px 14px; }
  .stat .v { font-size: 20px; }
  .recover { padding: 12px 16px; }
  .recover .v { font-size: 22px; }
  .recover .d { margin-bottom: 0; }
  .print-note { display: block !important; margin: 12px 0 0; font-size: 12px; color: #475569; line-height: 1.4; }
  .rank-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .rank-table th, .rank-table td { border: 1px solid #CBD5E1; padding: 8px 6px; text-align: left; vertical-align: top; }
  .rank-table th { background: #F8FAFC; font-weight: 700; color: #0B1F4D; }
  .rank-table td { height: 32px; }
  .report { box-shadow: none; border: 1px solid #E2E8F0; }
  .out { font-size: 12px; white-space: pre-wrap; }
  .result, #step-done.result { padding: 0; padding-bottom: 0; }
  .result-hi .kicker { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #64748B; }
  .block { margin-top: 16px; }
  /* Debrief: keep the card, how-to steps, and insight on one page when possible;
     never leave the "How to use this card" heading alone at the bottom of a page. */
  .print-keep { break-inside: avoid; page-break-inside: avoid; }
  #step-done .print-title { margin: 0 0 8px; font-size: 20px; }
  #step-done .print-brand { margin: 0 0 8px; }
  #step-done .out { padding: 6px 14px 10px; font-size: 11.5px; }
  #step-done .out-meta { gap: 2px 12px; margin: 0 0 8px; font-size: 13px; }
  #step-done .out-sec { padding: 6px 0 1px; }
  #step-done .out-sec h3 { margin: 0 0 3px; }
  #step-done .out-sec p { margin: 0 0 2px; font-size: 12.5px; }
  #step-done .block { margin-top: 10px; }
  #step-done .block h3 { font-size: 18px; margin: 0 0 8px; }
  #step-done .moves { gap: 6px; }
  #step-done .moves li { padding: 8px 12px 8px 48px; font-size: 13px; }
  #step-done .moves li::before { top: 8px; }
  #step-done .insight p { font-size: 13px; }
  #step-done .insight .tip { margin-top: 6px; padding: 8px 12px; }
  #step-done #monday-plan, #step-done #insight { break-inside: avoid; page-break-inside: avoid; }
  #step-done .print-plan-page { display: flex; flex-direction: column; }
  #step-done #insight { order: 1; break-before: auto; page-break-before: auto; }
  #step-done .print-keep { order: 2; break-before: page; page-break-before: always; }
  body { background: #fff; color: #0B1F4D; }
  a[href]:after { content: none !important; }
}

@media screen {
  #print-sheet, #print-brand, .print-only { display: none !important; }
}

/* t58u: the line under the headline is short bullets. Left-aligned list, centred as a block. */
.sub-list { list-style: none; padding: 0; display: table; text-align: left; max-width: 30em; }
.sub-list li { position: relative; padding: 0 0 0 28px; margin: 0 0 8px; line-height: 1.4; }
.sub-list li:last-child { margin-bottom: 0; }
.sub-list li::before { content: ''; position: absolute; left: 2px; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.sub-list li.bonus { font-weight: 700; color: var(--ink); }
.sub-list li.bonus::before { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2300163D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Sticky Previous/Next bar: on short screens (<= 640px tall) it sits after the last answer instead of
   floating over it, so it can never cover an answer. Taller screens keep the sticky bar. */
@media (max-height: 640px) { .nav { position: static; box-shadow: none; padding-bottom: 0; } }

/* Keep the landing button above the badge area with the bullets added (t58u). */
@media (max-width: 719px) {
  #step-landing h1 { font-size: 30px; }
  #step-landing .sub-list { font-size: 15px; margin-bottom: 18px; }
  #step-landing .sub-list li { margin-bottom: 5px; }
  #step-landing .mock { margin: 0 auto 16px; }
}
@media (min-width: 720px) {
  #step-landing .sub-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; max-width: 46em; margin-bottom: 22px; font-size: 16.5px; }
  #step-landing .sub-list li { margin: 0; }
  #step-landing h1 { font-size: 42px; }
  #step-landing .mock { margin-bottom: 18px; }
}

/* Short phones: tighter headline and bullets so the main button stays above the badge area. */
@media (max-width: 480px) and (max-height: 700px) {
  #step-landing h1 { font-size: 24px; margin-bottom: 10px; }
  #step-landing .sub-list { font-size: 14.5px; margin-bottom: 14px; }
  #step-landing .sub-list li { margin-bottom: 4px; padding-left: 24px; }
  #step-landing .sub-list li::before { width: 15px; height: 15px; background-size: 15px; }
  #step-landing .plan-line { font-size: 14px; margin-bottom: 12px; }
  #step-landing .btn.start-btn { min-height: 52px; padding: 14px 24px; }
}
/* Short screens: compact quiz so the question, every answer and the Previous/Next bar fit above the badge area. */
@media (max-height: 640px) {
  .quiz { padding-top: 12px; }
  .prog { margin-bottom: 12px; }
  .screen h2 { font-size: 20px; margin-bottom: 4px; }
  .screen .help { font-size: 13.5px; margin-bottom: 10px; }
  .opts { gap: 7px; }
  .opt { min-height: 46px; padding: 8px 12px; font-size: 15px; gap: 10px; }
  .opt .k { width: 24px; height: 24px; }
  .nav { margin-top: 10px; padding-top: 0; }
  .nav-btn { min-height: 46px; padding: 12px 16px; }
  .nav-btn.prev { padding: 12px 18px; }
}
/* The example card sizes the mock box (no fixed height), so a taller card never runs into the headline. */
#step-landing .mock { height: auto; }
#step-landing .mock .front { position: relative; left: auto; transform: rotate(-1.5deg); }
/* t59u: room for the bonus bullet. Smaller example card and tighter type so the button stays above the badge area. */
@media (max-width: 719px) {
  #step-landing .mock { zoom: .8; margin-bottom: 14px; }
  #step-landing h1 { font-size: 27px; margin-bottom: 10px; }
  #step-landing .sub-list { font-size: 14.5px; margin-bottom: 14px; }
  #step-landing .sub-list li { margin-bottom: 3px; }
  #step-landing .plan-line { font-size: 13.5px; margin-bottom: 12px; }
  #step-landing .btn.start-btn { padding: 15px 22px; min-height: 52px; }
  .landing { padding-top: 16px; }
}
@media (max-width: 480px) and (max-height: 700px) {
  #step-landing h1 { font-size: 21px; margin-bottom: 8px; }
  #step-landing .sub-list { font-size: 13.5px; line-height: 1.3; margin-bottom: 10px; }
  #step-landing .sub-list li { margin-bottom: 2px; padding-left: 22px; }
  #step-landing .sub-list li::before { width: 14px; height: 14px; background-size: 14px; top: .1em; }
  #step-landing .plan-line { font-size: 12.5px; margin: -4px auto 10px; }
  #step-landing .btn.start-btn { padding: 12px 20px; min-height: 48px; font-size: 15px; }
  .landing { padding-top: 10px; }
}
@media (min-width: 720px) {
  #step-landing h1 { font-size: 38px; }
  #step-landing .mock { zoom: .88; margin-bottom: 14px; }
  #step-landing .sub-list { gap: 4px 18px; margin-bottom: 18px; font-size: 16px; }
}
