/* Souvenir site. The page is one user's recap, played as a story with a broadcast's
   discipline: big numbers on full-bleed colour fields, an ink lower-third that says
   whose number it is and where it came from, and a coverage ticker. Violet, pink and
   ink fields keep their colour in both themes; paper bands flip to ink in dark mode.
   Sun is worn only by the buy action. Both faces are self-hosted: Big Shoulders is
   also the card renderer's face, so the page and the cards speak one type. */

@font-face { font-family: "Big Shoulders"; src: url("fonts/BigShoulders-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/WorkSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  /* Fields: the same in both themes. */
  --violet: #3D1FE0;
  --violet-deep: #2A12B0;
  --pink: #FF8AD8;
  --ink: #120B2E;
  --ink-2: #1E1548;
  --sun: #FFE14D;
  --on-field: #FFFFFF;
  --on-field-2: #E4DDFF;

  /* Reading bands: these flip in dark mode. */
  --paper: #FFF7EE;
  --on-paper: #120B2E;
  --muted: #4E4668;
  --line: #E3D7EA;
  --link: #3D1FE0;
  --code-bg: #F3E9F1;
  --plan-bg: #FFFFFF;
  --num: #3D1FE0;

  --font-display: "Big Shoulders", "Work Sans", sans-serif;
  --font-body: "Work Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(2.2rem, 5.4vw, 3.6rem);
  --step-3: clamp(2.9rem, 7.6vw, 6rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F0A24; --on-paper: #F3EEFF; --muted: #B6ADD3; --line: #2C2356;
    --link: #B9AEFF; --code-bg: #1A1338; --plan-bg: #17102F; --num: #FF8AD8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F0A24; --on-paper: #F3EEFF; --muted: #B6ADD3; --line: #2C2356;
  --link: #B9AEFF; --code-bg: #1A1338; --plan-bg: #17102F; --num: #FF8AD8;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; scrollbar-color: var(--violet) var(--ink); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--on-paper);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  caret-color: var(--violet);
}
::selection { background: var(--pink); color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 0.92; margin: 0; text-wrap: balance; text-transform: uppercase; letter-spacing: 0; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--num); }
.pink :focus-visible { outline-color: var(--ink); }
.band.ink input, .band.violet input { caret-color: var(--pink); }
.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; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Bands: each section is one full-width field doing one job. */
.band { padding-block: clamp(48px, 9vw, 112px); }
.band.paper + .band.paper { border-top: 2px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band.ink + .band.paper, :root:not([data-theme="light"]) .band.paper + .band.ink { border-top: 2px solid var(--line); } }
:root[data-theme="dark"] .band.ink + .band.paper, :root[data-theme="dark"] .band.paper + .band.ink { border-top: 2px solid var(--line); }
.band.violet { background: var(--violet); color: var(--on-field); }
.band.pink { background: var(--pink); color: var(--ink); }
.band.ink { background: var(--ink); color: var(--on-field); }
.band.violet a, .band.ink a { color: var(--on-field); }
.band.pink a { color: var(--ink); }
section.hero a, .start-hero a, .ticker a { color: var(--on-field); }
.section-head { display: grid; gap: 16px; max-width: 64ch; margin-bottom: clamp(28px, 4vw, 44px); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 56ch; color: var(--muted); }
.band.violet .lede, .band.ink .lede { color: var(--on-field-2); }
.band.pink .lede { color: #2A1F4A; }
.note { font-size: var(--step--1); color: var(--muted); }
.band.ink .note, .band.violet .note { color: var(--on-field-2); }

/* Header: the score bug. */
header.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--on-field); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--on-field); text-decoration: none; }
header.top nav { display: flex; align-items: center; gap: 22px; font-size: var(--step--1); }
header.top nav a { color: var(--on-field-2); text-decoration: none; }
header.top nav a:hover { color: var(--on-field); }
header.top nav a.keep { color: var(--ink); background: var(--sun); padding: 7px 12px; border-radius: 99px; font-weight: 400; }
header.top nav a.keep b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; letter-spacing: 0.02em; }
header.top nav a.keep:hover { background: #FFEA7A; }

/* Buttons. Sun belongs to the buy action and nothing else. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border-radius: 99px; padding: 16px 26px; border: 2px solid transparent; min-height: 56px;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-buy { background: var(--sun); color: var(--ink) !important; box-shadow: 0 10px 24px -12px rgba(18, 11, 46, 0.55); }
.btn-buy:hover { background: #FFEA7A; }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, 0.1); }
.paper .btn-line:hover { background: color-mix(in srgb, var(--violet) 8%, transparent); }
.btn-paper { background: var(--on-field); color: var(--ink); }
.btn-paper:hover { background: var(--on-field-2); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.under-btn { font-size: var(--step--1); margin-top: 10px; opacity: 0.86; }
.inline-msg { font-size: var(--step--1); color: var(--ink); background: var(--sun); border-radius: 12px; padding: 10px 14px; margin-top: 12px; max-width: 46ch; }
.inline-msg a { color: var(--ink) !important; }
.text-btn { font: inherit; font-size: var(--step--1); background: none; border: 0; padding: 4px 0; color: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; justify-self: start; }

/* ---------- Hero: one recap, playing ---------- */
section.hero { background: var(--violet); color: var(--on-field); padding: 14px 0 clamp(40px, 6vw, 72px); overflow: hidden; }
section.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "bars" "h" "story" "buy";
  gap: 16px;
}
.story-bars { grid-area: bars; display: flex; gap: 5px; }
.story-bars i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.story-bars i b { position: absolute; inset: 0; background: var(--on-field); transform-origin: left; transform: scaleX(0); }
.story-bars i.on b { transform: scaleX(1); }
section.hero h1 { grid-area: h; max-width: 13ch; font-size: clamp(2.7rem, 11.6vw, 6rem); }
.story-wrap { grid-area: story; display: grid; justify-items: center; min-width: 0; }
.story-wrap { --story-w: min(48vw, 15.5rem); }
.story { position: relative; width: var(--story-w); transform: rotate(-2deg); outline: none; }
.story:focus-visible .rc { outline: 3px solid var(--sun); outline-offset: 4px; }
.story .tap { position: absolute; z-index: 3; top: 0; bottom: 0; width: 50%; background: transparent; border: 0; cursor: pointer; }
.story .tap.prev { left: 0; }
.story .tap.next { right: 0; }
.story .rc { box-shadow: 0 30px 50px -24px rgba(8, 4, 30, 0.7); }
.story .rc .chip { top: 4cqw; bottom: auto; }

