/* Fairgo — one stylesheet for the whole site.
   Self-contained by design: no @import, no web font, no external asset, no JS.
   The page must paint completely on a slow 3G connection on a cheap Android
   phone, which is the actual device most of our users hold.

   WHAT THIS DESIGN IS TRYING TO DO
   An unknown brand is asking a stranger to get into a car with another
   stranger and to trust it with money. The only trust signals used here are
   ones we can actually stand behind: how the money moves, what we never do,
   and what a rider is charged (nothing). There are deliberately no badges,
   no counters, no logos, no testimonials and no stock photography, because
   we have none of those honestly and a fabricated one would be worse than a
   plain page.

   ACCESSIBILITY (WCAG 2.1 / 2.2 AA)
   - Every colour pair shipped below was measured with the WCAG formula, in
     BOTH schemes, and the measured ratio is written next to the token. The
     bright brand emerald (#14CF92, #0A9E78) is beautiful and FAILS as a
     background for white text (~2.5:1, ~2.9:1); it never carries text here.
   - Focus is always visible, is never removed, and has its own token so it
     can be lightened on the dark hero where blue would disappear.
   - Layout reflows to 320px with no horizontal page scroll, survives 200%
     zoom, and honours the reader's own font size (everything is in rem).
   - Motion respects prefers-reduced-motion; borders respect prefers-contrast.

   DIRECTION
   Arabic is being added, so there is not one physical left/right in this
   file. Everything uses logical properties (inline-start/end, margin-inline,
   text-align: start) and the whole page works under dir="rtl" unchanged.
   Money figures are bidi-isolated with .num so a currency symbol cannot flip
   to the wrong side of its digits in an RTL paragraph.
*/

/* ------------------------------------------------------------------ *
 * 1. Tokens — light is the primary design, dark is a separate design. *
 * ------------------------------------------------------------------ */

:root {
  /* Tells the UA to render form controls, scrollbars and the canvas in the
     right scheme, so the parts of the page we do not paint match the parts
     we do. */
  color-scheme: light dark;

  /* Type scale. Fluid where it matters, fixed where it must stay readable. */
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   clamp(1.3rem, 1.14rem + 0.8vw, 1.6rem);
  --text-2xl:  clamp(1.75rem, 1.32rem + 2.1vw, 2.5rem);
  /* Hero only. The page is long-form and stays at --text-2xl; the first
     headline is allowed to be a headline. */
  --text-display: clamp(2.25rem, 1.45rem + 3.4vw, 3.65rem);
  --text-num:  clamp(1.45rem, 1.25rem + 1vw, 1.8rem);

  /* 4px spacing rhythm. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-pill: 999px;
  --wrap: 44rem;
  /* Reading measure stays 44rem everywhere. Only the hero opens up, because
     it is the one band with something beside the text: at 1300px the old
     hero put a 44rem column against 600px of empty gradient. */
  --wrap-hero: 68rem;

  /* --- Light palette. Ratios measured against the surface named. --- */
  --ink: #14212e;            /* 16.3:1 on --bg, 15.1:1 on --surface */
  --muted: #47566a;          /*  7.5:1 on --bg,  6.9:1 on --surface */
  --link: #0a5fc2;           /*  6.1:1 on --bg,  5.7:1 on --surface */
  --link-hover: #084a99;     /*  8.6:1 on --bg */
  --accent: #046b50;         /*  6.5:1 on --bg, 5.7:1 on --accent-soft */
  --accent-ink: #ffffff;     /*  6.5:1 on --accent */
  --focus: #0a5fc2;

  --bg: #ffffff;
  --surface: #f4f7f6;
  --surface-2: #ffffff;
  --accent-soft: #e8f2ec;    /* the "how the money works" panel */

  --border: #d8e0e4;         /* decorative divider only — never a control */
  --border-strong: #7d8b96;  /*  3.5:1 on --bg: control boundaries (1.4.11) */
  --field-border: #7d8b96;

  --hero-from: #065f46;      /* white text 7.7:1 */
  --hero-mid:  #064e3b;      /* white text 9.7:1 */
  --hero-to:   #0b2a44;      /* white text 14.7:1 */
  --hero-ink: #ffffff;
  --hero-muted: #dff0ea;     /*  6.5:1 on the lightest stop of the ramp */
  --hero-num: #a7f3d0;       /*  7.6:1 on --hero-mid */
  --hero-focus: #ffffff;     /*  7.7:1 against the lightest stop */

  --flag-bg: #fff4f3;
  --flag-ink: #7a1610;       /* 10.0:1 on --flag-bg */
  --flag-edge: #b3261e;      /*  6.1:1 on --flag-bg */
  --danger: #b3261e;         /*  6.5:1 on --bg */

  --shadow-card: 0 1px 2px rgba(20, 33, 46, 0.06),
                 0 6px 16px -10px rgba(20, 33, 46, 0.24);
  --shadow-raise: 0 2px 4px rgba(20, 33, 46, 0.08),
                  0 12px 26px -14px rgba(20, 33, 46, 0.3);
}

