/* ============================================================
   Halle Eavelyn demo, iteration 10: NAVY, CREAM, HER GOLD
   Quiz + Gift group stylesheet (/assessment/ and /gift/).
   Halle's palette: navy #17135C nights, cream #FBFAF5 page, and the
   gold from halleeavelyn.com (#ED941C).
   Discipline held here:
   - cream family ~60%, navy nights ~32%, gold <=8%
   - gold is worn (hairlines, numerals, keylines, ONE gold
     button per screen), never poured
   - no drop shadows anywhere; depth = surface shifts + borders
   - navy banding rings only in corners of night bands, <=6%
   - radii 0-4px (architecture, not upholstery)
   Motion contract (app.js + quiz.js untouched semantics):
   visible-by-default. The head script adds .anim to <html> only
   when JS runs and reduced-motion is off; every hidden state is
   gated behind .anim, so no-JS, reduced-motion, and static
   renders always show everything.
   ============================================================ */

/* her own handwriting face, self-hosted from her site's asset set */
@font-face {
  font-family: "Amsterdam One";
  src: url("/assets/fonts/amsterdamone.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Forever Soulmates";
  src: url("/assets/fonts/foreversoulmates.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FBFAF5;
  --alabaster: #FBFAF5;
  --wash: #F4F1E7;
  --night: #17135C;
  --night-2: #17135C;
  --violet: #17135C;
  --peri-deep: #17135C;
  --ink: #17135C;
  --body-c: #17135C;
  --muted: #6B675C;
  --gold: #ED941C;
  --gold-light: #ED941C;
  --gold-ink: #98651D;
  --gold-rule: rgba(152, 101, 29, 0.5);
  --hairline: rgba(23, 19, 92, 0.16);
  --hairline-d: rgba(251, 250, 245, 0.18);
  --error: #963D2C;
  --font-display: "Cormorant Infant", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-script: "Amsterdam One", "Forever Soulmates", cursive;
  --peri: #17135C;
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  /* navy banding: concentric gold rings at 5.5% opacity,
     bled off the corners of night bands only */
  --bands: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='880'%20height='880'%3E%3Cg%20fill='none'%20stroke='%23ED941C'%20stroke-opacity='.055'%20stroke-width='1.2'%3E%3Ccircle%20cx='440'%20cy='440'%20r='52'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='66'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='96'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='128'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='142'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='184'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='222'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='238'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='284'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='322'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='338'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='392'/%3E%3Ccircle%20cx='440'%20cy='440'%20r='430'/%3E%3C/g%3E%3C/svg%3E");
  /* the five strata (stolen from B): quiz progress marks and the
     result's stage marker */
  --strata-1: #EDE4D2;
  --strata-2: #D9C49C;
  --strata-3: #B98F4E;
  --strata-4: #98651D;
  --strata-5: #17135C;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--body-c);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: var(--peri-deep); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--peri-deep); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--gold-light); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2rem); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -70px; left: 1rem; z-index: 300;
  background: var(--night); color: #FBFAF5;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.8rem 1.3rem; border-radius: 0 0 3px 3px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- shared voice ---------- */

.kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink);
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold-ink); flex: none; }
.night .kicker { color: var(--gold-light); justify-content: center; }
.night .kicker::after { content: ""; width: 26px; height: 1px; background: var(--gold-ink); flex: none; }

/* accent words inside frozen copy: Forever Soulmates, the handwriting face
   from Halle's own site (her request 2). Periwinkle on light, gold light
   on night. Words never change, only the dress. */
.accent-i,
.script {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.15em;
  line-height: 1.4;
  display: inline-block;
  padding: 0.06em 0.14em 0.2em 0.06em;
  word-spacing: 0.1em;
  color: var(--peri-deep);
}
.night .accent-i,
.night .script { color: var(--gold-light); }

