/* ---- tokens.css ---- */
/* GENERATED by scripts/brand_tokens.mjs (npm run brand) from app/brand/tokens.json via app/scripts/lib.cjs resolveBrand().
   Brand B "Love Letter", palette B_love_letter/palette.json. Do not edit; this is the only file with colour values.
   AA moves: outline #494E63 -> #847A84 (AA 3 on #1C2541, #29314B).
   Contrast: text on ground 13.85, text on card 11.77, text on raised 10, muted on ground 10.53, muted on card 8.95, muted on raised 7.6, fine on ground 7.16, fine on card 6.09, accent text on ground (kicker, wordmark) 6.24, accent text on card 5.3, accent text on raised 4.5, button text on amber (top) 7.1, button text on coral (bottom) 5.02, CC on: navy on accent text 6.24, error on ground 7.22, error on card 6.14, ok on ground 8.48, outline on ground (UI) 3.67, outline on card (UI) 3.12, skip link: navy on paper 13.85. */
@font-face { font-family: "Playfair Display"; src: url("/fonts/PlayfairDisplay-Italic-var.woff2") format("woff2"), url("/fonts/PlayfairDisplay-Italic-var.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/WorkSans-Regular-latin.woff2") format("woff2"), url("/fonts/WorkSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/WorkSans-Medium-latin.woff2") format("woff2"), url("/fonts/WorkSans-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/WorkSans-SemiBold-latin.woff2") format("woff2"), url("/fonts/WorkSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
/* metric fallbacks under our own names (never the Reserved Font Name) */
@font-face { font-family: "DF Display Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; size-adjust: 104%; ascent-override: 98%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "DF Text Fallback"; src: local("Arial"); size-adjust: 106%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
:root {
  --ink-0: #1C2541;
  --ink-1: #29314B;
  --ink-2: #353C54;
  --ink-3: #494E63;
  --page: #0F1424;
  --cream: #FBF4EC;
  --cream-2: #F6CFC4;
  --cream-3: #C9ACA9;
  --line: #847A84;
  --gold: #F28A76;
  --gold-2: #E5A646;
  --accent: #F06C55;
  --on-gold: #1C2541;
  --error: #F49D8B;
  --ok: #7FD49B;
  --line-soft: var(--ink-3);
  --btn-fill: linear-gradient(180deg, var(--gold-2), var(--accent));
  --btn-glow: 0 8px 24px color-mix(in srgb, var(--accent) 20%, transparent);
  --serif: "Playfair Display", "DF Display Fallback", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "DF Text Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display-style: italic;
  --display-weight: 600;
  color-scheme: dark;
}

/* ---- site.css ---- */
/* Dearfilm landing. Colour tokens live in css/tokens.css (one swap for the final palette); this file uses variables only.
   Tokens from team/WAITS_SPEC.md section 4 and team/ref_board.png (30 Nov 2026).
   Brand B "Love Letter" (final look, 30 Nov): navy ground, coral accent text, amber to coral main button with navy text,
   Playfair Display italic headlines, Work Sans for the rest. Contrast for every pair: npm run brand.
   No visible AI label pills on the landing (decision of 30 Nov); the line under each film is filmNote in site.json. */

/* fonts (Playfair Display italic, Work Sans) and the metric fallbacks are in the generated css/tokens.css */
:root {


  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: cubic-bezier(0.4, 0, 1, 1);
  --press-in: 90ms;
  --press-out: 160ms;

  --gutter: 16px;
  --kicker-tracking: 0.12em; /* one kicker tracking for the site; the app should use the same (UX_GATE_FINAL F3) */
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-0); }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--cream); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--cream); color: var(--ink-0); padding: 12px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
/* narrow content keeps the same left edge as the other sections */
.wrap--narrow > * { max-width: 720px; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif);
  font-size: clamp(30px, 8.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 44px); line-height: 1.12; margin-bottom: 16px; }
