/* HonestClaim
   Design: "the marked-up bill". Navy ink, highlighter yellow, a pen-blue note.
   One responsive page: phone (below 44rem), tablet (44rem to 60rem) and laptop
   (60rem and up). The same link serves every device; the layout adapts.
   Contents: tokens, base, layout, header, theme switch, buttons, hero + bill,
   steps, flip cards, vows, receipt, days, ledger, faq, start + stack, footer,
   motion. */

/* ---------- Tokens ---------- */
:root {
  --bg: #EEF1F7;
  --dot: rgba(14, 27, 61, .2);
  --glow: rgba(255, 225, 77, .55);
  --ink: #0E1B3D;
  --soft: #4B5672;
  --surface: #FFFFFF;
  --line: #D5DAE6;
  --edge: #0E1B3D;            /* hard 3D edge under cards */
  --mark: #FFE14D;            /* highlighter */
  --pen: #2447F9;             /* handwritten notes */
  --ok: #128A5A;
  --btn-bg: #0E1B3D; --btn-fg: #FFFFFF;
  --card-front: #DDE4F4;
  --deep: #0E1B3D; --deep-fg: #FFFFFF; --deep-soft: #BFC8DE; --deep-line: rgba(255, 255, 255, .18);

  /* Documents stay paper-white in both themes. */
  --paper: #FFFFFF; --paper-ink: #0E1B3D; --paper-soft: #4B5672; --paper-line: #D5DAE6;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --hand: Caveat, "Segoe Script", cursive;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 8vw, 7rem);

  /* Pointer position in viewport px, set by js/main.js. */
  --gx: 72vw; --gy: 34vh;
  color-scheme: light;
}

/* Dark theme: device setting, or the visitor's choice. Keep both blocks identical. */
:root[data-theme="dark"] {
  --bg: #0A1226; --dot: rgba(255, 255, 255, .13); --glow: rgba(255, 225, 77, .2);
  --ink: #EEF1F7; --soft: #A9B4CF; --surface: #131D3A; --line: #2A3558; --edge: #FFE14D;
  --btn-bg: #FFE14D; --btn-fg: #0E1B3D; --card-front: #1B2850; --ok: #4FD39A; --pen: #2447F9;
  --deep: #060C1C; --deep-soft: #A9B4CF;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1226; --dot: rgba(255, 255, 255, .13); --glow: rgba(255, 225, 77, .2);
    --ink: #EEF1F7; --soft: #A9B4CF; --surface: #131D3A; --line: #2A3558; --edge: #FFE14D;
    --btn-bg: #FFE14D; --btn-fg: #0E1B3D; --card-front: #1B2850; --ok: #4FD39A; --pen: #2447F9;
    --deep: #060C1C; --deep-soft: #A9B4CF;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* The page background: a dot grid. The highlighter glow sits on body::before. */
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
}
/* A highlighter glow that follows the cursor, or the finger on touch screens.
   A fixed layer rather than a fixed background, so it also works on iPhones. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle 22rem at var(--gx) var(--gy), var(--glow), transparent 70%);
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
h3 { font-size: 1.3125rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
a { color: inherit; }
svg { display: block; }
[id] { scroll-margin-top: 5.5rem; }
.line { display: block; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.band--deep :focus-visible, .foot :focus-visible { outline-color: var(--mark); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--deep); color: var(--deep-fg); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.head { max-width: 44rem; margin-bottom: 3.5rem; }
.head > p { margin-top: 1.1rem; font-size: 1.25rem; color: var(--soft); }
.head--side { margin-bottom: 2rem; }
.split { display: grid; gap: 2rem; }

@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .head--side { position: sticky; top: 7rem; margin-bottom: 0; }
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: .5rem; min-height: 4.5rem; }
.top__in .brand { margin-right: auto; }
.top__nav { display: none; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; min-height: 44px; }
.brand__mark { width: 2.125rem; height: 2.125rem; flex: none; }
.brand__name { font-weight: 700; font-size: 1.4375rem; letter-spacing: -0.02em; }
.brand--light { color: var(--deep-fg); }

@media (max-width: 27.49rem) {
  .top .wrap { padding-inline: 1rem; }
  .brand__mark { width: 1.75rem; height: 1.75rem; }
  .brand__name { font-size: 1.1875rem; }
  .top .btn--small { padding-inline: .75rem; font-size: .9375rem; }
}
/* Small phones (under 384px): drop the logo mark so the bar fits on one line. */
@media (max-width: 23.99rem) { .brand__mark { display: none; } .top__in { gap: .4rem; } }

