:root {
  --paper: #f7f0df;
  --paper-deep: #eadfc7;
  --paper-light: #fffaf0;
  --plum: #241329;
  --plum-soft: #4e3153;
  --amber: #e69b31;
  --amber-deep: #a95811;
  --jade: #2f7d68;
  --coral: #d85b57;
  --focus: #176bff;
  --line: rgba(36, 19, 41, .2);
  --shadow: 0 18px 42px rgba(54, 27, 45, .13), 0 3px 8px rgba(54, 27, 45, .08);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--plum); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; min-height: 100svh; overflow-x: hidden; font-family: var(--body); background-color: var(--paper); background-image: linear-gradient(rgba(78,49,83,.045) 1px, transparent 1px); background-size: 100% 32px; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 90% 7%, rgba(230,155,49,.2), transparent 25rem), radial-gradient(circle at 8% 88%, rgba(47,125,104,.1), transparent 24rem); }
::selection { background: var(--amber); color: var(--plum); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: .18em; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--plum); color: var(--paper-light); transform: translateY(-150%); transition: transform .18s ease-out; }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; color: var(--plum); text-decoration: none; }
.wordmark svg { width: 31px; height: 31px; color: var(--amber-deep); }
.wordmark > span { font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .08em; }
.wordmark small { display: block; margin-top: 5px; color: var(--plum-soft); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.privacy-chip { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--plum-soft); font-size: 11px; font-weight: 700; }
.privacy-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(47,125,104,.12); }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.journey { min-height: calc(100svh - 70px); padding: 22px 0 48px; }
.progress-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.progress-wrap p { margin: 0; color: var(--plum-soft); font-size: 11px; font-weight: 700; }
.duration { text-align: right; }
.progress-track { height: 4px; overflow: hidden; background: rgba(36,19,41,.12); }
.progress-track span { display: block; width: 14.28%; height: 100%; background: var(--jade); transition: width .35s cubic-bezier(.2,.8,.2,1); }

.question-layout { display: grid; align-items: start; gap: 26px; margin-top: 34px; }
.question-copy { position: relative; }
.back-button { min-height: 48px; margin: -10px 0 4px -12px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--plum-soft); cursor: pointer; font-weight: 700; }
.back-button svg { width: 20px; }
.question-context, .status-line { width: fit-content; margin: 0 0 15px; padding-bottom: 5px; color: var(--amber-deep); border-bottom: 2px solid var(--amber); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.question-copy h1, .pause-copy h2, .analysis-copy h2, .gate-copy h2, .result-copy h1, .offer-heading h2 { margin: 0; max-width: 14ch; font-family: var(--display); font-size: clamp(2.65rem, 12vw, 5.7rem); line-height: .94; letter-spacing: -.038em; text-wrap: balance; }
.question-prompt { max-width: 47ch; margin: 18px 0 0; color: var(--plum-soft); font-size: 15px; line-height: 1.5; }
.reflection-note { margin: 18px 0 0; color: var(--plum-soft); font-size: 11px; line-height: 1.45; }
.answer-sheet { position: relative; }
.answer-sheet::before { content: ""; position: absolute; inset: 9px -8px -9px 8px; z-index: -1; background: var(--paper-deep); transform: rotate(.6deg); }
.answer-list { display: grid; gap: 9px; padding: 14px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.answer-choice { min-height: 58px; width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 8px 12px 8px 9px; border: 1px solid var(--line); background: rgba(247,240,223,.45); color: var(--plum); text-align: left; font-size: 13px; font-weight: 650; line-height: 1.35; cursor: pointer; transition: border-color .18s ease-out, background .18s ease-out, transform .18s ease-out, box-shadow .18s ease-out; }
.answer-choice > span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--plum-soft); font-size: 10px; font-weight: 800; }
.answer-choice svg { width: 19px; color: var(--amber-deep); }
.answer-choice:hover { border-color: var(--amber-deep); background: #fff4d9; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(54,27,45,.09); }
.answer-choice.is-selected { border-color: var(--jade); background: #e3f0e8; }
.answer-choice.is-selected > span { color: var(--paper-light); background: var(--jade); border-color: var(--jade); }
.answer-choice:disabled { cursor: wait; opacity: .7; }
.secure-note svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--jade); }

