/* Flogg's design system, on the web.
 *
 * The same three ideas the app is built on, and for the same reasons:
 *   1. Rank everything. One thing per section matters most and is set larger or
 *      heavier. Nothing is styled "medium" by default.
 *   2. Depth belongs to surfaces. Cards sit *on* the page with a soft shadow.
 *   3. Colour is scarce. One accent. If everything is pine green, nothing is.
 *
 * Values are lifted from DesignSystem.swift rather than re-picked by eye, so the site
 * and the app cannot drift into two slightly different greens.
 */

:root {
  --paper: #f9f8f6;          /* PaperBase */
  --card: #ffffff;           /* CardSurface */
  --accent: #0a4d3b;         /* PineGreen */
  --on-accent: #f9f8f6;      /* Not white: white on the dark accent fails AA. */
  --warning: #ac4334;        /* WarningRust */
  --hairline: #ded9d3;       /* Hairline */
  --text: #16181a;
  --text-secondary: #5b5b60; /* Ours, not a system grey: clears 6:1 on paper. */

  /* Elevation, from DS.Elevation. Shadows only work on a light ground. */
  --resting: 0 3px 10px rgba(0, 0, 0, 0.06);
  --raised: 0 6px 18px rgba(0, 0, 0, 0.10);
  --floating: 0 10px 28px rgba(0, 0, 0, 0.16);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --pad: 16px;
  --generous: 24px;

  --quick: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --settle: 340ms cubic-bezier(0.25, 0.9, 0.25, 1);

  --measure: 62ch;
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1c1e;
    --card: #2c2c2e;
    --accent: #4fa98c;       /* The dark-appearance accent. */
    --on-accent: #0e211b;
    --warning: #e57365;
    --hairline: #3a3a3c;
    --text: #f2f2f4;
    --text-secondary: #a0a0a8;
    /* In dark mode iOS separates surfaces by making them lighter and adding a
     * hairline; a black shadow on a near-black ground is invisible. */
    --resting: 0 0 0 1px var(--hairline);
    --raised: 0 0 0 1px var(--hairline);
    --floating: 0 0 0 1px var(--hairline);
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  position: relative;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Ambient background --------------------------------------------------------
 * Flat paper across 4,000 pixels reads as unfinished rather than calm: there is
 * nothing for the eye to travel over between sections. Two things fix it without
 * adding anything to look *at* — a pair of very soft accent washes that give the page
 * a light source, and a dot grid fine enough to register as paper texture rather than
 * as a pattern. Both sit behind everything and neither is above 4% alpha. */

body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%,
      color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%),
    radial-gradient(48rem 38rem at 8% 42%,
      color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
    radial-gradient(52rem 34rem at 92% 88%,
      color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%);
}

body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  opacity: 0.035;
}

@media (prefers-color-scheme: dark) {
  /* The washes have to work harder on a dark ground, and the dot grid has to be
   * lighter than the page rather than darker, or it disappears. */
  body::before { opacity: 1.6; }
  body::after { color: #ffffff; opacity: 0.03; }
}

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* Type ladder, mirroring DS.Typography. Fluid so it ranks the same on a phone. */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.lede { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--text-secondary); }
.detail { font-size: 0.9rem; color: var(--text-secondary); }
.micro {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary);
}
.money { font-variant-numeric: tabular-nums; font-weight: 700; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --- Chrome ------------------------------------------------------------------ */

header.bar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--quick);
}
header.bar[data-scrolled="true"] { border-bottom-color: var(--hairline); }
header.bar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.wordmark .mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); flex: none;
}
nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a { color: var(--text-secondary); text-decoration: none; font-size: 0.94rem; }
nav.links a:hover { color: var(--text); }
@media (max-width: 640px) { nav.links .hide-sm { display: none; } }

/* --- Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform var(--quick), box-shadow var(--quick);
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--raised); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--floating); }
.btn-secondary { background: transparent; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn:active { transform: translateY(0) scale(0.99); }

/* --- Surfaces ---------------------------------------------------------------- */

