:root {
  color-scheme: light;
  --ink: #171b18;
  --cream: #f7f4ec;
  --lime: #c9f46b;
  --coral: #ff775f;
  --blue: #96c8ff;
  --line: #dcd8cd;
  --card: #fff;
  --soft-card: #faf9f5;
  --muted: #62665f;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f1e8;
  --cream: #151814;
  --lime: #b8e85d;
  --coral: #ff806d;
  --blue: #78ade7;
  --line: #3d443a;
  --card: #20251f;
  --soft-card: #292e28;
  --muted: #b9c0b5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
html[data-theme="dark"] body { background: radial-gradient(circle at 50% -20%, #273027 0, #151814 44%); }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { min-height: 100svh; overflow: hidden; }
.topbar { max-width: 1180px; margin: auto; padding: 28px 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-size: 15px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 3px; flex: 0 0 auto; }
.brand-icon img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.theme-toggle { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.theme-toggle span { font-size: 16px; line-height: 1; }
.back-link { color: inherit; text-decoration: none; border-bottom: 1px solid; padding-bottom: 4px; font-size: 14px; }
.hero { max-width: 1000px; margin: 8vh auto 0; padding: 0 36px; text-align: center; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 180px; height: 180px; background: var(--blue); left: -120px; top: 110px; }
.hero::after { width: 120px; height: 120px; background: var(--coral); right: -80px; top: -20px; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
h1 { font-size: clamp(54px, 8.5vw, 104px); line-height: .9; letter-spacing: -.07em; margin: 34px 0 28px; font-weight: 900; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.hero > p { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; max-width: 650px; margin: 0 auto 34px; color: var(--muted); }
.primary { border: 0; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 18px 26px; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 6px 0 var(--lime); transition: .2s; text-decoration: none; display: inline-block; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--lime); }
.primary span { margin-left: 28px; }
.trust { display: flex; justify-content: center; gap: 28px; margin-top: 34px; font-size: 12px; color: var(--muted); }
.trust span::before { content: "✓"; margin-right: 7px; font-weight: bold; }
.question-wrap { max-width: 850px; margin: 5vh auto 80px; padding: 0 24px; }
.progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; font-size: 12px; font-weight: 800; margin-bottom: 14px; }
.progress div { height: 5px; background: color-mix(in srgb, var(--line) 80%, transparent); border-radius: 5px; }
.progress div i { display: block; height: 100%; background: var(--coral); border-radius: 5px; transition: .4s; }
.question-card { animation: arrive .35s ease; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 58px); box-shadow: 0 18px 50px #413b2d12; position: relative; }
html[data-theme="dark"] .question-card { box-shadow: 0 20px 58px #0006; }
.question-no { position: absolute; right: 30px; top: 24px; color: color-mix(in srgb, var(--muted) 55%, transparent); font: italic 28px Georgia; }
.question-card h2 { font-size: clamp(28px, 5vw, 45px); line-height: 1.05; letter-spacing: -.045em; max-width: 670px; margin: 0 0 12px; }
.question-card > p { color: var(--muted); margin-bottom: 30px; line-height: 1.5; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { background: var(--soft-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: left; font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 66px; }
.option:hover, .option.selected { border-color: var(--ink); background: color-mix(in srgb, var(--lime) 18%, var(--soft-card)); transform: translateY(-1px); }
.option span { min-width: 33px; height: 33px; background: var(--lime); color: #171b18; border-radius: 9px; display: grid; place-items: center; }
.option b { display: none; margin-left: auto; }
.option.selected b { display: block; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.text-btn, .next-btn { border: 0; background: none; color: var(--ink); font-weight: 800; cursor: pointer; }
.next-btn { background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; }
.result-wrap { max-width: 960px; margin: 5vh auto 60px; padding: 0 24px; position: relative; }
.result-kicker { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 12px; margin-bottom: 16px; }
.reveal { background: var(--accent); color: #161a16; border: 1px solid currentColor; border-radius: 32px; padding: clamp(30px, 7vw, 70px); display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; box-shadow: 10px 10px 0 currentColor; animation: reveal .55s cubic-bezier(.2,.9,.2,1); }
.platform-mark { width: 100px; height: 100px; border-radius: 26px; background: #fff; color: #171b18; display: grid; place-items: center; font-size: 38px; font-weight: 900; transform: rotate(-5deg); }
.kind { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.reveal h1 { font-size: clamp(50px, 9vw, 90px); margin: 8px 0 14px; }
.reveal p { max-width: 620px; font-size: 17px; line-height: 1.55; }
.visit { display: inline-block; color: inherit; font-weight: 900; margin-top: 8px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.result-grid article, .companion { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.result-grid h3, .alternatives h3 { margin-top: 0; }
.result-grid ul { padding: 0; list-style: none; }
.result-grid li { padding: 8px 0; }
.result-grid li::before { content: "✓"; margin-right: 9px; color: #6c9b18; }
.result-grid p { line-height: 1.6; }
.fine { font-size: 12px; color: var(--muted); }
.companion { margin-top: 16px; background: color-mix(in srgb, #ffd66b 18%, var(--card)); }
.companion > span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.companion h2 { font-size: 32px; margin: 10px 0; }
.companion p { line-height: 1.55; margin-bottom: 0; }
.alternatives { margin-top: 42px; }
.alternatives > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alternatives article { border-top: 1px solid var(--line); padding: 20px 0; }
.alternatives article > span { width: 42px; height: 42px; color: #171b18; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.alternatives h3 { margin: 12px 0 6px; }
.alternatives p { line-height: 1.5; color: var(--muted); }
.less { padding: 18px; border: 1px dashed color-mix(in srgb, var(--muted) 70%, transparent); border-radius: 14px; line-height: 1.55; }
.result-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 44px 0; }
.result-actions > a { color: inherit; font-weight: 800; }
.method { max-width: 900px; margin: 60px auto 0; padding: 0 24px; }
.method details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.method summary { font-weight: 900; cursor: pointer; }
.method details > div { max-width: 760px; color: var(--muted); line-height: 1.6; }
.source-links { display: flex; gap: 14px; flex-wrap: wrap; }
.source-links a { color: inherit; font-size: 13px; }
footer { max-width: 1100px; margin: 70px auto 0; padding: 24px 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } }
@keyframes reveal { from { opacity: 0; transform: scale(.94) rotate(-1deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 640px) {
  .topbar { padding: 20px; }
  .brand { font-size: 13px; }
  .header-actions { gap: 10px; }
  .theme-toggle { padding: 7px 9px; }
  .theme-toggle b { display: none; }
  .back-link { font-size: 12px; }
  .hero { padding: 0 20px; margin-top: 7vh; }
  .hero::before { width: 90px; height: 90px; left: -50px; }
  .hero::after { width: 70px; height: 70px; right: -35px; }
  .option-grid, .result-grid, .alternatives > div { grid-template-columns: 1fr; }
  .question-card { border-radius: 22px; padding: 28px 20px; }
  .question-no { right: 18px; top: 16px; }
  .trust { gap: 9px; flex-wrap: wrap; }
  .trust span { padding: 5px 8px; }
  .reveal { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
  .platform-mark { width: 70px; height: 70px; font-size: 28px; }
  .reveal h1 { font-size: 48px; }
  .result-actions { flex-direction: column; }
  .progress { grid-template-columns: auto 1fr; }
  .progress > b { display: none; }
  footer { margin-top: 40px; padding: 20px; gap: 8px; flex-direction: column; }
}