.h2 { font-family: var(--serif); font-size: clamp(26px, 5.4vw, 40px); line-height: 1.15; text-wrap: balance; }
.h3 { font-family: var(--sans); font-size: 17px; line-height: 1.35; font-weight: 600; }
/* every Playfair use is the italic cut (the only one we ship) */
.display, .h1, .h2, .film-title, .type .h3, .gift-quote p, .form.is-done .form-status, .prose h2 { font-style: var(--display-style); font-weight: var(--display-weight); }
.eyebrow {
  font-size: 13px; letter-spacing: var(--kicker-tracking); text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin: 0 0 12px;
}
.lede { font-size: 17px; color: var(--cream-2); max-width: 34em; margin: 14px 0 22px; }
.section-sub { color: var(--cream-2); margin: 10px 0 0; max-width: 40em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 16px;
  font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 0; -webkit-tap-highlight-color: transparent;
  transition: transform var(--press-out) var(--settle), background-color 200ms var(--settle);
}
.btn:active { transform: scale(0.97); transition-duration: var(--press-in); }
.btn-gold { background: var(--btn-fill); color: var(--on-gold); box-shadow: var(--btn-glow); }
.btn-gold:hover { background: linear-gradient(180deg, var(--gold-2), var(--gold-2) 10%, var(--accent)); }
.btn-gold:active { filter: brightness(0.94); }
.btn-gold[disabled], .btn-gold[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream-3); }
.btn-block { width: 100%; }

/* ---------- header and footer ---------- */
.site-header { position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.wordmark {
  font: 600 18px/1 var(--sans); text-decoration: none; color: var(--gold);
  display: inline-flex; align-items: center; min-height: 44px; padding-right: 8px;
}
.wordmark-mark { width: 20px; height: 20px; margin-right: 8px; flex: none; } /* heart mark: a little above the wordmark cap height */
.wordmark--footer { font-size: 16px; }
.wordmark--footer .wordmark-mark { width: 18px; height: 18px; }

.site-footer { border-top: 1px solid var(--line-soft); margin-top: 24px; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--cream-3); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; } /* rows 8 px apart (UX_GATE Fix 23) */
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 16px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 8px; margin-left: -8px; color: var(--cream-2); }
.footer-note, .footer-copy { margin: 0; }
@media (min-width: 768px) { .footer-copy { margin-left: auto; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section + .section { border-top: 1px solid var(--line-soft); }

/* ---------- hero ---------- */
.hero { padding: 4px 0 40px; }
.hero-grid { display: grid; gap: 24px; justify-items: start; }
.hero-copy { max-width: 560px; }
.hero .btn-gold { min-width: 220px; }
@media (max-width: 599px) { .hero .btn-gold { width: 100%; } } /* full width on phones, as in the app (F3) */
.hero-film { justify-self: center; width: 100%; min-width: 0; }
/* hero transcript, centered under the film (UX_GATE Fix 25) */
.hero-film .transcript { max-width: 420px; margin: 6px auto 0; }
.hero-film .transcript summary { justify-content: center; }
.film--hero .film-frame {
  /* phone: copy and film both fit above the fold (390x844 and 375x667) */
  height: clamp(380px, calc(100svh - 420px), 600px);
  width: auto; aspect-ratio: 9 / 16; margin: 0 auto;
}
@media (min-width: 900px) {
  .hero { padding: 24px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; }
  .film--hero .film-frame { height: clamp(460px, calc(100svh - 170px), 720px); }
  .lede { font-size: 19px; }
}

/* ---------- film frames ---------- */
.film { margin: 0; }
.film-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-1);
  box-shadow: 0 0 0 1px var(--line-soft), 0 24px 60px -24px color-mix(in srgb, var(--ink-0) 80%, transparent);
}
.film-video { width: 100%; height: 100%; object-fit: cover; background: var(--ink-1); }
.film-ui { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px; }
.film-pause { margin-left: auto; }
.film-ui[hidden] { display: none; }
.film-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; white-space: nowrap;
  border-radius: 999px; border: 0; cursor: pointer;
  background: color-mix(in srgb, var(--ink-0) 78%, transparent); color: var(--cream);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cream) 28%, transparent);
  font: 600 15px/1 var(--sans);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--press-out) var(--settle), background-color 200ms var(--settle);
}
.film-btn:active { transform: scale(0.97); transition-duration: var(--press-in); }
.film-btn:hover { background: color-mix(in srgb, var(--ink-2) 92%, transparent); }
.film-btn--icon { width: 44px; padding: 0; justify-content: center; }
/* the label carries the state (UX_GATE Fix 7): "Play with sound" with a speaker, "Mute" with a crossed speaker */
.film-sound .ico-off, .film-sound.is-sound .ico-on { display: none; }
.film-sound.is-sound .ico-off { display: inline-flex; }
.film-btn[hidden] { display: none; }
/* hero: while the loop is muted, a tap on the frame starts the film with sound; the chip says so (Fix 8) */
.film-chip { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px;
  border-radius: 999px; font: 600 14px/1 var(--sans); color: var(--cream); background: color-mix(in srgb, var(--ink-0) 78%, transparent); pointer-events: none; }