/* Dark mode is designed, not inverted: a cool near-black ground, a dimmed
   version of the brand ramp (the light-mode emerald glares on a phone at
   night), desaturated ink rather than pure white, and no drop shadows —
   depth in the dark comes from surface steps and borders, because a black
   shadow on a black ground is invisible. Every pair re-measured. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8f1ef;          /* 14.2:1 on --bg, 12.6:1 on --surface */
    --muted: #a9bcc6;        /*  8.3:1 on --bg,  7.4:1 on --surface */
    --link: #8ac9ff;         /*  9.2:1 on --bg,  8.2:1 on --surface */
    --link-hover: #a8d8ff;   /* 10.8:1 on --bg */
    --accent: #35d6a0;       /*  8.8:1 on --bg,  7.3:1 on --accent-soft */
    --accent-ink: #06251c;   /*  8.8:1 on --accent */
    --focus: #8ac9ff;

    /* Ground matches the dark <meta name="theme-color"> in the page heads, so
       the browser chrome and the page are the same shade rather than two
       near-blacks with a visible seam between them. */
    --bg: #14212e;
    --surface: #1b2b3a;
    --surface-2: #1b2b3a;
    --accent-soft: #12332c;

    --border: #31465a;
    --border-strong: #6a808f; /* 4.0:1 on --bg */
    --field-border: #7d8b96;  /* 4.7:1 on --bg, 4.1:1 on --surface */

    --hero-from: #063f2f;     /* white text 11.9:1 */
    --hero-mid:  #05372c;
    --hero-to:   #0a2036;     /* white text 16.5:1 */
    --hero-muted: #dff0ea;
    --hero-num: #a7f3d0;

    --flag-bg: #2d0b08;
    --flag-ink: #f2b8b5;      /* 10.6:1 on --flag-bg */
    --flag-edge: #ff8a80;     /*  7.9:1 on --flag-bg */
    --danger: #ffb4ab;        /* 10.5:1 on --bg */

    --shadow-card: none;
    --shadow-raise: none;
  }
}

/* ------------------------------- *
 * 2. Base                         *
 * ------------------------------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* System faces only — nothing is fetched. The Arabic names are local
     faces on iOS/Android/Windows; naming them stops the browser falling
     back to a face with no Arabic coverage once the Arabic mirror ships. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Geeza Pro",
    "Segoe UI Arabic", Tahoma, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  /* A long URL, an email address or `country_mappings.status = 'verified'`
     must not be able to push the page sideways on a 320px screen. */
  overflow-wrap: break-word;
}

/* Arabic ascenders/descenders need more room than Latin at the same size. */
[dir="rtl"] body,
body[dir="rtl"],
:root:lang(ar) body { line-height: 1.85; }