.phase-pause, .phase-analysis, .phase-gate { align-items: center; gap: 34px; }
.phase-pause, .phase-analysis { display: grid; }
.pause-mark { min-height: 260px; position: relative; display: grid; place-items: center; background: var(--plum); overflow: hidden; box-shadow: var(--shadow); }
.pause-mark::before { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(247,240,223,.2); border-radius: 50%; }
.pause-mark span { position: absolute; display: block; width: 130px; height: 13px; background: var(--amber); transform: rotate(-11deg); }
.pause-mark span:nth-child(2) { width: 82px; transform: translateY(35px) rotate(7deg); background: var(--paper); }
.pause-mark span:nth-child(3) { width: 48px; transform: translateY(-38px) rotate(25deg); background: var(--jade); }
.pause-copy h2, .analysis-copy h2, .gate-copy h2 { font-size: clamp(2.55rem, 11vw, 5rem); }
.pause-copy > p:not(.status-line), .gate-copy > p:not(.status-line) { max-width: 61ch; margin: 20px 0 0; color: var(--plum-soft); line-height: 1.65; }
.primary-action { min-height: 56px; width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--plum); padding: 12px 14px 12px 18px; background: var(--plum); color: var(--paper-light); font-size: 13px; font-weight: 800; line-height: 1.2; cursor: pointer; box-shadow: 0 8px 22px rgba(36,19,41,.18); transition: transform .18s ease-out, background .18s ease-out, box-shadow .18s ease-out; }
.primary-action svg { width: 22px; flex: 0 0 auto; }
.primary-action:hover { background: var(--jade); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(36,19,41,.18); }
.primary-action:disabled { cursor: wait; background: var(--plum-soft); opacity: .72; transform: none; }
.pause-copy .primary-action { margin-top: 27px; }