.film-chip[hidden] { display: none; }
.film--hero .film-video { cursor: pointer; }
.film--hero .film-frame { container-type: inline-size; }
@container (max-width: 239px) { .film-captions { bottom: 112px; } }
.film-pause .ico-play, .film-pause.is-paused .ico-pause { display: none; }
.film-pause.is-paused .ico-play { display: inline-flex; }
.film-btn svg { flex: none; }
/* no JavaScript: a plain link to the film, and the poster inside the frame (UX_GATE Fix 2) */
.film-nojs { margin: 10px 0 0; text-align: center; font-weight: 600; }
.film-nojs a { color: var(--gold); }
.film-nojs-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hero captions toggle: top right, clear of the bottom controls and of the captions themselves */
.film-cc { position: absolute; top: 8px; right: 8px; z-index: 2; font: 700 14px/1 var(--sans); letter-spacing: 0.04em; }
.film-cc[hidden] { display: none; }
.film-cc[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.film-cc[aria-pressed="true"]:hover { background: var(--gold-2); }
.film-captions { position: absolute; left: 12px; right: 12px; bottom: 64px; z-index: 2; text-align: center; white-space: pre-line; pointer-events: none; }
.film-captions[hidden] { display: none; }
.film-captions span {
  font: 600 15px/1.45 var(--sans); color: var(--cream); background: color-mix(in srgb, var(--ink-0) 78%, transparent);
  padding: 3px 8px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 900px) { .film-captions span { font-size: 17px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* example cards: play button centered at the bottom until playing */
.film-card .film-ui { justify-content: center; padding-bottom: 18px; }
/* while a card film plays: our Mute and Pause (and CC at the top right), no browser controls (Fix 10) */
.film-card .is-playing .film-ui { justify-content: space-between; padding-bottom: 8px; }

.film-cap { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.film--hero .film-cap { align-items: center; text-align: center; margin-top: 10px; }
.film-kind { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: 0.02em; }
.film-title { font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--cream); }
.film--hero .film-title { font-size: 16px; font-family: var(--sans); font-weight: 400; font-style: normal; color: var(--cream-2); }
.film--hero .film-cap { flex-direction: row; gap: 8px; flex-wrap: wrap; justify-content: center; }
.film-line { font-size: 13px; color: var(--cream-2); } /* 10.45:1 on ink0 */
.film--hero .film-line { flex-basis: 100%; }

/* ---------- example row ---------- */
.film-row {
  list-style: none; margin: 28px 0 0; padding: 0 var(--gutter) 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-soft) transparent;
}
.wrap--bleed { padding: 0; max-width: 1160px; }
.film-card { scroll-snap-align: start; min-width: 0; }
@media (min-width: 900px) {
  .film-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; grid-auto-columns: auto; overflow: visible; gap: 28px; padding: 0 var(--gutter); }
}
/* two cards side by side with no sideways scroll between 600 and 899 px (Fix 12) */
@media (min-width: 600px) and (max-width: 899px) {
  .film-row { grid-auto-columns: calc((100% - 16px) / 2); }
}
.transcript { margin-top: 10px; font-size: 14px; color: var(--cream-2); }
.transcript summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--cream-2); font-weight: 600; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: "+"; margin-left: 8px; color: var(--gold); font-weight: 600; }
.transcript[open] summary::after { content: "\2212"; }
.transcript p { margin: 0 0 8px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.step { background: var(--ink-1); border-radius: var(--radius); padding: 20px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.step p { margin: 6px 0 0; color: var(--cream-2); }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font: 600 15px/1 var(--sans); color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold);
  margin-bottom: 14px;
}

/* ---------- story types ---------- */
.types { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .types { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.type { background: var(--ink-1); border-radius: var(--radius-sm); padding: 16px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.type--more { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.type .h3 { font-family: var(--serif); font-size: 19px; }
.type p { margin: 6px 0 0; font-size: 14px; color: var(--cream-2); line-height: 1.45; }

/* ---------- gift ---------- */
.gift { display: grid; gap: 28px; align-items: center; }
.gift-copy p { color: var(--cream-2); max-width: 36em; }
.gift-copy .h2 { margin-bottom: 16px; }
.gift-quote {
  margin: 0; padding: 28px 24px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--gold) 14%, var(--ink-1)) 0%, var(--ink-1) 60%);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.gift-quote p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 5vw, 34px); line-height: 1.2; color: var(--cream); }
