
:root{
  --navy:#0D1F3C;
  --navy-mid:#132A4F;
  --navy-soft:#193259;
  --amber:#E8A020;
  --amber-soft:#F3C267;
  --blue:#1A5FB4;
  --blue-soft:#3E7FD4;
  --text:#EAF0F8;
  --text-dim:#AEBBD1;
  --text-faint:#7E8FAE;
  --danger:#E05252;
  --line: rgba(234,240,248,0.10);
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,0.55);
  --font-head: 'DM Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(26,95,180,0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232,160,32,0.10), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height:1.55;
  position:relative;
}

.skyline{
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(234,240,248,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,240,248,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1100px 700px at 60% 0%, black, transparent 75%);
  z-index:0;
}

.wrap{
  max-width: 880px;
  margin:0 auto;
  padding: 0 24px;
  position:relative;
  z-index:1;
}

/* Header */
.site-header{
  padding: 22px 0 8px;
}
.header-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
}
.brand{ display:flex; align-items:baseline; gap:10px; }
.brand-mark{
  font-family: var(--font-head);
  font-weight:800;
  font-size:1.35rem;
  letter-spacing:-0.01em;
}
.brand-mark .plus{ color: var(--amber); }
.brand-sub{
  font-size:0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left:10px;
  border-left:1px solid var(--line);
}
.header-link{
  color: var(--text-dim);
  text-decoration:none;
  font-size:0.85rem;
  transition: color .15s ease;
}
.header-link:hover{ color: var(--amber-soft); }

main{ padding: 40px 0 70px; }

/* Screens */
.screen{ display:none; animation: fadein .35s ease; }
.screen.active{ display:block; }
@keyframes fadein{ from{ opacity:0; transform: translateY(6px);} to{ opacity:1; transform:none; } }

/* Hero */
.hero{ max-width: 680px; padding-top: 12px; }
.eyebrow{
  color: var(--amber-soft);
  font-weight:600;
  font-size:0.82rem;
  letter-spacing:0.09em;
  text-transform:uppercase;
  margin: 0 0 14px;
}
h1{
  font-family: var(--font-head);
  font-weight:800;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height:1.15;
  margin: 0 0 18px;
  letter-spacing:-0.01em;
}
.lead{
  font-size:1.05rem;
  color: var(--text-dim);
  margin: 0 0 26px;
}
.hero-points{
  list-style:none;
  margin:0 0 32px;
  padding:0;
  display:grid;
  gap:12px;
}
.hero-points li{
  background: var(--navy-mid);
  border:1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  font-size:0.94rem;
  color: var(--text-dim);
}
.hero-points strong{ color: var(--text); }
.hero-disclaimer{
  margin-top:14px;
  font-size:0.8rem;
  color: var(--text-faint);
}