@media (min-width: 60rem) {
  .top__nav { display: flex; gap: 2.25rem; margin-right: 1.5rem; }
  .top__nav a { text-decoration: none; font-size: 1rem; font-weight: 500; color: var(--soft); padding-block: .6rem; }
  .top__nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
}

/* ---------- Theme switch: the sun is eclipsed into a moon ---------- */
.theme { display: none; }
.js .theme {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.theme:hover { border-color: var(--soft); }
.theme svg { width: 1.375rem; height: 1.375rem; overflow: visible; }
.theme__body { fill: var(--mark); stroke: var(--ink); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.theme__rays { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; transform-box: view-box; transform-origin: 12px 12px; }
.theme__shadow { transform: translate(9px, -9px); }
.theme__stars { fill: var(--mark); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
[data-theme-mode="dark"] .theme__body { fill: var(--ink); stroke-width: 0; transform: scale(1.55); }
[data-theme-mode="dark"] .theme__rays { opacity: 0; transform: rotate(45deg) scale(.4); }
[data-theme-mode="dark"] .theme__shadow { transform: translate(3.2px, -3.2px); }
[data-theme-mode="dark"] .theme__stars { opacity: 1; transform: scale(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: .8rem 1.75rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1.1875rem/1.2 var(--font); text-decoration: none;
  border: 0; border-radius: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--mark); }
.btn:active { transform: none; box-shadow: none; }
.btn--small { min-height: 2.75rem; padding: .5rem 1.1rem; font-size: 1rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5.25rem); }
.hero__in { display: grid; gap: 2rem; }
.hero__text { position: relative; z-index: 2; }
.lead { margin-top: 1.5rem; font-size: 1.25rem; color: var(--soft); max-width: 33rem; }
.hero__act { margin-top: 2rem; display: grid; gap: 1rem; justify-items: start; }
.hero__note { font-size: 1rem; color: var(--soft); max-width: 26rem; }
.hero__cap { position: relative; z-index: 2; padding-block: 1rem 1.5rem; font-size: .9375rem; color: var(--soft); }

.hero__stage { position: relative; height: var(--stage-h, 22rem); cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* --fit and --stage-h are set by js/main.js so the whole bill fits the screen. */
.bill-scene {
  position: absolute; left: 0; top: 0; width: 800px; height: 900px;
  perspective: 1900px; perspective-origin: 30% 10%;
  transform: scale(var(--fit, .44)); transform-origin: top left;
}
.bill, .bill-shadow {
  position: absolute; left: 30px; top: 0; width: 720px;
  transform-origin: top center;
  transform: rotateX(var(--bx, 42deg)) rotateZ(var(--bz, -9deg));
}
/* Phones and tablets: a gentler tilt, so the bill stays readable. */
@media (max-width: 59.99rem) { .bill-scene { --bx: 26deg; --bz: -5deg; } }
/* Tapped (any screen), or hovered on a laptop: the bill turns nearly flat. */
.hero__stage.is-flat .bill-scene { --bx: 12deg; --bz: -2deg; }
.bill-shadow { left: 50px; top: 40px; height: 720px; background: rgba(14, 27, 61, .25); filter: blur(40px); }
.bill {
  padding: 52px 52px 96px 76px;
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--paper-line);
}
.bill__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 3px solid var(--paper-ink); }
.bill__title { font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.bill__tag { font-size: 18px; color: var(--paper-soft); }
.bill__cols, .bill__row { display: grid; grid-template-columns: 1fr 120px 120px; }
.bill__cols { padding: 14px 0 6px; font-size: 17px; color: var(--paper-soft); }
.bill__cols span + span, .bill__row > span + span { text-align: right; font-variant-numeric: tabular-nums; }
.bill__row { position: relative; padding: 16px 0; border-bottom: 1px solid var(--paper-line); font-size: 24px; }
.bill__row > span { position: relative; }
.bill__row.is-marked::before {
  content: ""; position: absolute; inset: 8px -12px; background: var(--mark);
  transform-origin: left center;
}
.bill__note {
  position: absolute; left: 250px; top: -4px; white-space: nowrap;
  font: 600 34px/1 var(--hand); color: var(--pen); transform: rotate(-4deg);
}
.bill__note.n2 { left: 290px; }
.bill__tick {
  position: absolute; left: -48px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #128A5A; color: #fff;
}
.bill__tick svg { width: 18px; height: 18px; }

@media (min-width: 60rem) {
  .hero { min-height: 53rem; }
  .hero__in { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 1rem; }
  .hero__stage { height: 40rem; }
  .hero__text { align-self: center; }
  /* --fit is set by js/main.js so the whole bill fits the space beside the text. */
  .bill-scene { left: 0; top: 1rem; }
  .hero__cap { position: absolute; left: 0; right: 0; bottom: 0; }
}

/* ---------- Steps: four cards on a curve ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: none; }
.step {
  position: relative; padding: 1.75rem 1.5rem 2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--edge);
}
.step__n {
  display: inline-block; margin-bottom: 1.25rem; padding: 0 .35em;
  font-weight: 800; font-size: 3.5rem; line-height: 1; letter-spacing: -0.04em;
  color: #0E1B3D; background: linear-gradient(transparent 38%, var(--mark) 38%, var(--mark) 88%, transparent 88%);
}
[data-theme-mode="dark"] .step__n { color: var(--ink); background: linear-gradient(transparent 86%, var(--mark) 86%, var(--mark) 100%); padding-bottom: .12em; }
.step p { margin-top: .6rem; color: var(--soft); font-size: 1.0625rem; }
.steps__hint { display: none; }

/* Phones: the four cards sit in a row you swipe through. The card in the middle
   faces you; the ones at the sides turn away (--ry and --sc set by js/main.js). */
@media (max-width: 43.99rem) {
  .steps {
    display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: .5rem var(--gutter) 1.75rem;
    perspective: 900px;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step {
    flex: 0 0 82%; scroll-snap-align: center;
    transform: rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  }
  .steps__hint { display: flex; justify-content: center; gap: .5rem; margin-top: .25rem; }
  .steps__hint i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); transition: background-color .2s ease, width .2s ease; }
  .steps__hint i.on { width: 1.5rem; border-radius: 4px; background: var(--ink); }
}
/* Tablets: two by two. */
@media (min-width: 44rem) and (max-width: 59.99rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (min-width: 60rem) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); perspective: 1400px; }
  .step { transition: transform .4s cubic-bezier(.2, 1.3, .4, 1), box-shadow .3s ease, opacity .3s ease; }
  .step:nth-child(1) { transform: rotateY(16deg) translateZ(-10px); }
  .step:nth-child(2) { transform: rotateY(6deg) translateZ(-34px); }
  .step:nth-child(3) { transform: rotateY(-6deg) translateZ(-34px); }
  .step:nth-child(4) { transform: rotateY(-16deg) translateZ(-10px); }
  .step:hover { transform: rotateY(0deg) translateY(-22px) translateZ(170px); box-shadow: 16px 20px 0 var(--edge); z-index: 2; }
  .steps:hover .step:not(:hover) { opacity: .55; }
}