.card {
  background: var(--card); border-radius: var(--r-md);
  padding: var(--generous); box-shadow: var(--resting);
}
.card-raised { box-shadow: var(--raised); }

section { padding: clamp(64px, 9vw, 128px) 0; }
/* Heading left, standfirst right. A single narrow column stacked at the left of a
 * 1100px page leaves the whole right-hand side empty, which reads as a layout that
 * ran out rather than one with room to breathe. */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-bottom: 14px; max-width: 20ch; }
.section-head .lede { max-width: 46ch; }
@media (min-width: 900px) {
  .section-head {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 56px); align-items: end;
  }
  .section-head .micro { grid-column: 1 / -1; }
  .section-head h2 { margin-bottom: 0; }
  .section-head .lede { padding-bottom: 4px; }
}

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 11%, transparent); color: var(--accent);
}

/* --- Motion ------------------------------------------------------------------
 * Everything below is decoration. Under `prefers-reduced-motion` it all resolves to
 * the finished state immediately — the page must read identically without it. */

/* Content is visible by default and only hidden once a script has confirmed it can
 * put it back. The opposite way round — hiding first, revealing with JavaScript — meant
 * a direct link to any section rendered a blank page, because the observer had nothing
 * to intersect. That is not a graceful degradation, it is a broken page. */
html[data-reveal="on"] .reveal { opacity: 0; transform: translateY(18px); }
html[data-reveal="on"] .reveal.in {
  opacity: 1; transform: none; transition: opacity var(--settle), transform var(--settle);
}
html[data-reveal="on"] .reveal.d1.in { transition-delay: 70ms; }
html[data-reveal="on"] .reveal.d2.in { transition-delay: 140ms; }
html[data-reveal="on"] .reveal.d3.in { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .phone-screen > * { animation: none !important; }
  .typing { animation: none !important; border-right: 0 !important; width: auto !important; }
  .shimmer { animation: none !important; }
}

/* --- Footer ------------------------------------------------------------------ */

footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 64px;
  color: var(--text-secondary); font-size: 0.9rem;
}
footer .rows { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { color: var(--text); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* --- Long-form pages ---------------------------------------------------------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-secondary); margin-bottom: 12px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 22px; }
.prose .updated { font-size: 0.85rem; }

/* --- The phone ----------------------------------------------------------------
 * A demonstration, not a screenshot: the hero replays the actual flow — shutter,
 * reading the label, the compiled listing — so the claim on the left is shown rather
 * than only asserted. Built from the same tokens as the app it depicts. */

