/* The Archive of Souls — v0 visual prototype
   Style A: dark archive. Ink-navy ground, restrained antique gold, serif titles.
   Gold is reserved for: names, key numbers, rules/dividers, primary buttons,
   progress fills and tag outlines. Nothing else. */

:root {
  --bg-0: #0B1020;
  --bg-1: #0E1526;
  --card: #141B2E;
  --card-deep: #10172A;

  --gold: #C9A227;
  --gold-hi: #E8C874;
  --gold-line: rgba(201, 162, 39, .2);
  --gold-soft: rgba(201, 162, 39, .45);

  --ink-title: #F2EDE3;
  --ink-body: #B8B2A6;
  --ink-aux: #6E6A5E;
  --btn-ink: #1A1408;

  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  /* Cinzel has no italic; italic serif passages use EB Garamond instead */
  --serif-it: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --col: 540px;
  --gutter: 22px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */

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

html {
  background: var(--bg-0);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-body);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

svg { display: block; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-title);
  letter-spacing: .005em;
}

p, blockquote, ul, dl, dd { margin: 0; padding: 0; }

:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: rgba(201, 162, 39, .3); color: var(--ink-title); }
[hidden] { display: none !important; }

.center { text-align: center; }

/* ---------- atmosphere: ink-navy ground, grain, vignette ---------- */

.atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130vw 70vh at top, rgba(40, 55, 98, .5), rgba(40, 55, 98, 0)),
    radial-gradient(ellipse 110vw 60vh at bottom, rgba(20, 27, 46, .8), rgba(20, 27, 46, 0)),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise, none);
  background-size: 140px 140px;
}
.atmos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(4, 6, 14, 0) 45vh, rgba(4, 6, 14, .55) 115vh);
}

.app { position: relative; z-index: 1; }

.col {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- screens ---------- */

.screen {
  display: none;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.screen.is-active {
  display: block;
  animation: screenIn .6s var(--ease-out) both;
}
.screen.is-leaving { animation: screenOut .22s ease both; }

@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes screenOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- type primitives ---------- */

.kicker {
  font: 500 11px/1.5 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-body);
}
.kicker.center { padding-left: .3em; } /* balance trailing tracking */
.kicker.dim { color: var(--ink-aux); }

.fine {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-aux);
}

.gold-text {
  color: var(--gold-hi);
  background: linear-gradient(180deg, #F7E6AE, #E8C874, #C9A227, #DDBB5C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ornamental rule: line · diamond · line */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
}
.orn span {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0), rgba(201, 162, 39, .45));
}
.orn span:last-child { background: linear-gradient(90deg, rgba(201, 162, 39, .45), rgba(201, 162, 39, 0)); }
.orn i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- buttons ---------- */

.btn-stack { display: grid; gap: 12px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 22px;
  font: 600 15px/1.2 var(--sans);
  letter-spacing: .03em;
  text-align: center;
  overflow: hidden;
  transition: transform .18s ease, filter .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.985); }

.btn-primary {
  color: var(--btn-ink);
  background: linear-gradient(180deg, #EFD58E, #E0BE5E, #C9A227);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, .6),
    inset 0 -1px 0 rgba(96, 70, 10, .45),
    0 14px 30px -14px rgba(201, 162, 39, .55),
    0 2px 6px rgba(0, 0, 0, .35);
}
.btn-primary:hover { filter: brightness(1.05); }

/* a slow, sparse light sweep across primary buttons */
.btn-shine::after {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 0;
  width: 70px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 250, 230, .45), rgba(255, 255, 255, 0));
  transform: translateX(-160px) skewX(-18deg);
  animation: shine 5.5s ease-in-out 1.6s infinite;
  pointer-events: none;
}
@keyframes shine {
  from { transform: translateX(-160px) skewX(-18deg); }
  to { transform: translateX(2400px) skewX(-18deg); }
}

.btn-secondary {
  color: var(--gold-hi);
  background: rgba(11, 16, 32, .35);
  border: 1px solid rgba(201, 162, 39, .5);
}
.btn-secondary:hover { background: rgba(201, 162, 39, .07); border-color: rgba(232, 200, 116, .7); }

