:root{
  --bg:#0E1830; --panel:#14213D; --panel2:#22335C; --line:#2A3A5E;
  --cream:#F6F1E7; --muted:#C9D2E3; --mustard:#FFB81C; --mustard-d:#E5A100;
  --ok:#2BB673; --bad:#F2545B; --shadow:#0A1226;
  --display:'Archivo Black',system-ui,sans-serif;
  --body:'Atkinson Hyperlegible',system-ui,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,monospace;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:repeating-linear-gradient(135deg,var(--bg) 0 28px,#101C38 28px 56px);
  color:var(--cream); font-family:var(--body); font-size:18px; line-height:1.45;
  min-height:100vh; display:flex; flex-direction:column;
}
a{color:var(--mustard)}
button,input{font:inherit}
:focus-visible{outline:3px solid var(--mustard); outline-offset:3px}

.warn{background:var(--bad); color:var(--cream); font-family:var(--mono); font-size:13px; padding:8px 16px; text-align:center}
.top{padding:18px 20px; max-width:1080px; width:100%; margin:0 auto}
.brand{display:inline-flex; align-items:center; gap:10px; color:var(--cream); text-decoration:none; font-family:var(--display); font-size:18px}
.brand .cuppa{width:30px; height:30px; color:var(--mustard)}

main{flex:1; width:100%; max-width:1080px; margin:0 auto; padding:8px 20px 40px}
.screen{display:flex; flex-direction:column; gap:18px}
.screen[hidden]{display:none}

.kicker{margin:16px 0 0; font-family:var(--mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--mustard)}
h1{margin:0; font-family:var(--display); font-weight:400; font-size:clamp(34px,8vw,52px); line-height:1.02; text-shadow:4px 4px 0 var(--shadow)}
.sticker{display:inline-block; margin-top:10px; background:var(--mustard); color:var(--panel); padding:6px 14px 8px; border-radius:10px; transform:rotate(-2deg); box-shadow:6px 6px 0 var(--shadow); text-shadow:none}
.lede{margin:6px 0 0; font-size:20px}
.small{margin:0; font-size:14px; color:var(--muted)}

.strip{display:flex; gap:4px; flex-wrap:nowrap}
.strip i{flex:1; height:16px; max-width:22px; border-radius:3px; background:var(--line)}
.strip.big i{height:26px}
.strip i.ok{background:var(--ok)}
.strip i.bad{background:var(--bad)}
.strip i.now{background:var(--cream)}
.strip i.mark{box-shadow:0 0 0 3px var(--mustard)}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:12px 20px; border:0; border-radius:12px;
  background:var(--panel2); color:var(--cream); font-weight:700; text-decoration:none; cursor:pointer; box-shadow:4px 4px 0 var(--shadow); transition:transform .08s}
.btn:active{transform:translate(2px,2px); box-shadow:2px 2px 0 var(--shadow)}
.btn.primary{background:var(--cream); color:var(--panel); font-family:var(--display); font-weight:400; font-size:20px; box-shadow:5px 5px 0 var(--mustard)}
.btn.mustard{background:var(--mustard); color:var(--panel)}
.btn.ghost{background:transparent; box-shadow:none; color:var(--muted); text-decoration:underline}

.qhead{display:flex; justify-content:space-between; gap:10px}
.pill{background:var(--cream); color:var(--panel); font-family:var(--mono); font-weight:700; font-size:14px; padding:6px 10px; border-radius:8px; box-shadow:3px 3px 0 var(--shadow)}
.pill.score{background:var(--mustard)}
.qcard{margin:6px 0 0; background:var(--cream); color:var(--panel); font-family:var(--display); font-weight:400; font-size:clamp(24px,6vw,32px); line-height:1.12;
  padding:22px; border-radius:16px; box-shadow:6px 6px 0 var(--mustard); transform:rotate(-1deg)}
.options{display:flex; flex-direction:column; gap:10px}
.opt{display:flex; gap:14px; align-items:center; text-align:left; width:100%; min-height:56px; padding:14px 16px; border:0; border-radius:12px;
  background:var(--panel2); color:var(--cream); font-size:19px; cursor:pointer; box-shadow:4px 4px 0 var(--shadow)}
.opt .k{font-family:var(--mono); font-weight:700; color:var(--mustard); width:18px}
.opt:disabled{cursor:default}
.opt.right{background:var(--ok); color:var(--bg); font-weight:700}
.opt.right .k{color:var(--bg)}
.opt.wrong{background:var(--bad)}
.opt.wrong .k{color:var(--cream)}
.why{background:var(--panel); border-radius:12px; padding:14px 16px; font-size:16px; color:var(--muted)}
.why b{color:var(--cream)}

