@font-face { font-family: 'Playfair'; src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/playfair-display-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/playfair-display-latin-700-italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #0b0a09;
  --bg-2: #14120f;
  --card: #1a1713;
  --line: #2c2720;
  --text: #f3ede2;
  --muted: #a39a8b;
  --gold: #d6b25e;
  --gold-2: #f2d48a;
  --red: #c0392b;
  --accent: var(--gold);
  --serif: 'Playfair', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% -10%, #221c12 0%, var(--bg) 55%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--gold); }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; }
.screen { display: none; min-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.screen.is-active { display: flex; flex-direction: column; animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.display { font: 900 clamp(40px, 11vw, 60px)/1.02 var(--serif); margin: 0 0 16px; letter-spacing: -.01em; }
.display em { font-style: italic; font-weight: 700; color: var(--gold-2); }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.lede strong { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 14px 22px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text);
  transition: transform .15s var(--ease), background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1408; border-color: transparent; box-shadow: 0 10px 40px -10px rgba(214,178,94,.6); }
.btn-xl { width: 100%; padding: 19px 24px; font-size: 18px; font-weight: 800; }
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px; font-size: 14px; }

/* Landing */
.landing { padding-left: 0; padding-right: 0; }
.marquee { overflow: hidden; margin: 8px 0 26px; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; filter: grayscale(.35) contrast(1.1); }
@keyframes marquee { to { transform: translateX(-50%); } }
.landing-body { padding: 0 18px; flex: 1; }
.proof { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; min-height: 1.5em; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perks li { text-align: center; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.perks b { display: block; font: 900 30px/1 var(--serif); color: var(--gold-2); }
.perks span { font-size: 12px; color: var(--muted); }
.legal-links { padding: 24px 18px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #6f675a; }
.legal-links a { color: #8a8170; }
.legal-links span { flex-basis: 100%; }

/* Quiz top bar */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; flex: none; }
.back[hidden] { visibility: hidden; display: block; }
.meter { flex: 1; }
.meter-label { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meter-bar { height: 6px; border-radius: 99px; background: #241f18; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8a6a24, var(--gold), var(--gold-2)); box-shadow: 0 0 18px rgba(242,212,138,.7); transition: width .6s var(--ease); }

.suspects { display: flex; align-items: center; gap: 10px; margin: 8px 0 22px; min-height: 38px; }
.suspect-row { display: flex; flex: none; padding-right: 10px; }
.suspect-row img { width: 26px; height: 34px; object-fit: cover; border-radius: 6px; margin-right: -12px; border: 2px solid var(--bg); filter: grayscale(1) blur(1.5px) brightness(.8); transition: opacity .5s, transform .5s, width .5s, margin .5s; }
.suspect-row img.out { opacity: 0; width: 0; margin: 0; border-width: 0; transform: scale(.6); }
.suspect-text { font-size: 13px; line-height: 1.3; color: var(--muted); padding-left: 12px; flex: 1; min-width: 0; }
.suspect-text b { color: var(--gold-2); }

.q-kicker { font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.q-text { font: 700 clamp(28px, 7.4vw, 38px)/1.12 var(--serif); margin: 0 0 8px; }
.q-sub { color: var(--muted); margin: 0 0 6px; font-size: 15px; }
.options { display: grid; gap: 10px; margin-top: 22px; }
.options.binary { grid-template-columns: 1fr 1fr; }
.opt {
  position: relative; text-align: left; width: 100%; padding: 17px 18px 17px 54px; min-height: 60px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  font-size: 16px; line-height: 1.35; transition: transform .15s var(--ease), border-color .2s, background .2s;
  animation: optIn .45s var(--ease) both;
}
.opt::before {
  content: attr(data-key); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px;
  border: 1px solid var(--line); font: 600 12px var(--sans); color: var(--muted);
}
.options.binary .opt { padding: 34px 12px; text-align: center; font: 700 22px/1.2 var(--serif); }
.options.binary .opt::before { display: none; }
@media (hover: hover) { .opt:hover { border-color: #4a4032; background: #211c16; } }
.opt:active { transform: scale(.985); }
.opt.is-picked { border-color: var(--gold); background: linear-gradient(180deg, #2b2416, #1d1810); box-shadow: 0 0 0 1px var(--gold), 0 0 30px -6px rgba(214,178,94,.55); }
.opt.is-picked::before { background: var(--gold); color: #1a1408; border-color: var(--gold); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.slider-wrap { margin-top: 34px; }
.slider-value { font: 900 76px/1 var(--serif); text-align: center; color: var(--gold-2); text-shadow: 0 0 40px rgba(242,212,138,.4); }
.slider-wrap input[type=range] { width: 100%; margin: 26px 0 8px; accent-color: var(--gold); height: 36px; }
.slider-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 26px; }

/* Interstitials */
.center { justify-content: center; align-items: center; text-align: center; }
.aura-ring { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 28px; position: relative;
  background: conic-gradient(from 0deg, var(--gold-2), #6b4f18, var(--gold), #2a2014, var(--gold-2));
  animation: spin 3s linear infinite; filter: drop-shadow(0 0 30px rgba(214,178,94,.45)); }
.aura-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.aura-ring span { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 900 34px var(--serif); color: var(--gold-2); animation: spin 3s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.milestone h2, .analyzing h2 { font: 900 34px/1.1 var(--serif); margin: 0 0 12px; }
.milestone p { color: var(--muted); font-size: 17px; max-width: 34ch; margin: 0 auto 28px; }
.milestone p b { color: var(--gold-2); }
.analyzing-steps { list-style: none; padding: 0; margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.analyzing-steps li { opacity: .25; transition: opacity .4s; padding: 4px 0; }
.analyzing-steps li.on { opacity: 1; color: var(--text); }
.analyzing-steps li.on::before { content: '✓ '; color: var(--gold); }

/* Result */
.result { padding: 0 0 40px; }
.hero { position: relative; aspect-ratio: 4/5; max-height: 72dvh; width: 100%; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: brightness(.3) blur(8px); transition: transform 2.2s var(--ease), filter 1.8s var(--ease); }
.hero.revealed img { transform: scale(1); filter: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,9,.15) 40%, var(--bg) 98%); }
.hero-text { position: absolute; left: 18px; right: 18px; bottom: 6px; z-index: 1; }
.you-are { font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.char-name { font: 900 clamp(42px, 12vw, 64px)/.98 var(--serif); margin: 0; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.char-arch { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.char-arch b { color: var(--text); }
.result-body { padding: 0 18px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-num { font: 900 44px/1 var(--serif); color: var(--accent); }
.stat-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tagline { font: italic 700 22px/1.3 var(--serif); margin: 18px 0 8px; }
.desc { color: #cfc6b6; margin: 0 0 14px; }
.runner { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; font-size: 14px; color: var(--muted); }
.runner img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; }
.runner b { color: var(--text); }
.section-title { font: 700 24px/1.2 var(--serif); margin: 34px 0 14px; }
.traits { display: grid; gap: 12px; }
.trait-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.trait-head span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.trait-bar { height: 8px; border-radius: 99px; background: #241f18; overflow: hidden; }
.trait-fill { height: 100%; width: 0; background: linear-gradient(90deg, #6b5320, var(--accent)); border-radius: inherit; transition: width 1.2s var(--ease); }

/* Gate */
.gate { margin-top: 30px; border: 1px solid #4a3c22; border-radius: 18px; padding: 22px 18px; background: linear-gradient(180deg, #1f1a12, #15120e); box-shadow: 0 20px 60px -20px rgba(214,178,94,.25); }
.gate h3 { font: 900 28px/1.1 var(--serif); margin: 0 0 8px; }
.gate p { color: var(--muted); margin: 0 0 16px; }
.locked-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.locked-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px dashed #3a3226; font-size: 15px; }
.locked-list li::before { content: '🔒'; font-size: 14px; }
.locked-list li span { filter: blur(4px); color: var(--muted); margin-left: auto; font-size: 13px; user-select: none; }
.field { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #0f0d0b; color: var(--text); font-size: 17px; margin-bottom: 12px; }
.field:focus { border-color: var(--gold); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.form-error { color: #ff8a7a; font-size: 14px; min-height: 1.4em; margin: 0 0 8px; }
.fine { font-size: 12px; color: #7d7466; text-align: center; margin: 12px 0 0; }
#turnstile { margin-bottom: 10px; min-height: 0; }

/* Report */
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.report-card h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.report-card.good h4 { color: #8fd18a; }
.report-card.bad h4 { color: #ff9f86; }
.report-card p { margin: 0; color: #d7cebf; }
.report-card .fix { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.report-card .fix b { color: var(--gold-2); }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.plan .day { font: 900 15px/1.1 var(--serif); color: var(--gold); text-align: center; border-right: 1px solid var(--line); padding-right: 8px; }
.plan .day small { display: block; font: 600 10px var(--sans); letter-spacing: .15em; color: var(--muted); }
.plan .focus { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.plan .task { font-size: 15px; }
.confidence-gap { padding: 16px; border-radius: var(--radius); background: #1b1610; border-left: 3px solid var(--gold); margin: 14px 0; color: #d7cebf; }

.share-box { margin-top: 30px; display: grid; gap: 10px; }
.share-box h3 { font: 700 24px/1.2 var(--serif); margin: 0 0 4px; }
.share-box p { color: var(--muted); margin: 0 0 6px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(100px); background: var(--gold); color: #1a1408; padding: 12px 18px; border-radius: 99px; font-weight: 600; transition: transform .35s var(--ease); z-index: 60; }
.toast.show { transform: translateX(-50%) translateY(0); }
.noscript { padding: 40px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 18px 80px; }
.doc h1 { font: 900 40px/1.1 var(--serif); margin: 0 0 6px; }
.doc h2 { font: 700 22px/1.3 var(--serif); margin: 32px 0 8px; color: var(--gold-2); }
.doc p, .doc li { color: #cfc6b6; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfc6b6; }
.doc .home { display: inline-block; margin-bottom: 24px; }
