:root {
  --black: #0d0a09;
  --charcoal: #191310;
  --charcoal-2: #261b17;
  --apricot: #b49a71;
  --apricot-2: #f0e4d2;
  --gold: #bda47b;
  --bone: #f4ecdf;
  --ash: #b9aa9c;
  --oxblood: #6c2428;
  --ink: #241915;
  --option: #211915;
  --panel: #1d1613;
  --muted: #b7aaa0;
  --line: rgba(235, 220, 201, 0.14);
  --funnel-width: 480px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--black); color: var(--bone); font-family: "Avenir Next", Avenir, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; background: radial-gradient(circle at 88% 8%, rgba(108, 36, 40, .15), transparent 32%), radial-gradient(circle at 10% 92%, rgba(180, 154, 113, .08), transparent 31%), var(--black); }
#app { width: 100%; max-width: var(--funnel-width); min-height: 100vh; min-height: 100dvh; margin-inline: auto; }
button { font: inherit; }
button:focus-visible, video:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }

.shell { min-height: 100vh; min-height: 100dvh; position: relative; display: flex; flex-direction: column; overflow-x: hidden; }
.screen { flex: 1; width: min(540px, calc(100% - 40px)); min-height: 0; margin: 0 auto; padding: 36px 0 calc(34px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; }
.shell:not(.with-header) .screen { min-height: 100vh; min-height: 100dvh; }
.screen.wide { width: min(960px, calc(100% - 40px)); }
.poster-shell .screen { padding: 0; }
.funnel-header { position: sticky; z-index: 30; top: 0; flex: 0 0 auto; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(240,228,210,.09); background: rgba(13,10,9,.985); }
.header-brand { height: 58px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.header-brand img { width: 25px; height: 29px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(0,0,0,.28)); }
.header-brand span { color: var(--bone); font-size: 12px; font-weight: 760; letter-spacing: .15em; text-transform: uppercase; }
.header-flow { width: min(620px, calc(100% - 40px)); height: 49px; display: flex; align-items: center; gap: 13px; margin: 0 auto; padding-bottom: 12px; }
.header-flow.without-progress { justify-content: flex-start; }
.back { flex: 0 0 40px; width: 40px; height: 37px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--bone); cursor: pointer; }
.back:hover { background: rgba(240,228,210,.07); }
.back svg { position: relative; left: -1px; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: relative; flex: 1; height: 5px; overflow: hidden; border: 1px solid rgba(240,228,210,.14); border-radius: 999px; background: rgba(240,228,210,.16); }
.progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--apricot-2); transform-origin: left center; transition: transform .22s ease; }