/* ---------- Flip cards ---------- */
.flips { display: grid; gap: 1.25rem; }
.flip {
  display: block; width: 100%; height: 15rem; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer; perspective: 1200px;
}
.flip__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.flip[aria-pressed="true"] .flip__in { transform: rotateY(180deg); }
.flip__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.6rem 1.75rem; border-radius: 10px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.flip__face small { font-size: .9375rem; font-weight: 600; }
.flip__front { background: var(--card-front); border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--edge); }
.flip__front small { color: var(--soft); }
.flip__front b { font-weight: 800; font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.025em; }
.flip__front i::before { content: "Tap to turn over"; }
@media (hover: hover) { .flip__front i::before { content: "Turn over"; } }
.flip__front i { margin-top: auto; font-style: normal; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.flip__back { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); box-shadow: -6px 6px 0 var(--mark); transform: rotateY(180deg); }
.flip__back small { color: #128A5A; }
.flip__back span { font-size: 1.0625rem; line-height: 1.45; }
@media (hover: hover) { .flip:hover .flip__in { transform: rotateY(180deg); } }
.flips__hint { display: none; }
/* Phones: the cards sit in a row you swipe through, like the steps. */
@media (max-width: 43.99rem) {
  .flips {
    display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) 1.25rem;
  }
  .flips::-webkit-scrollbar { display: none; }
  .flip { flex: 0 0 82%; scroll-snap-align: center; height: 16rem; }
  .flips__hint { display: flex; justify-content: center; gap: .5rem; margin-top: .25rem; }
  .flips__hint i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); transition: background-color .2s ease, width .2s ease; }
  .flips__hint i.on { width: 1.5rem; border-radius: 4px; background: var(--ink); }
}
@media (min-width: 44rem) { .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .flips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }

/* ---------- Vows (deep band) ---------- */
.band--deep {
  color: var(--deep-fg);
  background-color: var(--deep);
  background-image:
    radial-gradient(circle 22rem at var(--gx) var(--gy), rgba(255, 225, 77, .2), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .13) 1.3px, transparent 1.4px);
  background-size: auto, 26px 26px;
  background-attachment: fixed, scroll;
}
.band--deep h2 { max-width: 18ch; }
.vows { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.vow {
  padding: 2rem 1.75rem 2.25rem; border: 1px solid var(--deep-line); border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, border-color .25s ease;
}
.vow:hover { border-color: var(--mark); }
.vow h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.vow h3::after { content: ""; display: block; width: 3rem; height: 6px; margin-top: 1rem; background: var(--mark); }
.vow p { margin-top: 1rem; color: var(--deep-soft); }
@media (min-width: 60rem) { .vows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }

/* ---------- Receipt (pricing) ---------- */
.receipt {
  background: var(--paper); color: var(--paper-ink);
  border: 2px solid var(--paper-ink);
  box-shadow: 12px 12px 0 var(--mark);
}
.receipt__part { padding: 2rem 2rem 2.25rem; }
.receipt__part + .receipt__part { border-top: 2px dashed var(--paper-line); }
.receipt__price { display: table; margin: .35rem 0 1.25rem; padding: 0 .12em; background: linear-gradient(transparent 46%, var(--mark) 46%, var(--mark) 90%, transparent 90%); font-size: 3.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.receipt__price span { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--paper-soft); }
.ticks { display: grid; gap: .55rem; color: var(--paper-soft); }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; }
.ticks svg { width: 1.25rem; height: 1.25rem; margin-top: .2em; color: #128A5A; }

/* ---------- Days: 29 pages that stand up as you scroll ---------- */
.days { margin-bottom: 2rem; }
.days__ticks { display: flex; gap: 4px; height: 3.5rem; align-items: flex-end; perspective: 600px; }
.days__ticks i { flex: 1; height: 100%; background: var(--ink); border-radius: 2px; transform-origin: bottom center; }
.days__ticks i:last-child { background: var(--mark); box-shadow: inset 0 0 0 1px var(--ink); }
.days__ends { margin-top: .6rem; display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; color: var(--soft); }

/* ---------- Ledger ---------- */
.ledger { border-bottom: 1px solid var(--line); }
.ledger__row { display: grid; gap: .3rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ledger dt { font-weight: 700; }
.ledger dd { color: var(--soft); }
@media (min-width: 44rem) { .ledger__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; } }

/* ---------- FAQ ---------- */
.faq { border-bottom: 2px solid var(--ink); }
.faq details { border-top: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  min-height: 4.25rem; padding: 1rem 0; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat;
  transition: transform .25s ease;
}
.faq details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--soft); max-width: 40rem; }