.btn[disabled],
.btn[disabled]:hover {
  color: #4F4C45;
  background: rgba(242, 237, 227, .025);
  border: 1px solid rgba(242, 237, 227, .07);
  box-shadow: none;
  filter: none;
  transform: none;
  cursor: not-allowed;
}
.btn[disabled]::after { display: none; }

.btn-sm {
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 16px;
  font-size: 13px;
  gap: 6px;
}

.btn.is-busy { pointer-events: none; filter: saturate(.85) brightness(.95); }
.btn.is-busy::after { display: none; }

.spin {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(26, 20, 8, .25);
  border-top-color: var(--btn-ink);
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ink-body);
  transition: color .2s ease;
}
.link-back:hover { color: var(--ink-title); }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--gold-line);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    inset 0 0 44px rgba(4, 7, 18, .45),
    0 26px 50px -30px rgba(0, 0, 0, .8);
}

/* ======================================================
   P1 · Landing
   ====================================================== */

.landing-col {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: max(34px, env(safe-area-inset-top));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  text-align: center;
}

.seal {
  width: 104px;
  height: 104px;
  margin: 8px auto 26px;
  filter: drop-shadow(0 0 22px rgba(201, 162, 39, .14));
  animation: fadeIn 1.4s ease .1s both;
}
.seal-ticks {
  transform-origin: 60px 60px;
  animation: slowTurn 90s linear infinite;
}
@keyframes slowTurn { to { transform: rotate(360deg); } }

.hero-title {
  margin: 18px 0 0;
  font-size: clamp(42px, 12.4vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  animation: fadeUp 1s var(--ease-out) .2s both;
}
.hero-title em {
  display: block;
  font-family: var(--serif-it);
  font-weight: 500;
  font-style: italic;
}

.hero-sub {
  max-width: 410px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-body);
  animation: fadeUp 1s var(--ease-out) .35s both;
}

.landing .orn { animation: fadeIn 1s ease .5s both; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: .24em;
  animation: fadeIn 1s ease .55s both;
}
.meta-row .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink-aux);
}

.price-bar {
  margin: 30px 0 16px;
  padding: 14px 18px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(20, 27, 46, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-title);
  animation: fadeUp 1s var(--ease-out) .6s both;
}
.price-bar strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-hi);
  letter-spacing: .01em;
}

.quiz-price { margin: 0 0 16px; animation: none; }

.landing .btn-stack { margin-top: 30px; animation: fadeUp 1s var(--ease-out) .7s both; }
.under-cta { margin-top: 12px; animation: fadeIn 1s ease .8s both; }

.landing-foot {
  margin-top: auto;
  padding-top: 36px;
  animation: fadeIn 1s ease .9s both;
}

/* ======================================================
   P2 · Quiz
   ====================================================== */

.quiz .col {
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.quiz-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.quiz-top .kicker { font-size: 10.5px; }

.q-count {
  font: 600 13px/1 var(--serif);
  letter-spacing: .12em;
  color: var(--gold-hi);
  white-space: nowrap;
}
.q-count b { font-weight: inherit; }

.track {
  position: relative;
  height: 2px;
  margin: 14px 0 26px;
  border-radius: 2px;
  background: rgba(242, 237, 227, .08);
  overflow: hidden;
}
.track-fill {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #8E7019, var(--gold), var(--gold-hi));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .55s var(--ease-out);
}

.q-card { padding: 28px 20px 20px; }

.q-lead {
  font-size: clamp(23px, 6.4vw, 27px);
  line-height: 1.26;
  font-weight: 600;
}
.q-ask {
  margin-top: 10px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink-body);
}

.q-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: auto;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(242, 237, 227, .08);
  background: rgba(11, 16, 32, .5);
  text-align: left;
  transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease, transform .15s ease;
}
.opt:hover { border-color: rgba(201, 162, 39, .32); }
.opt:active { transform: scale(.992); }

.opt-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 999px;
  border: 1px solid rgba(242, 237, 227, .16);
  font: 600 11px/1 var(--sans);
  color: var(--ink-aux);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.opt-body { display: block; min-width: 0; }
.opt-main {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-title);
}
.opt-hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-aux);
}
.opt-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-aux);
  opacity: .75;
}

