/* Colorella funnel. Tokens from huevue/src/design/tokens.ts: achromatic, faintly
   warm ink ramp on paper; Georgia only for a season's name; large type and tap
   targets because most buyers are 55+ on small iPhones (375x667). */
:root {
  --ink: #141310; --ink7: #2E2B26; --ink6: #484440; --ink5: #6B6660; --ink4: #918B84;
  --ink2: #D8D3CC; --ink1: #EBE7E1; --ink05: #F6F3EE; --paper: #FCFAF7; --white: #FFFFFF;
  --yes: #2F5D3A; --yesTint: #E8EFE6; --warn: #7A3B34; --gold: #B38A2E;
  --r: 16px; --pad: 18px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 17px/1.45 var(--sans); min-height: 100dvh; }
a { color: inherit; }
b { font-weight: 650; }

#topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 52px; padding: 0 10px; background: var(--paper); }
#topbar .brand { flex: 1; text-align: center; font: 600 15px/1 var(--serif); letter-spacing: .06em; }
#topbar .spacer, #back { width: 44px; height: 44px; }
#back { background: none; border: 0; color: var(--ink); visibility: hidden; display: grid; place-items: center; }
#back svg { width: 24px; height: 24px; }
#progress { height: 4px; margin: 0 var(--pad); background: var(--ink1); border-radius: 2px; overflow: hidden; }
#progress i { display: block; height: 100%; width: 4%; background: var(--ink); border-radius: 2px; transition: width .35s ease; }

.stage { max-width: 480px; margin: 0 auto; padding: 18px var(--pad) 150px; }
#actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 72%, rgba(252,250,247,0)); }
#actionbar:empty { display: none; }
#actionbar > * { max-width: 444px; margin-left: auto; margin-right: auto; }

.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--ink5); margin: 4px 0 8px; }
.title { font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 10px; }
.ask { font-size: 23px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin: 10px 0 14px; }
.sub { font-size: 17px; color: var(--ink6); margin: 0 0 16px; }
.read { font-size: 17px; line-height: 1.55; color: var(--ink7); margin: 0 0 12px; }
.fine { font-size: 14.5px; color: var(--ink5); margin: 8px 0; }
.fine.warn { color: var(--warn); font-weight: 600; }
.center { text-align: center; }
.legal { font-size: 13.5px; color: var(--ink4); margin-top: 14px; text-align: center; }
.source { font-size: 13.5px; color: var(--ink4); margin-top: 12px; }
.proofline { font-size: 14px; color: var(--ink6); margin: -4px 0 6px; display: flex; gap: 6px; align-items: center; }

.icn { width: 26px; height: 26px; flex: none; }
.icn.inline { width: 17px; height: 17px; vertical-align: -3px; }
.icn.ok { color: var(--yes); }
.icn.light { color: var(--paper); }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--ink); color: var(--paper); font: 600 18px/1.2 var(--sans); padding: 14px 18px; cursor: pointer; }
.btn:disabled { background: var(--ink2); color: var(--ink5); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink2); margin-top: 10px; }
.btn.small { width: auto; min-height: 40px; font-size: 14px; padding: 8px 14px; border-radius: 10px; }
.btn.big { min-height: 60px; font-size: 19px; margin-top: 16px; }

.card { background: var(--white); border-radius: var(--r); padding: 20px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(20,19,16,.06), 0 0 0 1px var(--ink1); }
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* hero */
.hero { position: relative; margin: 0 calc(-1 * var(--pad)) 16px; }
.hero-img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: 50% 22%; }
.hero-strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 10px; }
.hero-strip i { flex: 1; }

