:root{
  --bg0:#030619;
  --bg1:#0b1027;
  --card:#0f1633;
  --card2:#101a3a;
  --line:rgba(255,255,255,.10);
  --txt:#f8fafc;
  --muted:rgba(248,250,252,.70);
  --muted2:rgba(248,250,252,.55);
  --accent:#8b5cf6;
  --accent2:#ec4899;
  --good:#22c55e;
  --mid:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 25px 80px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--txt);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(900px 600px at 90% 30%, rgba(236,72,153,.18), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
}

.bg-glow{
  position:fixed; inset:-200px;
  background: radial-gradient(700px 400px at 50% 20%, rgba(139,92,246,.10), transparent 60%);
  filter: blur(30px);
  pointer-events:none;
}

.wrap{max-width:980px; margin:0 auto; padding:22px 16px 48px;}
.topbar{
  max-width:980px; margin:0 auto; padding:18px 16px 0;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; gap:12px; align-items:center;}
.brand__logo{width:44px; height:44px; object-fit:contain; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.25);}
.brand__name{font-weight:800; letter-spacing:.6px;}
.brand__tag{font-size:12px; color:var(--muted2); margin-top:2px;}
.muted{color:var(--muted2)}
.topbar__link{color:var(--muted); text-decoration:none; font-size:14px;}
.topbar__link:hover{color:var(--txt)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card--inner{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:18px;
  border:1px solid var(--line);
}

.hero h1{font-size:34px; line-height:1.05; margin:8px 0 10px;}
.grad{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.sub{color:var(--muted); margin:0 0 18px; font-size:16px;}
.sub2{color:var(--muted); margin:6px 0 0; font-size:14px;}
.kicker{
  display:inline-flex; gap:8px; align-items:center;
  color:rgba(255,255,255,.85);
  font-weight:700; letter-spacing:.4px; font-size:12px;
}
.pill-row{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px;}
.pill{
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  padding:8px 10px;
  border-radius:999px;
  font-size:13px;
  color:rgba(255,255,255,.88);
}

.btn{
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--txt);
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{border-color: rgba(255,255,255,.18)}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(90deg, rgba(139,92,246,.95), rgba(236,72,153,.95));
  border-color: rgba(255,255,255,.16);
}
.btn--ghost{background: rgba(255,255,255,.04)}
.btn[disabled]{opacity:.5; cursor:not-allowed}

.fineprint{margin:14px 0 0; font-size:12px; color:var(--muted2); line-height:1.5}

.hidden{display:none}

.quiz__head, .results__head{display:flex; gap:16px; align-items:flex-start; justify-content:space-between}
.progress{min-width:160px; text-align:right}
.progress__bar{height:10px; background: rgba(255,255,255,.08); border:1px solid var(--line); border-radius:999px; overflow:hidden}
.progress__fill{height:100%; width:0%; background: linear-gradient(90deg, var(--accent), var(--accent2));}
.progress__txt{margin-top:8px; color:var(--muted2); font-size:12px}

.qbox{margin:16px 0 10px}
.qtitle h3{margin:0 0 6px; font-size:18px;}
.options{display:grid; gap:10px; margin-top:12px}
.opt{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  padding:12px 12px;
  border-radius:16px;
  cursor:pointer;
}
.opt:hover{border-color: rgba(255,255,255,.18)}
.opt__left{display:flex; flex-direction:column; gap:2px}
.opt__t{font-weight:700}
.opt__s{font-size:12px; color:var(--muted2)}
.opt__check{
  width:22px; height:22px; border-radius:8px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  display:flex; align-items:center; justify-content:center;
  color:transparent;
  flex:0 0 auto;
}
.opt[data-selected="true"]{border-color: rgba(236,72,153,.35); background: rgba(236,72,153,.08)}
.opt[data-selected="true"] .opt__check{color:rgba(255,255,255,.95); border-color: rgba(236,72,153,.35); background: rgba(236,72,153,.18)}
.opt input[type="radio"], .opt input[type="checkbox"]{display:none}

.nav{display:flex; gap:10px; justify-content:space-between; margin-top:14px}

.grid{display:grid; grid-template-columns: 1fr; gap:12px; margin-top:12px}
@media (min-width: 900px){
  .grid{grid-template-columns: 1fr 1fr;}
  .panel--wide{grid-column: 1 / -1;}
}
.panel{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background: rgba(0,0,0,.22);
}
.panel h3{margin:0 0 10px; font-size:14px; color:rgba(255,255,255,.9); letter-spacing:.3px; text-transform:uppercase}

.score{display:flex; gap:14px; align-items:center}
.score__num{
  font-size:44px; font-weight:800;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-weight:800; font-size:12px;
}
.spark{height:10px; margin-top:14px; border-radius:999px; background: linear-gradient(90deg, rgba(34,197,94,.55), rgba(245,158,11,.55), rgba(239,68,68,.55)); opacity:.85}

.pack__name{font-weight:800; font-size:18px}
.pack__price{color:var(--muted); font-size:13px; margin-top:4px}

.list{margin:10px 0 0; padding-left:18px; color:rgba(255,255,255,.88)}
.list li{margin:6px 0; color:rgba(255,255,255,.88)}
.list li span{color:var(--muted)}

.lead{margin-top:14px; padding:16px}
.form label{display:flex; flex-direction:column; gap:6px; font-size:12px; color:rgba(255,255,255,.85)}
.form input{
  padding:12px 12px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--txt);
  outline:none;
}
.form input:focus{border-color: rgba(139,92,246,.45)}
.row{display:grid; grid-template-columns: 1fr; gap:10px; margin-top:10px}
@media (min-width: 700px){
  .row{grid-template-columns: 1fr 1fr;}
}
.row--actions{margin-top:14px}
.check{margin-top:12px; flex-direction:row !important; align-items:center; gap:10px}
.check input{width:18px; height:18px}

.cta{display:flex; flex-wrap:wrap; gap:10px; margin-top:14px}

.footer{margin-top:18px; color:var(--muted2); font-size:12px; text-align:center}

.toast{
  position:fixed; left:50%; bottom:20px; transform:translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.7);
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  color:rgba(255,255,255,.92);
  opacity:0;
  transition: all .25s ease;
  z-index: 9999;
}
.toast--show{opacity:1; transform:translateX(-50%) translateY(0)}


/* --- UX improvements (mobile + desktop) --- */
@media (max-width: 700px){
  .quiz__head, .results__head{flex-direction:column; align-items:flex-start}
  .progress{min-width:auto; text-align:left; width:100%}
  .nav{
    position: sticky;
    bottom: 12px;
    background: rgba(3,6,25,.35);
    backdrop-filter: blur(10px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .nav .btn{width: 48%;}
}

.opt{min-height:56px;}
.form input{min-height:48px; font-size:16px;} /* avoids iOS zoom */


/* Text input inside option card */
.opt input[type="text"]{display:block; width:100%; border:none; background:transparent; color:var(--txt); font-weight:600;}
.opt input[type="text"]::placeholder{color:var(--muted2); font-weight:600;}

/* Extra large primary CTA */
.btn--xl{
  padding:18px 26px;
  font-size:18px;
  border-radius:18px;
  display:block;
  margin: 10px auto 0;
  min-width: 260px;
}

/* --- App-style hero --- */
.hero-title{
  font-size: clamp(44px, 10vw, 92px);
  line-height: 0.95;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 18px;
}

@media (max-width: 480px){
  .hero-title{
    font-size: clamp(42px, 12vw, 86px);
  }
}

.sub{
  text-align:center;
  max-width: 340px;
  margin: 0 auto 22px;
  font-size:14px;
  opacity:.85;
}