.opt.is-selected {
  border-color: var(--gold);
  background: rgba(201, 162, 39, .07);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .22), 0 0 26px -8px rgba(201, 162, 39, .45);
}
.opt.is-selected .opt-mark {
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--btn-ink);
}

.q-card.in-next { animation: qInNext .38s var(--ease-out) both; }
.q-card.in-prev { animation: qInPrev .38s var(--ease-out) both; }
.q-card.out-next { animation: qOutNext .17s ease-in both; }
.q-card.out-prev { animation: qOutPrev .17s ease-in both; }
@keyframes qInNext { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes qInPrev { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@keyframes qOutNext { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-18px); } }
@keyframes qOutPrev { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(18px); } }

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.quiz-tip {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-aux);
  text-align: right;
}

/* ======================================================
   P3 · Reveal ceremony
   ====================================================== */

.reveal .col {
  padding-top: max(26px, env(safe-area-inset-top));
  padding-bottom: max(36px, env(safe-area-inset-bottom));
}

.rv-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  text-align: center;
}

/* 0.0s – 1.6s: prelude */
.rv-prelude {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  pointer-events: none;
  animation: fadeIn .5s ease both, fadeOut .45s ease 1.15s forwards;
}
.rv-scan {
  display: block;
  width: 80px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, rgba(232, 200, 116, 0), var(--gold-hi), rgba(232, 200, 116, 0));
  animation: scan .9s ease-in-out infinite alternate;
}
@keyframes scan { from { transform: scaleX(.15); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }

.rv-file { animation: fadeIn .9s ease 1.3s both; }

/* 1.0s – 3.2s: the silhouette comes out of the dark */
.rv-portrait {
  position: relative;
  width: 184px;
  height: 214px;
  margin: 22px auto 0;
}
.rv-halo {
  position: absolute;
  inset: -46px -60px -20px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, .24), rgba(201, 162, 39, .07) 95px, rgba(201, 162, 39, 0) 150px);
  animation: haloIn 2.4s ease 1s both;
}
@keyframes haloIn { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }

.rv-figure {
  position: relative;
  animation: litUp 2s ease 1s both;
}
.rv-figure svg { width: 184px; height: 214px; }
@keyframes litUp {
  from { opacity: 0; filter: brightness(.12) blur(5px); transform: translateY(6px) scale(.97); }
  to { opacity: 1; filter: brightness(1) blur(0); transform: none; }
}

.rv-rim {
  stroke-dasharray: 1;
  animation: draw 2.4s ease-in-out 1.15s both;
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.rv-intro {
  margin-top: 26px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--ink-body);
  animation: fadeUp 1s var(--ease-out) 1.85s both;
}

/* 2.4s – 4.1s: the name, letter by letter */
.rv-name {
  margin-top: 8px;
  font-size: clamp(44px, 13vw, 68px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: .01em;
  animation: nameGlow 1.8s ease 3.3s both;
}
.rv-name .w { display: inline-block; white-space: nowrap; }
.rv-name .ch {
  display: inline-block;
  animation: letterIn .75s var(--ease-out) both;
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes nameGlow {
  from { filter: drop-shadow(0 0 0 rgba(232, 200, 116, 0)); }
  to { filter: drop-shadow(0 0 20px rgba(232, 200, 116, .26)); }
}

/* 3.8s: the fine gold line opens from the centre */
.rv-rule {
  position: relative;
  width: 240px;
  max-width: 70vw;
  height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0), var(--gold), var(--gold-hi), var(--gold), rgba(201, 162, 39, 0));
  animation: ruleOpen 1.1s cubic-bezier(.6, 0, .2, 1) 3.8s both;
}
.rv-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  background: var(--gold-hi);
  transform: rotate(45deg);
}
@keyframes ruleOpen { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.rv-hook {
  margin-top: 24px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.28;
  color: var(--ink-title);
  animation: fadeUp .9s var(--ease-out) 4.35s both;
}
.rv-hook-note {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-aux);
  animation: fadeIn .9s ease 4.55s both;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 200, 116, .42);
  background: rgba(201, 162, 39, .08);
  font: 500 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-title);
  white-space: nowrap;
}
.rv-stage .pill { animation: fadeUp .7s var(--ease-out) both; }