h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; }
h1 { margin-bottom: 26px; font-size: clamp(36px, 7vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
p { color: var(--ash); font-size: 17px; line-height: 1.5; }

.primary, .secondary { min-height: 58px; border-radius: 12px; padding: 0 22px; font-weight: 700; cursor: pointer; transition: transform .12s ease, filter .12s ease, opacity .12s ease; }
.primary { border: 1px solid rgba(255,255,255,.12); background: var(--bone); color: var(--ink); box-shadow: 0 14px 38px rgba(0,0,0,.26); }
.primary:hover { filter: brightness(1.025); transform: translateY(-1px); }
.primary:disabled { opacity: .38; cursor: default; transform: none; }
.secondary { border: 1px solid var(--line); background: var(--charcoal); color: var(--bone); }
.chip { display: inline-flex; align-self: center; margin: 0 0 22px; border: 1px solid rgba(189,164,123,.38); border-radius: 100px; padding: 7px 11px; color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: .04em; }

.mark { width: 52px; height: 58px; position: relative; display: inline-grid; place-items: center; filter: drop-shadow(0 14px 20px rgba(0,0,0,.32)); }
.mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.welcome { min-height: 100vh; min-height: 100dvh; position: relative; display: flex; align-items: flex-end; border-radius: 0; overflow: hidden; }
.mosaic { position: absolute; inset: 0 0 39%; overflow: hidden; }
.tile { position: absolute; inset: 0; background-size: cover; background-position: center 26%; }
.tile.jonah { background-image: url('./assets/style2/jonah_cutpaper.webp'); }
.veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,10,9,.02) 18%, rgba(13,10,9,.16) 56%, var(--black) 99%); }
.welcome-copy { position: relative; z-index: 2; width: min(440px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 max(34px, calc(22px + env(safe-area-inset-bottom))); text-align: center; }
.welcome-copy .mark { margin-bottom: 10px; }
.brand-name { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.welcome-copy h1 { margin-bottom: 12px; font-size: clamp(36px, 9vw, 53px); }
.welcome-copy p:not(.brand-name) { margin: 0 auto 24px; max-width: 360px; text-wrap: balance; }
.welcome-copy .primary { width: 100%; }

.proof { text-align: center; }
.portrait-ring { width: 270px; height: 188px; position: relative; margin: 0 auto 22px; }
.portrait-ring img { position: absolute; width: 116px; height: 148px; object-fit: cover; border-radius: 65px; border: 4px solid var(--black); }
.portrait-ring img:first-child { left: 27px; top: 20px; transform: rotate(-7deg); }
.portrait-ring img:nth-child(2) { right: 27px; top: 20px; transform: rotate(7deg); }
.portrait-ring > span { position: absolute; z-index: 3; left: 50%; top: 50%; width: 62px; height: 62px; display: grid; place-items: center; transform: translate(-50%,-50%); background: var(--black); border-radius: 50%; }
.proof h1 { margin-bottom: 14px; }
.proof > p:not(.chip) { max-width: 400px; margin: 0 auto 28px; }
.proof .primary { width: 100%; }

.question { width: 100%; }
.question h1 { max-width: 520px; }
.hint { margin: -14px 0 16px; font-size: 13px; }
.options { display: grid; gap: 11px; }
.option { width: 100%; min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 18px; border: 1px solid rgba(240,228,210,.18); border-radius: 13px; background: var(--option); color: var(--bone); text-align: left; cursor: pointer; transition: border .12s ease, background .12s ease, transform .12s ease; }
.option:hover { border-color: rgba(189,164,123,.4); transform: translateY(-1px); }
.option.selected { border-color: rgba(189,164,123,.62); background: rgba(108,36,40,.34); }
.option span { font-size: 15px; font-weight: 600; }
.option b { flex: 0 0 22px; width: 22px; height: 22px; position: relative; display: grid; place-items: center; border: 1px solid rgba(240,228,210,.58); border-radius: 50%; }
.option b::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border-right: 2px solid var(--option); border-bottom: 2px solid var(--option); opacity: 0; transform: rotate(45deg); }
.option.selected b { border-color: var(--apricot-2); background: var(--apricot-2); }
.option.selected b::after { opacity: 1; }
.multi-question .option b { border-radius: 5px; }
.continue { width: 100%; margin-top: 18px; }

.interlude { min-height: 100vh; min-height: 100dvh; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.full-bleed { position: absolute; inset: 0; background-image: linear-gradient(to bottom, rgba(13,10,9,.02), rgba(13,10,9,.14) 35%, var(--black) 82%), var(--image); background-size: cover; background-position: 50% 34%; filter: saturate(.68) sepia(.06) contrast(1.06); }
.interlude-copy { position: relative; z-index: 2; width: min(540px, calc(100% - 40px)); margin: 0 auto; padding-bottom: max(34px, calc(22px + env(safe-area-inset-bottom))); }
.interlude-copy h1 { max-width: 510px; margin-bottom: 12px; }
.interlude-copy p { max-width: 440px; margin-bottom: 24px; }
.interlude-copy .primary { width: 100%; }

.mechanism { text-align: center; }
.mechanism-art { width: min(340px, 80vw); aspect-ratio: 3/4; position: relative; margin: 0 auto 30px; border: 1px solid rgba(189,164,123,.18); border-radius: 4px; overflow: hidden; box-shadow: 0 26px 70px rgba(0,0,0,.42); }
.mechanism-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, rgba(13,10,9,.78)); }
.mechanism-art img { width: 100%; height: 100%; object-fit: cover; }
.mechanism-art span { position: absolute; z-index: 2; right: 22px; bottom: 22px; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; background: rgba(244,236,223,.94); color: var(--black); padding-left: 4px; }
.mechanism-art span svg, .story-card i svg, .video-play span svg { width: 22px; height: 22px; fill: currentColor; }
.mechanism h1 { max-width: 420px; margin-left: auto; margin-right: auto; font-size: clamp(31px, 7vw, 44px); }
.mechanism .primary { width: 100%; }