h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h2 { font-size: var(--text-xl); margin: var(--sp-7) 0 var(--sp-2); }
h3 { font-size: var(--text-lg); margin: var(--sp-5) 0 var(--sp-1); }

p, li { color: var(--muted); }
p { margin: 0 0 var(--sp-4); }

/* Arabic and other RTL scripts are not helped by negative tracking, and it
   breaks the joins between letters. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand {
  letter-spacing: normal;
}

a { color: var(--link); }
a:hover { color: var(--link-hover); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

/* In-page links land on the heading, not underneath it. */
[id] { scroll-margin-block-start: var(--sp-5); }

/* Where a jump landed. Helps orientation on a long page, costs nothing. */
section:target > h2 {
  background: var(--accent-soft);
  box-shadow: -0.4rem 0 0 var(--accent-soft), 0.4rem 0 0 var(--accent-soft);
}

/* A money figure, isolated from the surrounding bidi run. Without this a
   currency symbol renders on the wrong side of its digits inside an Arabic
   sentence — and unlike an FSI, this is the CSS equivalent of LRI…PDI, so
   it actually fixes it. */
.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------- *
 * 3. Focus and skip link          *
 * ------------------------------- */

/* Keyboard users must be able to jump the nav. Moved with a transform
   rather than a huge negative offset: -9999px is a physical direction and
   would sit off the wrong edge (and widen the page) under dir="rtl". */
.skip {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--link);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--focus);
  border-start-start-radius: 0;
  border-end-end-radius: var(--radius);
  border-end-start-radius: var(--radius);
  transform: translateY(-130%);
}
.skip:focus { transform: none; }

/* One visible focus style everywhere. Never `outline: none`.
   The :focus rule is the fallback for older Android WebViews that do not
   know :focus-visible — in those engines the :focus-visible selector below
   is invalid and simply ignored, so the plain ring survives. */
:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* Blue on the dark hero ramp is nearly invisible; the ring goes white there. */
.hero :focus-visible,
.hero :focus { --focus: var(--hero-focus); }

/* ------------------------------- *
 * 4. Shell                        *
 * ------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.site-header {
  border-block-end: 1px solid var(--border);
  background: var(--bg);
}
/* The masthead shares the hero's width, not the article's. The page frame
   (header, hero, footer) is one band; the prose sits centred inside it at its
   own reading measure. Leaving the header at --wrap while the hero opened to
   --wrap-hero put the wordmark 12rem inboard of the headline underneath it,
   which reads as a mistake rather than as a layout. */
.site-header .wrap,
footer .wrap { max-width: var(--wrap-hero); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--sp-5);
  padding-block: var(--sp-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: underline; }
.brand img { flex: none; }

/* On a narrow phone the nav takes its own full-width row rather than being
   squeezed next to the wordmark into 22px tap targets. */
