/* Public landing page — the "Organic" system (claude.ai/design project
   "Off-On Duty Landing Redesign", approved 2026-07; ported 2026-07-30).
   Warm paper ground, Caprasimo display voice, terracotta + sage accents,
   and a hand-filled register form as the hero's proof.

   Scoping: this sheet loads ONLY on landing.html, after style.css, so its
   plain body/main/token selectors restyle just this page. The :root tokens
   below deliberately shadow style.css names (--color-bg, --space-*,
   --radius-*): shared chrome that still renders here (flash messages) picks
   up the Organic values instead of the app theme's, which is what we want —
   the landing is the one brand-register surface (see PRODUCT.md). */

/* — self-hosted fonts (no Google Fonts round trip on facility data; same
     convention as source-serif-4 in style.css). Figtree and Caveat are
     variable fonts, one file per family. — */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/caprasimo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* — Organic design-system tokens (from the project's styles.css; tonal ramps
     generated in OKLCH on one shared lightness scale). — */
:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: 'Caprasimo', system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: 'Figtree', system-ui, sans-serif;

  --space-1: 4.4px;
  --space-2: 8.8px;
  --space-3: 13.2px;
  --space-4: 17.6px;
  --space-6: 26.4px;
  --space-8: 35.2px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  /* style.css paints keyboard-focus rings from this token; retune it to the
     Organic accent so the ring matches the page, mechanism unchanged. */
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-accent) 55%, transparent);
}

/* The landing owns the full viewport width; the design's .wrap centres its
   own content. (Same escape hatch the previous landing used.) */
main:has(.landing) {
  max-width: none;
  padding: 0;
}

/* — Organic base: ground, type voice, selection (over style.css's app look) — */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-3); }
a { text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — Organic buttons (full property coverage: style.css's .btn is a 100%-wide
     52px app button and every difference must be overridden here) — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 44px; /* thumb-sized targets (accessibility fix, 2026-07-30) */
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 999px;
}
.btn svg { display: block; }
/* One ramp step deeper than the system default: cream on accent-700 is 5.7:1
   (WCAG AA for the 14px label); on the raw accent it was only ≈3:1.
   Authorized deviation from the design — see docs/decisions/001. */
.btn-primary { background: var(--color-accent-700); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-800); }
.btn-primary:active { background: var(--color-accent-900); }
.btn-ghost { color: var(--color-accent-700); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }

/* — Organic masthead base (the page block below adds the landing's layout) — */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
}
.nav-brand {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 18px;
  margin-right: auto;
  color: var(--color-text);
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent); }
/* Invisible ~44px hit area for the masthead text links — padding grows the
   target, the negative margin keeps the design's metrics untouched. */
.nav > a, .nav .signin-link { padding-block: 12px; margin-block: -12px; }

/* ═══════════════════════════════════════════════════════════════════════
   Page styles — ported verbatim from the design project's index.html
   (adaptations: server-side language pill, FAQ heading margin moved here).
   ═══════════════════════════════════════════════════════════════════════ */
/* Off-On Duty landing on the Organic system. All color, type, radius and
   shadow from the design system's styles.css tokens; this block is page
   layout + the grid-assembly motion only.
   Rhythm: 28px leading, 14px half-step. Display headers break per sentence.
   Soft circles do the structural work; whitespace parts sections — no rules. */