/* ---------- Start: the three documents ---------- */
.start__lead { margin-top: 1.1rem; font-size: 1.25rem; color: var(--soft); }
.docs { margin: 2rem 0 2.25rem; display: grid; gap: .5rem; counter-reset: doc; }
.docs li { counter-increment: doc; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: .9rem; align-items: start; }
.docs li::before {
  content: counter(doc); margin-top: .7rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  font-weight: 800; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px;
}
.docs li.is-active::before { background: var(--mark); color: #0E1B3D; border-color: var(--mark); }
.doc {
  display: block; width: 100%; padding: .6rem .75rem; margin-left: -.75rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.doc:hover b { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 4px; text-underline-offset: .25em; }
.doc b { display: block; font-weight: 700; }
.doc span { display: block; color: var(--soft); }

.stack-scene { position: relative; height: 19rem; margin-top: 1.5rem; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.stack {
  position: absolute; left: 50%; top: 2.75rem; width: 13rem; height: 16.25rem; margin-left: -7rem;
  transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-34deg);
  cursor: pointer; --s: 1; --gap: 46px; --travel: 75%;
}
.sheet {
  position: absolute; inset: 0; padding: 1.1rem; display: flex; flex-direction: column; gap: .65rem;
  background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line);
  box-shadow: 0 0 2rem rgba(14, 27, 61, .18);
  transform: translateZ(calc(var(--s) * var(--i, 0) * var(--gap)));
  transition: transform .5s ease;
}
.sheet b { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; padding-bottom: .5rem; border-bottom: 2px solid var(--paper-ink); }
.sheet i { height: .45rem; width: 86%; background: var(--paper-line); border-radius: 2px; }
.sheet i:nth-of-type(2n) { width: 68%; }
.sheet i.hl { background: var(--mark); }
.sheet--2 { --i: 1; }
.sheet--3 { --i: 2; }
.stack__hint { position: absolute; left: 0; right: 0; bottom: .5rem; padding-inline: 1rem; text-align: center; font-size: .9375rem; color: var(--soft); }

@media (min-width: 44rem) {
  .stack-scene { height: 28rem; }
  .stack { top: 6.5rem; width: 17rem; height: 21rem; margin-left: -9rem; --gap: 60px; --travel: 100%; }
  .sheet { padding: 1.5rem; gap: .85rem; }
  .sheet b { font-size: 1.3rem; }
  .sheet i { height: .55rem; }
}
@media (min-width: 60rem) {
  .stack-scene { height: 34rem; margin-top: 0; overflow: visible; }
  .stack { top: 9rem; width: 20rem; height: 25rem; margin-left: -12rem; --gap: 70px; --travel: 118%; }
  .sheet { padding: 1.75rem; gap: 1rem; }
  .sheet b { font-size: 1.5rem; border-bottom-width: 3px; }
  .sheet i { height: .625rem; }
}

/* ---------- Phone text ----------
   .m-hide is left out on phones, .m-only appears only on phones. */
.m-only, .doc span.m-only { display: none; }
@media (max-width: 43.99rem) {
  .m-hide { display: none !important; }
  .m-only { display: revert; }
  span.m-only { display: inline; }
  .doc span.m-only { display: block; }
  .band { padding-block: 3.25rem; }
  .head { margin-bottom: 1.75rem; }
  .vows { margin-top: 2rem; gap: 1rem; }
  .vow { padding: 1.4rem 1.4rem 1.5rem; }
  .step { padding: 1.4rem 1.4rem 1.6rem; }
  .step__n { margin-bottom: .9rem; }
  .flip { height: 14rem; }
  .ledger__row { padding: .85rem 0; }
}

/* ---------- Health props: floating items from the hospital bill ----------
   They drift gently and move with the scroll (--p set per section by
   js/main.js). They sit behind the content, in the page margins. */
.band, .hero { position: relative; }
.band > .wrap, .hero > .wrap { position: relative; z-index: 1; }
.props { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.prop {
  position: absolute; top: var(--top); width: 4.25rem; height: 4.25rem; color: var(--ink);
  transform: translateY(calc(var(--p, 0) * var(--k, 50) * 1px)) rotate(var(--r, 0deg));
  filter: drop-shadow(4px 5px 0 rgba(14, 27, 61, .12));
}
.prop--l { left: max(.5rem, calc((100% - 78rem) / 2 - 3.5rem)); }
.prop--r { right: max(.5rem, calc((100% - 78rem) / 2 - 3.5rem)); }
.band--deep .prop { color: var(--deep-fg); filter: none; }
@media (max-width: 59.99rem) {
  /* Phones and tablets: smaller, and mostly off the edge so they never cover text. */
  .prop { width: 2.5rem; height: 2.5rem; opacity: .85; }
  .prop--l { left: -1.5rem; }
  .prop--r { right: -1.5rem; }
}

/* ---------- Heartbeat dividers between sections ---------- */
.pulse { position: relative; z-index: 1; height: 3rem; margin-block: -1.5rem; pointer-events: none; }
.pulse svg { width: 100%; height: 100%; overflow: visible; }
.pulse path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse__base { stroke: var(--line); }
.pulse__blip { stroke: #128A5A; stroke-width: 3.5; stroke-dasharray: 160 2400; stroke-dashoffset: 160; opacity: 0; }

/* ---------- Ticker: the deductions we check, moving past ---------- */
.ticker { position: relative; z-index: 1; overflow: hidden; padding-block: 1rem; border-block: 2px solid var(--ink); background: var(--mark); color: #0E1B3D; }
.ticker__track { display: flex; gap: .75rem; width: max-content; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  padding: .45rem 1rem .45rem .55rem; border-radius: 999px;
  background: #FFFFFF; border: 2px solid #0E1B3D; font-weight: 700; font-size: 1rem;
  --paper: #FFFFFF; --mark: #FFE14D; color: #0E1B3D;
}
.chip svg { width: 1.75rem; height: 1.75rem; flex: none; }

/* ---------- Sections blend into each other ----------
   The dark band and the footer fade in from the page instead of starting
   with a hard edge. */
.band--deep {
  background-color: transparent;
  background-image: linear-gradient(to bottom, transparent, var(--deep) 6rem, var(--deep) calc(100% - 6rem), transparent);
  background-size: auto; background-attachment: scroll;
  padding-block: calc(var(--band) + 3rem);
}
.foot { background: linear-gradient(to bottom, transparent, var(--deep) 5rem); padding-top: 7rem; }


/* ---------- Footer links and contact ---------- */
.foot__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot__links a, .foot__contact a { color: var(--deep-fg); text-decoration: underline; text-decoration-color: rgba(255, 225, 77, .7); text-underline-offset: .25em; display: inline-block; padding-block: .6rem; }
.foot__contact { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }

/* ---------- WhatsApp buttons ---------- */
.btn--wa { gap: .6rem; background: #128A5A; color: #FFFFFF; }
.btn--wa svg { width: 1.4rem; height: 1.4rem; }
.start__act { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.wa-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.wa-link svg { width: 1.3rem; height: 1.3rem; color: #128A5A; }
[data-theme-mode="dark"] .wa-link svg { color: var(--ok); }

/* ---------- Legal and contact pages ---------- */
.legal__doc { max-width: 46rem; }
.legal__doc h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.legal__meta { margin-top: .75rem; font-size: .9375rem; color: var(--soft); }
.legal__lead { margin-top: 1.5rem; font-size: 1.25rem; color: var(--soft); }
.legal__doc h2 { margin-top: 2.75rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.legal__doc p, .legal__doc ul { margin-top: .9rem; }
.legal__doc ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .5rem; }
.legal__doc a { text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.contact-card { margin-top: 2rem; display: grid; gap: 1.75rem; justify-items: start; }
.contact-card .ledger { width: 100%; }

/* ---------- Upload form ---------- */
.upload__head { max-width: 40rem; margin-bottom: 2.5rem; }
.upload__head h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.upload__head p { margin-top: 1rem; font-size: 1.25rem; color: var(--soft); }
.claim { max-width: 46rem; display: grid; gap: 1.5rem; }
.claim__part {
  margin: 0; padding: 1.5rem 1.4rem 1.6rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--edge);
  display: grid; gap: 1.1rem;
}
.claim__part legend { float: left; width: 100%; padding: 0; margin-bottom: .2rem; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.claim__part legend + * { clear: both; }
.claim__note { color: var(--soft); font-size: 1rem; }
.field { display: grid; gap: .4rem; }
.field label, .field__label { font-weight: 700; }
.field__help { font-size: .9375rem; color: var(--soft); }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 3.25rem; padding: .7rem .9rem;
  font: 500 1.0625rem/1.3 var(--font); color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 8px;
}
.field input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px rgba(36, 71, 249, .25); }
.field__phone { display: flex; align-items: stretch; }
.field__phone span { display: grid; place-items: center; padding: 0 .85rem; font-weight: 700; background: var(--card-front); border: 2px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; }
.field__phone input { border-radius: 0 8px 8px 0 !important; }
.choice { display: grid; gap: .6rem; }
.choice__opt { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.choice__opt input { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); flex: none; }
.choice__opt:has(input:checked) { border-color: var(--ink); background: var(--mark); color: #0E1B3D; }
.choice__opt:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; }
@media (min-width: 44rem) { .choice { grid-template-columns: 1fr 1fr; } }

.drops { display: grid; gap: 1rem; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: .25rem; transition: border-color .2s ease, background-color .2s ease; }
.drop.is-over { border-color: var(--pen); background: rgba(36, 71, 249, .06); }
.drop.has-files { border-style: solid; border-color: #128A5A; }
.drop__box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 1rem; padding: 1rem; cursor: pointer; }
.drop__title { font-weight: 700; }
.drop__hint { grid-column: 1; font-size: .9375rem; color: var(--soft); }
.drop__btn { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 6px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop__input:focus-visible + .drop__list, .drop:focus-within { outline: 3px solid var(--pen); outline-offset: 2px; }
.drop__list { display: grid; gap: .25rem; padding: 0 1rem; }
.drop__list:not(:empty) { padding-bottom: .75rem; }
.drop__list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.drop__list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__list button { flex: none; min-height: 44px; padding: 0 .5rem; background: none; border: 0; color: var(--ink); font: 600 .9375rem var(--font); text-decoration: underline; cursor: pointer; }

.notice { padding: 1rem 1.1rem; border-radius: 8px; background: var(--bg); color: var(--soft); font-size: .9875rem; display: grid; gap: .6rem; }
.notice a { color: var(--ink); }
.check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; align-items: start; cursor: pointer; font-weight: 500; }
.check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.claim__error { padding: .9rem 1.1rem; border-radius: 8px; background: #FDE7E4; color: #8A1C10; font-weight: 600; border: 2px solid #E8A398; }
.claim__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.claim__send .btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.progress { flex: 1 1 14rem; display: grid; gap: .35rem; }
.progress__bar { height: .7rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--mark); border-right: 2px solid var(--ink); transition: width .25s ease; }
.progress__text { font-size: .9375rem; color: var(--soft); }
.claim__small { font-size: .9375rem; color: var(--soft); }

.done { max-width: 40rem; padding: 2rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 8px 8px 0 var(--mark); display: grid; gap: 1rem; justify-items: start; }
.done:focus { outline: none; }
.done__tick { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: #128A5A; color: #FFFFFF; }
.done__tick svg { width: 1.8rem; height: 1.8rem; }
.done h2 { font-size: 2rem; }
.done__ref { padding: 0 .3em; background: var(--mark); color: #0E1B3D; font-size: 1.25rem; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: var(--deep-soft); padding-block: 3rem; font-size: 1rem; }
.foot__in { display: grid; gap: 1.25rem; }
.foot__note { max-width: 46rem; }
.foot__copy { font-size: .9375rem; }

/* ---------- Reveal: on phones and tablets, blocks fade up as they arrive ---------- */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal:not(.is-seen) { opacity: 0; transform: translateY(1.5rem); }

/* ---------- Motion ----------
   Everything above is the finished, still page. The motion below runs on every
   device, including phones set to "reduce motion" / "remove animations" (many
   phones switch that on with battery saver). For those visitors it is toned
   down at the end of this file: slower, smaller, and no parallax or tilt. */
@media all {
  html { scroll-behavior: smooth; }

  /* Health props bob and sway; the heartbeat blip runs along each divider;
     the ticker moves past. */
  .prop { animation: prop-bob var(--d, 8s) ease-in-out infinite alternate; }
  @keyframes prop-bob { from { translate: 0 0; rotate: -4deg; } to { translate: 0 -16px; rotate: 6deg; } }
  .pulse__blip { opacity: 1; animation: blip 3.2s linear infinite; }
  .pulse:nth-of-type(2n) .pulse__blip { animation-delay: -1.6s; }
  @keyframes blip { from { stroke-dashoffset: 160; } to { stroke-dashoffset: -2400; } }
  .ticker__track { animation: ticker 38s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(calc(-50% - .375rem)); } }

  /* Hero: the bill floats gently and lifts toward you on hover. */
  .bill, .bill-shadow { transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
  .bill-scene { animation: bill-float 7s ease-in-out infinite; }
  @keyframes bill-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
  @media (hover: hover) {
    .hero__stage:hover .bill-scene { --bx: 12deg; --bz: -2deg; }
  }

  .theme__body, .theme__rays, .theme__shadow, .theme__stars {
    transition: transform .5s cubic-bezier(.5, 0, .2, 1), opacity .35s ease, fill .35s ease, stroke-width .35s ease;
  }
  .theme__stars { transition-delay: .15s; }
  .theme-fade, .theme-fade * { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important; }

  /* Hero: the bill is marked up once, all together, as the page loads. */
  .bill__row.is-marked::before { animation: mark .55s cubic-bezier(.3, .8, .3, 1) .35s both; }
  .bill__note { animation: note .3s ease-out .8s both; }
  .bill__tick { animation: tick .35s cubic-bezier(.3, 1.6, .5, 1) .8s both; }
  @keyframes mark { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes note { from { opacity: 0; } to { opacity: 1; } }
  @keyframes tick { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }

  /* Steps: the cards pop up in turn when the section scrolls into view. */
  .step { transition: transform .4s cubic-bezier(.2, 1.3, .4, 1), box-shadow .3s ease, opacity .3s ease; }
  @media (max-width: 43.99rem) { .steps.is-ready .step { transition: transform .12s linear, opacity .3s ease; } }
  .js .steps:not(.is-in) .step { opacity: 0; transform: translateY(70px) rotateX(-25deg); }
  @media (min-width: 0) {
    .steps.is-in .step:nth-child(2) { transition-delay: .08s; }
    .steps.is-in .step:nth-child(3) { transition-delay: .16s; }
    .steps.is-in .step:nth-child(4) { transition-delay: .24s; }
    .steps.is-ready .step { transition-delay: 0s !important; }
  }

  /* Days: each page stands up when the script marks it .on. */
  .js .days__ticks i { transform: rotateX(88deg); opacity: .25; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s ease; }
  .js .days__ticks i.on { transform: rotateX(0deg); opacity: 1; }

  /* Start: the stack opens as it scrolls into view (--open set by the script).
     A click sends the top sheet over and under the others. */
  .js .stack { --s: var(--open, 0.15); }
  .stack-scene:active .stack { --s: var(--open, 0.15); }
  .sheet.is-flipping { animation: sheet-flip .9s cubic-bezier(.5, 0, .3, 1) both; z-index: 1; }
  @keyframes sheet-flip {
    0%   { transform: translate3d(0, 0, 140px) rotateY(0deg); }
    40%  { transform: translate3d(var(--travel), 0, 210px) rotateY(180deg); }
    65%  { transform: translate3d(var(--travel), 0, 0px) rotateY(360deg); }
    100% { transform: translate3d(0, 0, 0px) rotateY(360deg); }
  }
}

/* Gentler motion for visitors whose device asks for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prop { animation-duration: calc(var(--d, 8s) * 1.6); }
  @keyframes prop-bob { from { translate: 0 0; } to { translate: 0 -8px; } }
  .ticker__track { animation-duration: 70s; }
  .bill-scene { animation: none; }
}

/* The ticker can be paused with a tap (js/main.js adds .is-paused). */
.ticker.is-paused .ticker__track { animation-play-state: paused; }

/* Hidden always wins over component display rules */
[hidden] { display: none !important; }