.site-nav { flex: 1 1 100%; }
@media (min-width: 34rem) { .site-nav { flex: 0 1 auto; } }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a,
footer nav a {
  display: inline-flex;
  align-items: center;
  /* A thumb, not a mouse pointer: ~44px tall including the padding. */
  min-height: 44px;
  padding-block: var(--sp-2);
  color: var(--link);
  text-decoration: none;
  touch-action: manipulation;
}
.site-nav a:hover,
footer nav a:hover { color: var(--link-hover); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* The language switches change the whole page, not a destination within it,
   so they sit apart from the section links. Only the FIRST one takes the
   auto margin: with two of them (Français, العربية) a second auto would
   split them across the row instead of keeping them as one group. */
.lang-switch { margin-inline-start: auto; }
.lang-switch + .lang-switch { margin-inline-start: 0; }
.lang-switch a { font-weight: 600; }

/* An Arabic language name sitting inside an otherwise LTR nav is its own
   bidi run; isolating it stops the neighbouring latin link from being
   reordered around it. Isolation only — the nav itself stays LTR. */
.site-nav a[lang="ar"],
footer a[lang="ar"] { unicode-bidi: isolate; }

main { padding-block: var(--sp-6) var(--sp-7); }
main > .wrap > section:first-of-type > h2 { margin-block-start: 0; }

/* ------------------------------- *
 * 5. Hero                         *
 * ------------------------------- */

.hero {
  background:
    linear-gradient(135deg, var(--hero-from), var(--hero-mid) 45%, var(--hero-to));
  color: var(--hero-ink);
  padding-block: clamp(2.25rem, 7vw, 3.75rem);
}
.hero h1 {
  color: var(--hero-ink);
  margin: 0 0 var(--sp-3);
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero .wrap { max-width: var(--wrap-hero); }
.hero-grid { display: grid; gap: var(--sp-6); align-items: center; }
/* The copy keeps its own reading measure inside the wider band, so opening the
   hero up does not turn the paragraph into a 68rem line. */
.hero-copy { max-width: 36rem; }
.hero-art { display: none; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-7); }
  .hero-art { display: block; justify-self: center; }
}
.hero p {
  margin: 0;
  max-width: 34rem;
  font-size: var(--text-lg);
  color: var(--hero-muted);
}
.hero .actions {
  margin-block-start: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* The three numbers that are the whole argument. They are a fee schedule,
   not a popularity metric — each one is labelled in words so it cannot be
   mistaken for a user count, and none of them is a claim we cannot back. */
.hero-facts {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-4) 0 0;
  border-block-start: 1px solid rgba(255, 255, 255, 0.28);
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  color: var(--hero-muted);
}
.hero-facts b {
  flex: 0 0 4.5rem;
  text-align: end;
  font-size: var(--text-num);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hero-num);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 34rem) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .hero-facts li { flex-direction: column; gap: var(--sp-1); }
  .hero-facts b { flex: none; text-align: start; }
}

/* The phone. A CSS frame around a real screenshot rather than a photograph of
   a hand holding a phone: we have the screenshots honestly and we do not have
   the photograph. `aspect-ratio` plus width/height on the <img> means the slot
   is reserved before the image arrives, so nothing shifts (CLS). */