.story-choice { text-align: center; }
.story-choice h1 { font-size: clamp(31px, 7vw, 43px); }
.story-card { width: min(350px, 86vw); aspect-ratio: 3/4; position: relative; margin: 0 auto 20px; padding: 23px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden; border: 1px solid rgba(189,164,123,.18); border-radius: 4px; background-image: linear-gradient(to bottom, transparent 38%, rgba(13,10,9,.95)), var(--story); background-size: cover; background-position: center; text-align: left; box-shadow: 0 26px 70px rgba(0,0,0,.38); }
.story-card span { color: var(--gold); font-size: 11px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.story-card strong { margin-top: 6px; font-size: 30px; }
.story-card i { position: absolute; right: 20px; bottom: 20px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--bone); color: var(--black); font-style: normal; padding-left: 3px; }
.choice-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }

.loading { text-align: center; }
.loading > p { margin-bottom: 28px; color: var(--bone); font-weight: 650; }
.load-value { margin-bottom: 13px; }
.load-value b { font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif; font-size: 44px; font-weight: 500; }
.loader { width: min(360px, 100%); height: 8px; margin: 0 auto 25px; overflow: hidden; border-radius: 999px; background: rgba(240,228,210,.12); }
.loader span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--apricot-2); transform-origin: left center; transition: transform .08s linear; }

.result, .preview, .paywall { text-align: center; }
.result h1 { margin-bottom: 24px; }
.pathway { position: relative; margin: 0 0 25px; display: grid; gap: 9px; text-align: left; }
.pathway::before { content: ""; position: absolute; left: 21px; top: 32px; bottom: 32px; width: 1px; background: rgba(189,164,123,.3); }
.pathway > div { min-height: 66px; position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 8px; border: 1px solid rgba(240,228,210,.12); border-radius: 13px; background: var(--panel); }
.pathway i { z-index: 1; flex: 0 0 28px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--apricot-2); color: var(--option); font-size: 12px; font-style: normal; font-weight: 800; }
.pathway span { display: grid; gap: 3px; }
.pathway small { color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pathway strong { font-size: 15px; }
.result .primary { width: 100%; }

.preview { width: min(720px, 100%); margin: auto; }
.preview h1 { margin-bottom: 22px; }
.video-wrap { width: auto; max-width: 100%; height: min(44dvh, 430px); aspect-ratio: 9/16; position: relative; margin: 0 auto 15px; overflow: hidden; border: 1px solid rgba(240,228,210,.14); border-radius: 18px; background: var(--charcoal); box-shadow: 0 22px 70px rgba(0,0,0,.45); }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: grid; place-content: center; gap: 9px; border: 0; background: linear-gradient(to bottom, rgba(13,10,9,.05), rgba(13,10,9,.42)); color: var(--bone); cursor: pointer; }
.video-play span { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto; padding-left: 4px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(244,236,223,.94); color: var(--option); font-size: 22px; }
.video-play small { font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.video-wrap.playing .video-play { inset: 12px 12px auto auto; width: 46px; height: 46px; place-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(13,10,9,.78); }
.video-wrap.playing .video-play span { width: 44px; height: 44px; border: 0; background: transparent; color: var(--bone); }
.video-wrap.playing .video-play small { display: none; }
.video-progress { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.25); }
.video-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--bone); transform: scaleX(0); transform-origin: left center; }
.preview > p:not(.chip) { max-width: 420px; margin: 0 auto 17px; padding-bottom: 2px; font-size: 15px; line-height: 1.6; }
.preview .primary { width: min(390px, 100%); }

.paywall { padding-top: 0; }
.paywall-hero { width: 100%; height: 210px; margin: 0 auto 22px; overflow: hidden; border: 1px solid rgba(189,164,123,.16); border-radius: 4px; box-shadow: 0 22px 60px rgba(0,0,0,.3); }
.paywall-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.paywall h1 { margin-bottom: 5px; }
.paywall .sub { margin-bottom: 17px; color: var(--bone); }
.price { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 21px; }
.price strong { font-size: 30px; }
.price span { color: var(--ash); font-size: 13px; }
.paywall ul { max-width: 330px; margin: 0 auto 22px; padding: 0; list-style: none; text-align: left; }
.paywall li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.paywall li::before { content: ""; position: absolute; left: 5px; top: 50%; width: 6px; height: 10px; border-right: 1.5px solid var(--apricot); border-bottom: 1.5px solid var(--apricot); transform: translateY(-60%) rotate(45deg); }
.paywall .primary { width: 100%; white-space: nowrap; }
.paywall > small { display: block; max-width: 300px; margin: 13px auto 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.screen:has(.paywall) { padding-top: 22px; padding-bottom: max(70px, calc(34px + env(safe-area-inset-bottom))); }
.screen:has(.paywall) .paywall { padding-top: 0; }
.screen:has(.paywall) .paywall-hero { height: 176px; margin-bottom: 15px; }
.screen:has(.paywall) .chip { margin-bottom: 13px; }
.screen:has(.paywall) .paywall li { padding-top: 8px; padding-bottom: 8px; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal > div { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: var(--charcoal); text-align: center; }
.modal .mark { margin-bottom: 18px; }
.modal h2 { margin-bottom: 8px; font-size: 29px; }
.modal .primary { width: 100%; }

@media (max-width: 520px) {
  .screen { padding-top: 28px; }
  .header-flow { width: calc(100% - 32px); }
  h1 { font-size: clamp(33px, 9.1vw, 38px); }
  .mosaic { bottom: 43%; }
  .portrait-ring { margin-bottom: 14px; }
  .option { min-height: 62px; }
  .proof > p:not(.chip) { font-size: 15px; }
  .story-card { width: min(320px, 84vw); }
  .screen:has(.preview) { padding-top: 24px; padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom))); }
  .preview h1 { margin-bottom: 16px; }
  .preview .chip { margin-bottom: 14px; }
}