:root {
  --leading: 28px;
  --half: 14px;
  --edge: clamp(20px, 5vw, 72px);
  --measure: 58ch;
  /* shift-cell vocabulary — from the ramps, annotated per ground */
  --am-bg: var(--color-accent-100);   --am-ink: var(--color-accent-800);
  --pm-bg: var(--color-accent-2-200); --pm-ink: var(--color-accent-2-900);
  --full-bg: var(--color-accent-300); --full-ink: var(--color-accent-900);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; text-wrap: pretty; overflow-x: clip; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

/* — nav: the system's masthead, with the language pill and the one action — */
.nav { padding-inline: max(var(--edge), calc((100% - 1200px) / 2 + var(--edge))); }
.nav a { white-space: nowrap; }
.nav .nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.nav .nav-brand svg { color: var(--color-accent); flex-shrink: 0; }
.nav-cta { display: inline-flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.lang-pill { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--color-neutral-100); }
.lang-pill a, .lang-pill .lang-current { display: inline-flex; align-items: center;
  border-radius: 999px; min-height: 38px; padding: 0 14px;
  font: 600 13px/1 var(--font-body); text-decoration: none;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.lang-pill a:hover { color: var(--color-text); }
.lang-pill .lang-current { background: var(--color-bg);
  color: var(--color-accent-700); box-shadow: var(--shadow-sm); }
@media (max-width: 720px) { .nav > a, .nav .signin-link { display: none; } }

/* — kicker (terracotta's deep step: 5.7:1 on the cream) — */
.kicker { display: block; font-size: 13px; line-height: var(--half);
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  color: var(--color-accent-700); margin: 0 0 calc(var(--leading) - var(--half)); }

/* — hero: promise left, the roster proving itself right; a sage circle
     rises past the top-right edge behind everything — */
.hero { position: relative; padding: calc(3 * var(--leading)) 0 calc(2 * var(--leading)); }
.hero::before { content: ""; position: absolute; right: -160px; top: -240px;
  width: 460px; height: 460px; border-radius: 50%;
  background: var(--color-accent-2-200); pointer-events: none; z-index: -1; }
@media (max-width: 1420px) { .hero::before { right: -60px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--leading) clamp(24px, 4.5vw, 80px); align-items: center; }
.display { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.08; letter-spacing: 0;
  margin: 0; margin-left: -0.028em; text-box: trim-both cap alphabetic; }
.display .line { display: block; }
.hero .sub { font-size: 17px; line-height: var(--leading); max-width: 48ch;
  margin: calc(1.5 * var(--leading) - 1cap) 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  text-box: trim-both cap alphabetic; }
.hero .row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center;
  margin-top: var(--leading); }
.hero .nocard { display: flex; align-items: center; gap: 8px; font-size: 14px;
  line-height: var(--half); margin: var(--leading) 0 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.hero .nocard svg { color: var(--color-accent-2-700); flex-shrink: 0; }

/* — the proof composition: the finished week in front, the retired paper
     register tucked behind it — */
.proof-stage { position: relative; display: flex; justify-content: center;
  padding-block: var(--leading); }
.paper { position: absolute; z-index: 0; width: min(360px, 82%); aspect-ratio: 4 / 3;
  top: -4%; right: -2%; transform: rotate(6deg); border-radius: var(--radius-md);
  background: repeating-linear-gradient(to bottom, transparent 0 30px,
    color-mix(in srgb, var(--color-text) 12%, transparent) 30px 31px),
    var(--color-neutral-100);
  box-shadow: var(--shadow-md); opacity: 0.8; }
.paper span { position: absolute; left: 9%; height: 7px; border-radius: 4px;
  background: color-mix(in srgb, var(--color-text) 20%, transparent); }
.paper .l1 { top: 13%; width: 38%; } .paper .l2 { top: 29%; width: 55%; }
.paper .l3 { top: 45%; width: 46%; } .paper .l4 { top: 61%; width: 58%; }
.paper .l5 { top: 77%; width: 32%; }
.paper .red { height: 12px; width: 28%; top: 42%; left: 52%; background: none;
  border-bottom: 3px solid color-mix(in srgb, var(--color-accent-600) 70%, transparent);
  border-radius: 50% 40% 55% 45% / 90% 80% 100% 70%; transform: rotate(-4deg); }
/* — the proof: a neat, hand-filled off-duty roster form on ruled paper — */
.proof { position: relative; z-index: 1; width: min(520px, 100%); margin: 0;
  --ink: #2b2621; --ink-muted: color-mix(in srgb, #2b2621 52%, transparent);
  --ink-line: color-mix(in srgb, #2b2621 42%, transparent);
  --ink-faint: color-mix(in srgb, #2b2621 15%, transparent);
  --pen: #223247; --pen-red: var(--color-accent-700);
  background: #fcf6ea; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: clamp(18px, 2.6vw, 26px);
  transform: rotate(-1.2deg);
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent); }
.proof::before { content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(#0000 0 26px, var(--ink-faint) 26px 27px); }
.proof > * { position: relative; }

.form-head { display: flex; align-items: flex-start; gap: var(--space-2);
  padding-bottom: 7px; margin-bottom: 9px; border-bottom: 2px solid var(--ink-line); }
.form-org { display: block; font: 700 9px/1.3 var(--font-body); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-muted); }
.form-title { font: 800 17px/1.05 var(--font-body); color: var(--ink); margin: 2px 0 0;
  letter-spacing: -0.01em; }
.form-no { margin-left: auto; align-self: center; font: 700 8.5px/1.3 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid var(--ink-line); border-radius: 5px; padding: 4px 8px; white-space: nowrap; }

.form-fields { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-bottom: 11px; }
.ff { display: inline-flex; align-items: baseline; gap: 6px;
  font: 700 8.5px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); }
.ff i { font-style: normal; font-family: 'Caveat', cursive; font-weight: 600;
  font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--pen);
  border-bottom: 1px dotted var(--ink-line); padding: 0 5px 1px; min-width: 52px; text-align: center; }

.mr { display: grid; grid-template-columns: minmax(3.4rem, 4.6rem) repeat(7, 1fr);
  gap: 0; background: #fcf6ea; border: 1.5px solid var(--ink-line);
  border-radius: 6px; overflow: hidden; }
.mr > * { border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); }
.mr > *:nth-child(8n) { border-right: 0; }
.mr > *:nth-last-child(-n+8) { border-bottom: 0; }
.mr > span:first-child { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mr-day { text-align: center; font: 700 9.5px/1 var(--font-body); letter-spacing: 0.04em;
  text-transform: uppercase; padding: 6px 0; color: var(--ink-muted);
  background: color-mix(in srgb, var(--ink) 8%, transparent); }
.mr-day.wknd { color: var(--pen-red); }
.mr-name { font-family: 'Caveat', cursive; font-weight: 600; font-size: 15.5px;
  color: var(--pen); align-self: center; padding: 3px 9px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transform: rotate(-0.6deg); }
.mr .mr-cell { display: flex; align-items: center; justify-content: center;
  min-height: 31px; min-width: 0; border-radius: 0; background: transparent;
  font-family: 'Caveat', cursive; font-weight: 600; font-size: 15px; color: var(--pen); }
.mr .mr-cell.c-off { color: var(--ink-muted); font-size: 13px; }
.mr .mr-cell.c-full { text-decoration: underline; text-decoration-color: var(--pen-red);
  text-underline-offset: 2px; }
.mr .mr-cell:nth-child(3n) { transform: rotate(-2.5deg); }
.mr .mr-cell:nth-child(4n) { transform: rotate(2deg); }

.form-foot { display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-3); margin-top: 11px; padding-top: 8px; border-top: 2px solid var(--ink-line); }
.form-check { display: flex; align-items: flex-start; gap: 6px; max-width: 27ch;
  font: 600 9px/1.35 var(--font-body); letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-muted); }