.card{background:var(--mustard); color:var(--panel); border-radius:20px; padding:24px; box-shadow:8px 8px 0 var(--cream); display:flex; flex-direction:column; gap:12px; margin-top:12px}
.cardtop{display:flex; align-items:center; gap:10px; font-family:var(--display); font-size:18px}
.cardtop .cuppa{width:30px; height:30px}
.bigscore{font-family:var(--display); font-size:clamp(72px,20vw,104px); line-height:1; color:var(--cream); text-shadow:5px 5px 0 var(--panel)}
.card .strip i{background:#14213D33}
.card .strip i.ok{background:var(--ok)}
.card .strip i.bad{background:var(--bad)}
.card .strip i.mark{box-shadow:0 0 0 3px var(--panel)}
.rankrow{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.rank{background:var(--panel); color:var(--cream); font-family:var(--display); font-size:20px; line-height:1.05; padding:10px 14px 12px; border-radius:10px;
  transform:rotate(4deg); box-shadow:4px 4px 0 var(--cream); max-width:190px; text-align:center}
.ladder{list-style:none; margin:4px 0 0; padding:0; display:flex; flex-direction:column; gap:6px}
.ladder li{display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:10px; background:var(--bg); font-size:16px}
.ladder li .r{font-family:var(--mono); color:var(--muted); font-size:14px; white-space:nowrap}
.ladder li.pass{border-left:0}
.ladder li.you{background:var(--mustard); color:var(--panel); font-weight:700; box-shadow:3px 3px 0 var(--shadow)}
.ladder li.you .r{color:var(--panel)}
.ladder li.line{background:transparent; padding:0 12px; font-family:var(--mono); font-size:12px; color:var(--mustard); letter-spacing:.06em}
.verdict{margin:0; font-family:var(--display); font-size:24px; line-height:1.12}
.cardurl{margin:0; font-weight:700; font-size:15px}

.row{display:flex; flex-wrap:wrap; gap:10px}
.row .btn{flex:1 1 150px}
.row .btn.primary{font-size:18px}
.panel{background:var(--panel); border-radius:16px; padding:20px; display:flex; flex-direction:column; gap:10px; box-shadow:5px 5px 0 var(--shadow)}
.panel h3{margin:0; font-family:var(--display); font-weight:400; font-size:24px}
.panel p{margin:0}
.panel label{font-size:15px; color:var(--muted)}
.panel input[type=email],.panel input[type=date]{min-height:48px; padding:10px 12px; border-radius:10px; border:2px solid var(--line); background:var(--bg); color:var(--cream)}
.panel .check{display:flex; gap:10px; align-items:flex-start; color:var(--cream)}
.panel .check input{width:20px; height:20px; margin-top:3px}

.readyrow{display:flex; align-items:baseline; gap:14px; flex-wrap:wrap}
.readypct{font-family:var(--display); font-size:56px; line-height:1; color:var(--cream)}
.readylabel{font-family:var(--display); font-size:20px; padding:6px 12px; border-radius:8px; background:var(--panel2); transform:rotate(-2deg)}
.readylabel.ready{background:var(--ok); color:var(--bg)}
.readylabel.close{background:var(--mustard); color:var(--panel)}
.readylabel.not{background:var(--bad); color:var(--cream)}
.readybar{position:relative; height:18px; border-radius:9px; background:var(--bg); margin:28px 0 4px; box-shadow:inset 0 0 0 2px var(--line)}
.readybar .fill{height:100%; width:0; border-radius:9px; background:var(--mustard); transition:width .6s}
.readybar .tick{position:absolute; top:-6px; bottom:-6px; width:3px; background:var(--cream)}
.readybar .tick span{position:absolute; bottom:calc(100% + 4px); transform:translateX(-50%); font-family:var(--mono); font-size:11px; white-space:nowrap; color:var(--muted)}
.readybar .tick.pass{left:75%}
.readybar .tick.ready{left:85%}
.readybar .tick.ready span{color:var(--ok)}
.readybar .tick.pass span{transform:translateX(-100%)}
.readybar .tick.ready span{transform:translateX(0)}
.weak{margin:0; padding-left:20px; font-size:16px}
.homeready{margin:0; font-family:var(--mono); font-size:14px; color:var(--mustard)}
@media (prefers-reduced-motion: reduce){ .readybar .fill{transition:none} }
.guarantee{display:flex; gap:12px; align-items:flex-start; background:var(--bg); border-radius:12px; padding:14px; font-size:16px; box-shadow:inset 0 0 0 2px var(--ok)}
.guarantee svg{flex:none; color:var(--ok); margin-top:2px}
.guarantee b{color:var(--cream)}
.foot{max-width:1080px; margin:0 auto; padding:20px; font-size:13px; color:var(--muted)}
@media (prefers-reduced-motion: reduce){ .btn{transition:none} }

/* Quiz and result stay a readable column; home uses the full width. */
#quiz,#result{width:100%; max-width:640px; margin:0 auto}

/* ---------- Home ---------- */
.home{gap:56px}
.hero{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:40px; align-items:center; padding-top:12px}
.herocopy{display:flex; flex-direction:column; gap:18px}
.herocopy .btn.primary{max-width:420px}
.hero h1{font-size:clamp(34px,4.4vw,50px)}
.heroart{position:relative; min-height:440px}
.demo{position:relative; z-index:2; margin:40px 30px 0 20px; padding:18px; background:var(--panel); border-radius:20px;
  box-shadow:8px 8px 0 var(--shadow); transform:rotate(2deg); display:flex; flex-direction:column; gap:12px}
.demo .qcard{font-size:24px; margin:0}
.demoopts{display:flex; flex-direction:column; gap:8px}
.demoopts .opt{min-height:46px; padding:10px 14px; font-size:17px; cursor:default}
.tag{position:absolute; z-index:3; background:var(--cream); color:var(--panel); font-family:var(--mono); font-weight:700; font-size:13px;
  padding:8px 12px; border-radius:8px; box-shadow:4px 4px 0 var(--mustard); white-space:nowrap}
.tag.t1{top:4px; right:8px; transform:rotate(3deg)}
.ico{position:absolute; filter:drop-shadow(5px 5px 0 var(--shadow))}
.ico.bus{width:150px; left:-10px; bottom:-6px; z-index:3; transform:rotate(-4deg)}
.ico.box{width:62px; right:-22px; bottom:10px; z-index:1; transform:rotate(5deg)}
.ico.pot{width:96px; right:84px; bottom:-14px; z-index:3; transform:rotate(-6deg)}

.facts{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
.facts li{background:var(--cream); color:var(--panel); border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:2px; box-shadow:5px 5px 0 var(--shadow)}
.facts li:nth-child(odd){transform:rotate(-1deg)} .facts li:nth-child(even){transform:rotate(1deg)}
.facts b{font-family:var(--display); font-weight:400; font-size:40px; line-height:1}
.facts span{font-size:15px; line-height:1.3}

.tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.tile{background:var(--panel); border-radius:16px; padding:22px; box-shadow:5px 5px 0 var(--shadow); display:flex; flex-direction:column; gap:8px}
.tile svg{width:44px; height:44px}
.tile h3{margin:4px 0 0; font-family:var(--display); font-weight:400; font-size:22px; line-height:1.1}
.tile p{margin:0; font-size:16px; color:var(--muted)}

.rankband{background:var(--panel2); border-radius:20px; padding:28px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:20px 32px; align-items:center;
  box-shadow:8px 8px 0 var(--mustard)}
.rankband h2{margin:6px 0 0; font-family:var(--display); font-weight:400; font-size:clamp(26px,4vw,34px); line-height:1.08}
.rankband .kicker{margin:0}
.rankchips{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px}
.rankchips li{background:var(--bg); padding:8px 12px; border-radius:999px; font-size:15px; font-weight:700}
.rankchips li:nth-child(odd){transform:rotate(-2deg)} .rankchips li:nth-child(even){transform:rotate(2deg)}
.rankchips li.pass{background:var(--ok); color:var(--bg)}
.rankchips li.gold{background:var(--mustard); color:var(--panel); font-family:var(--display); font-weight:400}
.rankband .btn{grid-column:1 / -1; justify-self:start; min-width:260px}

@media (max-width:860px){
  .home{gap:40px}
  .hero{grid-template-columns:1fr; gap:8px}
  .heroart{min-height:0; padding-bottom:70px}
  .demo{margin:30px 10px 0 4px}
  .ico.bus{width:120px; left:0; bottom:0}
  .ico.box{display:none}
  .ico.pot{width:80px; right:10px; bottom:4px}
  .facts{grid-template-columns:repeat(2,1fr)}
  .tiles{grid-template-columns:1fr}
  .rankband{grid-template-columns:1fr; padding:22px}
  .rankband .btn{justify-self:stretch; min-width:0}
}