.analysis-ledger { position: relative; min-height: 300px; overflow: hidden; display: grid; place-items: center; background: var(--plum); box-shadow: var(--shadow); }
.analysis-ledger svg { width: min(74%, 290px); color: var(--paper); stroke-width: 2; opacity: .9; }
.analysis-ledger circle { fill: var(--amber); stroke: var(--amber); }
.scan-line { position: absolute; left: 12%; right: 12%; top: 35%; z-index: 2; height: 2px; background: var(--amber); box-shadow: 0 0 18px rgba(230,155,49,.8); animation: scan 1.8s ease-in-out infinite; }
.analysis-steps { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.analysis-steps li { position: relative; padding: 11px 12px 11px 38px; color: rgba(78,49,83,.55); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; transition: color .22s ease-out; }
.analysis-steps li::before { content: ""; position: absolute; left: 9px; top: 13px; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; }
.analysis-steps li.is-active { color: var(--jade); }
.analysis-steps li.is-active::before { background: var(--jade); box-shadow: inset 0 0 0 3px var(--paper); }

.phase-gate { display: grid; }
.ready-seal { width: 68px; height: 68px; margin-bottom: 22px; color: var(--jade); }
.ready-seal svg { width: 100%; height: 100%; }
.email-sheet { padding: 23px 18px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.email-sheet > label:first-child { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; }
.email-sheet input[type="email"] { width: 100%; min-height: 54px; border: 1px solid var(--plum-soft); border-radius: 0; padding: 0 14px; background: #fffdf7; color: var(--plum); font-size: 16px; caret-color: var(--amber-deep); }
.email-sheet input::placeholder { color: #816f7e; }
.field-error { margin: 7px 0 0; color: #9c252d; font-size: 12px; font-weight: 700; }
.consent-row { display: grid; grid-template-columns: 23px 1fr; align-items: start; gap: 10px; margin: 17px 0 19px; color: var(--plum-soft); font-size: 11px; line-height: 1.5; }
.consent-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--jade); }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--plum-soft); font-size: 11px; }

.phase-result { padding: 28px 0 calc(160px + env(safe-area-inset-bottom, 0px)); }
.result-hero { position: relative; min-height: 500px; display: grid; align-content: end; padding: 26px 20px; overflow: hidden; background: var(--plum); color: var(--paper); box-shadow: var(--shadow); }
.result-hero::before { content: ""; position: absolute; width: 440px; height: 440px; right: -210px; top: -190px; border: 1px solid rgba(247,240,223,.18); border-radius: 50%; box-shadow: 0 0 0 55px rgba(247,240,223,.035), 0 0 0 110px rgba(247,240,223,.025); }
.result-index { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(247,240,223,.25); padding-bottom: 12px; color: var(--paper-deep); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.result-index strong { font-family: var(--display); font-size: 31px; line-height: .8; color: var(--amber); }
.result-copy { position: relative; z-index: 1; }
.result-copy .status-line { color: var(--amber); }
.result-copy h1 { max-width: 10ch; color: var(--paper-light); font-size: clamp(3.25rem, 15vw, 7.5rem); }
.result-subheadline { max-width: 54ch; margin: 22px 0 0; color: var(--paper-deep); font-size: 15px; line-height: 1.5; }
.result-stamp { position: absolute; right: 18px; bottom: 25px; display: none; width: 100px; height: 100px; border: 2px solid var(--amber); border-radius: 50%; color: var(--amber); transform: rotate(-8deg); place-items: center; text-align: center; }
.result-stamp span { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; }
.result-stamp small { display: block; margin-top: 4px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.diagnosis-layout { display: grid; gap: 24px; margin-top: 34px; }
.diagnosis-copy { max-width: 72ch; }
.diagnosis-copy p { margin: 0 0 18px; color: var(--plum-soft); font-size: 15px; line-height: 1.72; }
.diagnosis-copy p:first-child { color: var(--plum); font-size: 18px; font-weight: 650; }
.autonomy-note { padding: 23px 20px; background: #e0eee7; border-top: 3px solid var(--jade); }
.autonomy-note svg { width: 44px; color: var(--jade); }
.autonomy-note h2 { margin: 19px 0 0; font-family: var(--display); font-size: 29px; line-height: 1; letter-spacing: -.03em; }
.autonomy-note p { margin: 13px 0 0; color: var(--plum-soft); font-size: 13px; line-height: 1.55; }
.offer-section { margin-top: 48px; padding-top: 38px; border-top: 1px solid var(--line); }
.offer-heading h2 { max-width: 15ch; font-size: clamp(2.8rem, 11vw, 5.8rem); }
.offer-heading > p:last-child { max-width: 65ch; margin: 20px 0 0; color: var(--plum-soft); line-height: 1.65; }
.guide-ledger { margin-top: 32px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.guide-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0; padding: 17px 16px; border-bottom: 1px solid var(--line); }
.guide-intro strong { font-family: var(--display); font-size: 20px; }
.guide-intro span { color: var(--jade); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.guide-ledger ol { margin: 0; padding: 0; list-style: none; }
.guide-ledger li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.guide-ledger li:last-child { border-bottom: 0; }
.guide-ledger li > span { color: var(--amber-deep); font-family: var(--display); font-size: 18px; font-weight: 800; }
.guide-ledger strong { display: block; font-size: 14px; }
.guide-ledger small { display: block; margin-top: 5px; color: var(--plum-soft); font-size: 11px; line-height: 1.4; }
.objection-strip { display: grid; gap: 1px; margin-top: 25px; background: var(--line); border: 1px solid var(--line); }
.objection-strip > div { padding: 15px; background: var(--paper); }
.objection-strip strong, .objection-strip span { display: block; }
.objection-strip strong { font-family: var(--display); font-size: 20px; }
.objection-strip span { margin-top: 5px; color: var(--plum-soft); font-size: 11px; }
.offer-close { display: grid; gap: 19px; margin-top: 31px; padding: 24px 19px; background: var(--plum); color: var(--paper); }
.offer-close > div:first-child > span, .offer-close small { display: block; color: var(--paper-deep); font-size: 11px; }
.offer-close > div:first-child > strong { display: block; margin: 4px 0 6px; color: var(--amber); font-family: var(--display); font-size: 55px; line-height: 1; letter-spacing: -.04em; }
.offer-close .primary-action { color: var(--plum); background: var(--amber); border-color: var(--amber); }
.offer-action p { margin: 10px 0 0; color: var(--paper-deep); font-size: 9px; text-align: center; }
.offer-disclaimer { max-width: 68ch; margin: 17px 0 0; color: var(--plum-soft); font-size: 11px; line-height: 1.5; }

.result-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--plum); color: var(--paper); box-shadow: 0 -8px 28px rgba(36,19,41,.18); transition: transform .25s ease-out, visibility .25s; }
.result-sticky.is-result-sticky-hidden { transform: translateY(115%); visibility: hidden; }
.result-sticky div { display: none; }
.result-sticky button { min-height: 50px; border: 0; padding: 11px 14px; background: var(--amber); color: var(--plum); font-size: 12px; font-weight: 800; cursor: pointer; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; max-width: 520px; margin: auto; padding: 13px 15px; background: var(--plum); color: var(--paper); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s; font-size: 12px; line-height: 1.45; }
.toast.is-visible { opacity: 1; transform: none; visibility: visible; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@keyframes scan { 0%, 100% { transform: translateY(-75px); opacity: .45; } 50% { transform: translateY(85px); opacity: 1; } }
@keyframes page-shift { from { opacity: .4; transform: translateX(18px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.question-layout.is-entering { animation: page-shift .32s cubic-bezier(.16,1,.3,1); }

@media (min-width: 760px) {
  .site-header { min-height: 84px; }
  .journey { min-height: calc(100svh - 84px); padding-top: 32px; }
  .question-layout { grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr); gap: clamp(50px,8vw,110px); margin-top: clamp(48px,8vh,92px); }
  .question-copy { position: sticky; top: 120px; }
  .answer-list { padding: 20px; }
  .answer-choice { min-height: 68px; font-size: 14px; }
  .phase-pause, .phase-analysis, .phase-gate { grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: clamp(48px,8vw,110px); }
  .pause-mark, .analysis-ledger { min-height: 480px; }
  .email-sheet { padding: 31px 29px; }
  .result-hero { min-height: 630px; padding: 48px 45px; }
  .result-index { top: 34px; left: 45px; right: 45px; }
  .result-stamp { display: grid; }
  .diagnosis-layout { grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 48px; margin-top: 50px; }
  .autonomy-note { align-self: start; position: sticky; top: 110px; }
  .guide-ledger li { grid-template-columns: 46px 1fr; padding: 18px 21px; }
  .objection-strip { grid-template-columns: repeat(3,1fr); }
  .offer-close { grid-template-columns: 1fr minmax(380px,.85fr); align-items: center; padding: 29px 30px; }
  .result-sticky { grid-template-columns: 1fr auto; align-items: center; padding: 11px max(20px, calc((100vw - 1080px)/2)) calc(11px + env(safe-area-inset-bottom, 0px)); }
  .result-sticky div { display: block; }
  .result-sticky strong, .result-sticky span { display: block; }
  .result-sticky strong { font-size: 11px; letter-spacing: .08em; }
  .result-sticky span { margin-top: 3px; color: var(--paper-deep); font-size: 9px; }
  .result-sticky button { min-width: 360px; }
}

@media (max-width: 430px) {
  .site-header, main { width: min(100% - 24px, 1120px); }
  .privacy-chip { font-size: 11px; }
  .journey { padding-top: 16px; }
  .progress-wrap { grid-template-columns: auto 1fr; }
  .duration { display: none; }
  .question-layout { margin-top: 23px; gap: 20px; }
  .question-copy h1 { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .question-prompt { margin-top: 12px; font-size: 13px; }
  .reflection-note { margin-top: 10px; }
  .answer-list { max-height: calc(100svh - 350px); min-height: 168px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--amber) var(--paper-deep); scrollbar-width: thin; }
  .answer-choice { min-height: 55px; }
  .result-hero { min-height: 520px; }
}

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