.form-check svg { flex-shrink: 0; margin-top: 1px; color: var(--color-accent-2-700); }
.form-sign { text-align: center; flex-shrink: 0; }
.form-sign .sig { display: block; font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 22px; line-height: 1; color: var(--pen); transform: rotate(-3.5deg); }
.form-sign .sig-label { display: block; margin-top: 5px; padding-top: 4px;
  border-top: 1px solid var(--ink-line); font: 700 8px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }

.form-stamp { position: absolute; right: 16px; bottom: 52px; width: 100px; height: 100px;
  transform: rotate(-14deg); opacity: 0.8; pointer-events: none; z-index: 4;
  color: var(--color-accent-600); mix-blend-mode: multiply;
  display: grid; place-content: center; text-align: center; }
.form-stamp::before { content: ""; position: absolute; inset: 0; border: 3px solid currentColor; border-radius: 50%; }
.form-stamp::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.form-stamp span { display: block; font: 800 9px/1.2 var(--font-body); letter-spacing: 0.06em;
  text-transform: uppercase; color: currentColor; }
.form-stamp .big { font-size: 13px; letter-spacing: 0.1em; margin: 2px 0; }

/* shared shift-chip colors — still used by the rules-section demonstrations */
.c-am   { background: var(--am-bg);   color: var(--am-ink); }
.c-pm   { background: var(--pm-bg);   color: var(--pm-ink); }
.c-full { background: var(--full-bg); color: var(--full-ink); }
.c-off  { background: transparent; border: 1.5px dashed var(--color-neutral-300);
  color: color-mix(in srgb, var(--color-text) 55%, transparent); font-weight: 600; }