@media (min-width: 900px) { .gift { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 24px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; min-height: 56px; padding: 14px 40px 14px 0; position: relative;
  font-weight: 600; font-size: 17px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 22px; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--cream-2); margin: 0 0 18px; max-width: 40em; }

/* ---------- forms ---------- */
.section--join { background: linear-gradient(180deg, var(--ink-0), var(--ink-1)); }
.form { margin-top: 24px; display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  background: var(--ink-0); color: var(--cream); border: 1.5px solid var(--line);
  font: 400 17px/1.4 var(--sans);
  transition: border-color 200ms var(--settle);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-3); opacity: 1; }
.field select {
  width: 100%; min-height: 52px; padding: 12px 40px 12px 14px; border-radius: 12px; appearance: none; -webkit-appearance: none;
  background: var(--ink-0) no-repeat; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  color: var(--cream); border: 1.5px solid var(--line); font: 400 17px/1.4 var(--sans);
}
.field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.optional { font-weight: 400; color: var(--cream-3); }
.report-fields { margin: 0; padding: 16px; border: 1.5px solid var(--line-soft); border-radius: 14px; display: grid; gap: 16px; min-width: 0; }
.report-fields[hidden] { display: none; }
.report-fields legend { padding: 0 6px; font-weight: 600; }
.js .report-fields legend .optional { display: none; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
/* keyboard focus: the house cream ring on top of the gold border (UX_GATE Fix 16) */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.field-error { margin: 0; color: var(--error); font-size: 14px; }
.field-error[hidden] { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input {
  flex: none; width: 24px; height: 24px; margin: 10px 0 10px 10px; accent-color: var(--gold); cursor: pointer;
}
.check label { padding: 9px 0; color: var(--cream-2); cursor: pointer; }
.check label a { display: inline-block; padding: 10px 2px; margin: -10px 0; color: var(--cream); }
.fine { color: var(--cream-3); font-size: 14px; margin: 0; }
.fine a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.form.is-done .field, .form.is-done .check, .form.is-done .btn, .form.is-done .fine, .form.is-done .report-fields { display: none; }
/* after joining: hide the intro, offer a next step (UX_GATE Fix 17) */
.section--join:has(.form.is-done) .section-sub { display: none; }
.form-next { margin: 0; }
.form-next a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 600; }
.form.is-done .form-status { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--cream); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pages ---------- */
.page { padding-top: 24px; }
.prose { color: var(--cream-2); }
.prose h1 { color: var(--cream); }
.prose h2 { font-family: var(--serif); font-size: 24px; color: var(--cream); margin: 32px 0 10px; }
.prose h3 { font-size: 17px; color: var(--cream); margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose a { color: var(--cream); padding: 12px 0; } /* inline: taller hit area, no layout change */
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.placeholder { padding: 16px; border-radius: 12px; background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line); color: var(--cream); }
.contact-cta { margin: 20px 0 28px; display: grid; gap: 10px; justify-items: start; }
.contact-cta .btn { min-width: 200px; text-decoration: none; }
.prose .contact-cta .btn { padding: 0 28px; }
.prose .contact-cta .btn-gold { color: var(--on-gold); }
.contact-cta .contact-email { margin: 0; font-size: 15px; }
.contact-box { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.contact-email { color: var(--cream-2); }
.contact-email a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.notice .btn { margin-top: 12px; }
.notice-still { width: 200px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; box-shadow: 0 0 0 1px var(--line-soft); }
.notice-alt { margin: 16px 0 0; }
.notice-alt a { display: inline-flex; align-items: center; min-height: 44px; }
#report { scroll-margin-top: 24px; } /* UX_GATE Fix 20 */

/* ---------- arrival: settle in once, no loops ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--settle), transform 900ms var(--settle); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 200ms !important; animation: none !important; }
  .btn:active, .film-btn:active { transform: none; }
}

/* ---------- B-roll strip: wide silent scenes, background only ---------- */
.section--broll .h2 { margin-bottom: 20px; }
/* the strip's Pause / Play toggle (WCAG 2.2.2): small and quiet, on the heading's line */
.broll-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.broll-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; margin-top: 2px;
  border: 0; border-radius: 999px; background: transparent; color: var(--cream-2); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font: 600 14px/1 var(--sans);
}
.scene-note { margin: -8px 0 16px; font-size: 14px; color: var(--cream-2); } /* "Example scenes." under the strip and featured headings */
.broll-toggle:hover { color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream-3); }
.broll-toggle[hidden] { display: none; }
.broll-ico { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.broll-toggle.is-paused .broll-ico { border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; width: 0; height: 0; }
/* 3 rows x 3 scenes (owner request, 1 Dec 2026); each row swipes sideways on phones */
.broll { margin: 0 auto; padding: 0 var(--gutter); max-width: 1160px; display: grid; gap: 12px; }
.broll-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.broll-item { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--ink-1); }
.broll-video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
@media (max-width: 719px) {
  .broll { padding: 0; }
  .broll-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .broll-row::-webkit-scrollbar { display: none; }
  .broll-item { scroll-snap-align: start; }
}