/* Buttons */
.btn{
  font-family: var(--font-body);
  font-weight:600;
  font-size:0.95rem;
  border-radius: 10px;
  border:1px solid transparent;
  padding: 12px 22px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:focus-visible{ outline:2px solid var(--amber-soft); outline-offset:2px; }
.btn-primary{
  background: linear-gradient(180deg, var(--amber-soft), var(--amber));
  color: #241703;
  box-shadow: 0 8px 22px -8px rgba(232,160,32,0.55);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(232,160,32,0.65); }
.btn-primary:disabled{ opacity:0.45; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-lg{ padding:14px 28px; font-size:1.02rem; }
.btn-ghost{
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
}
.btn-ghost:hover{ color: var(--text); border-color: rgba(234,240,248,0.3); }
.btn-secondary{
  background: var(--navy-soft);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover{ border-color: var(--blue-soft); }

/* Progress */
.progress-track{
  height:6px;
  border-radius:999px;
  background: var(--navy-mid);
  overflow:hidden;
  margin-bottom:10px;
}
.progress-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  transition: width .35s ease;
}
.progress-label{
  font-size:0.8rem;
  color: var(--text-faint);
  margin: 0 0 26px;
}

/* Question card */
.question{
  background: var(--navy-mid);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.question h2{
  font-family: var(--font-head);
  font-size:1.3rem;
  margin:0 0 8px;
  letter-spacing:-0.005em;
}
.question .q-help{
  color: var(--text-dim);
  font-size:0.92rem;
  margin: 0 0 22px;
}
.options{
  display:grid;
  gap:10px;
}
.option{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background: rgba(234,240,248,0.03);
  border:1px solid var(--line);
  border-radius:10px;
  padding: 14px 16px;
  cursor:pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option:hover{ border-color: rgba(62,127,212,0.6); background: rgba(26,95,180,0.08); }
.option input{ margin-top:3px; accent-color: var(--amber); flex-shrink:0; }
.option .opt-label{ font-weight:600; font-size:0.96rem; }
.option .opt-sub{ display:block; font-weight:400; color: var(--text-faint); font-size:0.83rem; margin-top:2px; }
.option.selected{ border-color: var(--amber); background: rgba(232,160,32,0.08); }

.wizard-nav{
  display:flex;
  justify-content:space-between;
  margin-top:26px;
}

/* Results */
#results-host{ padding-top: 8px; }
.verdict-card{
  border-radius: var(--radius);
  padding: 32px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.verdict-card.tier-prohibited{ background: linear-gradient(155deg, rgba(224,82,82,0.16), var(--navy-mid)); border-color: rgba(224,82,82,0.45); }
.verdict-card.tier-high{ background: linear-gradient(155deg, rgba(232,160,32,0.14), var(--navy-mid)); border-color: rgba(232,160,32,0.45); }
.verdict-card.tier-limited{ background: linear-gradient(155deg, rgba(26,95,180,0.16), var(--navy-mid)); border-color: rgba(62,127,212,0.4); }
.verdict-card.tier-minimal{ background: linear-gradient(155deg, rgba(120,200,150,0.10), var(--navy-mid)); border-color: rgba(120,200,150,0.35); }

.tier-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-head);
  font-weight:700;
  font-size:0.78rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding: 6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}
.tier-prohibited .tier-badge{ background: rgba(224,82,82,0.2); color:#FF9B9B; }
.tier-high .tier-badge{ background: rgba(232,160,32,0.22); color: var(--amber-soft); }
.tier-limited .tier-badge{ background: rgba(26,95,180,0.25); color: #8FBBEE; }
.tier-minimal .tier-badge{ background: rgba(120,200,150,0.2); color:#9FE0B6; }

.verdict-card h2{
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin: 0 0 12px;
}
.verdict-card .verdict-why{ color: var(--text-dim); font-size:0.98rem; margin:0 0 16px; }
.verdict-card .verdict-category{
  font-size:0.86rem;
  color: var(--text-faint);
  border-top:1px solid var(--line);
  padding-top:14px;
  margin-top:6px;
}
.verdict-card .verdict-category strong{ color: var(--text); }

.confidence-note{
  display:flex;
  gap:10px;
  align-items:flex-start;
  background: rgba(234,240,248,0.04);
  border:1px solid var(--line);
  border-radius:10px;
  padding: 14px 16px;
  font-size:0.85rem;
  color: var(--text-faint);
  margin-bottom: 30px;
}

/* Rider sections */
.rider-section{
  background: var(--navy-mid);
  border:1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom:18px;
  overflow:hidden;
}
.rider-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 18px 22px;
  cursor:pointer;
  user-select:none;
}
.rider-section-head h3{
  font-family: var(--font-head);
  font-size:1.05rem;
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
}
.rider-section-head .chev{
  color: var(--text-faint);
  transition: transform .2s ease;
  font-size:0.85rem;
}
.rider-section.open .chev{ transform: rotate(90deg); }
.rider-copy-btn{
  font-size:0.78rem;
  padding: 6px 12px;
  border-radius:8px;
}
.rider-body{
  display:none;
  padding: 0 22px 22px;
}
.rider-section.open .rider-body{ display:block; }
.rider-body pre{
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size:0.86rem;
  line-height:1.65;
  color: var(--text-dim);
  background: rgba(0,0,0,0.18);
  border:1px solid var(--line);
  border-radius:8px;
  padding: 16px;
  margin:0;
}

.results-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 28px 0 8px;
}

.toast{
  position:fixed;
  bottom: 26px;
  left:50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--amber);
  color:#241703;
  font-weight:600;
  font-size:0.88rem;
  padding: 10px 20px;
  border-radius:999px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.5);
  opacity:0;
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease;
  z-index:50;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

.start-over-row{
  display:flex;
  justify-content:center;
  margin-top: 34px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--line);
  padding: 26px 0 40px;
  position:relative;
  z-index:1;
}
.site-footer p{
  margin:0 0 8px;
  font-size:0.85rem;
  color: var(--text-dim);
}
.site-footer a{ color: var(--amber-soft); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.footer-fine{
  font-size:0.76rem;
  color: var(--text-faint);
  max-width: 640px;
}

/* Responsive */
@media (max-width: 480px){
  .wrap{ padding: 0 16px; }
  .question{ padding: 20px; }
  .verdict-card{ padding:22px; }
  .wizard-nav{ flex-direction: row; gap:10px; }
  .btn{ padding:11px 16px; font-size:0.9rem; }
  .rider-section-head{ padding: 14px 16px; }
  .rider-body{ padding: 0 16px 16px; }
}

@media (max-width:360px){
  h1{ font-size:1.5rem; }
  .brand-sub{ display:none; }
}

.visually-hidden{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.text-input:focus{ outline:2px solid var(--amber-soft); outline-offset:1px; border-color: var(--amber-soft) !important; }