.device {
  margin: 0;
  inline-size: 100%;
  max-inline-size: 20rem;
  border-radius: 2rem;
  padding: 0.5rem;
  background: linear-gradient(160deg, #2b3a44, #10181d);
  box-shadow: 0 1.5rem 3rem rgba(4, 20, 14, 0.35);
}
.device img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 660 / 1434;
  border-radius: 1.6rem;
  background: var(--surface);
}
.shots {
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.shots > li { margin: 0; }
.shots .device { max-inline-size: none; border-radius: 1.4rem; padding: 0.35rem; }
.shots .device img { border-radius: 1.1rem; }
.shots figcaption,
.shots .shot-cap {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ------------------------------- *
 * 6. Buttons                      *
 * ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;               /* thumb-sized, not pointer-sized */
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;     /* kills the legacy 300ms tap delay */
  transition: background-color 180ms ease-out, color 180ms ease-out,
              border-color 180ms ease-out, transform 120ms ease-out;
}
.btn:active { transform: translateY(1px); }
/* 150ms is the shortest duration a state change still reads as a change rather
   than a glitch. The global prefers-reduced-motion block below collapses these
   to 0.01ms, so this costs nothing to a reader who asked for stillness. */
.btn { transition: background-color 150ms ease-out, color 150ms ease-out,
                   border-color 150ms ease-out, transform 100ms ease-out; }
a { transition: color 150ms ease-out; }

.btn-primary { background: #ffffff; color: #06342a; }   /* 13.7:1 */
.btn-primary:hover { background: #e2f1ea; color: #06342a; }
.btn-secondary { border-color: #ffffff; color: #ffffff; }
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ------------------------------- *
 * 7. Content blocks               *
 * ------------------------------- */

.lede {
  font-size: var(--text-lg);
  color: var(--ink);
  max-width: 36rem;
}
.updated { font-size: var(--text-sm); color: var(--muted); }

/* Lists in running content: logical indent, a marker in the brand colour,
   and room between items so a long list is scannable rather than a wall.
   The marker is deliberately neutral — not a tick — because these lists are
   also used on the legal pages to say what we do NOT do. */
main ul:not(.cards):not(.hero-facts):not(.flow),
main ol:not(.cards):not(.flow) {
  padding-inline-start: 1.35rem;
  margin-block: var(--sp-4);
}
main ul:not(.cards) > li,
main ol:not(.cards) > li { margin-block-end: var(--sp-2); }
main ul:not(.cards) > li::marker { color: var(--accent); }
main li > strong { color: var(--ink); }

/* Where the money goes. This is the single most important block on the
   site, so it gets the page's only tinted panel and the only numbered
   sequence — everything else is deliberately quiet. */
.money {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-block: var(--sp-4) var(--sp-6);
}
.money > :first-child { margin-block-start: 0; }
.money > :last-child { margin-block-end: 0; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-4);
}
.flow > li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}
.flow-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: var(--text-sm);
  direction: ltr;
  unicode-bidi: isolate;
}
.flow h3 { margin: 0 0 var(--sp-1); font-size: var(--text-base); }
.flow p { margin: 0; }

.cards {
  display: grid;
  gap: var(--sp-4);
  padding: 0;
  margin: var(--sp-5) 0 0;
  list-style: none;
}
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card h3 { margin-block-start: 0; color: var(--ink); }
.card > :last-child { margin-block-end: 0; }

/* An emphasis block that reads as "read this", built only from tokens that
   were already measured, rather than inventing a warning colour that would
   need its own dark variant to stay legible. */
.notice,
.note {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-block: var(--sp-5);
}
.notice > :first-child,
.note > :first-child { margin-block-start: 0; }
.notice > :last-child,
.note > :last-child { margin-block-end: 0; }
.note p { color: var(--muted); }

/* ------------------------------- *
 * 8. Tables                       *
 * ------------------------------- */

/* Wide content scrolls in its own box so the PAGE never scrolls sideways. */
.table-scroll { overflow-x: auto; }

table { border-collapse: collapse; inline-size: 100%; margin-block: var(--sp-4); }
caption {
  text-align: start;               /* not `left`: flips correctly under RTL */
  color: var(--muted);
  padding-block-end: var(--sp-2);
}
th, td {
  text-align: start;
  padding: var(--sp-3);
  border-block-end: 1px solid var(--border);
  vertical-align: top;
}
th { color: var(--ink); }
thead th { border-block-end: 2px solid var(--border-strong); }
td strong { color: var(--ink); }

/* The two Fairgo columns of the earnings comparison: the 1% market (3) and the
   market where the fee cannot be collected and is therefore 0% (4). Emphasised
   by SOURCE position, so they stay on the correct columns when the table
   mirrors under dir="rtl". Column 4 carries the same emphasis as column 3
   because it is the same claim stated for the launch market, not a footnote to
   it — the last row's <strong> is what separates them.
   The `#chauffeurs ~ .table-scroll` bridge that used to sit here for
   fr/index.html is gone: that table carries class="compare" itself now, which
   is the condition the old comment set for deleting it. */
.compare td:nth-child(3),
.compare th:nth-child(3),
.compare td:nth-child(4),
.compare th:nth-child(4) {
  background: var(--accent-soft);
  color: var(--ink);
}
.compare tbody tr:last-child td:nth-child(3),
.compare tbody tr:last-child td:nth-child(4) {
  font-size: var(--text-lg);
}

/* ------------------------------- *
 * 9. Owner placeholders           *
 * ------------------------------- */

/* A fact only the owner can supply — a legal entity name, a governing law,
   a support address on a domain we own. Deliberately loud: these pages are
   what a regulator and App Review read, so an unanswered placeholder must
   be impossible to ship by accident. Every one contains the literal string
   TODO-OWNER, so `grep -rn "TODO-OWNER" web/` is the pre-deploy check.
   Loud in BOTH schemes — the previous version was a white box in dark mode. */
.todo {
  border: 3px dashed var(--flag-edge);
  background: var(--flag-bg);
  color: var(--flag-ink);
  padding: var(--sp-4);
  border-radius: var(--radius);
  margin-block: var(--sp-5);
  font-weight: 600;
}
.todo p { color: var(--flag-ink); margin-block: var(--sp-1); }
.todo > :first-child { margin-block-start: 0; }
.todo > :last-child { margin-block-end: 0; }
.todo a { color: var(--flag-ink); }
.todo code { color: var(--flag-ink); }

/* Inline variant, for a placeholder that sits inside a sentence. */
.todo-inline {
  background: var(--flag-bg);
  color: var(--flag-ink);
  border: 2px dashed var(--flag-edge);
  border-radius: var(--radius-sm);
  padding-inline: var(--sp-1);
  font-weight: 700;
}

/* ------------------------------- *
 * 10. Footer                      *
 * ------------------------------- */

footer {
  border-block-start: 1px solid var(--border);
  padding-block: var(--sp-5) var(--sp-6);
  color: var(--muted);
  font-size: var(--text-sm);
}
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-4);
  list-style: none;
  margin: 0 0 var(--sp-2);
  padding: 0;
}
footer p { margin-block-end: 0; }
/* The intermediary statement is a legal position, not small print. */
.legal-note {
  border-block-start: 1px solid var(--border);
  padding-block-start: var(--sp-4);
  margin-block-start: var(--sp-2);
  max-width: 40rem;
}