/* ---------- cookie banner (consent.js): Accept and Decline look the same ---------- */
/* In the page flow at every size (UX_GATE Fix 1b): after the skip link on phones and tablets, under "Get early access"
   from 1024 px, just above the footer when Cookie settings reopens it. Part of the first paint (Fix 29): hidden until
   js/consent-flag.js sets html.consent-ask in the head. Covers nothing, so no focused control is ever hidden. */
.cookie-banner { display: none; padding: 12px var(--gutter) 0; }
html.consent-ask .cookie-banner--top, .cookie-banner--settings { display: block; }
.cookie-banner--settings { padding: 24px var(--gutter); }
.cookie-banner--settings .cookie-inner { max-width: 720px; margin: 0 auto; }
.cookie-inner {
  max-width: none; margin: 0; padding: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--radius);
}
.cookie-text { margin: 0; flex: 1 1 260px; color: var(--cream); font-size: 15px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
/* the separate Ads box (off by default), its label is the 44 px target */
.cookie-ads { flex: 1 1 100%; order: 1; display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; color: var(--cream-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.cookie-ads input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.cookie-actions { order: 2; }
.cookie-btn { min-height: 44px; min-width: 112px; padding: 0 18px; font-size: 16px; }
@media (max-width: 480px) { .cookie-actions { flex: 1 1 100%; } .cookie-btn { flex: 1 1 0; } }
@media (min-width: 1024px) {
  html.consent-ask .cookie-banner--top { display: none; }
  html.consent-ask .hero-copy > .cookie-banner--hero { display: block; }
  .hero-copy > .cookie-banner { padding: 0; margin-top: 28px; max-width: 460px; }
}
.footer-cookie {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px;
  background: none; border: 0; color: var(--cream-2); font: inherit; text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 3px; cursor: pointer;
}
.footer-cookie:hover { text-decoration-color: var(--gold); }
.footer-cookie[hidden] { display: none; }
.cookie-now { display: block; margin-top: 6px; color: var(--cream-2); font-size: 14px; }

/* mail links: a 44 px hit area (UX_GATE Fix 19) */
a[href^="mailto:"] { padding-block: 12px; }
/* inline mail links in legal text: a full 44 px box without moving the lines around them (L35) */
.prose p a[href^="mailto:"], .prose li a[href^="mailto:"] { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ---- featured.css ---- */
/* ---------- "One life, in twelve scenes" (Web B: featured.css, featured.js, src/partials/featured.html) ----------
   Tall 9:16 cards for tall 9:16 clips: the still is the clip's first frame and the clip sits in the same box, so
   nothing changes shape when it plays. No blurred side panels, no scaling on hover.
   Phones (up to 719 px): a sideways list, the next card peeks in, snap per card.
   720 px and up: a grid, 4 across, 6 across from 1100 px. */
.section--featured .h2 { margin-bottom: 20px; }
.featured {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1160px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 14px;
}
@media (min-width: 1100px) { .featured { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; } }
.feat { margin: 0; min-width: 0; }
.feat-media {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--ink-1); box-shadow: 0 0 0 1px var(--line-soft);
}
.feat-media img, .feat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* only opacity moves: same box, same crop, so the picture never changes shape */
.feat-video { opacity: 0; transition: opacity 300ms var(--settle); pointer-events: none; }
.feat-video.is-on { opacity: 1; }
.feat-line { margin: 10px 2px 0; font-size: 15px; line-height: 1.4; color: var(--cream-2); }
.feat-n { color: var(--gold); font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }
.feat[tabindex]:focus-visible { outline: none; }
.feat[tabindex]:focus-visible .feat-media { box-shadow: 0 0 0 2px var(--cream); }

@media (max-width: 719px) {
  .featured {
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: min(62vw, 280px); /* about 1.5 cards at 375 px: the next card peeks in, sharp, no blur */
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding-bottom: 8px; scrollbar-width: none;
  }
  .featured::-webkit-scrollbar { display: none; }
  .featured:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
  .feat { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .feat-video { display: none; } /* stills only */
}

/* ---- product.css ---- */
/* Product sections (Web D, 1 Dec 2026): examples note, gift steps, pricing card, trust, FAQ extras.
   Loaded after site.css on the home page only. Colours come from css/tokens.css variables (no colour values here),
   so the AA pairs are the ones npm run brand prints: cream on ink-0 13.85, cream-2 on ink-1 8.95, cream-3 on ink-1 4.61,
   gold (coral kicker) on ink-1 5.3, navy on the amber to coral button 5.02 at its darkest. Classes start with pd-. */

/* ---------- examples: the fictional-family note ---------- */
.pd-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 8px 14px 8px 12px;
  border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--cream-2);
  background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.pd-note-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- gift: a link to the yes answer in the FAQ (product.js opens it) ---------- */
.pd-gift-link { margin: 4px 0 0; }
.pd-gift-link a { display: inline-block; padding: 11px 0; font-weight: 600; color: var(--cream); }
.pd-gift-link a::after { content: "\00a0\2192"; color: var(--gold); }

/* ---------- pricing card ---------- */
.pd-pricing-grid { display: grid; gap: 28px; align-items: start; }
.pd-pricing-copy .section-sub { max-width: 30em; }
.pd-card {
  position: relative; display: grid; gap: 0; padding: 24px 20px 22px; border-radius: 20px;
  background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--line-soft), 0 24px 60px -32px color-mix(in srgb, var(--page) 90%, transparent);
  overflow: hidden; max-width: 520px; width: 100%;
}
/* a thin amber to coral line on top, the button's own fill: no new colour */
.pd-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--btn-fill); }
.pd-card-head { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.pd-plan { font: var(--display-style) var(--display-weight) 26px/1.2 var(--serif); color: var(--cream); margin: 4px 0 10px; }
.pd-price { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pd-amount { font: var(--display-style) var(--display-weight) 48px/1 var(--serif); color: var(--cream); font-variant-numeric: lining-nums; }
.pd-unit { font-size: 15px; color: var(--cream-2); }
.pd-pending { font: var(--display-style) 500 21px/1.3 var(--serif); color: var(--cream-2); }
.pd-terms { margin: 0; font-size: 15px; color: var(--cream-2); }
.pd-fine { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--cream-3); }
.pd-list-title {
  margin: 18px 0 10px; font-size: 13px; letter-spacing: var(--kicker-tracking, 0.12em); text-transform: uppercase; font-weight: 600; color: var(--gold);
}
.pd-includes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.pd-includes li { text-wrap: pretty; display: flex; gap: 12px; align-items: flex-start; color: var(--cream); font-size: 16px; line-height: 1.45; }
.pd-tick { flex: none; margin-top: 2px; color: var(--gold); }
.pd-cta { margin-top: 2px; }
.pd-cta-note { margin-top: 12px; text-align: center; }
@media (min-width: 640px) { .pd-card { padding: 32px 32px 28px; } }
@media (min-width: 900px) {
  .pd-pricing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
  .pd-card { justify-self: end; }
}

/* ---------- trust ---------- */
.pd-trust-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0 28px; }
.pd-trust-item { padding: 18px 0 20px; border-top: 1px solid var(--line-soft); }
.pd-trust-item .h3 { color: var(--cream); padding-left: 18px; position: relative; }
.pd-trust-item .h3::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.pd-trust-item p { margin: 6px 0 0 18px; color: var(--cream-2); max-width: 34em; }
@media (min-width: 640px) { .pd-trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pd-trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; } }

/* ---------- FAQ extras ---------- */
.pd-faq .faq summary { scroll-margin-top: 24px; }
.pd-faq .faq details:target summary { color: var(--gold); }
.pd-faq-more { margin: 24px 0 0; color: var(--cream-2); }
.pd-faq-more a { color: var(--cream); display: inline-block; padding-block: 12px; margin-block: -12px; }