/* — facts strip: quiet, true, each led by a small icon — */
.facts { display: flex; flex-wrap: wrap; gap: var(--half) clamp(20px, 3vw, 40px);
  padding: calc(1.5 * var(--leading)) 0 calc(2 * var(--leading));
  font-size: 14px; font-weight: 600; line-height: var(--half);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.facts span { display: inline-flex; align-items: center; gap: 9px; }
.facts svg { flex-shrink: 0; color: var(--color-accent); }

/* — how it works: three planted circles with Caprasimo numerals — */
.how { padding: calc(2 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.h2 { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; margin: 0;
  margin-left: -0.028em; text-box: trim-both cap alphabetic; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--leading) clamp(20px, 3.5vw, 56px); margin-top: calc(1.5 * var(--leading));
  list-style: none; padding: 0; }
.how-num { display: grid; place-content: center; width: 84px; height: 84px;
  border-radius: 50%; font-family: var(--font-heading);
  font-weight: var(--font-heading-weight); font-size: 34px; }
.how-steps li:nth-child(1) .how-num { background: var(--color-accent-100); color: var(--color-accent-700); }
.how-steps li:nth-child(2) .how-num { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.how-steps li:nth-child(3) .how-num { background: var(--color-accent-200); color: var(--color-accent-800); }
.how-steps li:nth-child(2) { transform: translateY(var(--half)); }
@media (max-width: 880px) { .how-steps { grid-template-columns: 1fr; }
  .how-steps li:nth-child(2) { transform: none; } }
.how-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 24px; line-height: var(--leading); margin: var(--leading) 0 0;
  text-box: trim-both cap alphabetic; }
/* — a small icon badge tucked at the number circle's corner — */
.how-ico { position: absolute; left: 58px; top: 54px; width: 42px; height: 42px;
  display: grid; place-content: center; border-radius: 50%; z-index: 3;
  background: var(--color-bg); box-shadow: var(--shadow-sm); }
.how-steps li:nth-child(1) .how-ico { color: var(--color-accent-700); }
.how-steps li:nth-child(2) .how-ico { color: var(--color-accent-2-800);
  top: calc(54px + var(--half)); }
.how-steps li:nth-child(3) .how-ico { color: var(--color-accent-800); }
@media (max-width: 880px) { .how-steps li:nth-child(2) .how-ico { top: 54px; } }
.how-copy { font-size: 15.5px; line-height: var(--leading); max-width: 38ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: var(--half) 0 0; }

/* — the rules ledger: each guarantee beside a small demonstration in the
     roster's own cell vocabulary; whitespace parts the rows — */
.rules { padding: calc(2 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.rules-intro { font-size: 17px; line-height: var(--leading); max-width: 52ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
  margin: calc(var(--leading) - 1cap) 0 0; }
.rule { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--half) clamp(24px, 4vw, 72px); align-items: center;
  padding: calc(1.25 * var(--leading)) 0; }
.rule + .rule { margin-top: var(--half); }
.rule-title { position: relative; font-family: var(--font-heading);
  font-weight: var(--font-heading-weight); font-size: 26px; line-height: var(--leading);
  margin: 0; text-box: trim-both cap alphabetic; }
.rule-title::before { content: ""; position: absolute; left: -36px;
  top: calc(0.5cap - 9px); width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-accent); }
@media (max-width: 1280px) { .rule-title::before { display: none; } }
.rule-copy { font-size: 15.5px; line-height: var(--leading); max-width: 48ch;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); margin: var(--half) 0 0; }
.rule-viz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  justify-content: flex-end; }
@media (max-width: 880px) { .rule { grid-template-columns: 1fr; }
  .rule-viz { justify-content: flex-start; } }