.hero {
  display: grid; gap: clamp(40px, 6vw, 72px); align-items: center;
  padding: clamp(40px, 5vw, 68px) 0 clamp(24px, 3vw, 44px);
}
@media (min-width: 940px) { .hero { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { margin: 18px 0 20px; }
.hero .lede { max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .footnote { margin-top: 18px; }

.phone-wrap { display: grid; place-items: center; perspective: 1400px; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19.5; position: relative;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #3a3a3c, #1c1c1e 40%, #2c2c2e);
  box-shadow: var(--floating), 0 40px 70px rgba(0, 0, 0, 0.22);
  transform: rotateY(-11deg) rotateX(3deg);
  animation: settle-in 900ms cubic-bezier(0.22, 1, 0.3, 1) both;
}
@keyframes settle-in {
  from { opacity: 0; transform: rotateY(-20deg) rotateX(7deg) translateY(26px); }
  to   { opacity: 1; transform: rotateY(-11deg) rotateX(3deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; transform: none; }
}

.phone-screen {
  position: relative; height: 100%; width: 100%; overflow: hidden;
  border-radius: 34px; background: var(--paper);
  display: grid; grid-template-rows: 1fr;
  /* In dark mode the paper is nearly the bezel's colour, so without this the screen
   * and the body of the phone merge into one dark shape. */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}
.phone-notch {
  position: absolute; top: 9px; left: 50%; translate: -50% 0; z-index: 5;
  width: 92px; height: 26px; border-radius: 999px; background: #0b0b0c;
}

/* Each scene owns the screen and fades through in turn. 12s loop, four scenes. */
.scene {
  position: absolute; inset: 0; padding: 44px 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  /* Opaque, so the scene fading in covers the one going out. Transparent scenes
   * crossfade *through* each other, which reads as a rendering fault rather than
   * as a transition. */
  background: var(--paper);
  opacity: 0; animation: scene 12s infinite;
}
.scene:nth-child(2) { animation-delay: 0s; }
.scene:nth-child(3) { animation-delay: 3s; }
.scene:nth-child(4) { animation-delay: 6s; }
.scene:nth-child(5) { animation-delay: 9s; }
/* Two opaque layers cross-fading always ghost through each other at the halfway
 * point, however opaque each one is. The fix is not more opacity — it is to make the
 * fade short enough not to be read as a state of its own: 120ms of a 12s loop. The
 * outgoing scene holds until the incoming has fully covered it, so there is never a
 * frame of bare paper either. */
@keyframes scene {
  0%    { opacity: 0; transform: translateY(6px); }
  1%    { opacity: 1; transform: none; }
  25%   { opacity: 1; transform: none; }
  26%   { opacity: 0; transform: none; }
  100%  { opacity: 0; }
}

/* Scene 1 — the camera. */
.viewfinder {
  flex: 1; border-radius: var(--r-md); position: relative; overflow: hidden;
  background: linear-gradient(155deg, #223243, #16202b 55%, #1b2836);
}
.viewfinder::after {
  content: ""; position: absolute; inset: 22% 18% 26%;
  border-radius: 14px; background: linear-gradient(150deg, #2f4a63, #24394c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.shot-strip { display: flex; gap: 6px; }
.shot-slot {
  flex: 1; height: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--text-secondary) 30%, transparent);
}
.shot-slot.done { background: var(--accent); }
.shutter {
  width: 52px; height: 52px; border-radius: 999px; margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.85); background: rgba(255,255,255,0.14);
  animation: press 12s infinite;
}
@keyframes press {
  0%, 14% { transform: scale(1); }
  16%     { transform: scale(0.86); }
  18%, 100% { transform: scale(1); }
}

/* Scene 2 — reading it. */
.reading { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.reading .row { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.reading .tick {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.shimmer {
  height: 9px; border-radius: 999px; flex: 1;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--text-secondary) 18%, transparent) 25%,
    color-mix(in srgb, var(--text-secondary) 34%, transparent) 37%,
    color-mix(in srgb, var(--text-secondary) 18%, transparent) 63%);
  background-size: 300% 100%; animation: sweep 1.5s linear infinite;
}
@keyframes sweep { to { background-position: -300% 0; } }

/* Scene 3 — the listing, typing itself out. */
.listing-title { font-size: 0.94rem; font-weight: 600; line-height: 1.35; }
.typing {
  display: inline-block; overflow: hidden; white-space: nowrap;
  max-width: 100%; vertical-align: bottom;
  border-right: 2px solid var(--accent); width: 0;
  animation: type 2.1s steps(46, end) 0.25s forwards, caret 700ms step-end infinite;
}
@keyframes type { to { width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }
.mini-card {
  background: var(--card); border-radius: var(--r-sm); padding: 12px;
  box-shadow: var(--resting);
}
.mini-label { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 700; }
.tabs { display: flex; gap: 5px; }
.tab {
  flex: 1; text-align: center; font-size: 0.66rem; font-weight: 600; padding: 6px 0;
  border-radius: 999px; background: var(--card); color: var(--text-secondary);
  box-shadow: var(--resting);
}
.tab.on { background: var(--accent); color: var(--on-accent); }

/* Scene 4 — the money. */
.ledger { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.gauge { height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--text-secondary) 18%, transparent); overflow: hidden; }
/* The resting width is the true figure, and the animation runs *from* zero to it.
 * Starting at zero and animating up leaves the bar wrong in every context where the
 * animation does not complete — a print, a screenshot, a paused tab. */
.gauge > i {
  display: block; height: 100%; width: 64%; border-radius: 999px; background: var(--accent);
  animation: fill 1.5s cubic-bezier(0.22, 1, 0.3, 1) 0.3s backwards;
}
@keyframes fill { from { width: 0; } }

/* ==============================================================================
 * Below the hero.
 *
 * The app is deliberately quiet; a marketing page has the opposite job, and that is
 * the good reason to depart from "colour is scarce" here. It departs in one direction
 * only — more of the same pine green, as tint and as a full-bleed band — rather than
 * by introducing hues the product does not own.
 * ============================================================================== */

section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }

/* A tinted band, rather than white-on-paper. The old #ffffff against #f9f8f6 was a
 * two-percent difference: enough to notice as an edge, not enough to read as a
 * deliberate change of ground. */
.band-section {
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  border-block: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

/* --- Step cards, each with its own small animation ---------------------------- */

.step { display: flex; flex-direction: column; gap: 16px; }
.step .figure {
  height: 132px; border-radius: var(--r-sm); padding: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  overflow: hidden;
}
.step h3 { margin: 0; }
.step .num {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: 0.74rem; font-weight: 700; flex: none;
}
.step .head { display: flex; align-items: center; gap: 10px; }

/* 01 — shot slots filling, one after another. */
.slots { display: flex; gap: 6px; }
.slots i {
  flex: 1; height: 7px; border-radius: 999px; display: block;
  background: color-mix(in srgb, var(--text-secondary) 22%, transparent);
}
.slots i { animation: slot-fill 3.2s infinite; }
.slots i:nth-child(2) { animation-delay: .28s; }
.slots i:nth-child(3) { animation-delay: .56s; }
.slots i:nth-child(4) { animation-delay: .84s; }
.slots i:nth-child(5) { animation-delay: 1.12s; }
.slots i:nth-child(6) { animation-delay: 1.4s; }
@keyframes slot-fill {
  0%, 8%    { background: color-mix(in srgb, var(--text-secondary) 22%, transparent); }
  16%, 72%  { background: var(--accent); }
  84%, 100% { background: color-mix(in srgb, var(--text-secondary) 22%, transparent); }
}
.frame {
  flex: 1; border-radius: 8px; min-height: 44px;
  background: linear-gradient(150deg, #2b4257, #1d2e3d);
  position: relative; overflow: hidden;
}
.frame::after {
  content: ""; position: absolute; inset: 26% 30%;
  border-radius: 6px; background: rgba(255,255,255,0.10);
}

/* 02 — chips, one of which gets chosen. */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span {
  font-size: 0.72rem; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: var(--card); color: var(--text-secondary); box-shadow: var(--resting);
}
.chips span.pick { animation: pick 3.2s infinite; }
@keyframes pick {
  0%, 30%  { background: var(--card); color: var(--text-secondary); transform: none; }
  40%, 82% { background: var(--accent); color: var(--on-accent); transform: scale(1.04); }
  92%,100% { background: var(--card); color: var(--text-secondary); transform: none; }
}

/* 03 — fields being handed over one at a time. */
.fields { display: flex; flex-direction: column; gap: 7px; }
.fields div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.7rem; font-weight: 600; padding: 8px 11px; border-radius: 8px;
  background: var(--card); color: var(--text-secondary); box-shadow: var(--resting);
}
.fields em { font-style: normal; color: var(--accent); font-size: 0.64rem; }
.fields div { animation: handover 3.6s infinite; }
.fields div:nth-child(2) { animation-delay: 1.2s; }
.fields div:nth-child(3) { animation-delay: 2.4s; }
@keyframes handover {
  0%, 4%    { transform: translateX(0); box-shadow: var(--resting); }
  12%, 28%  { transform: translateX(6px); box-shadow: var(--raised); }
  36%, 100% { transform: translateX(0); box-shadow: var(--resting); }
}

/* --- The three-listings comparison -------------------------------------------- */

.compare { display: grid; gap: 16px; }
@media (min-width: 860px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.listing-card {
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--resting);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  border-top: 3px solid var(--accent);
}
.listing-card .where {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
}
.listing-card .field { display: flex; flex-direction: column; gap: 3px; }
.listing-card .field .k {
  font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 700;
}
.listing-card .field .v { font-size: 0.88rem; line-height: 1.4; }
.listing-card .note {
  margin-top: auto; font-size: 0.74rem; color: var(--text-secondary);
  padding-top: 12px; border-top: 1px solid var(--hairline);
}

/* --- The money band ------------------------------------------------------------ */

.band {
  background: var(--accent); color: var(--on-accent);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 5vw, 64px);
}
.band h2, .band .money { color: var(--on-accent); }
/* Blended toward the band's own green, not toward transparent. Mixing text with
 * `transparent` on a dark ground drops it to about 2:1 — nominally "softer", actually
 * unreadable. Blending toward the background dims it while keeping contrast
 * measurable: these land at 6.8:1 and 5.6:1 against the band. */
.band .lede, .band .detail { color: color-mix(in srgb, var(--on-accent) 82%, var(--accent)); }
.band .micro { color: color-mix(in srgb, var(--on-accent) 72%, var(--accent)); }
.band .stat-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .band .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.band .stat {
  padding: 18px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--on-accent) 10%, var(--accent));
}
.band .stat .money { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.band .gauge { background: color-mix(in srgb, var(--accent) 55%, #000); }
.band .gauge > i { background: var(--on-accent); }

/* --- Where photos go ----------------------------------------------------------- */

.route { display: grid; gap: 16px; }
@media (min-width: 800px) { .route { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.route .end {
  background: var(--card); border-radius: var(--r-md); padding: 22px;
  box-shadow: var(--resting); display: flex; flex-direction: column; gap: 10px;
}
.route .end.on-device { background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.route .arrow {
  display: grid; place-items: center; color: var(--text-secondary);
  padding: 8px 0;
}
.route .arrow .line {
  width: 100%; min-width: 60px; height: 2px; border-radius: 2px; position: relative;
  background: color-mix(in srgb, var(--text-secondary) 25%, transparent);
}
.route .arrow .line::after {
  content: ""; position: absolute; top: -3px; left: 0;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
  animation: travel 2.6s ease-in-out infinite;
}
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; }
                    80% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@media (max-width: 799px) { .route .arrow { display: none; } }
.route .tag {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}

/* Cards lift a little on hover — a page-wide affordance the app has no need for. */
@media (hover: hover) {
  .card, .listing-card, .route .end { transition: transform var(--quick), box-shadow var(--quick); }
  .card:hover, .listing-card:hover, .route .end:hover {
    transform: translateY(-3px); box-shadow: var(--raised);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slots i, .chips span, .fields div, .route .arrow .line::after { animation: none !important; }
  .card:hover, .listing-card:hover, .route .end:hover { transform: none; }
}

/* --- Filling the spaces that were left over ----------------------------------- */

.band-split { display: grid; gap: clamp(20px, 3vw, 44px); margin-bottom: 32px; }
@media (min-width: 820px) {
  .band-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
}
.band .band-split .lede { max-width: 46ch; margin: 0; }

/* What the ledger actually records — concrete, and it fills the half of the band the
 * headline was leaving empty. */
.tracked, .perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tracked li, .perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; line-height: 1.35;
}
/* A glyph rather than an SVG data URI. A data URI cannot read a custom property, so
 * the tick was painted in the light-mode green and vanished on the dark disc in dark
 * mode. This inherits, so both themes are right by construction. */
.tracked li::before, .perks li::before {
  content: "\2713"; width: 18px; height: 18px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.tracked li::before { background: var(--on-accent); color: var(--accent); }
.tracked li { color: color-mix(in srgb, var(--on-accent) 90%, var(--accent)); }

.perks {
  margin: 26px auto 0; max-width: 34rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  text-align: left;
}
.perks li { color: var(--text-secondary); font-size: 0.88rem; }
.perks li::before { background: var(--accent); color: var(--on-accent); }

/* A section head with no standfirst should not leave half the row empty. */
@media (min-width: 900px) {
  .section-head:not(:has(.lede)) { display: block; }
  .section-head:not(:has(.lede)) h2 { max-width: 28ch; }
}