/* options */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 14px 48px 14px 16px; background: var(--white); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--ink2); color: var(--ink); font: 500 17.5px/1.3 var(--sans); text-align: left; cursor: pointer; }
.opt.selected { box-shadow: inset 0 0 0 2.5px var(--ink); background: var(--ink05); }
.opt .tick { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink2); display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--paper); }
.opt.radio .tick { border-radius: 50%; }
.opt.multi .tick { border-radius: 7px; }
.opt.selected .tick { background: var(--ink); box-shadow: none; }
.opt img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.opt .sw { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.opts.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt.tiles { flex-direction: column; align-items: stretch; padding: 8px 8px 12px; min-height: 0; text-align: center; }
.opt.tiles img { width: 100%; height: 118px; border-radius: 10px; }
.opt.tiles .lbl { font-size: 16px; padding-top: 4px; }
.opt.tiles .tick { top: 16px; right: 16px; transform: none; background: rgba(255,255,255,.85); }
.opt.tiles.selected .tick { background: var(--ink); }
.opt.tiles.noimg { justify-content: center; min-height: 64px; padding: 14px 40px 14px 14px; text-align: left; }
.opt.tiles.noimg .lbl { padding: 0; }
.opt.tiles.noimg .tick { top: 50%; right: 10px; transform: translateY(-50%); background: none; }
.opts.swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt.swatches { padding-right: 40px; font-size: 16px; }
.opt.swatches .tick { right: 10px; }

/* info */
.info-img { width: calc(100% + 40px); margin: -20px -20px 16px; height: 230px; object-fit: cover; object-position: 50% 22%; border-radius: var(--r) var(--r) 0 0; display: block; }
.stat { font: 600 64px/1 var(--serif); letter-spacing: -.02em; margin: 6px 0 4px; }
.title.after-stat { font-size: 21px; }
.rows .row, .row { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; font-size: 16.5px; line-height: 1.45; }
.seasongrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; margin: 16px 0 6px; }
.sg { text-align: center; font-size: 12px; color: var(--ink6); }
.sg-sw { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; height: 38px; margin-bottom: 4px; }

/* proof */
.review p { font-size: 16px; line-height: 1.5; font-style: italic; color: var(--ink7); }
.review .who { font-size: 14px; font-weight: 650; color: var(--ink5); margin-top: 8px; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; margin-bottom: 6px; }