.btn {
  display: inline-block;
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: none; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: #C97815; }
.btn-gold[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { border-color: rgba(23, 19, 92, 0.55); color: var(--violet); }
.btn-ghost:hover { border-color: var(--violet); background: rgba(23, 19, 92, 0.05); }
.night .btn-ghost { border-color: rgba(237, 148, 28, 0.6); color: #FBFAF5; }
.night .btn-ghost:hover { border-color: var(--gold-light); background: rgba(237, 148, 28, 0.08); }
.btn-sm { padding: 0.7rem 1.25rem; }
.btn-block { display: block; width: 100%; }

.cta-link {
  font-family: var(--font-ui); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold-ink); text-decoration: none;
  border-bottom: 1px solid var(--gold-rule);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-link:hover { color: var(--violet); border-color: var(--violet); }
.night .cta-link { color: var(--gold-light); }
.night .cta-link:hover { color: #FBFAF5; border-color: #FBFAF5; }

/* the ledger rule: double hairline between light sections */
.rule-double {
  height: 5px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- night bands ---------- */

.night {
  background-color: var(--night);
  background-image: var(--bands), var(--bands), linear-gradient(180deg, var(--night-2), var(--night) 40%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: -300px -340px, calc(100% + 320px) calc(100% + 340px), 0 0;
  background-size: 880px 880px, 880px 880px, cover;
  color: #FBFAF5;
}
.night h2, .night h3 { color: #FBFAF5; }
.night p { color: #DDD9CC; }

/* ---------- header ----------
   Desktop: wordmark left, nav center-right, quiz CTA far right.
   The quiz CTA is the GHOST variant on these pages: both heroes
   carry the page's one gold button (one gold per screen).
   Mobile (<=900px): wordmark left, compact quiz button right,
   menu affordance for the eight pages. */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--hairline);
}
.header-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem;
  padding-block: 1.05rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.02rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--gold-ink); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body-c); text-decoration: none;
  padding-bottom: 0.25rem; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--violet); border-color: var(--gold-ink); }
.nav a[aria-current="page"] { color: var(--violet); border-color: var(--gold-rule); }
/* the two deeper pages stay in the menu panel and footer on desktop */
.nav .nav-more { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline); border-radius: 2px;
  background: none; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--violet); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-in { gap: 0.75rem; }
  .wordmark { font-size: 0.88rem; letter-spacing: 0.16em; }
  .header-actions .btn-sm { padding: 0.62rem 0.85rem; font-size: 0.68rem; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--alabaster);
    border-bottom: 1px solid var(--hairline);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.95rem clamp(1.15rem, 4vw, 2rem);
    border-bottom: 0;
    border-top: 1px solid var(--hairline);
  }
  .nav a:hover { background: var(--cream); border-color: var(--hairline); }
  .nav .nav-more { display: block; }
}

/* ---------- page hero (light, copy-led) ---------- */

.page-hero { padding-block: clamp(3.2rem, 6.5vw, 5.75rem) clamp(3.4rem, 7vw, 6rem); }
.page-hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.7rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.01em;
  max-width: 21ch;
  margin: 0 0 1.3rem;
}
.page-hero-sub { max-width: 37rem; font-size: 1.1rem; margin-bottom: 2rem; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- section heads ---------- */

.sec { padding-block: clamp(4rem, 8vw, 6.5rem); }
.sec-head { max-width: 44rem; margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem); }
.sec-head h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.12; }
.sec-sub { font-size: 1.05rem; color: var(--body-c); margin: 0; }

/* ---------- how it works: three ruled columns ---------- */

.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline); border-top: 2px solid var(--gold-ink);
  background: var(--alabaster);
  list-style: none;
}
.how-item { padding: 1.9rem 1.6rem 2.1rem; border-left: 1px solid var(--hairline); }
.how-item:first-child { border-left: 0; }
.how-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.15rem; line-height: 1; color: var(--gold-ink);
  display: block; margin-bottom: 1.05rem;
}
.how-num::after {
  content: ""; display: block; width: 22px; height: 1px;
  background: var(--gold-rule); margin-top: 0.85rem;
}
.how-item h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 0.45em; }
.how-item p { font-size: 0.95rem; line-height: 1.62; margin: 0; }

/* ---------- the five stages: a mini colonnade ledger ---------- */

.stage-ledger {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--gold-rule);
  margin-top: 1.6rem;
  list-style: none;
}
.stage-ledger li {
  padding: 1.15rem 1.1rem 1.05rem 0;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.stage-ledger li + li { padding-left: 1.1rem; }
.stage-ledger li:last-child { border-right: 0; }
.sl-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.5rem; line-height: 1; color: var(--gold-ink);
}
.sl-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.04rem; color: var(--ink); line-height: 1.3;
}

@media (max-width: 980px) {
  .how-grid { grid-template-columns: 1fr; border-top-width: 1px; }
  .how-item {
    border-left: 0; border-top: 1px solid var(--hairline);
    display: grid; grid-template-columns: auto 1fr; column-gap: 1.4rem;
    align-items: start;
  }
  .how-item:first-child { border-top: 2px solid var(--gold-ink); }
  .how-num { margin-bottom: 0; }
  .stage-ledger { grid-template-columns: 1fr; border-top: 0; }
  .stage-ledger li {
    flex-direction: row; align-items: baseline; gap: 1rem;
    border-right: 0; border-top: 1px solid var(--hairline);
    padding: 0.85rem 0;
  }
  .stage-ledger li:first-child { border-top: 1px solid var(--gold-rule); }
  .stage-ledger li + li { padding-left: 0; }
  .sl-num { min-width: 2.2rem; }
}