.rv-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  pointer-events: none;
  animation: fadeUp .9s var(--ease-out) 5s both;
}
.rv-ready .rv-actions { pointer-events: auto; }

.rv-disclaim {
  max-width: 400px;
  margin: 22px auto 0;
  animation: fadeIn 1s ease 5.3s both;
}

/* tap anywhere to skip the ceremony (also used on return from the dossier preview) */
.rv-skip .rv-a,
.rv-skip .rv-a::after {
  animation-delay: 0s !important;
  animation-duration: .35s !important;
}

/* ======================================================
   P4 · Dossier page (preview + paywall merged)
   ====================================================== */

.preview .col {
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(34px, env(safe-area-inset-bottom));
}

.pv-hero { text-align: center; }
.pv-hero .mini-portrait { margin-bottom: 12px; }
.pv-name {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.1;
  letter-spacing: .01em;
}
.pv-hero .orn { margin-top: 16px; }
.pv-title {
  margin-top: 14px;
  font-size: clamp(22px, 6.2vw, 27px);
  line-height: 1.2;
}

.pv-taste { margin-top: 28px; }
.pv-dims { margin-top: 12px; }
.pv-line {
  margin-top: 10px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-body);
}

.pv-back { margin-top: 22px; }

/* ======================================================
   P4 · Paywall (bottom half of the dossier page)
   ====================================================== */

.mini-portrait {
  display: grid;
  place-items: end center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, .38);
  background: radial-gradient(circle at top, rgba(201, 162, 39, .2), rgba(201, 162, 39, 0) 46px), var(--card);
  overflow: hidden;
}
.mini-portrait svg { width: 64px; height: 75px; }

.pay-lede {
  margin: 30px auto 0;
  text-align: center;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.7;
}

.price-card {
  margin-top: 28px;
  padding: 26px 22px 24px;
  text-align: center;
}
.price {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -.01em;
}
.price .cur {
  font-size: 40px;
  vertical-align: 26px;
  margin-right: 2px;
}
.price-row {
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.price-row .price { margin-top: 0; }
.price-was {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink-aux);
  text-decoration-thickness: 1.5px;
}
.promo { margin-top: 18px; }
.promo-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-body);
}
.countdown {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}
.cd-cell {
  min-width: 54px;
  padding: 8px 4px 6px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--card-deep);
}
.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink-title);
  font-variant-numeric: tabular-nums;
}
.cd-unit {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-aux);
}
.cd-sep {
  padding-top: 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-aux);
}
.price-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-body);
}

.incl {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
  text-align: left;
}
.incl li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-title);
}
.incl li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 7px 2px 0;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* locked-content preview: section titles + blurred placeholder bars only */
.locked { margin-top: 28px; }
.locked-list { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.locked-item { padding: 14px 16px 16px; }
.locked-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.locked-no {
  font: 600 13px/1 var(--serif);
  color: var(--gold);
}
.locked-title {
  flex: 1;
  font: 600 14px/1.3 var(--serif);
  color: var(--ink-title);
}
.locked-head svg { flex: none; color: var(--gold-soft); }
.locked-body {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  filter: blur(3px);
  opacity: .55;
  user-select: none;
}
.locked-body i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(242, 237, 227, .22), rgba(242, 237, 227, .08));
}
.locked-body i:nth-child(1) { width: 92%; }
.locked-body i:nth-child(2) { width: 78%; }
.locked-body i:nth-child(3) { width: 58%; }

.pay-cta { margin-top: 24px; }
.pay-cta .fine { margin-top: 12px; }

/* email field (paywall + access-link request) */
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--ink-body);
  text-align: center;
}
.field {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--card-deep);
  color: var(--ink-title);
  font: 400 16px/1.3 var(--sans);
}
.field::placeholder { color: var(--ink-aux); }
.field:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(201, 162, 39, .15); }
.field[aria-invalid="true"] { border-color: #C0694F; }
.field-error {
  margin: -6px 0 14px;
  font-size: 13px;
  color: #E08E74;
  text-align: center;
}

.pay-success {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 24px;
  padding: 22px 0 6px;
  animation: fadeUp .5s var(--ease-out) both;
}
.check { margin-bottom: 8px; filter: drop-shadow(0 0 16px rgba(201, 162, 39, .3)); }
.check-ring { stroke-dasharray: 1; animation: draw .6s ease both; }
.check-mark { stroke-dasharray: 1; animation: draw .45s ease .35s both; }
.success-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-title);
}