/* photo */
.tips .row { margin: 14px 0; }
.photo-frame { position: relative; width: auto; max-width: 100%; aspect-ratio: 3 / 4; height: 46vh; border-radius: var(--r); overflow: hidden; background: var(--ink1); margin: 6px auto 14px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facebox { position: absolute; border: 3px solid var(--yes); border-radius: 46%; box-shadow: 0 0 0 999px rgba(20,19,16,.18); }
.facebox.bad { border-color: #C9964A; }
.spinner { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border: 3px solid var(--ink2); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reading */
.portrait { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; position: relative; background: var(--ink1); }
.portrait.sm { width: 88px; height: 88px; margin: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait.scan .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--ink); animation: spin 1.6s linear infinite; }
.pct { font: 600 40px/1 var(--sans); font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.bar { height: 8px; background: var(--ink1); border-radius: 4px; overflow: hidden; margin: 0 0 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s linear; }
.chips { display: flex; justify-content: center; gap: 16px; margin: 0 0 12px; font-size: 14px; color: var(--ink6); }
.chips span { display: flex; align-items: center; gap: 7px; }
.chips i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.phases { text-align: left; }
.ph { display: flex; gap: 10px; align-items: center; margin: 10px 0; font-size: 16px; color: var(--ink4); }
.ph b { width: 22px; height: 22px; border-radius: 50%; background: var(--ink1); flex: none; display: grid; place-items: center; font-size: 13px; color: var(--paper); }
.ph.done { color: var(--ink); }
.ph.done b { background: var(--yes); }
.ph.done b::after { content: '✓'; }
.ask-card { text-align: center; animation: fade .3s ease both; }
.ask-q { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 14px; }

/* season + gate */
.season-name { font: 400 34px/1.15 var(--serif); letter-spacing: .01em; margin: 2px 0 12px; }
.blur { filter: blur(9px); user-select: none; }
.sw4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 16px; }
.sw4 i { display: block; height: 58px; border-radius: 10px; }
.sw4 span { display: block; font-size: 12.5px; color: var(--ink6); margin-top: 5px; line-height: 1.2; }
.gate { position: relative; display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--r); padding: 16px; margin: 6px 0 12px; box-shadow: 0 0 0 1px var(--ink1); }
.gate-blur { flex: 1; min-width: 0; }
.gate-blur .season-name { font-size: 26px; margin: 0 0 8px; }
.gate .tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.gate .tiles i { height: 22px; border-radius: 5px; }
.gate-lock { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.gate-lock .icn { width: 20px; height: 20px; }
.receipt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.receipt div { background: var(--ink05); border-radius: 12px; padding: 10px 6px; text-align: center; }
.receipt b { display: block; font-size: 19px; }
.receipt span { font-size: 12.5px; color: var(--ink5); }
.field { width: 100%; min-height: 58px; padding: 14px 16px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px var(--ink2); background: var(--white); font: 18px var(--sans); color: var(--ink); outline: none; margin: 4px 0 6px; }
.field:focus { box-shadow: inset 0 0 0 2.5px var(--ink); }

/* paywall */
.t-paywall { padding-top: 0; }
.timerbar { position: sticky; top: 52px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 calc(-1 * var(--pad)) 14px; padding: 10px var(--pad); background: var(--ink); color: var(--paper); }
.t-label { font-size: 12.5px; opacity: .85; }
.t-time { font: 650 22px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.timerbar .btn.small { background: var(--paper); color: var(--ink); }
.result { text-align: center; }
.axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.axes div { background: var(--ink05); border-radius: 12px; padding: 9px 4px; }
.axes span { display: block; font-size: 13px; color: var(--ink5); }
.axes b { font-size: 16px; }
.result .tiles { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 10px; }
.result .tiles i { height: 40px; border-radius: 8px; filter: blur(6px); }
.result .tiles i.open { filter: none; }
.result .tiles:not(.locked) .tiles-lock { display: none; }
.tiles-lock { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.plan { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 14px; margin: 0 0 10px; background: var(--white); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--ink2); text-align: left; color: var(--ink); font-family: var(--sans); cursor: pointer; }
.plan.on { box-shadow: inset 0 0 0 2.5px var(--ink); background: var(--ink05); }
.plan.solo { cursor: default; }
.plan-badge { position: absolute; top: -11px; left: 14px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.plan-check { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink2); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--paper); }
.plan.on .plan-check { background: var(--ink); box-shadow: none; }
.plan-main { flex: 1; min-width: 0; }
.plan-name { display: block; font-size: 16.5px; font-weight: 650; line-height: 1.25; }
.plan-tag { display: block; font-size: 15px; color: var(--ink5); margin-top: 2px; }
.plan-time { display: block; font-size: 14px; color: var(--ink6); margin-top: 5px; }
.plan-price { text-align: right; flex: none; }
.plan-price s { display: block; font-size: 13.5px; color: var(--ink4); }
.plan-price b { display: block; font-size: 21px; }
.plan-price small { display: block; font-size: 12px; color: var(--ink5); }
.ticks { list-style: none; margin: 8px 0 4px; }
.ticks li { font-size: 15.5px; margin: 8px 0; display: flex; gap: 8px; align-items: flex-start; }
.bump { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 2px; padding: 14px; border-radius: 14px; background: #FBF6E9; box-shadow: inset 0 0 0 1.5px #E8D9AE; font-size: 15px; line-height: 1.45; cursor: pointer; }
.bump input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.trust { text-align: center; font-size: 14.5px; font-weight: 600; color: var(--yes); margin: 12px 0 2px; }
.anchor { margin-top: 4px; }
.faq details { border-top: 1px solid var(--ink1); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16.5px; }
.faq details p { margin-top: 8px; color: var(--ink6); font-size: 16px; }

/* overlays */
.modal, .paysheet { position: fixed; inset: 0; z-index: 20; background: rgba(20,19,16,.5); display: flex; align-items: flex-end; justify-content: center; }
.modal-inner, .paysheet-inner { position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto; background: var(--paper); border-radius: 20px 20px 0 0; padding: 22px var(--pad) calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease both; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.paysheet-close { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--ink5); }
.steps { margin: 6px 0 16px 22px; font-size: 16.5px; line-height: 1.8; }

@media (min-width: 700px) { .hero-img { height: 320px; border-radius: 0 0 var(--r) var(--r); } }

/* EU/UK ad-cookie choice: small, above the action bar, never blocks the test */
.consent { position: fixed; left: 10px; right: 10px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 15; max-width: 460px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.consent p { flex: 1; font-size: 14px; line-height: 1.35; }
.consent a { color: var(--paper); }
.consent div { display: flex; gap: 6px; }
.consent .btn.small { min-height: 40px; background: var(--paper); color: var(--ink); }
.consent .btn.small.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(252,250,247,.5); margin: 0; }