/* ============================================================
   THE QUIZ: the readiness ledger
   One question per ruled panel on a wash band. Progress
   reads as strata marks deepening toward navy night.
   ============================================================ */

.quiz-sec { background: var(--wash); padding-block: clamp(3.6rem, 7.5vw, 6rem); }
.quiz-stage {
  max-width: 720px; margin-inline: auto;
  background: var(--alabaster);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold-ink);
  padding: clamp(1.7rem, 4.5vw, 3rem) clamp(1.15rem, 4.5vw, 3rem);
}
.quiz-step[hidden] { display: none; }

.quiz-kicker {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-ink);
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1rem;
}
.quiz-kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold-ink); flex: none; }

.quiz-stage h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500; line-height: 1.15;
  margin-bottom: 0.6em;
}
#quizIntroTitle:focus, #quizResultTitle:focus, .quiz-legend:focus { outline: none; }

.quiz-body { max-width: 34rem; }
.quiz-fine { font-size: 0.9rem; color: var(--muted); margin: 1.3rem 0 0; }

/* entry motion for each step; quiz.js skips it under reduced motion,
   and the hidden pose lives only in the keyframe */
.anim .quiz-enter { animation: quizIn 0.45s var(--ease) backwards; }
@keyframes quizIn {
  from { opacity: 0; transform: translateY(14px); }
}

/* progress: question count + nine strata marks */
.quiz-progress {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.6rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.quiz-progress-text {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.quiz-marks { display: flex; gap: 7px; }
.quiz-mark {
  width: 11px; height: 11px; border-radius: 1px;
  border: 1px solid var(--hairline); background: transparent;
}
.quiz-mark.on { border-color: rgba(23, 19, 92, 0.25); }
.quiz-mark.on:nth-child(1), .quiz-mark.on:nth-child(2) { background: var(--strata-1); }
.quiz-mark.on:nth-child(3), .quiz-mark.on:nth-child(4) { background: var(--strata-2); }
.quiz-mark.on:nth-child(5), .quiz-mark.on:nth-child(6) { background: var(--strata-3); border-color: var(--strata-3); }
.quiz-mark.on:nth-child(7), .quiz-mark.on:nth-child(8) { background: var(--strata-4); border-color: var(--strata-4); }
.quiz-mark.on:nth-child(9) { background: var(--strata-5); border-color: var(--strata-5); }

/* the question */
.quiz-q { border: 0; padding: 0; margin: 0; }
.quiz-legend {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.62rem);
  font-weight: 500; line-height: 1.3; color: var(--ink);
  padding: 0; margin-bottom: 1.35rem;
}

/* options: ruled rows, not pills */
.quiz-opts { display: flex; flex-direction: column; }
.quiz-opt {
  position: relative;
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--hairline);
  background: var(--alabaster);
  cursor: pointer;
  font-size: 0.99rem; line-height: 1.55;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quiz-opt + .quiz-opt { margin-top: -1px; }
.quiz-opt::before {
  content: ""; flex: none;
  width: 13px; height: 13px; margin-top: 0.32em;
  border: 1px solid rgba(23, 19, 92, 0.45); border-radius: 1px;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quiz-opt:hover { background: var(--cream); z-index: 1; }
.quiz-opt input {
  position: absolute; opacity: 0;
  width: 1px; height: 1px; margin: 0;
}
.quiz-opt:has(input:checked) {
  border-color: var(--peri-deep);
  background: #F4F1E7;
  color: var(--ink);
  z-index: 2;
}
.quiz-opt:has(input:checked)::before { background: var(--peri-deep); border-color: var(--peri-deep); }
.quiz-opt:has(input:focus-visible) { outline: 3px solid var(--peri-deep); outline-offset: 2px; z-index: 3; }

/* step navigation */
.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.7rem;
}
.quiz-back, .quiz-restart {
  font-family: var(--font-ui); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.quiz-back:hover, .quiz-restart:hover { color: var(--violet); border-color: var(--violet); }

/* the result */
.quiz-score {
  font-family: var(--font-display); font-style: italic;
  font-weight: 500; font-size: 1.18rem;
  color: var(--peri-deep);
  margin: 0 0 1.2rem;
}
.quiz-stage-marker { display: flex; gap: 10px; margin: 0 0 0.65rem; }
.strata-chip {
  width: 16px; height: 16px; border-radius: 1px;
  border: 1px solid rgba(23, 19, 92, 0.22);
}
.strata-chip.s1 { background: var(--strata-1); }
.strata-chip.s2 { background: var(--strata-2); }
.strata-chip.s3 { background: var(--strata-3); border-color: var(--strata-3); }
.strata-chip.s4 { background: var(--strata-4); border-color: var(--strata-4); }
.strata-chip.s5 { background: var(--strata-5); border-color: var(--strata-5); }
.strata-chip.is-current { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.quiz-stage-caption {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.quiz-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* keep-your-result: hairline-underline fields under a ledger rule.
   The gold on this screen belongs to the stage CTA above, so the
   email button holds the ghost register. */
.quiz-keep {
  margin-top: 2.4rem; padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  position: relative;
}
.quiz-keep::before {
  content: ""; position: absolute; top: 3px; left: 0; right: 0;
  border-top: 1px solid var(--hairline);
}
.quiz-demo-note { font-size: 0.85rem; color: var(--muted); margin: 1.1rem 0 0; }
.quiz-restart-row { margin: 2rem 0 0; }

.quiz-field-error {
  font-family: var(--font-ui);
  font-size: 0.8rem; font-weight: 500;
  color: var(--error);
  margin: 0.45rem 0 0;
}
.quiz-field-invalid input { border-bottom-color: var(--error); }

.quiz-noscript {
  max-width: 720px; margin-inline: auto;
  background: var(--alabaster);
  border: 1px solid var(--hairline);
  padding: 1.6rem 1.8rem;
}
.quiz-noscript p { margin: 0; }

/* ---------- forms (all [data-mock]) ---------- */

.form-card-head { margin-bottom: 1.5rem; }
.form-card-head h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.35rem; }
.form-card-head p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.field { margin-bottom: 1.35rem; text-align: left; }
.field label {
  display: block;
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--body-c);
  margin-bottom: 0.35rem;
}
.field input {
  width: 100%;
  font: inherit; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(23, 19, 92, 0.42);
  border-radius: 0;
  padding: 0.5rem 0.1rem 0.55rem;
}
.field input:hover { border-bottom-color: rgba(23, 19, 92, 0.62); }
.field input:focus {
  outline: none;
  border-bottom: 2px solid var(--peri-deep);
  padding-bottom: calc(0.55rem - 1px);
}
.form-fine { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
form .btn { margin-top: 0.4rem; }

.form-success {
  background: var(--alabaster);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold-ink);
  padding: 2rem 1.8rem;
  text-align: left;
}
.form-success:focus { outline: none; }
.form-success-glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--gold-rule); border-radius: 2px;
  color: var(--peri-deep);
  margin-bottom: 1rem;
}
.form-success h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.4rem; }
.form-success p { margin: 0 0 0.6em; }
.form-success .form-demo-note { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0 0; }

