/* /ecommerce/ — standalone landing page, en / fr / es.
 *
 * Self-contained on purpose: this page does not load site.css, so its layout
 * cannot be broken by a change to the main design system and the main site
 * cannot be broken by a change here. Same arrangement as security.css, and
 * deliberately NOT sharing with it — two landing pages that share a stylesheet
 * are two pages that can only be redesigned together.
 *
 * Constraints it is written against:
 *   - CSP is `default-src 'none'; style-src 'self'; font-src 'self'`.
 *     No inline style attributes, no CDN, no external font.
 *   - The page ships no JavaScript of its own. Every disclosure below is a
 *     <details> element and every hover is CSS.
 *   - Font paths are absolute so ManifestStaticFilesStorage rewrites them to
 *     the hashed filenames at collectstatic time.
 *   - The copy is French and Spanish as well as English, so the unicode-range
 *     has to reach Latin-1 and Latin Extended-A or every é and ñ falls back to
 *     a system font mid-sentence.
 *
 * WHY THIS ONE IS LIGHT AND security.css IS DARK. A security report is read at
 * 11pm by somebody technical, and that page looks like the thing it sells. This
 * page is read at lunchtime by a shop owner on a phone, often outdoors, and it
 * is asking for trust rather than for technical respect. Light, high-contrast
 * and plain is what that reader is used to reading money on.
 */

@font-face {
  font-family: "Plex"; src: url("/static/fonts/plex-latin-400.4767e1197706.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-052F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2190-21FF;
}
@font-face {
  font-family: "Plex"; src: url("/static/fonts/plex-latin-500.80ebc672c915.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-052F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2190-21FF;
}
@font-face {
  font-family: "Plex"; src: url("/static/fonts/plex-latin-600.f417eeb0d15e.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-052F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2190-21FF;
}
@font-face {
  font-family: "Plex"; src: url("/static/fonts/plex-latin-700.8d04403cf599.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-052F, U+2000-206F, U+2070-209F, U+20A0-20CF, U+2190-21FF;
}

/* --- Tokens --------------------------------------------------------------
 * Every foreground/background pair below is at or above WCAG 2.2 AA for the
 * size it is used at. --accent is darkened from the brand teal specifically so
 * that it passes on white as text, not only as a button fill.
 */
:root {
  --bg:        #fbfaf8;   /* page — warm, so white cards read as raised */
  --card:      #ffffff;
  --band:      #f4f2ee;   /* alternating section bands */
  --line:      #e4e0d9;
  --line-hi:   #cdc7bd;

  --ink:       #14181c;   /* 15.9:1 on --bg */
  --ink-2:     #3d474f;   /* 9.4:1  */
  --muted:     #5f6a74;   /* 5.4:1 — body-size minimum */

  --accent:    #0c7166;   /* 5.3:1 on white, so it is legible AS TEXT */
  --accent-hi: #0a5b52;
  --accent-bg: #e6f4f1;
  --accent-ink:#ffffff;

  --warm:      #a3520a;   /* the offer bar and price savings only */
  --warm-bg:   #fdf1e3;
  /* WhatsApp green, darkened until it passes BOTH ways: as a button fill under
   * a white label, and as text on the page. The brand green (#25D366) and the
   * first darkening of it (#1f9d55) both fail — 3.49:1 against white, either
   * direction — which is a real problem on a page whose main call to action is
   * this button. #0f7a45 is 5.40:1 and still unmistakably WhatsApp. */
  --wa:        #0f7a45;
  --wa-ink:    #ffffff;   /* the label ON --wa */

  --radius:    16px;
  --radius-sm: 10px;
  --wrap:      1180px;
  --shadow:    0 1px 2px rgba(20, 24, 28, .05), 0 8px 24px -12px rgba(20, 24, 28, .18);
  --shadow-lg: 0 2px 4px rgba(20, 24, 28, .06), 0 24px 48px -20px rgba(20, 24, 28, .28);

  color-scheme: light;
}

/* A reader in dark mode gets a dark page rather than a torch in the face.
 * Only the tokens change; every rule below is written once. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0f1215;
    --card:      #161b20;
    --band:      #12171b;
    --line:      #242c33;
    --line-hi:   #333d46;

    --ink:       #eef2f5;
    --ink-2:     #c2ccd4;
    --muted:     #95a1ac;

    --accent:    #3fc9b6;   /* lightened: on a dark ground the dark teal fails */
    --accent-hi: #6fe0d2;
    --accent-bg: #0e2d2a;
    --accent-ink:#04120f;

    --warm:      #f0a35e;
    --warm-bg:   #2a1c0e;
    /* Inverted: on a dark ground the green has to be light to read as text,
     * which means the button label on it must be DARK. A white label on
     * #3ddc84 is 1.78:1 — effectively invisible — and that is exactly what
     * a hardcoded `color: #fff` produced here before --wa-ink existed. */
    --wa:        #3ddc84;
    --wa-ink:    #04120f;

    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 48px -20px rgba(0, 0, 0, .7);

    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Clears the sticky topbar when a #anchor is jumped to. Generous rather than
   * exact: the bar is taller on a phone, where the offer text wraps, and a
   * heading half-hidden under a sticky bar is worse than one sitting slightly
   * low. */
  scroll-padding-top: 96px;
}
@media (max-width: 720px) { html { scroll-padding-top: 132px; } }
@media (max-width: 420px) { html { scroll-padding-top: 148px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.18; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* --- Layout primitives --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.narrow { max-width: 780px; }
.measure { max-width: 64ch; }
.center { text-align: center; }
.center-row { justify-content: center; }

section { padding-block: clamp(56px, 8vw, 104px); }
.section-line { border-top: 1px solid var(--line); }
.band { background: var(--band); }

.grid { display: grid; gap: 20px; }
@media (min-width: 700px)  { .g2 { grid-template-columns: repeat(2, 1fr); }
                             .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1060px) { .g4 { grid-template-columns: repeat(4, 1fr); } }

.mt-8 { margin-top: 8px; }   .mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 34px; }

/* --- Type ---------------------------------------------------------------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.eyebrow.plain { color: var(--muted); }

.display {
  font-size: clamp(38px, 6.2vw, 64px);
  letter-spacing: -.028em; font-weight: 700; line-height: 1.06;
}
.display .hl { display: block; }

.h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.022em; }
.h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.012em; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 19px); margin-top: 16px; }
.dim { color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.6; }
.mono { font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace; font-size: .92em; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border: 1px solid transparent; border-radius: 11px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease,
              color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { border-color: var(--line-hi); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { filter: brightness(.94); }
.btn-sm { padding: .58rem 1rem; font-size: 14.5px; border-radius: 9px; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.tick { width: 17px; height: 17px; flex: none; color: var(--accent); margin-top: .34em; }

/* --- Offer bar ----------------------------------------------------------- */
/* ONE sticky container for the offer bar and the masthead together. Two
 * separate sticky siblings need the second one offset by the first one's
 * height, and there is no correct number for that: the offer bar is one line
 * on a desktop and two on a phone, in three languages. Sticking the pair
 * removes the question. */
.topbar { position: sticky; top: 0; z-index: 120; }
/* The progress bar is absolutely positioned against this. */
.topbar { isolation: isolate; }

.offerbar {
  background: var(--warm-bg); color: var(--warm);
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  /* A fixed height is the whole point: the masthead below is in the same
   * sticky container, and a bar that can grow to two lines is what put the
   * header on top of it before. Nothing in here may wrap. */
  --bar: 38px;
  height: var(--bar);
}
.offerbar-in {
  display: flex; align-items: center; gap: 12px;
  height: 100%; flex-wrap: nowrap; white-space: nowrap;
}
.offerbar b { color: var(--warm); }
.offerbar .tag {
  display: inline-flex; align-items: center; gap: .45rem; flex: none;
  font-weight: 600;
}
.offerbar .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--warm); flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ── The ticker ───────────────────────────────────────────────────────────
 * A one-line window over a four-item track. Three real lines plus a copy of
 * the first, so the loop finishes by arriving back at the start rather than
 * rewinding through everything it just showed.
 * ───────────────────────────────────────────────────────────────────────── */
.ticker {
  flex: 1 1 auto; min-width: 0;
  height: var(--bar); overflow: hidden;
  display: block; position: relative;
}
.ticker-track {
  display: flex; flex-direction: column;
  animation: ticker 12s cubic-bezier(.7, 0, .2, 1) infinite;
}
.ticker-i {
  height: var(--bar); flex: none;
  display: flex; align-items: center;
  color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@keyframes ticker {
  /* Each item holds, then slides. -25% is exactly one item of a four-item
     track, which is why the markup carries the duplicate. */
  0%,   28%  { transform: translateY(0); }
  33%,  61%  { transform: translateY(-25%); }
  66%,  94%  { transform: translateY(-50%); }
  100%       { transform: translateY(-75%); }
}
/* Paused while a pointer is on the bar, so a reader can finish a line. */
.offerbar:hover .ticker-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  /* No slide, and no rotation of content a reader cannot control: the first
   * line is the offer, and it stays put. */
  .ticker-track { animation: none; }
  .ticker-i:not(:first-child) { display: none; }
  .offerbar .dot { animation: none; }
}

.offerbar-link {
  flex: none; display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; text-decoration: none; color: var(--warm);
}
.offerbar-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .offerbar { font-size: 13px; --bar: 34px; }
  .offerbar-in { gap: 9px; }
}
/* Below this the label chip stops earning its width; the pulsing dot alone
 * says the same thing and the offer itself gets the room. */
@media (max-width: 560px) {
  .tag-t { display: none; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
}

/* --- Masthead ------------------------------------------------------------ */
.masthead {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.brand-name { display: block; font-weight: 600; line-height: 1.2; }
.brand-sub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.masthead-right { display: flex; align-items: center; gap: 10px; }

.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a, .langs .on {
  padding: .35rem .6rem; border-radius: 8px; text-decoration: none;
  color: var(--muted); transition: background-color .15s ease, color .15s ease;
}
.langs a:hover { background: var(--band); color: var(--ink); }
.langs .on { background: var(--accent-bg); color: var(--accent); font-weight: 600; }

.lg-short { display: none; }
.langs b { font-weight: 600; }

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .brand-sub { display: none; }
  .lg-full { display: none; }
  .lg-short { display: inline; }
  .langs { font-size: 13px; }
  .langs a, .langs .on { padding: .34rem .5rem; }
  .mark { width: 34px; height: 34px; font-size: 14px; }
  .masthead-in { padding-block: 10px; gap: 8px; }
  .masthead-right { gap: 6px; }
}
/* Below this the brand name and three language chips and a WhatsApp button
 * genuinely do not coexist. The name goes: the mark still identifies us, and
 * the button is what the visitor is here to press. */
@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(44px, 7vw, 88px); }
.hero-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
}
.hero-sub { color: var(--ink-2); font-size: clamp(17.5px, 1.8vw, 20px); margin-top: 20px; max-width: 56ch; }

.assure { margin-top: 26px; display: grid; gap: 11px; }
.assure li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }

/* A short entrance, staggered, and cancelled entirely under
 * prefers-reduced-motion by the global rule above. */
.rise { animation: rise .55s cubic-bezier(.22, .8, .3, 1) both; }
.rise-1 { animation-delay: .02s; } .rise-2 { animation-delay: .08s; }
.rise-3 { animation-delay: .14s; } .rise-4 { animation-delay: .20s; }
.rise-5 { animation-delay: .26s; } .rise-6 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The orders mock */
.mock {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: var(--band); border-bottom: 1px solid var(--line);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-hi); }
.mock-url {
  margin-inline-start: 10px; font-size: 12.5px; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
}
.mock-body { padding: 18px 20px 20px; }
.mock-title {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.mock-table td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.mock-table tfoot td { border-bottom: 0; padding-top: 14px; font-weight: 600; }
.mock-table .num { text-align: end; font-variant-numeric: tabular-nums; }
.mock-table .total { color: var(--accent); font-size: 18px; }
.pill {
  display: inline-block; padding: .12rem .5rem; border-radius: 99px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 12.5px; font-weight: 600;
}

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.step-n {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 9px; background: var(--accent-bg); color: var(--accent);
  font-weight: 700; font-size: 15px;
}
.card.step .step-n { margin-bottom: 14px; }

/* --- Chooser ------------------------------------------------------------- */
.pick {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pick:hover {
  border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px);
}
.pick-q { font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.pick-then { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.pick-go {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 16px;
  color: var(--accent); font-weight: 600; font-size: 15.5px;
}
.pick:hover .pick-go svg { transform: translateX(3px); }
.pick-go svg { transition: transform .15s ease; }

/* --- Pricing ------------------------------------------------------------- */
.promo-note {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 20px; padding: 15px 17px;
  background: var(--warm-bg); border: 1px solid color-mix(in srgb, var(--warm) 26%, transparent);
  border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: 15px; max-width: 72ch;
}
.promo-note .icon { color: var(--warm); margin-top: .12em; }

.tiers { align-items: start; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.tier-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.tier-flag {
  position: absolute; top: -11px; inset-inline-start: 22px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 99px;
}
.tier-name { font-size: 20px; font-weight: 700; letter-spacing: -.012em; }
.tier-answers { color: var(--muted); font-size: 15px; margin-top: 7px; min-height: 3em; }

.tier-price { margin-top: 18px; display: flex; align-items: baseline; gap: .3rem; }
.tier-price b { font-size: clamp(32px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.03em; }
.tier-price .from { color: var(--muted); font-size: 15px; font-weight: 500; }
.tier-was { margin-top: 4px; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: .55rem; }
.tier-was s { color: var(--muted); }
.tier-was .save { color: var(--warm); font-weight: 600; }

.tier-meta { margin: 18px 0 0; font-size: 14.5px; }
.tier-meta dt {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: 12px;
}
.tier-meta dd { margin: 3px 0 0; color: var(--ink-2); }

.tier .btn-primary { margin-top: 22px; }
.tier-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 9px; padding: .5rem; font-size: 14px; font-weight: 600;
  color: var(--wa); text-decoration: none; border-radius: 9px;
}
.tier-wa:hover { background: color-mix(in srgb, var(--wa) 10%, transparent); }

.tier-h {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.ticks { display: grid; gap: 11px; margin-top: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.8px; line-height: 1.55; }
.ticks-lg li { font-size: 16px; }

.tier-foot { margin-top: auto; padding-top: 18px; }
.tier-x, .tier-g { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.tier-x { margin-top: 16px; }
.tier-x b, .tier-g b { color: var(--ink-2); }
.tier-g { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; }
.tier-g .icon { color: var(--accent); margin-top: .18em; }

/* Disclosures — <details> so the page needs no JavaScript */
.more { margin-top: 14px; }
.more > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 14.5px; font-weight: 600; color: var(--accent);
  padding: .3rem 0;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .18s ease;
}
.more[open] > summary::before { transform: rotate(-135deg) translate(-2px, -2px); }
.more > summary:hover { text-decoration: underline; }

/* --- Feature grid -------------------------------------------------------- */
.feats { gap: 26px 24px; }
.feat-i { width: 24px; height: 24px; color: var(--accent); margin-bottom: 11px; }
.feat-h { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }

/* --- Timeline ------------------------------------------------------------ */
.timeline { display: grid; gap: 0; }
.tl {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.tl:first-child { border-top: 0; }
.tl-day {
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); padding-top: .3em;
}
@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .tl-day { padding-top: 0; }
}
/* The icon grid without its sentences: tighter rows, because the descriptions
 * that used to set the rhythm now live behind a disclosure. */
.feats-tight { gap: 20px 24px; }
.feats-tight .feat-i { margin-bottom: 8px; }
.feats-tight .feat-h { margin-bottom: 0; }

/* --- Support / care ------------------------------------------------------ */
.care {
  margin-top: 40px; padding-top: 34px; border-top: 1px solid var(--line);
}
.care-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.care-on { border-color: var(--accent); }
.care-name { font-weight: 600; font-size: 17px; }
.care-price { margin-top: 4px; }
.care-price b { font-size: 27px; font-weight: 700; letter-spacing: -.025em; }
.care-hours {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--ink-2);
}

/* --- Follow-up ----------------------------------------------------------- */
.fu-when {
  display: inline-block; padding: .18rem .55rem; border-radius: 99px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.pledge {
  display: flex; gap: 13px; align-items: flex-start;
  margin-top: 26px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius);
  color: var(--ink-2); font-size: 16px; max-width: 76ch;
}
.pledge .icon { color: var(--accent); margin-top: .2em; }

/* --- Rewards ------------------------------------------------------------- */
.reward {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.reward-on { border-color: var(--warm); background: var(--warm-bg); }
.reward-i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 13px; }
.reward-on .reward-i { color: var(--warm); }
.reward-small {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.reward-on .reward-small { border-color: color-mix(in srgb, var(--warm) 30%, transparent); }

/* --- Process ------------------------------------------------------------- */
.steps { display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
                            .steps li { grid-template-columns: 1fr; gap: 12px; } }

/* --- Comparison table ---------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { min-width: 720px; font-size: 14.8px; background: var(--card); border-radius: var(--radius); }
.cmp th, .cmp td {
  padding: 13px 15px; text-align: start; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); border-bottom-color: var(--line-hi);
}
.cmp tbody th { font-weight: 600; color: var(--ink-2); width: 22%; }
.cmp td { color: var(--muted); }
.cmp .us { background: var(--accent-bg); color: var(--ink); font-weight: 600; }
.cmp thead .us { color: var(--accent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

.note {
  padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--muted);
}
.note b { color: var(--ink-2); }

/* --- The founder's note -------------------------------------------------- */
/* The founder's note is a letter, so it is set on paper.
 *
 * A cream sheet with a soft shadow and a lot of margin — the affordance does
 * real work here: it tells the reader before they start that this block is one
 * person talking, not more marketing. The texture is two very low-contrast
 * gradients, not an image, so it costs nothing and cannot fail to load.
 *
 * The sheet stays warm in dark mode rather than turning into a white slab.
 * Paper is paper, but a cream rectangle at 90% lightness in a dark page is a
 * torch in the face, so the dark scheme uses an aged, low-light paper instead
 * of inverting the idea away. */
.letter {
  --paper:     #fdfbf5;
  --paper-2:   #f6f1e6;
  --paper-ink: #2b2b28;
  --paper-dim: #6d6a60;
  --paper-rule:#e3dccb;

  position: relative;
  margin-top: 28px;
  padding: clamp(30px, 5vw, 52px) clamp(24px, 5vw, 56px);
  border-radius: 4px;                     /* paper has corners, not a radius */
  color: var(--paper-ink);
  font-size: clamp(17px, 1.75vw, 18.5px);
  line-height: 1.78;
  background:
    /* the faintest horizontal fibre */
    repeating-linear-gradient(
      180deg,
      rgba(120, 108, 80, .022) 0 1px,
      transparent 1px 4px
    ),
    /* light falling across the sheet */
    linear-gradient(168deg, var(--paper) 0%, var(--paper) 58%, var(--paper-2) 100%);
  box-shadow:
    0 1px 1px rgba(40, 34, 20, .10),
    0 10px 22px -12px rgba(40, 34, 20, .34),
    0 28px 60px -34px rgba(40, 34, 20, .40);
}

/* The lifted edge: a second sheet peeking out under the first. */
.letter::after {
  content: ""; position: absolute; z-index: -1;
  inset-inline: 10px; bottom: -5px; height: 14px;
  border-radius: 3px;
  background: var(--paper-2);
  box-shadow: 0 6px 14px -8px rgba(40, 34, 20, .45);
}

.letter p + p { margin-top: 1.15em; }

.sign {
  margin-top: 2em; padding-top: 1.2em;
  border-top: 1px solid var(--paper-rule);
}
.sign-name {
  display: block; font-size: 19px; font-weight: 600; letter-spacing: .01em;
  color: var(--paper-ink);
}
.sign-role { display: block; font-size: 14px; color: var(--paper-dim); margin-top: 2px; }

@media (prefers-color-scheme: dark) {
  .letter {
    --paper:     #1b1a17;
    --paper-2:   #16150f;
    --paper-ink: #e6e1d4;
    --paper-dim: #9c968a;
    --paper-rule:#33302a;
    box-shadow:
      0 1px 1px rgba(0, 0, 0, .5),
      0 10px 22px -12px rgba(0, 0, 0, .7),
      0 28px 60px -34px rgba(0, 0, 0, .8);
  }
  .letter::after { background: var(--paper-2); }
}

@media print {
  .letter { box-shadow: none; background: #fff; border: 1px solid #ccc; }
  .letter::after { display: none; }
}

/* --- FAQ ----------------------------------------------------------------- */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 19px 0; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-inline-start: auto; margin-top: .38em; flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details > p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* --- Form ---------------------------------------------------------------- */
.form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.f { margin-top: 18px; }
.f:first-of-type { margin-top: 0; }
.f2 { display: grid; gap: 18px; margin-top: 18px; }
.f2:first-of-type { margin-top: 0; }
.f2 .f { margin-top: 0; }
@media (min-width: 620px) { .f2 { grid-template-columns: 1fr 1fr; } }

.form label {
  display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px;
}
.help { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }

.efield {
  width: 100%; padding: .82rem .95rem;
  font-family: inherit; font-size: 16px; line-height: 1.5;   /* 16px: iOS zooms below it */
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line-hi); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.efield:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.efield[aria-invalid="true"] { border-color: #c0392b; }
textarea.efield { resize: vertical; min-height: 110px; }
select.efield { appearance: none; background-image: none; cursor: pointer; }

.err { display: block; margin-top: 6px; font-size: 14px; color: #c0392b; font-weight: 500; }
.alert {
  margin-top: 20px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: #fdecea; border: 1px solid #f0b7b0; color: #8c2f22; font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  .alert { background: #2b1512; border-color: #6b2c24; color: #f4b8ae; }
  .err { color: #f08a7c; }
  .efield[aria-invalid="true"] { border-color: #f08a7c; }
}

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; }
.consent input { width: 20px; height: 20px; margin-top: .18em; flex: none; accent-color: var(--accent); }
.consent label { font-weight: 400; font-size: 15px; color: var(--ink-2); margin-bottom: 0; }

.form .btn-primary { margin-top: 24px; }

/* The honeypot. Off-screen rather than display:none, and never focusable. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wa-alt {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--wa); font-weight: 600; font-size: 15px; text-decoration: none;
}
.wa-alt:hover { text-decoration: underline; }

/* --- Closing / footer ---------------------------------------------------- */
.closing { padding-block: clamp(52px, 7vw, 92px); }

.foot { border-top: 1px solid var(--line); padding-block: 34px 26px; background: var(--band); }
.foot-in { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot-name { font-weight: 600; }
.foot a { color: inherit; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* --- Mobile dock ---------------------------------------------------------
 * On a phone the price and the WhatsApp button are otherwise several thousand
 * pixels from wherever the reader is, and the back button is closer than
 * either. Hidden above the breakpoint, where the sticky masthead does the job.
 */
.dock { display: none; }
@media (max-width: 720px) {
  .dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 130;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--line);
  }
  .dock .btn { padding-block: .82rem; font-size: 15.5px; }
  .has-dock { padding-bottom: 86px; }
}

/* --- Print ---------------------------------------------------------------
 * People print a price list to show a partner. Drop the furniture, open every
 * disclosure, and print the prices rather than a page of collapsed triangles.
 */
@media print {
  .offerbar, .masthead, .dock, #consent, .skip, .tier-wa, .wa-alt, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .card, .tier, .mock { background: #fff !important; box-shadow: none !important; }
  details { display: block; }
  details > summary { display: none; }
  details > *:not(summary) { display: revert !important; }
  section { padding-block: 18pt; break-inside: avoid; }
  .tier { break-inside: avoid; }
}

/* --- Reaching a person ---------------------------------------------------
 * Three routes, each a real link — wa.me, tel: and mailto: — so on a phone
 * every one is a single tap and none of them is a form. Cards rather than a
 * line of text because the number has to survive being read at arm's length,
 * outdoors, by somebody who is deciding whether these people are real.
 */
.reach-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.reach-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px);
}
.reach-i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 13px; }
.reach-h { font-size: 16.5px; font-weight: 600; }
.reach-v {
  margin-top: 3px; font-size: 18px; font-weight: 700; letter-spacing: -.015em;
  color: var(--accent); overflow-wrap: anywhere;
}
.reach-p { margin-top: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.reach-wa { border-color: color-mix(in srgb, var(--wa) 42%, transparent); }
.reach-wa:hover { border-color: var(--wa); }
.reach-wa .reach-i, .reach-wa .reach-v { color: var(--wa); }

/* --- Floating WhatsApp button --------------------------------------------
 * Desktop only: below the dock's breakpoint the dock already carries one, and
 * two fixed green circles on one phone screen is clutter rather than access.
 * It keeps a visible label — a lone icon in a circle is a guess for anyone who
 * has not already learned the convention.
 */
.fab {
  position: fixed; z-index: 125;
  inset-inline-end: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.25rem;
  background: var(--wa); color: var(--wa-ink);
  border-radius: 99px; text-decoration: none;
  font-size: 15.5px; font-weight: 600; line-height: 1.2;
  box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--wa) 55%, transparent), var(--shadow);
  transition: transform .15s ease, filter .15s ease;
}
.fab:hover { transform: translateY(-2px); filter: brightness(.95); }
.fab:active { transform: translateY(0); }
.fab-i { width: 22px; height: 22px; flex: none; }
.fab-t { white-space: nowrap; }

@media (max-width: 720px) { .fab { display: none; } }
/* Between the two, keep the button but drop the label so it never covers copy. */
@media (min-width: 721px) and (max-width: 1000px) {
  .fab { padding: .95rem; }
  .fab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .fab { display: none !important; } }

/* ═════════════════════════════════════════════════════════════════════════
 * TRUST
 * ═════════════════════════════════════════════════════════════════════════ */


/* The proof block — what stands in for the testimonials that are not here. */
.proof { display: grid; gap: 0; }
.proof-row {
  display: grid; grid-template-columns: 26px 1fr; gap: 18px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.proof-row:first-child { border-top: 0; }
.proof-i { width: 26px; height: 26px; color: var(--accent); margin-top: .1em; }
.proof-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 11px;
  color: var(--accent); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.proof-link:hover { text-decoration: underline; }
.proof-link svg { transition: transform .15s ease; }
.proof-link:hover svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .proof-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * MOTION
 *
 * The page is selling the ability to build a good website, so the page has to
 * be one — a static wall of text is an argument against its own claim. But
 * every effect below is decoration over content that is already correct
 * without it, and all of it is off under prefers-reduced-motion.
 *
 * Scroll reveals use CSS scroll-driven animations, guarded by @supports. A
 * browser without them (Firefox today) shows every element in its final state
 * and loses nothing: there is no opacity:0 default anywhere, so content can
 * never be hidden by a feature that failed to load. That is the whole reason
 * this is not done in JavaScript — a scroll-reveal script that fails leaves a
 * blank page, and this one cannot.
 * ═════════════════════════════════════════════════════════════════════════ */

/* ── The scroll layer ─────────────────────────────────────────────────────
 *
 * All of this is CSS scroll-driven animation, which means it runs on the
 * compositor, needs no scroll listener, and — the reason it is built this way
 * rather than in GSAP — it works on a PHONE. The JavaScript layer is gated to
 * wide screens and good connections, because a third of a megabyte of
 * animation library has no business on a shop owner's phone on mobile data.
 * So the phone gets the real thing here, and the desktop gets this plus a
 * little more.
 *
 * Guarded by @supports throughout. In a browser without scroll timelines
 * (Firefox, today) every element is simply in its final state: there is no
 * `opacity: 0` default anywhere in this file, so a missing feature can never
 * leave the page blank.
 * ────────────────────────────────────────────────────────────────────────── */

/* One easing curve for the whole page. A short, decisive settle — not a
 * bounce, which reads as a toy, and not linear, which reads as a spreadsheet. */
:root { --ease-out: cubic-bezier(.16, .84, .28, 1); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* The base reveal. A little scale as well as a rise: pure translation
     * reads as a slide, and the 1.5% scale is what makes it read as arriving
     * rather than as being pushed. */
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 42%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(26px) scale(.988); }
      to   { opacity: 1; transform: none; }
    }

    /* Direction, where an element belongs to one side of the layout. Coming
     * from where the thing already is costs nothing and looks deliberate. */
    .reveal-r { animation-name: reveal-in-r; }
    .reveal-l { animation-name: reveal-in-l; }
    @keyframes reveal-in-r {
      from { opacity: 0; transform: translateX(34px); }
      to   { opacity: 1; transform: none; }
    }
    @keyframes reveal-in-l {
      from { opacity: 0; transform: translateX(-34px); }
      to   { opacity: 1; transform: none; }
    }

    /* GRID STAGGER WITHOUT JAVASCRIPT.
     *
     * Each card has its own view() timeline, so a row of four entering the
     * viewport together would animate in lockstep. Nudging each column's range
     * start by a few per cent makes the row deal itself out left to right, and
     * costs four selectors instead of a library. */
    .grid > .reveal:nth-child(4n+2) { animation-range: entry 8%  entry 45%; }
    .grid > .reveal:nth-child(4n+3) { animation-range: entry 11% entry 48%; }
    .grid > .reveal:nth-child(4n+4) { animation-range: entry 14% entry 51%; }

    /* Headings arrive slightly before the body they head, so the eye lands on
     * the sentence it is meant to read first. */
    .h2.reveal { animation-range: entry 0% entry 34%; }
    .lede.reveal { animation-range: entry 6% entry 44%; }

    /* The hero drifts and dims as the page moves past it. On a phone this is
     * the ONLY parallax — the GSAP version never loads there. */
    .hero-grid {
      animation: hero-exit linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes hero-exit {
      from { opacity: 1; transform: none; }
      to   { opacity: .28; transform: translateY(-6%); }
    }

    /* The orders card and the phone unmask rather than fade: a rectangle
     * wiping open reads as a screen turning on. */
    .mock {
      animation: unmask linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    @keyframes unmask {
      from { opacity: 0; clip-path: inset(0 0 26% 0 round 16px); transform: translateY(20px); }
      to   { opacity: 1; clip-path: inset(0 0 0 0 round 16px); transform: none; }
    }

    /* The timeline's spine draws itself as its section passes. */
    .timeline { position: relative; }
    .timeline::before {
      content: ""; position: absolute; inset-block: 12px;
      inset-inline-start: 33px; width: 2px; background: var(--accent);
      opacity: .28; transform-origin: top;
      animation: draw-line linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 65%;
    }
    @keyframes draw-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
    @media (max-width: 560px) { .timeline::before { display: none; } }

    /* Ticks pop as their list is revealed, so a long inclusion list reads as
     * items being counted off rather than as a paragraph in disguise. */
    .ticks .tick {
      animation: tick-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes tick-in {
      from { transform: scale(.35); opacity: 0; }
      to   { transform: none; opacity: 1; }
    }

    /* The price cards lift into place, the featured one a touch further. */
    .tier.reveal { animation-name: tier-in; }
    @keyframes tier-in {
      from { opacity: 0; transform: translateY(34px) scale(.975); }
      to   { opacity: 1; transform: none; }
    }

    /* The letter arrives like a sheet being put down. */
    .letter {
      animation: paper-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }
    @keyframes paper-in {
      from { opacity: 0; transform: translateY(30px) rotate(-.5deg); }
      to   { opacity: 1; transform: none; }
    }

    /* The big figures rise as the band arrives, so the count-up (desktop) or
     * the static number (phone) lands on something already in motion. */
    .stat.reveal { animation-range: entry 0% entry 38%; }
  }
}

/* THE PROGRESS BAR, DRIVEN BY CSS.
 *
 * This used to be a scroll listener in ecom.js writing a transform sixty times
 * a second. `animation-timeline: scroll(root)` does the same thing on the
 * compositor, off the main thread, in four lines — and it works on the phone,
 * where ecom.js's version was the only JavaScript still doing per-frame work.
 * The JS fallback stays for browsers without it. */
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
  @keyframes progress-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* Hero atmosphere. Two soft colour fields drifting behind the headline — the
 * cheapest way to make a page feel built rather than typed, and it costs no
 * image, no request and nothing the CSP objects to. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none;
}
.hero::before {
  inset-inline-start: -12vw; top: -16vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero::after {
  inset-inline-end: -14vw; bottom: -20vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--warm) 26%, transparent), transparent 68%);
  animation: drift-b 27s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(7%, 9%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8%, -6%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

/* The orders mock: rows arrive one after another, then the newest one keeps a
 * slow highlight — it is a picture of money coming in, and a still picture of
 * money coming in is a weaker picture. */
@media (prefers-reduced-motion: no-preference) {
  .mock-table tbody tr { animation: row-in .5s cubic-bezier(.22,.8,.3,1) both; }
  .mock-table tbody tr:nth-child(1) { animation-delay: .45s; }
  .mock-table tbody tr:nth-child(2) { animation-delay: .58s; }
  .mock-table tbody tr:nth-child(3) { animation-delay: .71s; }
  .mock-table tbody tr:nth-child(4) { animation-delay: .84s; }
  .mock-table tfoot { animation: row-in .5s .98s cubic-bezier(.22,.8,.3,1) both; }
  @keyframes row-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

  .mock-table tbody tr:first-child .pill {
    animation: fresh 3.6s ease-in-out 1.6s infinite;
  }
  @keyframes fresh {
    0%, 82%, 100% { box-shadow: 0 0 0 0 transparent; }
    88%           { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
  }
}

/* Buttons: a light sweep on hover. Pointer devices only — on a touchscreen
 * "hover" is a tap that has already happened. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%,
                rgba(255,255,255,.28) 50%, transparent 80%);
    transform: translateX(-120%);
  }
  .btn-primary:hover::after { animation: sweep .7s ease; }
  @keyframes sweep { to { transform: translateX(120%); } }
  .btn-primary:hover, .btn-wa:hover { transform: translateY(-1px); }
}

/* Cards lift towards the pointer. Small: 2px reads as responsive, 8px reads as
 * a template. */
@media (hover: hover) {
  .card, .tier, .reward, .feat, .care-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .card:hover, .reward:hover, .care-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-hi);
  }
  .tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .tier-on:hover { box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
  .feat:hover .feat-i { transform: scale(1.12); }
  .feat-i { transition: transform .18s ease; }
}

/* The featured price card breathes very slightly, so the eye lands on it
 * first without a banner shouting. */
@media (prefers-reduced-motion: no-preference) and (min-width: 1060px) {
  .tier-on { animation: breathe 6s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
    50%      { box-shadow: 0 0 0 1px var(--accent),
                           0 0 26px -6px color-mix(in srgb, var(--accent) 42%, transparent),
                           var(--shadow-lg); }
  }
  .tier-on:hover { animation: none; }
}

/* Ticks pop in as their list is revealed, which makes a long inclusion list
 * read as items being counted off rather than as a paragraph in disguise. */
/* The floating button lands rather than appearing. */
@media (prefers-reduced-motion: no-preference) {
  .fab { animation: fab-in .5s 1.1s cubic-bezier(.22,1.2,.4,1) both; }
  @keyframes fab-in {
    from { opacity: 0; transform: translateY(16px) scale(.9); }
    to   { opacity: 1; transform: none; }
  }
}

@media print {
  .hero::before, .hero::after { display: none !important; }
  .reveal, .mock-table tbody tr, .mock-table tfoot, .ticks .tick, .fab {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
 * TESTIMONIAL MARQUEE — two rows, opposite directions
 *
 * CSS-only. Each row prints its quotes twice and the track is translated by
 * exactly -50%, so the second copy arrives in the first copy's place and the
 * loop has no seam. That is why the duplicate exists in the markup, and why it
 * is aria-hidden there.
 *
 * The rows must not both scroll the same way: two parallel bands moving in
 * step read as one big moving object and the eye slides off. Opposed, they
 * read as depth, and a reader's eye stops on the one going against their
 * scroll direction.
 * ═════════════════════════════════════════════════════════════════════════ */

.marquee {
  display: grid; gap: 18px;
  /* Fade both edges so the quotes emerge and leave rather than being sliced by
   * the viewport, which is what makes the loop feel deliberate. */
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.mq-row { overflow: hidden; }
.mq-track {
  display: flex; gap: 18px; width: max-content;
  animation: mq 46s linear infinite;
}
.mq-rev { animation-direction: reverse; }

@keyframes mq {
  /* -50% is one full copy of the list; gap is inside the track, so the two
   * halves are identical in width and the wrap is exact. */
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 9px)); }
}

/* Pause on hover and on keyboard focus — somebody trying to read a quote
 * should not have to chase it, and somebody tabbing to a link inside one must
 * not have it slide away underneath them. */
.mq-row:hover .mq-track,
.mq-track:focus-within { animation-play-state: paused; }

.quote {
  flex: 0 0 auto; width: min(88vw, 380px); margin: 0;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.quote-r {
  align-self: flex-start; margin-bottom: 14px;
  padding: .2rem .6rem; border-radius: 99px;
  background: var(--accent-bg); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-size: 16.5px; line-height: 1.6; color: var(--ink-2);
}
/* Typographic quotes drawn rather than typed, so they are not read aloud. */
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote figcaption {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.quote-n { display: block; font-weight: 600; font-size: 15px; }
.quote-m { display: block; font-size: 13.5px; color: var(--muted); }

/* Motion off: the quotes are content, so they stay — as a normal wrapping
 * grid that scrolls with the page like everything else. */
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; }
  .mq-row { overflow: visible; }
  .mq-track { animation: none; flex-wrap: wrap; width: auto; }
  /* The duplicate pass is decorative; without the animation it is just the
   * same eight quotes printed twice. */
  .mq-track [aria-hidden="true"] { display: none; }
}
@media print {
  .marquee { mask-image: none; }
  .mq-row { overflow: visible; }
  .mq-track { animation: none; flex-wrap: wrap; width: auto; }
  .mq-track [aria-hidden="true"] { display: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * MOBILE
 *
 * Not an afterthought block: most of this page's readers are a shop owner on a
 * phone, often one-handed, often outdoors. Everything below is either a size
 * that was tuned for a desktop and is wrong at 390px, or a piece of furniture
 * that earns its space on a wide screen and does not on a narrow one.
 *
 * Nothing here hides content. Where something is removed it is because the
 * same information is present twice — the dock repeats the hero's buttons, the
 * language switcher repeats its own label.
 * ═════════════════════════════════════════════════════════════════════════ */

/* Nothing may scroll the page sideways. Every wide thing on this page lives in
 * its own scroller; this is the guard that catches the next one added. */
html, body { overflow-x: clip; }

@media (max-width: 720px) {
  section { padding-block: clamp(40px, 9vw, 60px); }
  .wrap { padding-inline: 18px; }

  /* Hero. The three headline lines are the page's one big statement, so they
   * keep their weight — but the lower bound comes down, because at 34px the
   * longest French line ("créée et en ligne") broke to four lines on a 360px
   * screen and the sub-heading fell below the fold. */
  .hero { padding-block: 30px 44px; }
  .display { font-size: clamp(31px, 8.6vw, 44px); letter-spacing: -.024em; }
  .hero-sub { font-size: 16.5px; margin-top: 16px; }
  .assure { margin-top: 20px; gap: 9px; }
  .assure li { font-size: 15px; }
  .btn-row { gap: 10px; margin-top: 22px; }
  .btn-lg { padding: .95rem 1.4rem; font-size: 16px; }
  /* Both hero buttons full width and stacked: a half-width button beside
   * another half-width button is two small targets instead of two good ones. */
  .hero .btn-row .btn { flex: 1 1 100%; }

  /* The orbs are atmosphere; at this size they mostly wash out the text. */
  .hero::before, .hero::after { opacity: .34; filter: blur(56px); }

  .h2 { font-size: clamp(25px, 6.4vw, 32px); }
  .lede { font-size: 16.5px; margin-top: 14px; }
  .mt-32 { margin-top: 26px; }

  /* Price cards: the padding that frames a card in a four-across grid is just
   * lost width when the card is the whole screen. */
  .tier { padding: 22px 18px; }
  .tier-answers { min-height: 0; }
  .tier-price b { font-size: 34px; }
  .ticks li { font-size: 15px; }
  .tiers { gap: 16px; }
  /* The flag sat over the card above it once the cards were stacked. */
  .tier-flag { inset-inline-start: 18px; }
  .tier-on { margin-top: 10px; }

  .card, .reward, .pick, .reach-card, .care-card, .note { padding: 20px 18px; }
  .letter { padding: 24px 20px; font-size: 16.5px; }
  .pledge { padding: 18px; font-size: 15.5px; }
  .promo-note { padding: 14px; font-size: 14.5px; }

  /* Comparison table: tell the reader it scrolls, rather than letting them
   * conclude the last column does not exist. */
  .table-scroll {
    position: relative;
    mask-image: linear-gradient(to right, #000 90%, transparent);
  }
  .cmp { min-width: 620px; font-size: 14px; }
  .cmp th, .cmp td { padding: 11px 12px; }

  .quote { width: 82vw; padding: 20px; }
  .marquee { gap: 14px; }
  .plat-i { padding: 10px 16px 10px 10px; gap: 11px; }
  .plat-chip { width: 36px; height: 36px; }
  .plat-logo { width: 19px; height: 19px; }

  .timeline .tl { padding: 18px 0; }
  .faq summary { font-size: 16px; padding: 16px 0; }
  .form { padding: 20px 18px; }
  .foot-links { gap: 8px 16px; }
}

/* The narrowest phones still in real use. */
@media (max-width: 400px) {
  .wrap { padding-inline: 15px; }
  .display { font-size: clamp(28px, 8.4vw, 34px); }
  .tier-price b { font-size: 31px; }
  .quote { width: 86vw; }
  .mock-body { padding: 15px 16px 16px; }
  .mock-table td { font-size: 14px; padding: 8px 0; }
}

/* Landscape on a phone: the sticky topbar plus the dock can eat most of a
 * 380px-tall viewport, so the topbar stops sticking and scrolls away. */
@media (max-height: 460px) and (orientation: landscape) {
  .topbar { position: static; }
  html { scroll-padding-top: 12px; }
}

/* Touch targets. WCAG 2.2 AA asks for 24×24 CSS px minimum for anything
 * pointer-operated; these are the controls that were under it. */
@media (pointer: coarse) {
  .langs a, .langs .on { min-height: 34px; display: inline-flex; align-items: center; }
  .more > summary, .faq summary { min-height: 44px; }
  .proof-link, .wa-alt, .offerbar-link, .tier-wa { min-height: 40px; }
  .foot-links a { padding-block: 4px; }
  /* A hover lift on a touchscreen fires on tap and sticks until the next tap
   * somewhere else, which reads as a bug. */
  .card:hover, .reward:hover, .care-card:hover, .tier:hover,
  .pick:hover, .reach-card:hover { transform: none; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * SCROLL FURNITURE — progress bar and section rail
 *
 * Both are server-rendered and useful before any script runs: the bar simply
 * sits at zero, and the rail is a working list of anchor links. static/js/
 * ecom.js adds the fill and the active state.
 * ═════════════════════════════════════════════════════════════════════════ */

.progress {
  position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: transparent; overflow: hidden; z-index: 1;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}
[dir="rtl"] .progress span { transform-origin: right; }

/* The rail. Hidden until the script confirms it has sections to point at —
 * .rail-on is added by ecom.js — so it never appears as a dead list, and
 * hidden below 1180px where there is no margin to put it in. */
.rail { display: none; }

@media (min-width: 1180px) {
  .rail.rail-on {
    display: block;
    position: fixed; inset-inline-start: 18px; top: 50%;
    transform: translateY(-50%); z-index: 100;
  }
  .rail ol { display: grid; gap: 2px; }
  .rail a {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 9px; border-radius: 9px;
    text-decoration: none; color: var(--muted);
    font-size: 13px; font-weight: 500; line-height: 1;
    transition: color .18s ease, background-color .18s ease;
  }
  .rail-dot {
    width: 7px; height: 7px; border-radius: 50%; flex: none;
    background: var(--line-hi);
    transition: background-color .18s ease, transform .18s ease;
  }
  /* The label is present for a screen reader and revealed on hover or when
   * the section is current; a permanent column of seven words down the edge
   * of the page competes with the page. */
  .rail-t {
    max-width: 0; overflow: hidden; white-space: nowrap;
    opacity: 0;
    transition: max-width .22s ease, opacity .18s ease;
  }
  .rail a:hover, .rail a:focus-visible { color: var(--ink); background: var(--card); }
  .rail a:hover .rail-t, .rail a:focus-visible .rail-t { max-width: 150px; opacity: 1; }
  .rail a:hover .rail-dot { background: var(--accent); }

  .rail a.on { color: var(--ink); }
  .rail a.on .rail-dot { background: var(--accent); transform: scale(1.45); }
  .rail a.on .rail-t { max-width: 150px; opacity: 1; }

  @media (prefers-reduced-motion: reduce) {
    .rail-t { max-width: 150px; opacity: 1; transition: none; }
    .rail-dot { transition: none; }
  }
}

/* Never over the printed page, and never over a phone. */
@media print { .progress, .rail { display: none !important; } }

/* ═════════════════════════════════════════════════════════════════════════
 * THE HERO CANVAS
 *
 * Behind the CSS orbs, not instead of them. It is loaded only on a wide
 * screen, on a connection that is not metered or slow, on a device with
 * memory and cores to spare — see shouldRender() in static/js/ecom.js. If it
 * never arrives, or the GPU context is lost, the orbs are the background and
 * nothing on the page looks unfinished.
 * ═════════════════════════════════════════════════════════════════════════ */

.hero-fx {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity .9s ease;
  pointer-events: none;
}
.hero-fx.is-on { opacity: 1; }
.hero-fx.is-lost { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-fx { display: none; } }

/* SplitText wraps each headline line in a mask. Without this the descenders
 * on "g" and "y" are clipped by the mask box during the reveal. */
.hero-line { padding-bottom: .08em; }

/* ═════════════════════════════════════════════════════════════════════════
 * ADVERTISING PLATFORMS
 *
 * A moving strip of platform NAMES, reusing the testimonial marquee's
 * mechanics. No logos — see the comment above AD_PLATFORMS in
 * core/ecom_offer.py. A shop owner scanning this is checking whether their
 * platform is in the list, and for that a word does the same work as a mark
 * without making a claim about a relationship that does not exist.
 * ═════════════════════════════════════════════════════════════════════════ */

.plat-h {
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 34px; margin-bottom: 14px;
}
.plat .mq-track { animation-duration: 64s; gap: 12px; }
.plat-i {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 13px;
  padding: 12px 20px 12px 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* The chip stays WHITE in both schemes, deliberately.
 *
 * These marks are published for light backgrounds — three of them are black —
 * so giving each one the ground it was designed for is what makes it possible
 * to show them unmodified. The alternative is a CSS filter, which every one of
 * these brand guidelines forbids. See static/img/logos/README.md rule 3.
 *
 * The faint ring keeps a white chip from disappearing into a white card in the
 * light theme. */
.plat-chip {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 28, .09);
}
.plat-logo { width: 21px; height: 21px; }

.plat-t { display: inline-flex; flex-direction: column; gap: 1px; }
.plat-i b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.plat-i i {
  font-style: normal; font-size: 12.5px; color: var(--accent); font-weight: 500;
}

/* The two columns are lists of different shapes — cards on the left, ticks on
 * the right — so they are given room rather than forced to the same rhythm. */
.ads-cols { gap: 34px; align-items: start; }
.ads-cols .grid { gap: 14px; }
@media (min-width: 700px) { .ads-cols { grid-template-columns: 1fr 1fr; } }

/* ═════════════════════════════════════════════════════════════════════════
 * THE NUMBERS
 *
 * Its own background tone — the card colour — so it reads as a distinct band
 * between the hero and the first section rather than joining the page's
 * two-tone alternation. Big numerals, small labels: the figure should be
 * legible from across a room and the caption only once you are reading.
 * ═════════════════════════════════════════════════════════════════════════ */

.stats-band { background: var(--card); }
.stats {
  display: grid; gap: 30px 26px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat-n {
  font-size: clamp(40px, 5.6vw, 60px);
  font-weight: 700; letter-spacing: -.035em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;   /* so a counting number does not jitter */
}
.stat-h {
  margin-top: 10px; font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.stat-p { margin-top: 5px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.stat-v {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 9px;
  font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.stat-v:hover { text-decoration: underline; }
.stat-v svg { transition: transform .15s ease; }
.stat-v:hover svg { transform: translateX(3px); }

.stat-stars { display: flex; gap: 2px; margin-top: 8px; }
.star { width: 17px; height: 17px; color: #e8a317; }
.star-empty { color: var(--line-hi); }

@media (max-width: 700px) {
  .stats { gap: 24px 18px; }
  .stat-n { font-size: clamp(34px, 11vw, 44px); }
  .stat-p { display: none; }   /* the caption is the first thing to go on a phone */
}


/* ═════════════════════════════════════════════════════════════════════════
 * WHAT WE BUILD ON
 *
 * Three routes side by side. The "choose this if" and "not this if" rows are
 * given the same weight on purpose: the second is what makes the first worth
 * reading, so it is not shrunk into a caveat.
 * ═════════════════════════════════════════════════════════════════════════ */

.route {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.route-i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 13px; }

.route-logos {
  display: grid; gap: 9px; margin-top: 18px;
  padding-block: 16px; border-block: 1px solid var(--line);
}
.route-logos li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 500;
}
.route-logos .plat-chip { width: 30px; height: 30px; border-radius: 8px; }
.route-logos .plat-logo { width: 16px; height: 16px; }

.route-when { margin: 18px 0 0; font-size: 14.5px; }
.route-when dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-top: 15px;
}
.route-when dt:first-child { margin-top: 0; }
.route-when dd { margin: 5px 0 0; color: var(--ink-2); line-height: 1.6; }
/* The two verdicts get a colour so the eye can find "not this if" without
 * reading — it is the line most likely to save somebody money. */
.route-yes { color: var(--accent) !important; }
.route-no  { color: var(--warm) !important; }

@media (max-width: 700px) {
  .route { padding: 22px 18px; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * THE SECOND PAGE
 *
 * /ecommerce/how/ holds the material the landing page could not afford. These
 * are the only pieces of chrome it needs that the landing page does not.
 * ═════════════════════════════════════════════════════════════════════════ */

/* The link on the landing page to where the depth went. A row, not a banner:
 * it is a signpost for the reader who wants more, and it must not compete with
 * the price cards above it. */
.deeper {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px;
  justify-content: space-between;
  padding: 24px 26px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.deeper > div { flex: 1 1 320px; }
.deeper .btn { flex: none; }

.more-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.more-link:hover { text-decoration: underline; }
.more-link svg { transition: transform .15s ease; }
.more-link:hover svg { transform: translateX(3px); }

.hero-lite { padding-block: clamp(34px, 5vw, 56px) clamp(24px, 4vw, 40px); }

.crumbs { border-bottom: 1px solid var(--line); background: var(--card); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 11px; font-size: 13.5px; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-hi); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

@media (max-width: 700px) {
  .deeper { padding: 20px 18px; }
  .deeper .btn { width: 100%; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * SECTION-TO-SECTION TRANSITION — MOBILE ONLY
 *
 * The phone is where nearly every reader is, and where until now the page just
 * scrolled: blocks arrived, blocks left, nothing connected them. This makes the
 * sections behave like a stack of sheets — each one recedes as it goes and the
 * next slides up over it.
 *
 * It is SCROLL-LINKED, not timed. The movement is tied to the scroll position,
 * so it tracks the finger exactly: drag slowly and it moves slowly, flick and
 * it snaps away, stop halfway and it stops halfway. That is the whole
 * difference between an animation that feels interactive and one that feels
 * like it is playing at you.
 *
 * Runs entirely on the compositor via animation-timeline: view(), so there is
 * no scroll listener and no JavaScript — which matters here more than
 * anywhere, because the JS motion layer is deliberately not loaded on phones.
 * ═════════════════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {

      main > section {
        /* The stack pivots from the top edge, so a section sinks backwards
         * rather than drifting up off the screen. */
        transform-origin: 50% 0%;
        animation: section-recede linear both;
        animation-timeline: view();
        /* Nothing happens for the first half of the exit. A section that
         * starts shrinking while its last paragraph is still being read is a
         * page fighting its reader; by 55% the content is above the fold and
         * the movement is peripheral. */
        animation-range: exit 55% exit 100%;
        will-change: transform;
      }

      @keyframes section-recede {
        from { transform: none;                     opacity: 1; }
        to   { transform: scale(.9) translateY(-10px); opacity: .35; }
      }

      /* The incoming section rides up over the one leaving. Its own children
       * still do their individual reveals; this is the sheet, not the ink. */
      main > section {
        border-start-start-radius: 22px;
        border-start-end-radius: 22px;
      }

      /* A section needs to sit ON the one before it, which means its own
       * background and a shadow at the join. The hairline border becomes a
       * shadow instead — a rule across a rounded corner looks like a mistake. */
      main > section.section-line {
        border-top: 0;
        box-shadow: 0 -14px 28px -18px rgba(20, 24, 28, .45);
      }
      main > section:not(.band):not(.stats-band) { background: var(--bg); }

      /* The stacking order has to run downwards: each section paints over the
       * one above it. Ten steps is plenty — past that they are far enough
       * apart that nothing overlaps anyway. */
      main > section:nth-of-type(1)  { z-index: 1;  }
      main > section:nth-of-type(2)  { z-index: 2;  }
      main > section:nth-of-type(3)  { z-index: 3;  }
      main > section:nth-of-type(4)  { z-index: 4;  }
      main > section:nth-of-type(5)  { z-index: 5;  }
      main > section:nth-of-type(6)  { z-index: 6;  }
      main > section:nth-of-type(7)  { z-index: 7;  }
      main > section:nth-of-type(8)  { z-index: 8;  }
      main > section:nth-of-type(9)  { z-index: 9;  }
      main > section:nth-of-type(n+10) { z-index: 10; }
      main > section { position: relative; }

      /* The hero is the bottom of the stack and keeps its own exit animation
       * (@keyframes hero-exit on .hero-grid) — two recede effects on one
       * screenful is one too many. */
      main > section.hero { animation: none; border-radius: 0; box-shadow: none; }
    }
  }
}

@media print {
  main > section { animation: none !important; transform: none !important;
                   opacity: 1 !important; box-shadow: none !important; }
}