.rv { display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 46px; min-height: 40px; padding: 5px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.rv b { font-size: 10px; font-weight: 700; opacity: 0.66; text-transform: uppercase; }
.rv-rest { background: transparent; border: 1.5px dashed var(--color-neutral-300);
  color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.rv-rn { background: var(--color-accent-2-200); color: var(--color-accent-2-900); min-width: 42px; }
.rv-rn b { color: var(--color-accent-2-800); opacity: 1; }
.rv-sun { background: var(--color-bg); border: 1px solid var(--color-neutral-300);
  color: var(--color-text); }
.rv-sun b { color: var(--color-accent-700); opacity: 1; }
.rv-pair { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px;
  border: 2px solid var(--color-accent); }
.rv-flag { display: inline-flex; align-items: center; padding: 12px 20px;
  border-radius: 999px; background: var(--color-accent-100);
  color: var(--color-accent-800); font-size: 14px; font-weight: 700; }

/* — credibility: the real builder in a washed, over-rounded frame — */
.cred { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--leading) clamp(24px, 5vw, 96px); align-items: center;
  padding: calc(2 * var(--leading)) 0 calc(2.5 * var(--leading)); }
.cred-figure { margin: 0; width: min(440px, 100%); aspect-ratio: 1 / 1;
  border-radius: calc(2 * var(--radius-lg)); overflow: hidden;
  background: var(--color-accent-2-100);
  display: grid; place-content: center; box-sizing: border-box;
  padding: clamp(28px, 5vw, 56px); perspective: 800px; }
.cred-figure svg { width: 100%; height: auto; max-width: 300px; display: block;
  color: var(--color-accent-700); }
.cred-credit { font-size: 12px; line-height: var(--half); margin: var(--half) 0 0;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.cred-copy .body { font-size: 16px; line-height: var(--leading); max-width: 56ch;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
  margin: calc(var(--leading) - 1cap) 0 0; }
.builtby { display: flex; align-items: center; gap: var(--space-3);
  margin-top: calc(1.5 * var(--leading)); font-weight: 700; font-size: 16px; }
.builtby::before { content: ""; width: 26px; height: 3px; border-radius: 2px;
  flex-shrink: 0; background: var(--color-accent); }
@media (max-width: 880px) { .cred { grid-template-columns: 1fr; }
  .cred-figure { order: -1; } }

/* — FAQ: native details, generous targets, soft marks — */
.faq { padding: calc(2 * var(--leading)) 0 calc(2.5 * var(--leading)); max-width: 760px; }
.faq .h2 { margin-bottom: var(--leading); }
.faq-item { border-top: 1px solid var(--color-neutral-200); }
.faq-item:last-of-type { border-bottom: 1px solid var(--color-neutral-200); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 44px; padding-block: calc(0.75 * var(--leading));
  cursor: pointer; list-style: none; font-weight: 700; font-size: 17px;
  color: var(--color-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-accent-700); }
.faq-mark { position: relative; flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--color-accent-100); }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; inset: 0;
  margin: auto; background: var(--color-accent-700); border-radius: 2px;
  transition: transform 0.18s ease-out; }