/* ============================================================
   THE GIFT (/gift/)
   ============================================================ */

.gift-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: start;
}

/* the guide as a stele: night plate, gold keyline, backed by
   an offset wash block (the identity's portrait language) */
.gift-art { position: relative; margin-top: 0.4rem; }
.booklet-stage { position: relative; width: min(100%, 380px); margin-inline: auto; }
.booklet-back {
  content: ""; position: absolute;
  inset: 9% -16px -16px auto; width: 78%;
  background: var(--wash); border-radius: 2px;
}
.booklet {
  position: relative; z-index: 1;
  aspect-ratio: 3 / 4;
  background-color: var(--night);
  background-image: var(--bands), linear-gradient(180deg, var(--night-2), var(--night) 55%);
  background-repeat: no-repeat, no-repeat;
  background-position: calc(100% + 300px) calc(100% + 320px), 0 0;
  background-size: 880px 880px, cover;
  border-radius: 2px;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
}
.booklet::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(237, 148, 28, 0.55); border-radius: 1px;
  pointer-events: none;
}
.booklet-kicker {
  display: block;
  font-family: var(--font-ui); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.booklet-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 500; line-height: 1.2;
  color: #FBFAF5;
}
.booklet-script {
  display: block;
  font-family: var(--font-display); font-style: italic;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  color: var(--gold-light);
  margin-top: 0.55rem;
}
.booklet-author {
  display: block;
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #DDD9CC;
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  position: relative;
}
.booklet-author::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 34px; height: 1px; transform: translateX(-50%);
  background: var(--gold-rule);
}

.gift-copy h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1.12; }