/* ------------------------------- *
 * 11. Forms                       *
 * ------------------------------- */

.field { margin-block: var(--sp-5); }
.field label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-block-end: var(--sp-1);
}
.field .hint { font-weight: 400; color: var(--muted); }
.field input,
.field textarea {
  inline-size: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-2);
  /* NOT var(--border): that divider grey is 1.34:1 on white, and WCAG 1.4.11
     holds the boundary of an interactive control to 3:1. #7d8b96 is 3.50:1
     on white and 4.57:1 on the dark surface. */
  border: 2px solid var(--field-border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  min-height: 48px;
}
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--focus); }
.err { color: var(--danger); font-weight: 600; margin: var(--sp-1) 0 0; }
.btn-send {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.btn-send:hover { background: var(--accent); filter: brightness(1.12); }
.btn-send[disabled] { opacity: 0.55; cursor: not-allowed; filter: none; }
.form-status { margin-block-start: var(--sp-3); font-weight: 600; color: var(--ink); }

/* Honeypot. Clipped rather than pushed off-screen with a physical offset —
   `left: -9999px` becomes `right: -9999px` under RTL and widens the page.
   Still in the DOM and still focusable-adjacent, so bots keep filling it. */
.hp {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------- *
 * 12. Preferences and print       *
 * ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink);
    --border: var(--ink);
    --border-strong: var(--ink);
    --field-border: var(--ink);
  }
  .card, .notice, .note, .money { border-width: 2px; }
}

/* Hover effects are for devices that actually have a pointer. On a phone a
   :hover rule sticks after the tap and looks broken. */
@media (hover: none) {
  .btn-primary:hover { background: #ffffff; }
  .btn-secondary:hover { background: transparent; }
}

/* The legal pages get printed and filed. Make that come out readable. */
@media print {
  .site-header, footer nav, .skip, .hero .actions { display: none; }
  :root {
    --ink: #000000; --muted: #222222; --link: #000000;
    --bg: #ffffff; --surface: #ffffff; --accent-soft: #ffffff;
    --border: #999999;
  }
  .hero { background: none; color: #000000; padding-block: 0; }
  .hero h1, .hero p, .hero-facts li, .hero-facts b { color: #000000; }
  .card, .notice, .note, .money { break-inside: avoid; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