.refund {
  max-width: 420px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--gold-line);
}

/* ======================================================
   P5 · Full report
   ====================================================== */

.report .col {
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* The sheet is what becomes the long image; it carries its own ground. */
.sheet {
  margin: 0 calc(0px - var(--gutter));
  padding: 22px var(--gutter) 30px;
  background: linear-gradient(180deg, #0F1729, var(--bg-0) 900px, var(--bg-0));
}

.unlocked-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.unlocked-row .kicker { font-size: 10px; }
.unlocked-row span.line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold-line);
}

/* header dossier card */
.dossier-head {
  position: relative;
  padding: 30px 22px 24px;
  text-align: center;
}
.dossier-head::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 39, .12);
  border-radius: 14px;
  pointer-events: none;
}

.dh-portrait {
  position: relative;
  width: 150px;
  height: 175px;
  margin: 18px auto 0;
}
.dh-portrait::before {
  content: "";
  position: absolute;
  inset: -30px -40px -10px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, .2), rgba(201, 162, 39, .05) 80px, rgba(201, 162, 39, 0) 120px);
}
.dh-portrait svg { position: relative; width: 150px; height: 175px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 16px 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, .55);
  background: rgba(201, 162, 39, .06);
  font: 600 10.5px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.badge i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.dh-name {
  margin-top: 14px;
  font-size: clamp(40px, 11.6vw, 58px);
  line-height: 1.04;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--gold-line);
  overflow: hidden;
  text-align: left;
}
.fact { padding: 11px 14px 12px; background: var(--card-deep); }
.fact dt {
  font: 500 9.5px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-aux);
}
.fact dd {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-title);
}
.fact.wide { grid-column: 1 / -1; }

.dossier-head .pills { margin-top: 18px; }

.lead-dims {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
  text-align: left;
}
.lead-dims .kicker { font-size: 10px; }
.lead-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.lead-row b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-title);
}
.lead-row small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-aux);
}
.lead-bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #8E7019, var(--gold), var(--gold-hi));
  box-shadow: 0 0 14px -2px rgba(232, 200, 116, .45);
}

.voice {
  position: relative;
  margin-top: 22px;
  padding: 18px 18px 16px 20px;
  border-left: 1px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(11, 16, 32, .55);
  text-align: left;
}
.voice .kicker { font-size: 10px; color: var(--ink-aux); }
.voice p.q {
  margin-top: 8px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
  color: var(--ink-title);
}
.voice .src { margin-top: 8px; font-size: 11px; color: var(--ink-aux); }

/* sections */
.sec {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--gold-line);
}
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.sec-no {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--gold-hi);
}
.sec-title {
  font-size: clamp(27px, 7.4vw, 33px);
  line-height: 1.1;
}
.sec-sub {
  margin-top: 8px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-aux);
}

.prose p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-body);
}
.prose p:first-child { margin-top: 18px; }
.dropcap {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 58px;
  line-height: .8;
  color: var(--ink-title);
}

/* 02 · eight dimensions: bar length only, never a number */
.dims {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 22px 18px 20px;
}
.dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dim-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  color: var(--ink-title);
}
.dim-tag {
  padding: 4px 9px 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, .5);
  font: 600 9px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-title);
}
.dim-track {
  position: relative;
  height: 6px;
  margin-top: 9px;
  border-radius: 6px;
  background: rgba(242, 237, 227, .07);
  overflow: hidden;
}
.dim-fill {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7F6415, var(--gold), var(--gold-hi));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.in-view .dim-fill { transform: scaleX(var(--f)); }
.dim-poles {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-aux);
}
.dim-poles span:last-child { text-align: right; }
.dims-note { margin-top: 14px; }