.gift-points { list-style: none; margin: 1.4rem 0 2.1rem; }
.gift-points li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.7rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.99rem; line-height: 1.6;
}
.gift-points li:last-child { border-bottom: 1px solid var(--hairline); }
.gift-points li::before {
  content: "\25C6";
  position: absolute; left: 0.1rem; top: 1.02rem;
  font-size: 0.62rem; line-height: 1;
  color: var(--gold-ink);
}

/* the claim form: alabaster panel, gold keyline, underline fields */
.gift-form {
  background: var(--alabaster);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--gold-ink);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  scroll-margin-top: 6rem;
}

@media (max-width: 980px) {
  .gift-grid { grid-template-columns: 1fr; }
  .booklet-stage { width: min(78%, 340px); }
}

/* ---------- final night band ---------- */

.final { text-align: center; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.final h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500; line-height: 1.12;
  margin-bottom: 1.1rem;
}
.final-sub { max-width: 34rem; margin: 0 auto 1.9rem; }
.final-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.final-meta {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.85rem;
  margin: 2.6rem 0 0;
}
.final .final-meta { color: #C9C4B4; }
.final-meta a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--gold-rule); padding-bottom: 0.2rem; }
.final-meta a:hover { color: #FBFAF5; border-color: #FBFAF5; }
.final-meta .dot { width: 5px; height: 5px; background: var(--gold-ink); transform: rotate(45deg); }

/* ---------- footer ---------- */

.site-footer { background: var(--cream); }
.footer-in {
  padding-block: 2.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.15rem;
  text-align: center;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; }
.footer-nav a {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body-c); text-decoration: none;
  padding: 0.35rem 0 0.25rem; border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: var(--violet); border-color: var(--gold-ink); }
.footer-nav a[aria-current="page"] { color: var(--violet); border-color: var(--gold-rule); }
.footer-copy {
  font-family: var(--font-ui); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0;
  max-width: 52rem;
}

/* ============================================================
   MOTION ENGINE: visible by default, animated only under .anim
   ============================================================ */

/* hero intro: hidden pose lives ONLY in the keyframe (backwards
   fill covers the stagger), so any static render shows the hero */
.hi { opacity: 1; }
.anim .hi { animation: heroIn 0.9s var(--ease) var(--d, 0s) backwards; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
}

/* scroll reveal: app.js adds .rv-in; its failsafes force-reveal
   below-fold elements for static and print renders */
.rv { opacity: 1; }
.anim .rv { opacity: 0; }
.anim .rv-in { opacity: 1; animation: rvIn 0.8s var(--ease) var(--rvd, 0s) backwards; }
.rv-up { --rv-from: translateY(26px); }
.rv-scale { --rv-from: scale(0.955); }
.rv-fade { --rv-from: none; }
@keyframes rvIn {
  from { opacity: 0; transform: var(--rv-from, none); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .hi, .anim .hi, .rv, .anim .rv, .rv-in { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #000; }
  .skip-link, .nav, .nav-toggle, .header-actions,
  .page-hero-ctas, .quiz-ctas, .quiz-nav, .quiz-keep,
  .quiz-restart-row, .final-ctas, .quiz-noscript { display: none !important; }
  .site-header { position: static; border-bottom: 1px solid #000; }
  .night, .quiz-sec, .booklet {
    background: #fff !important;
    background-image: none !important;
    color: #000 !important;
  }
  .night h2, .night h3, .night p, .booklet-title, .booklet-kicker,
  .booklet-script, .booklet-author, .final .final-meta,
  .accent-i, .night .accent-i, .final-meta a, .night .kicker { color: #000 !important; }
  .hi, .rv, .rv-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  .quiz-stage, .gift-form, .how-grid, .quiz-noscript { border-color: #000; }
  a { color: #000; text-decoration: underline; }
}

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

@media (max-width: 480px) {
  .wordmark { font-size: 0.78rem; letter-spacing: 0.12em; }
  .header-actions { gap: 0.5rem; }
  .header-actions .btn-sm { padding: 0.6rem 0.7rem; font-size: 0.64rem; letter-spacing: 0.09em; }
  .quiz-progress { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .quiz-ctas .btn, .page-hero-ctas .btn { width: 100%; }
  .quiz-opt { padding: 0.9rem 0.9rem; }
  .final-ctas .btn { width: 100%; }
}

/* dots on the deep-blue bands stay amber for visibility */
.night .dot, .night .final-meta .dot { background: var(--gold); }

/* honeypot: visually gone, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  font-size: 0.9rem;
  color: var(--error);
  margin: 0 0 0.8rem;
}

/* the consent line under the quiz hero */
.quiz-consent {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0.9rem 0 0;
}

/* full-width buttons may wrap their label (the deposit button at 390) */
.btn-block { white-space: normal; }