.faq-mark::before { width: 12px; height: 2.5px; }
.faq-mark::after { width: 2.5px; height: 12px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); }
.faq-item p { margin: 0; padding: 0 0 var(--leading); max-width: 58ch;
  font-size: 15.5px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* — the close: one sage patch, over-rounded — */
.close { padding: calc(1.5 * var(--leading)) 0 calc(2 * var(--leading)); }
.patch { background: var(--color-accent-2-100); border-radius: calc(2 * var(--radius-lg));
  padding: calc(2.5 * var(--leading)) clamp(24px, 5vw, 72px); text-align: center; }
.patch .h2 { margin-left: 0; }
.patch .sub { font-size: 15.5px; line-height: var(--leading); max-width: 46ch;
  margin: var(--leading) auto 0; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.patch .btn { margin-top: var(--leading); }
footer { display: flex; flex-wrap: wrap; gap: var(--half) var(--space-4);
  justify-content: space-between; padding: calc(1.5 * var(--leading)) 0 calc(2 * var(--leading));
  font-size: 13px; line-height: var(--leading);
  color: color-mix(in srgb, var(--color-text) 70%, transparent); }
footer p { margin: 0; }
footer nav { display: flex; gap: var(--space-4); }
footer a { color: color-mix(in srgb, var(--color-text) 70%, transparent); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .proof-stage { justify-content: flex-start; }
  .proof { transform: none; }
}

/* — motion: the roster assembles cell by cell, the verdict lands last;
     the hero copy rises once — */
@media (prefers-reduced-motion: no-preference) {
  .hero-panel > * { animation: rise 0.7s ease-out backwards; }
  .hero-panel .kicker { animation-delay: 0.02s; }
  .hero-panel .display { animation-delay: 0.06s; }
  .hero-panel .sub { animation-delay: 0.13s; }
  .hero-panel .row { animation-delay: 0.2s; }
  .hero-panel .nocard { animation-delay: 0.27s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); } }
  .proof { animation: proof-in 0.7s 0.25s ease-out backwards; }
  @keyframes proof-in { from { opacity: 0; transform: rotate(-1.2deg) translateY(18px); }
    to { opacity: 1; transform: rotate(-1.2deg) translateY(0); } }
  .mr-cell { animation: cell-in 0.32s ease-out backwards;
    animation-delay: calc(0.7s + var(--d, 0) * 0.03s); }
  @keyframes cell-in { from { opacity: 0; transform: translateY(5px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); } }
  .form-stamp { animation: stamp-in 0.35s 1.9s ease-out backwards; }
  @keyframes stamp-in { from { opacity: 0; transform: rotate(-14deg) scale(1.7); }
    to { opacity: 0.8; transform: rotate(-14deg) scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .proof { transform: rotate(-1.2deg); } }

/* ————————————————————————————————————————————————————————————————
   HUMAN TOUCHES — a designer's hand over the machined layout: a washed
   paper grain, loose botanical line-drawings set back in the page, ink
   marks that draw themselves in, and a few things that quietly breathe.
   Everything here is decoration: pointer-events:none, and all motion is
   gated behind prefers-reduced-motion. ———————————————————————————————— */

body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  mix-blend-mode: multiply; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.how, .rules, .close, .features, .faq { position: relative; }
.hero-panel { position: relative; }

.bg-doodle { position: absolute; pointer-events: none; z-index: -1;
  color: var(--color-accent-2); opacity: 0.16; }
.ink { position: absolute; pointer-events: none; z-index: 2;
  color: var(--color-accent); }

.underline-doodle { display: block; width: clamp(190px, 24vw, 260px); height: 22px;
  margin: -2px 0 0 6px; color: var(--color-accent); overflow: visible; }
.hero-panel > .underline-doodle { animation: none; }

.proof-head { position: relative; }
.legal-ring { position: absolute; right: -9px; top: -11px; width: 108px; height: 50px;
  color: var(--color-accent); }

.sparkle { width: 34px; height: 34px; }
.hero .sparkle { right: 30px; bottom: 96px; color: var(--color-accent-2); }
@media (max-width: 960px) { .hero .sparkle { display: none; } }

.close .sprig-close { right: clamp(8px, 4vw, 40px); top: -30px; width: 86px; height: 118px;
  color: var(--color-accent-2); z-index: 2; }

.hero .sprig-hero { left: -6px; bottom: 24px; width: 96px; height: 132px; opacity: 0.13; }
.how .sprig-how { right: 2%; top: 8px; width: 104px; height: 142px; }
@media (max-width: 880px) { .how .sprig-how { display: none; } }
.rules .branch { right: -30px; top: 28%; width: 260px; height: 340px; opacity: 0.08;
  transform: rotate(8deg); }
@media (max-width: 1080px) { .rules .branch { display: none; } }


@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hand-draw 1s ease-out forwards; animation-delay: 0.5s; }
  .draw2 { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hand-draw 0.9s ease-out forwards; animation-delay: 2.35s; }
  @keyframes hand-draw { to { stroke-dashoffset: 0; } }
  .sprig, .sparkle { transform-origin: 50% 90%; animation: sway 7s ease-in-out infinite; }
  .sprig-how { animation-duration: 8.5s; animation-direction: reverse; }
  .sprig-close { animation-duration: 6s; }
  .sparkle { animation: twinkle 4.5s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
  @keyframes twinkle { 0%, 100% { transform: scale(0.82) rotate(-6deg); opacity: 0.5; }
    50% { transform: scale(1) rotate(6deg); opacity: 1; } }
  .hero::before { animation: drift 11s ease-in-out infinite; }
  @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
  .cred-figure svg { transform-style: preserve-3d; animation: seal-turn 9s ease-in-out infinite; }
  @keyframes seal-turn {
    0%, 100% { transform: rotateY(-9deg) rotateX(3deg); }
    50% { transform: rotateY(9deg) rotateX(-2deg); } }
}
@media (prefers-reduced-motion: reduce) { .draw, .draw2 { stroke-dashoffset: 0; } }

/* — more marginalia: a stained, taped desk register; a lassoed step; stuck-on
     stars; and step numbers set down slightly by hand — */
.paper { overflow: visible; }
.coffee { position: absolute; right: 10%; bottom: 12%; width: 66px; height: 66px;
  border-radius: 50%; transform: rotate(-8deg); opacity: 0.32; pointer-events: none;
  border: 4px solid color-mix(in srgb, #6b4a2b 60%, transparent);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, #6b4a2b 22%, transparent); }
.tape { position: absolute; top: -11px; left: 22px; width: 92px; height: 27px;
  transform: rotate(-16deg); opacity: 0.72; pointer-events: none;
  background: color-mix(in srgb, var(--color-accent-2) 42%, transparent);
  clip-path: polygon(3% 12%, 97% 0, 100% 86%, 1% 100%); }

.how-steps li { position: relative; }
.how-steps li:nth-child(1) .how-num { transform: rotate(-4deg); }
.how-steps li:nth-child(3) .how-num { transform: rotate(4deg); }
.step-ring { position: absolute; left: -14px; top: -13px; width: 112px; height: 112px;
  color: var(--color-accent); pointer-events: none; }

.proof { position: relative; }
.proof-star { position: absolute; right: -16px; top: -18px; width: 40px; height: 40px;
  color: var(--color-accent); pointer-events: none; z-index: 3; }

.star-doodle { width: 30px; height: 30px; }
.rules .star-a { right: 8%; top: 2px; color: var(--color-accent-2); }
@media (max-width: 880px) { .rules .star-a { display: none; } }
.faq .star-b { left: 210px; top: 2px; color: var(--color-accent); }
@media (max-width: 560px) { .faq .star-b { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .draw3 { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hand-draw 1s ease-out forwards; animation-delay: 1.3s; }
  .star-doodle { transform-origin: 50% 50%; animation: twinkle 5s ease-in-out infinite; }
  .rules .star-a { animation-delay: 0.8s; }
}
@media (prefers-reduced-motion: reduce) { .draw3 { stroke-dashoffset: 0; } }

/* the retired paper register reads as the crossed-out "old way" */
.paper-x { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  color: var(--color-accent-600); opacity: 0.5; }
@media (prefers-reduced-motion: no-preference) {
  .draw4 { stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: hand-draw 0.7s ease-out forwards; }
  .draw4.d2 { animation-delay: 1.75s; } .draw4.d1 { animation-delay: 1.5s; }
}
@media (prefers-reduced-motion: reduce) { .draw4 { stroke-dashoffset: 0; } }