@media (max-width: 520px) and (max-height: 700px) {
  .screen { justify-content: flex-start; padding-top: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .poster-shell .screen { padding: 0; }
  h1 { margin-bottom: 16px; font-size: clamp(29px, 9vw, 34px); }
  .options { gap: 7px; }
  .multi-question .options { gap: 6px; }
  .option { min-height: 50px; }
  .hint { margin: -7px 0 10px; }
  .continue { min-height: 52px; margin-top: 12px; }

  .screen:has(.proof) { justify-content: flex-start; padding-top: 32px; }
  .portrait-ring { width: 230px; height: 150px; margin-bottom: 8px; }
  .portrait-ring img { width: 96px; height: 126px; }
  .portrait-ring img:first-child { left: 25px; top: 12px; }
  .portrait-ring img:nth-child(2) { right: 25px; top: 12px; }
  .proof .chip { margin-bottom: 10px; }
  .proof h1 { margin-bottom: 8px; }
  .proof > p:not(.chip) { margin-bottom: 14px; }
  .proof .primary { min-height: 52px; }

  .mechanism-art { width: min(270px, 78vw); height: 230px; margin-bottom: 13px; }
  .mechanism h1 { margin-bottom: 14px; font-size: 30px; }
  .mechanism .chip { margin-bottom: 10px; }
  .mechanism .primary { min-height: 52px; }

  .story-choice h1 { margin-bottom: 12px; }
  .story-card { width: min(270px, 86vw); height: 245px; aspect-ratio: auto; margin-bottom: 12px; }
  .story-card strong { font-size: 26px; }
  .story-card i { width: 46px; height: 46px; }
  .choice-row .primary, .choice-row .secondary { min-height: 52px; }

  .screen:has(.loading) { justify-content: center; padding-top: 22px; }
  .screen:has(.result) { padding-top: 56px; }
  .result .chip { margin-bottom: 10px; }
  .result h1 { max-width: 240px; margin: 0 auto 12px; font-size: 32px; }
  .pathway { gap: 6px; margin-bottom: 14px; }
  .pathway > div { min-height: 49px; padding-top: 6px; padding-bottom: 6px; }
  .result .primary { min-height: 52px; }

  .screen:has(.preview) { padding-top: 68px; }
  .preview .chip { margin-bottom: 9px; }
  .preview h1 { margin-bottom: 10px; font-size: 30px; }
  .video-wrap { height: 218px; margin-bottom: 9px; }
  .preview > p:not(.chip) { margin-bottom: 9px; line-height: 1.45; }
  .preview .primary { min-height: 52px; }

  .screen:has(.paywall) { justify-content: flex-start; padding-top: 12px; padding-bottom: max(30px, calc(18px + env(safe-area-inset-bottom))); }
  .screen:has(.paywall) .paywall-hero { height: 112px; margin-bottom: 8px; }
  .screen:has(.paywall) .chip { margin-bottom: 7px; }
  .paywall h1 { margin-bottom: 3px; font-size: 30px; }
  .paywall .sub { margin-bottom: 7px; }
  .price { margin-bottom: 8px; }
  .paywall ul { margin-bottom: 10px; }
  .screen:has(.paywall) .paywall li { padding-top: 6px; padding-bottom: 6px; }
  .paywall .primary { min-height: 52px; }
  .paywall > small { margin-top: 7px; }
}

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