/* Lower-third: whose number this is and where it came from. Runs past the card's edges. */
.lower-third {
  position: relative; z-index: 4;
  width: calc(100% + 32px);
  margin-top: -46px;
  background: var(--ink); color: var(--on-field);
  padding: 12px 16px 13px;
  display: grid; gap: 4px;
  box-shadow: 0 16px 30px -18px rgba(8, 4, 30, 0.8);
}
.lower-third::before { content: ""; position: absolute; left: 0; top: -6px; width: 88px; height: 6px; background: var(--pink); }
.lt-who { font-family: var(--font-display); font-size: 1.05rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-field-2); }
.lt-num { font-family: var(--font-display); font-size: clamp(3.2rem, 15vw, 5.5rem); line-height: 0.85; text-transform: uppercase; color: var(--pink); font-variant-numeric: tabular-nums; }
.lt-src { font-size: 0.82rem; color: var(--on-field-2); display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.lt-src button { font: inherit; color: var(--on-field); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.trace { width: calc(100% + 32px); background: var(--ink-2); color: var(--on-field-2); padding: 12px 16px; font-size: 0.74rem; line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre; }
.story-wrap { position: relative; }
.story-controls { position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: calc(var(--story-w) * 16 / 9); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.story-controls .round { pointer-events: auto; background: rgba(18, 11, 46, 0.35); }
.story-controls #story-pos { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); background: transparent; color: var(--on-field); display: grid; place-items: center; cursor: pointer; }
.round:hover { border-color: var(--on-field); background: rgba(255, 255, 255, 0.1); }
.round svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-buy { grid-area: buy; }
.anchor { font-size: var(--step-1); line-height: 1.35; max-width: 30ch; margin-bottom: 14px; }
.anchor b { font-family: var(--font-display); font-weight: 700; font-size: 1.6em; line-height: 0.9; color: var(--pink); }
.hero-buy .what { margin-top: 18px; max-width: 34ch; color: var(--on-field-2); }

/* Ticker: the sample's coverage report, in the broadcast's bottom line. */
.ticker { background: var(--ink); color: var(--on-field); border-top: 6px solid var(--pink); }
.ticker .wrap { display: grid; gap: 14px; padding-block: 22px; }
.tick-lead { font-size: var(--step--1); color: var(--on-field-2); max-width: 70ch; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.1; letter-spacing: 0.02em; color: var(--on-field-2); }
.ticker li b { color: var(--pink); font-size: 1.5em; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---------- How: three steps, each with the artifact it makes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 28px; border-top: 2px solid var(--on-paper); min-width: 0; }
.step { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
.step > :not(.step-n):not(.step-body) { grid-column: 1 / -1; }
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; line-height: 0.8; color: var(--num); }
.step-body { display: grid; gap: 10px; }
.step-body p { color: var(--muted); max-width: 52ch; }
.step-foot { max-width: 60ch; }
.mini { background: var(--code-bg); border-radius: 12px; padding: 14px; font-size: 0.74rem; overflow-x: auto; margin: 0; white-space: pre; line-height: 1.6; min-width: 0; }
.coverage { display: grid; gap: 8px; font-size: var(--step--1); }
.coverage-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.coverage-row b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; color: var(--num); }
.coverage-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 6px; }
.coverage-bar span:nth-child(1) { background: var(--violet); }
.coverage-bar span:nth-child(2) { background: var(--pink); }
.coverage-bar span:nth-child(3) { background: #B6A8F5; }
.coverage-bar span:nth-child(4) { background: var(--line); }

/* ---------- Picks: the rules, on pink ---------- */
.checks { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.check { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 24px 0; border-bottom: 2px solid var(--ink); }
.check p { grid-column: 2; }
.check svg { grid-row: 1; align-self: start; width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.check h3 { font-size: 1.7rem; }
.check p { color: #2A1F4A; max-width: 60ch; }
.picks-foot { margin-top: 24px; font-size: var(--step--1); max-width: 60ch; }

/* ---------- Mid-page buy ---------- */
.buy-band .wrap { display: grid; gap: 24px; align-items: end; }
.buy-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 16ch; }
.buy-band .big { display: block; font-size: clamp(6rem, 22vw, 11rem); line-height: 0.82; color: var(--pink); margin-bottom: 0.1em; }

/* ---------- Brand try-out ---------- */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.controls { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label, .field .label { font-size: var(--step--1); color: var(--on-field-2); }
.file { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 16px; border: 2px dashed rgba(255, 255, 255, 0.45); border-radius: 14px; cursor: pointer; font-size: var(--step--1); color: var(--on-field); overflow: hidden; }
.file:hover { border-color: var(--on-field); }
.file svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#logo-input:focus-visible + .file, .file:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] { flex: none; width: 52px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 12px; padding: 3px; background: transparent; cursor: pointer; }
.hex { flex: 1; min-width: 0; height: 48px; font-family: var(--font-mono); font-size: 0.95rem; text-transform: uppercase; color: var(--on-field); background: var(--ink-2); border: 2px solid transparent; border-radius: 12px; padding: 0 14px; }
.hex:focus, .name-input:focus { border-color: var(--pink); outline: none; }
.name-input { width: 100%; height: 48px; font: inherit; color: var(--on-field); background: var(--ink-2); border: 2px solid transparent; border-radius: 12px; padding: 0 14px; }
.hex[aria-invalid="true"] { border-color: var(--pink); border-style: dashed; }
.controls .btn { width: 100%; font-size: 1.2rem; padding-inline: 14px; white-space: nowrap; }
.contrast-note { font-size: var(--step--1); color: var(--ink); background: var(--pink); border-radius: 12px; padding: 10px 14px; }
.card-strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 6px 18px; min-width: 0; scroll-snap-type: x proximity; scrollbar-color: var(--pink) var(--ink-2); }
.strip-item { flex: 0 0 11.5rem; display: grid; gap: 10px; align-content: start; scroll-snap-align: start; }
.strip-item button { all: unset; cursor: pointer; display: block; border-radius: 16px; outline-offset: 4px; transition: transform 200ms var(--ease); }
.strip-item button:hover { transform: translateY(-3px); }
.strip-item button[aria-pressed="true"] { outline: 3px solid var(--pink); }
.strip-item button:focus-visible { outline: 3px solid var(--sun); }
.strip-item .note { line-height: 1.35; }

/* Recap card: the kit's poster family (stack and split), drawn in CSS so the
   brand pickers can re-skin it. Sizes are in container units, so one card scales
   from the hero to the strip without new rules. */
:root {
  /* Card roles. The defaults are the Northwind Notes demo's roles from demo/output/render/render-report.json;
     "See it in your brand" rewrites them on the root, so every card on the page re-skins. */
  --c-bg: #3B2F8F; --c-accent: #C9CCFC; --c-text: #FAFAF7; --c-stat: #FAFAF7; --c-on-accent: #121417;
}
.rc {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--c-bg);
  color: var(--c-text);
  border-radius: 14px;
  overflow: hidden;
  font-family: "Work Sans", var(--font-body);
  text-transform: none;
  box-shadow: 0 24px 48px -28px rgba(10, 6, 40, 0.6);
}
.rc .in { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 13cqw 7cqw 9cqw; }
.rc .logo { font-family: "Big Shoulders", var(--font-display); font-weight: 700; font-size: 6cqw; line-height: 1; height: 6cqw; display: flex; align-items: center; }
.rc .logo img { max-height: 7cqw; max-width: 40cqw; object-fit: contain; }
.rc .hero { font-family: "Big Shoulders", var(--font-display); font-weight: 700; line-height: 0.92; margin: 0; overflow-wrap: normal; word-break: keep-all; font-size: 12cqw; }
.rc.stack .hero[data-kind="numeral"] { font-size: 26cqw; }
.rc .body { font-size: 5.2cqw; line-height: 1.3; margin: 0; }
.rc.stack .mid { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2cqw; padding-top: 6cqw; }
.rc.stack .hero { color: var(--c-stat); }
.rc.split .in { padding: 0; }
.rc.split .top { background: var(--c-accent); color: var(--c-on-accent); height: 54%; display: flex; align-items: flex-end; padding: 13cqw 7cqw 5cqw; }
.rc.split .bottom { flex: 1; display: flex; flex-direction: column; padding: 4cqw 7cqw 9cqw; }
.rc.split .bottom .logo { margin-top: auto; margin-bottom: 14cqw; }
.rc .chip {
  position: absolute; z-index: 1; right: 4cqw; bottom: 4cqw;
  font-family: var(--font-body); font-size: max(11px, 3.4cqw); font-weight: 400; line-height: 1;
  background: rgba(10, 12, 20, 0.72); color: #fff; padding: 1.6cqw 2.6cqw; border-radius: 99px;
}

/* ---------- Kit ---------- */
.full-list { margin-top: 28px; }
.full-list > summary { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; color: var(--link); cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; padding: 8px 0; }
.full-list > summary::-webkit-details-marker { display: none; }
.full-list > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease); }
.full-list[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.kit-full { columns: 2 20rem; column-gap: 40px; padding-top: 18px; }
.kit-group { break-inside: avoid; margin: 0 0 26px; }
.kit-group h3 { font-size: 1.3rem; margin-bottom: 10px; }
.kit-group ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Compare: Souvenir first; stacks on phones ---------- */
.compare table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; border-bottom: 2px solid var(--on-paper); }
.compare th.us { background: var(--violet); color: var(--on-field); border-radius: 14px 14px 0 0; }
.compare td.us { background: color-mix(in srgb, var(--violet) 9%, transparent); font-weight: 400; color: var(--on-paper); }
.compare td.us b { font-family: var(--font-display); font-size: 1.6rem; color: var(--num); }
.compare tbody th { font-weight: 400; color: var(--muted); width: 24%; }
.compare tbody td { color: var(--muted); }

/* ---------- Pricing ---------- */
.compare + .pricing { border-top: 0; padding-top: 16px; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.plan { background: var(--plan-bg); border: 2px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 18px; align-content: start; }
.plan.main { background: var(--violet); color: var(--on-field); border-color: var(--violet); }
.plan.main .note, .plan.main .under-btn { color: var(--on-field-2); }
.plan.main a:not(.btn) { color: var(--on-field); }
.plan h3 { font-size: 2rem; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-weight: 700; font-size: 5rem; line-height: 0.85; font-variant-numeric: tabular-nums; }
.plan.main .price b { color: var(--pink); }
.price span { color: var(--muted); }
.plan.main .price span { color: var(--on-field-2); }
.plan .btn { width: 100%; font-size: 1.3rem; padding-inline: 16px; white-space: nowrap; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.founding { font-size: var(--step--1); background: color-mix(in srgb, var(--violet) 10%, transparent); border-radius: 12px; padding: 12px 14px; }
.plan.main .founding { background: var(--violet-deep); }
.guarantee { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.guarantee h3 { font-size: 1.9rem; margin-bottom: 6px; }
.seal { width: 104px; height: 104px; border-radius: 50%; background: var(--pink); color: var(--ink); display: grid; place-content: center; text-align: center; font-family: var(--font-display); font-size: 2.8rem; line-height: 0.85; }
.seal small { display: block; font-family: var(--font-body); font-size: 0.68rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.licence { margin-top: 24px; }
.licence p + p { margin-top: 10px; }

/* ---------- January ---------- */
.jan .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: end; }
.jan .section-head { margin-bottom: 0; }
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.cal div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 2px solid var(--ink); }
.cal b { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; line-height: 1; }
.cal span { font-size: var(--step--1); color: #2A1F4A; }

/* ---------- Proof: quotes and maker ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 20px; }
.quote { border-top: 2px solid var(--on-paper); padding-top: 18px; display: grid; gap: 12px; margin: 0; }
.quote .num { font-family: var(--font-display); font-size: 3rem; line-height: 0.9; color: var(--num); }
.maker { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px; align-items: start; max-width: 64ch; }
.maker h2 { font-size: 2.2rem; margin-bottom: 12px; }
.maker img, .maker .ph { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.maker .ph { background: var(--violet); color: var(--pink); display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; }
.maker p + p { margin-top: 10px; }

/* ---------- FAQ + not for ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
#faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
#faq details:first-of-type { border-top: 2px solid var(--on-paper); }
#faq summary { cursor: pointer; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: 6px; border-right: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(45deg); transition: transform 200ms var(--ease); }
#faq details[open] summary::after { transform: rotate(-135deg); }
#faq details p { margin-top: 10px; color: var(--muted); max-width: 62ch; }
.licence summary { cursor: pointer; color: var(--muted); }
.notfor { background: var(--ink); color: var(--on-field); border-radius: 22px; padding: 26px; display: grid; gap: 14px; }
.notfor h3 { font-size: 1.9rem; color: var(--pink); }
.notfor ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; color: var(--on-field-2); font-size: 0.95rem; }

/* ---------- Checklist capture ---------- */
.capture .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: end; }
.capture .section-head { margin-bottom: 0; }
.capture form { display: grid; gap: 10px; }
.capture label { font-size: var(--step--1); color: var(--on-field-2); }
.capture .row { display: flex; gap: 10px; flex-wrap: wrap; }
.capture input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 14px 18px; border-radius: 99px; border: 2px solid transparent; background: var(--ink-2); color: var(--on-field); min-height: 56px; }
.capture input[type="email"]:focus { border-color: var(--pink); outline: none; }
input::placeholder { color: #A99FCC; opacity: 1; }

#privacy h2 { font-size: 2rem; margin-bottom: 14px; }
#privacy p { max-width: 64ch; color: var(--muted); }
#privacy p + p { margin-top: 10px; }

footer { background: var(--ink); color: var(--on-field-2); }
footer .wrap { padding-block: 36px; display: grid; gap: 10px; font-size: var(--step--1); }
footer a { color: var(--on-field); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Start page ---------- */
.start-hero { background: var(--violet); color: var(--on-field); padding-block: clamp(40px, 7vw, 88px); }
.start-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 9vw, 5.4rem); }
.start-hero .lede { color: var(--on-field-2); }
.paths { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--on-paper); }
.path { padding: 28px 0; border-bottom: 2px solid var(--on-paper); display: grid; gap: 14px; }
.path h2 { font-size: 2.2rem; }
.path.main h2 { color: var(--num); }
.path ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; max-width: 62ch; }
.path .who { color: var(--muted); }
.shot { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; color: var(--muted); font-size: var(--step--1); }
.admin-note { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; background: var(--ink); color: var(--on-field); border-radius: 22px; padding: 24px; }
.admin-note h3 { font-size: 1.7rem; color: var(--pink); margin-bottom: 6px; }
.admin-note p { color: var(--on-field-2); }
.admin-note svg { width: 36px; height: 36px; fill: none; stroke: var(--pink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ink); color: var(--on-field); }
.btn-ink:hover { background: var(--ink-2); }
.after-copy { margin-top: 12px; }
.band.pink .note { color: #2A1F4A; }
.help { margin-bottom: 0; }
.help h2 { font-size: 2.6rem; }
.copy-block { color: var(--on-paper); position: relative; background: var(--code-bg); border-radius: 14px; padding: 18px 18px 64px; font-size: 1rem; white-space: pre-wrap; margin: 0; font-family: var(--font-body); }
.copy-wrap { position: relative; }
.copy-wrap .btn { position: absolute; right: 12px; bottom: 12px; min-height: 44px; padding: 10px 18px; font-size: 1.15rem; }
.say { font-family: var(--font-mono); font-size: 0.9em; background: var(--code-bg); padding: 2px 6px; border-radius: 6px; }

/* ---------- Wider screens ---------- */
@media (min-width: 640px) {
  .step { grid-template-columns: 7rem minmax(0, 1fr); column-gap: 28px; }
  .step > :not(.step-n), .step > :not(.step-n):not(.step-body) { grid-column: 2; }
  .step-n { grid-row: span 3; font-size: 7rem; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  section.hero { padding-top: 22px; padding-bottom: 36px; }
  section.hero .wrap {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    grid-template-areas: "bars bars" "h story" "buy story";
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(32px, 6vw, 88px);
    row-gap: 26px;
  }
  .story-bars { margin-bottom: 10px; }
  .story-wrap { align-self: start; padding-top: 8px; }
  .story-wrap { --story-w: clamp(17rem, calc((100vh - 330px) * 9 / 16), 24rem); --story-w: clamp(17rem, calc((100svh - 330px) * 9 / 16), 24rem); }
  .story-controls { left: 50%; right: auto; width: calc(var(--story-w) + 128px); transform: translateX(-50%); }
  .lower-third, .trace { width: calc(var(--story-w) + 64px); }
  .brand-grid { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 48px; }
  .buy-band .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .faq-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  .notfor { position: sticky; top: 80px; }
  .capture .wrap, .jan .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 899px) {
  header.top nav a:not(.keep) { display: none; }
  .hero-buy .btn-line { border: 0; padding: 10px 2px; min-height: 0; text-decoration: underline; text-underline-offset: 0.2em; }
  .hero-buy .btn-line:hover { background: none; }
}
/* The comparison table stacks into one block per row on phones; Souvenir's answer leads each block. */
@media (max-width: 639px) {
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { padding: 18px 0; border-top: 2px solid var(--on-paper); }
  .compare tbody th { width: auto; padding: 0 0 10px; border: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1; color: var(--on-paper); }
  .compare td { position: relative; padding: 6px 0 6px 6.5rem; border: 0; }
  .compare td::before { content: attr(data-label); position: absolute; left: 0; top: 8px; font-size: var(--step--1); color: var(--muted); }
  .compare td.us { background: var(--violet); color: var(--on-field); padding: 12px 14px 12px calc(6.5rem + 14px); border-radius: 12px; margin-bottom: 6px; }
  .compare td.us::before { left: 14px; top: 14px; }
  .compare td.us::before { color: var(--on-field-2); }
  .compare td.us b { color: var(--pink); font-size: 2.1rem; line-height: 0.9; }
  .guarantee { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Motion: one authored moment, the story advancing ---------- */
@media (prefers-reduced-motion: no-preference) {
  .story-bars i.now b { animation: fill 520ms var(--ease) both; }
  .story-wrap.turn .story .rc { animation: wipe 560ms var(--ease) both; }
  .story-wrap.turn .lt-num, .story-wrap.turn .lt-src > span { animation: cut 420ms var(--ease) both; }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes wipe { from { clip-path: inset(0 0 0 38% round 14px); filter: saturate(1.4) brightness(1.08); } to { clip-path: inset(0 0 0 0 round 14px); filter: none; } }
  @keyframes cut { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