.dim-notes { display: grid; gap: 22px; margin-top: 26px; }
.dim-note h3 {
  font-size: 22px;
  line-height: 1.2;
}
.dim-note .tagline {
  margin-top: 4px;
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-body);
}
.dim-note p.body {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* 03 · common ground / 05 · blind spots: small cards */
.minis { display: grid; gap: 12px; margin-top: 22px; }
.mini {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 4px;
  padding: 18px 18px 18px 14px;
}
.mini .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-aux);
  text-align: center;
}
.mini p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-body);
}

/* 04 · you in real life */
.life { margin-top: 18px; }
.life-item {
  padding: 18px 0 18px;
  border-bottom: 1px solid var(--gold-line);
}
.life-item:last-child { border-bottom: 0; padding-bottom: 0; }
.life-item .kicker { font-size: 10px; color: var(--ink-title); }
.life-item p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-body);
}

/* 05 · blind spots */
.spot { padding: 20px 20px 18px; }
.spot h3 { font-size: 23px; line-height: 1.2; }
.spot p.body {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink-body);
}
.try {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--gold-line);
}
.try .kicker { font-size: 9.5px; color: var(--ink-aux); }
.try p {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-title);
}

/* 06 · three original lines */
.lines { display: grid; gap: 12px; margin-top: 22px; }
.line-card { padding: 20px 20px 18px; }
.line-card .qm {
  display: block;
  height: 26px;
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  color: rgba(242, 237, 227, .2);
}
.line-card p.q {
  font-family: var(--serif-it);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.34;
  color: var(--ink-title);
}
.line-card .src { margin-top: 10px; font-size: 11px; color: var(--ink-aux); }

/* report footer */
.report-actions {
  display: grid;
  gap: 12px;
  margin-top: 40px;
}
.report-actions .fine { margin-top: 2px; }

.disclaimer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gold-line);
}
.disclaimer b { color: var(--ink-body); font-weight: 600; }

.imprint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.imprint span.line { display: block; width: 28px; height: 1px; background: var(--gold-line); }
.imprint .kicker { font-size: 9.5px; color: var(--ink-aux); }

/* scroll-in reveal for report blocks */
.io {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s var(--ease-out);
}
.io.in-view { opacity: 1; transform: none; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10;
  width: fit-content;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: rgba(20, 27, 46, .96);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-title);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: none; }

.noscript {
  position: relative;
  z-index: 2;
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-title);
}

/* ---------- shared keyframes ---------- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- long-image capture mode (html2canvas) ----------
   Every animated element's resting style is its final, visible state,
   so switching animations off yields the finished layout. */

.is-capturing *,
.is-capturing *::before,
.is-capturing *::after {
  animation: none !important;
  transition: none !important;
}
.is-capturing .io { opacity: 1 !important; transform: none !important; }
.is-capturing .dim-fill { transform: scaleX(var(--f)) !important; }
.is-capturing .gold-text {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #E3C067 !important;
}

/* ======================================================
   Status · checkout return / cancel, claim, access link, sign-out
   ====================================================== */

.status-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: max(34px, env(safe-area-inset-top));
  padding-bottom: max(26px, env(safe-area-inset-bottom));
  text-align: center;
}
.st-title {
  margin: 14px 0 0;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.15;
  font-weight: 600;
}
.st-body {
  max-width: 420px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-body);
}
.st-form { margin-top: 26px; }
.st-actions { margin-top: 26px; }
.st-actions:empty { display: none; }
.report-signout { margin-top: 6px; }

/* ---------- small phones ---------- */

@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .q-card { padding: 24px 16px 16px; }
  .opt { padding: 13px 13px; gap: 12px; }
  .lead-row { grid-template-columns: 96px 1fr; }
  .quiz-tip { font-size: 11px; }
}

/* site footer · contact + refund policy (D7) */
.site-foot {
  max-width: var(--col);
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--gold-line);
  text-align: center;
}
.site-foot a { color: var(--gold); }
.site-foot .policy summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-aux);
}
.site-foot .policy-body {
  margin-top: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-body);
}
.site-foot .policy-body p, .site-foot .policy-body ul { margin: 0 0 10px; }
.site-foot .policy-body ul { padding-left: 20px; }
.site-foot .policy-body b { color: var(--ink-title); font-weight: 600; }
.site-foot .fine { margin-top: 14px; }
