/*
 * READY/SET website: the one shared stylesheet.
 *
 * - No build step, no web fonts (system font stack), no external files.
 * - Colours are tokens on :root, with a dark set under prefers-color-scheme.
 *   They are the app's own colours (paper, ink, teal, orange) and every text
 *   pair passes WCAG AA (4.5:1). Status colours always come with a word and
 *   an icon, never colour alone.
 * - Mobile first: the base styles are for a 360 px phone; wider screens add
 *   columns at 640 px and 900 px.
 */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --bg: #f8f5ee;
  --surface: #ffffff;
  --surface-2: #f0ebe1;
  --sand: #e9e0d0;
  --text: #1a1d18;
  --muted: #5c564c;
  --border: #e2dace;
  --border-strong: #cfc3ad;

  --accent: #14727f;
  --accent-hover: #0f5d68;
  --on-accent: #ffffff;
  --slash: #14727f;
  --focus: #14727f;

  --band: #0e1c18;
  --on-band: #f3efe6;
  --on-band-muted: #b9c4be;
  --band-accent: #e99a63;

  --fine: #3b6d11;
  --fine-bg: #eaf3de;
  --monitor: #8a5209;
  --monitor-bg: #faeeda;
  --modify: #a32d2d;
  --modify-bg: #fcebeb;
  --missing: #6b6459;
  --missing-bg: #efebe4;
  --building: #2f6f8f;
  --building-bg: #e3eef3;

  /* Photo overlays: the same in both themes. Text on a photo sits on at least 60% of this
     dark scrim. Checked pixel by pixel on every photo: the lowest contrast for --on-photo is above 5:1. */
  --scrim: 9 20 17;
  --on-photo: #f6f3ec;
  --photo-accent: #e99a63;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(14 28 24 / 0.06), 0 8px 24px rgb(14 28 24 / 0.06);
  --wrap: 1120px;
  --gutter: 16px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1c18;
    --surface: #142621;
    --surface-2: #1b302a;
    --sand: #1b302a;
    --text: #e6ece9;
    --muted: #a5b2aa;
    --border: #2b3c36;
    --border-strong: #3d524a;

    --accent: #e8945c;
    --accent-hover: #f0a06c;
    --on-accent: #111111;
    --slash: #e8945c;
    --focus: #e8945c;

    --band: #22403a;
    --on-band: #f3efe6;
    --on-band-muted: #b9c4be;
    --band-accent: #e8945c;

    --fine: #9bd06a;
    --fine-bg: #1e3313;
    --monitor: #f0b45a;
    --monitor-bg: #3a2a10;
    --modify: #f28b82;
    --modify-bg: #3d1a1a;
    --missing: #aebbb3;
    --missing-bg: #22302b;
    --building: #8ec5e0;
    --building-bg: #16303d;

    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* The header sticks to the top only when the menu script runs (see "Header and menu"),
   so only then do jump links and focused elements need room above them. */
html.js { scroll-padding-top: 80px; }
@media (max-height: 500px) { html.js { scroll-padding-top: 0; } }

/* "Skip to content" moves focus to <main tabindex="-1">; it needs no ring of its own. */
main:focus { outline: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { body { font-size: 1.0625rem; line-height: 1.6; } }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw + 1rem, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 2.4vw + 1rem, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
.h3-size { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }

p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1rem; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong { font-weight: 700; }
small, .small { font-size: 0.9rem; }
abbr[title] { text-decoration: none; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

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

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

.icon {
  width: 1.15em; height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 780px; }

.section { padding-block: clamp(32px, 7vw, 88px); }
.section--tight { padding-block: clamp(28px, 5vw, 56px); }
.section--alt { background: var(--surface-2); }
.section--white { background: var(--surface); }
.section--band { background: var(--band); color: var(--on-band); --focus: var(--band-accent); }
.section--band a { color: var(--band-accent); }
.section--band .muted, .section--band .lead { color: var(--on-band-muted); }
.section + .section--alt, .section--alt + .section { border-top: 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(18px, 4vw, 40px); }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.section--band .eyebrow { color: var(--on-band-muted); }

.lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem); color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }

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

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
  .split--top { align-items: start; }
}

.stack > * + * { margin-top: 1rem; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.plain-list { list-style: none; padding: 0; }
.headshot { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Header and menu ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
/* Sticky only when the menu script runs (without it, every menu link shows and the header is
   tall), and never on a short screen: a phone held sideways, or a page zoomed right in. */
.js .site-header { position: sticky; top: 0; }
@media (max-height: 500px) { .js .site-header { position: static; } }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }

.wordmark {
  font-weight: 850;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.wordmark .slash { color: var(--slash); padding-inline: 0.04em; }

.menu-button {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: inline; }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* With JavaScript on a phone: the menu button shows and the list folds away. */
@media (max-width: 899px) {
  .js .menu-button { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block;
    padding-bottom: 8px;
    /* The open menu scrolls inside itself if the screen is too short to show every link. */
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .js .site-nav.is-open ul { flex-direction: column; }
  .js .site-nav.is-open a { font-size: 1.1rem; padding-inline: 4px; }
}
@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; }
  .site-nav ul { justify-content: flex-end; }
}

/* ---------- Buttons and links (one button style, site-wide) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.section--band .btn { background: var(--band-accent); color: #111111; }
.section--band .btn:hover { background: #f0a06c; color: #111111; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
}
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 1.5rem;
}
@media (max-width: 479px) {
  .actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(24px, 6vw, 80px) clamp(36px, 7vw, 88px); }
.hero h1 { max-width: 20ch; }
.hero .split h1 { max-width: 15ch; }
.hero .lead { max-width: 36rem; }

/* ---------- Photo hero and photo bands ----------
   The photo is a real <img> (so phones load the small file through srcset) laid behind
   the text, with a dark scrim on top. Home and Sheets heroes, and the closing bands. */

.photo-hero,
.photo-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgb(var(--scrim));
  color: var(--on-photo);
  /* The focus ring is the text colour: 5:1 or more over every part of every photo. */
  --focus: var(--on-photo);
}
.photo-hero { padding-block: clamp(32px, 9vw, 112px) clamp(36px, 9vw, 112px); }
.photo-band { padding-block: clamp(44px, 9vw, 112px); }
.photo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.photo-hero::before,
.photo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--scrim) / 0.66), rgb(var(--scrim) / 0.82));
}
.photo-band::before { background: linear-gradient(180deg, rgb(var(--scrim) / 0.6), rgb(var(--scrim) / 0.78)); }
@media (min-width: 900px) {
  /* Darkest behind the text on the left, so the photo shows on the right. */
  .photo-hero::before {
    background: linear-gradient(90deg, rgb(var(--scrim) / 0.84) 0, rgb(var(--scrim) / 0.7) calc(50% + 180px), rgb(var(--scrim) / 0.2) 100%);
  }
  /* Side variant (Sheets): a portrait photo fills the right of the hero, uncovered. */
  .photo-hero--side .photo-bg { left: auto; width: 44%; }
  .photo-hero--side .wrap > div { max-width: min(38rem, calc(56vw - 72px)); }
  .photo-hero--side::before {
    background: linear-gradient(90deg, rgb(var(--scrim)) 0, rgb(var(--scrim)) 56%, rgb(var(--scrim) / 0) 70%);
  }
}
.photo-bg--fog { object-position: 35% 60%; }
.photo-bg--coach { object-position: 55% 45%; }
@media (prefers-contrast: more) {
  .photo-hero::before, .photo-band::before, .photo-hero--side::before { background: rgb(var(--scrim) / 0.92); }
}
.photo-hero h1,
.photo-hero h2,
.photo-band h2,
.photo-hero p,
.photo-band p,
.photo-hero .lead,
.photo-band .lead,
.photo-hero .eyebrow,
.photo-band .eyebrow { color: var(--on-photo); text-shadow: 0 1px 2px rgb(0 0 0 / 0.35); }
.photo-hero h1 { max-width: 16ch; }
.photo-hero .lead { max-width: 34rem; }
.photo-hero .wrap > div, .photo-band .wrap > div { max-width: 38rem; }
.photo-band .wrap > div { margin-inline: auto; text-align: center; }
.photo-band .actions { justify-content: center; }
.photo-hero a:not(.btn),
.photo-band a:not(.btn) { color: var(--on-photo); text-decoration: underline; text-decoration-thickness: 1px; }
.photo-hero a:not(.btn):hover,
.photo-band a:not(.btn):hover { color: #ffffff; text-decoration-thickness: 2px; }
.photo-hero .ticks .icon,
.photo-band .ticks .icon { color: var(--photo-accent); }
.photo-hero .btn,
.photo-band .btn { background: var(--photo-accent); color: #111111; text-shadow: none; }
.photo-hero .btn:hover,
.photo-band .btn:hover { background: #f0a06c; color: #111111; }

.hero-price { margin: 1.25rem 0 0; font-size: 1.05rem; }
.hero-price strong { font-size: 1.2rem; }
/* The line under the price that points volunteer-run clubs to Sheets. */
.hero-price + .small { margin: 0.5rem 0 0; }
.big-line { font-size: clamp(1.35rem, 1.2vw + 1.1rem, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 1.25rem 0 0; }
.big-line span { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-top: 4px; }

/* Small rounded labels: the sports, the ages. */
.chips { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  margin: 0;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  background: rgb(var(--scrim) / 0.55);
  border: 1px solid rgb(255 255 255 / 0.4);
  color: var(--on-photo);
}

/* ---------- Photos in the page ---------- */

.photo-frame { margin: 0; }
.photo-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface-2);
}
.photo-frame--portrait img { aspect-ratio: 4 / 3; object-position: 50% 0; }
.photo-frame--desk { display: none; }
@media (min-width: 900px) {
  .photo-frame--desk { display: block; margin-top: 28px; }
  .photo-frame--desk img { aspect-ratio: 4 / 3; }
}
@media (min-width: 900px) { .photo-frame--portrait img { aspect-ratio: 704 / 1000; } }

/* ---------- Sheets teaser (home page) ---------- */

.teaser {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas: "img eyebrow" "img title" "body body";
  gap: 0 16px;
  align-items: end;
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.teaser-img {
  grid-area: img;
  width: 120px;
  height: 150px;
  object-fit: cover;
  object-position: 40% 30%;
  border-radius: 12px;
  align-self: center;
}
.teaser .eyebrow { grid-area: eyebrow; margin-bottom: 0.3rem; }
.teaser h2 { grid-area: title; margin: 0; font-size: clamp(1.4rem, 2vw + 1rem, 2rem); }
.teaser-body { grid-area: body; margin-top: 14px; }
.teaser-body p { margin-bottom: 0.6rem; }
.teaser-body .btn { margin-top: 6px; }
@media (max-width: 479px) { .teaser-body .btn { width: 100%; } }
.teaser-price strong { font-size: 1.15rem; }
@media (min-width: 640px) {
  .teaser {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-areas: "img eyebrow" "img title" "img body";
    align-items: start;
    align-content: center;
    gap: 0 28px;
    padding: 20px;
  }
  .teaser-img { width: 180px; height: 225px; }
  .teaser .eyebrow { align-self: end; }
}

/* ---------- Icon steps (Sheets) ---------- */

.icon-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 900px) { .icon-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.icon-steps li {
  counter-increment: step;
  margin: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.section--white .icon-steps li { background: var(--bg); }
.step-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
}
.step-icon .icon { width: 26px; height: 26px; }
.icon-steps h3 { font-size: 1.1rem; margin: 2px 0 0.2rem; }
.icon-steps h3::before { content: counter(step) ". "; color: var(--accent); }
.icon-steps p { margin: 0; color: var(--muted); }
.icon-steps--list { grid-template-columns: minmax(0, 1fr); }

/* ---------- A short highlighted line ---------- */

.note-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.section--white .note-line { background: var(--bg); }
.note-line .icon { color: var(--accent); margin-top: 0.15em; width: 1.3em; height: 1.3em; }
.note-line p { margin: 0; }

/* ---------- Icon tiles (benefit cards) ---------- */

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}
.section--white .card-icon { background: var(--surface); }
@media (max-width: 639px) { .card-icon { display: none; } }
.card-icon .icon { width: 22px; height: 22px; }

/* ---------- Ticked lists ---------- */

.ticks { list-style: none; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 30px;
}
.ticks li + li { margin-top: 0.55rem; }
.ticks .icon {
  position: absolute;
  left: 0; top: 0.22em;
  color: var(--accent);
}
@media (min-width: 640px) {
  .ticks--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
  .ticks--2 li + li { margin-top: 0; }
}
@media (min-width: 900px) {
  .ticks--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 32px; }
  .ticks--3 li + li { margin-top: 0; }
}

/* ---------- Status badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.badge .icon { width: 1em; height: 1em; vertical-align: 0; stroke-width: 2.4; }
.badge--fine { background: var(--fine-bg); color: var(--fine); }
.badge--monitor { background: var(--monitor-bg); color: var(--monitor); }
.badge--modify { background: var(--modify-bg); color: var(--modify); }
.badge--missing { background: var(--missing-bg); color: var(--missing); }

/* ---------- The squad status mock (home page) ---------- */

.mock {
  margin: 0;
  max-width: 460px;
  justify-self: center;
  width: 100%;
}
.mock-screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
  font-size: 0.95rem;
}
@media (min-width: 640px) { .mock-screen { padding: 18px; } }
.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.mock-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}
.mock-top span { font-size: 0.85rem; color: var(--muted); }

.mock-tiles {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.mock-tiles li {
  margin: 0;
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
}
.mock-tiles b {
  display: block;
  font-size: 1.15rem;
  color: var(--text);
}
/* On phones the count tiles are left out, to keep the page short: the list below says the same. */
@media (max-width: 639px) { .mock-tiles { display: none; } }

.mock-group { margin: 0 0 10px; }
.mock-group:last-child { margin-bottom: 0; }
.mock-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 6px;
}
.mock-list { list-style: none; padding: 0; margin: 0; }
.mock-list li {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.mock-name { font-weight: 700; }
.mock .badge { white-space: normal; }
.mock-z { margin-left: auto; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.mock-reason { margin: 2px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.mock-action { margin: 0 0 4px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.mock-pain {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--modify);
  background: var(--surface);
}
.mock-pain .mock-reason { color: var(--text); }

.mock figcaption, figure > figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- The status sheet mock (Sheets page) ---------- */

.sheet-mock { margin: 0 auto; max-width: 560px; }
.split .sheet-mock { margin: 0; }
.sheet {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-bar {
  margin: 0;
  padding: 8px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.sheet-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.92rem; }
.sheet-table th, .sheet-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.sheet-table tbody tr:last-child th, .sheet-table tbody tr:last-child td { border-bottom: 0; }
.sheet-table thead th {
  background: var(--surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-table tbody th { width: 1%; white-space: nowrap; border-right: 1px solid var(--border); font-weight: 700; }
.sheet-table .badge { white-space: normal; }
.sheet-table .is-pain th { box-shadow: inset 4px 0 0 var(--modify); }
/* On phones the "Player / Today" header row is for screen readers only. */
@media (max-width: 639px) {
  .sheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.sheet-why { display: block; margin-top: 3px; font-size: 0.86rem; line-height: 1.4; color: var(--muted); }

.pull-quote { margin-top: 1.25rem; }
.pull-quote p { font-size: clamp(1.1rem, 0.8vw + 1rem, 1.3rem); font-weight: 650; margin: 0; }

/* ---------- Screenshots (the Sheets row, ready in a comment until the v2 screenshots exist) ---------- */

.shot-phone { max-width: 260px; margin-inline: auto; border-radius: 28px; }

/* A row of phone screenshots: on phones it scrolls sideways inside its own box
   instead of stacking three tall images. */
@media (max-width: 639px) {
  .shots {
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots > figure { scroll-snap-align: start; }
  .shots .shot-phone { max-width: none; }
}

/* ---------- Trust band ---------- */

.trust {
  display: grid;
  gap: 20px;
  align-items: center;
}
.trust-line {
  display: flex;
  gap: 16px;
  align-items: center;
}
.trust-line p { margin: 0; font-size: 1.1rem; font-weight: 650; line-height: 1.4; }
.trust-line img { flex: none; width: 72px; height: 72px; }
/* In dark mode the crest sits on a light disc: its red lettering and black ring would sink into the dark page. */
@media (prefers-color-scheme: dark) {
  .trust-line img { background: #f6f3ec; border-radius: 50%; padding: 3px; }
}
/* The founder line: Eoin's headshot as a round photo (no light disc in dark mode, unlike the crest). */
.trust-line .headshot-small { border-radius: 50%; object-fit: cover; padding: 0; background: none; }
.trust-line--founder p { font-weight: 500; }
.trust-line--founder a { font-weight: 650; white-space: nowrap; }
@media (max-width: 479px) {
  .trust-line { gap: 12px; }
  .trust-line img { width: 56px; height: 56px; }
  .trust-line p { font-size: 1rem; }
}
@media (min-width: 900px) {
  .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
/* Sheets page: the crest line at the top of the questions. */
.trust--top { margin-bottom: clamp(28px, 4vw, 44px); }
/* On its own (no quote yet), the trust line sits in the middle. */
@media (min-width: 900px) {
  .trust:not(:has(blockquote)) { grid-template-columns: minmax(0, 1fr); }
  .trust:not(:has(blockquote)) .trust-line { justify-content: center; }
}

.quote {
  margin: 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote p { font-size: 1.05rem; font-style: italic; margin-bottom: 0.5rem; }
.quote footer { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 479px) {
  .quote { padding: 12px 16px; }
  .quote p { font-size: 1rem; }
  .quote footer { font-size: 0.86rem; }
}

/* ---------- Timeline (A day with READY/SET) ---------- */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 20px 32px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: -8px;
  border-left: 2px solid var(--border-strong);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}
.section--alt .timeline li::after { border-color: var(--surface-2); }
.timeline-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}
.timeline h3 { margin: 0 0 0.15rem; font-size: 1.12rem; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Benefit cards: icon, heading, one or two lines ---------- */

.benefits { display: grid; gap: 12px; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0 14px;
  align-content: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.benefit .card-icon { display: inline-flex; grid-row: 1 / span 3; margin: 0; }
.benefit h3 { margin: 6px 0 0.25rem; font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--muted); }
@media (max-width: 639px) {
  .benefit { grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; padding: 14px; }
  .benefit .card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .benefit h3 { margin-top: 4px; font-size: 1.05rem; }
  .benefit p { font-size: 0.95rem; line-height: 1.45; }
}

/* ---------- About: the person in the hero ---------- */

.hero-person { display: flex; gap: 18px; align-items: center; margin-bottom: 1.25rem; }
.hero-person .headshot { width: 88px; height: 88px; }
.hero-person p { margin: 0; font-weight: 700; line-height: 1.35; }
.hero-person p span { display: block; font-weight: 500; color: var(--muted); }
@media (min-width: 640px) { .hero-person .headshot { width: 120px; height: 120px; } }

/* ---------- Plans (App pricing) ---------- */

.plans { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .plans { gap: 16px; } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
@media (min-width: 640px) { .plan { padding: 22px; } }
.plan h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.plan-squads { color: var(--muted); margin-bottom: 0.6rem; }
.plan-price { margin: 0; line-height: 1.1; }
.plan-price .amount { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 850; letter-spacing: -0.04em; }
.plan-price .per { color: var(--muted); font-weight: 600; }
.plan-year { margin: 6px 0 0; font-weight: 650; }
.plan-gbp { margin: 6px 0 0; font-size: 0.92rem; color: var(--muted); }
.plans + .plan-gbp { margin-top: 12px; }
.plan-adds { margin: 0.8rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border); font-size: 0.95rem; }
.plan-adds p { margin: 0; }

/* On phones each plan is one compact row: name and squads on the left, price on the right. */
@media (max-width: 639px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: baseline;
    padding: 14px 16px;
  }
  .plan h3 { grid-column: 1; grid-row: 1; font-size: 1.2rem; }
  .plan-squads { grid-column: 1; grid-row: 2; margin: 0; font-size: 0.92rem; }
  .plan-price { grid-column: 2; grid-row: 1; text-align: right; }
  .plan-year { grid-column: 1 / -1; grid-row: 3; margin: 4px 0 0; font-size: 0.92rem; }
  .plan--quote .plan-year { grid-column: 2; grid-row: 2; margin: 0; text-align: right; }
  .plan-adds { grid-column: 1 / -1; margin-top: 0.6rem; padding-top: 0.6rem; font-size: 0.92rem; }
  .plan-price .amount { font-size: 1.7rem; }
  .plan--quote .plan-squads { grid-column: 1 / -1; grid-row: 3; margin-top: 4px; }
}

.offer {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--accent);
}
.offer h3 { font-size: 1.35rem; }
.offer > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; }
}

.offer.offer--stack { grid-template-columns: 1fr; gap: 20px; }

.big-price { margin: 0; line-height: 1; }
.big-price .amount { font-size: clamp(3rem, 8vw, 4.2rem); font-weight: 850; letter-spacing: -0.05em; }
.big-price .per { display: block; margin-top: 8px; font-size: 1rem; color: var(--muted); font-weight: 600; }

/* ---------- Coming next (App pricing) ---------- */

.next-list { columns: 1; padding: 0; list-style: none; }
@media (min-width: 640px) { .next-list { columns: 2; column-gap: 32px; } }
.next-list li { break-inside: avoid; margin: 0 0 0.7rem; padding-left: 14px; border-left: 3px solid var(--border-strong); }
.next-list .next-desc { display: block; color: var(--muted); font-size: 0.94rem; }
.next-list .next-key { border-left-color: var(--accent); }
/* "Tap to open" blocks: the detail is all there, folded away. */
.more { margin-top: 16px; }
.more + .more { margin-top: 10px; }
.more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}
.section--white .more summary { background: var(--bg); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
}
.more[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.more[open] summary { margin-bottom: 1rem; }
.more-body > :last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.compare { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.98rem; }
.compare caption { text-align: left; padding: 0 0 12px; font-weight: 700; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--border); }
.compare thead th, .compare thead td { border-top: 0; background: var(--surface-2); font-size: 1rem; }
.compare th[scope="row"] { font-weight: 700; color: var(--muted); width: 22%; }
.compare .price-row td { font-weight: 800; }

/* On phones, each row becomes a block: the row name, then the two products side by side. */
@media (max-width: 699px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid var(--border);
  }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th[scope="row"] {
    grid-column: 1 / -1;
    width: auto;
    border-top: 0;
    padding: 10px 12px 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .compare td { border-top: 0; padding: 4px 12px 10px; font-size: 0.9rem; line-height: 1.45; }
  .compare td + td { border-left: 1px solid var(--border); }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2px;
  }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section--white .faq details { background: var(--bg); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details > div { padding: 0 16px 14px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Protocol band diagram (About) ---------- */

.band-diagram { margin: 0 0 1.5rem; }
.band-bar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.band-seg {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.3;
}
.band-seg strong { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 1rem; }
.band-seg--fine { background: var(--fine-bg); color: var(--fine); }
.band-seg--monitor { background: var(--monitor-bg); color: var(--monitor); }
.band-seg--modify { background: var(--modify-bg); color: var(--modify); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.steps li {
  counter-increment: step;
  margin: 0;
  padding: 18px 18px 18px 64px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.steps h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.callout {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
}
.section--alt .callout { background: var(--surface); }
.callout > :last-child { margin-bottom: 0; }

/* ---------- What each status means (Sheets): badge, then the action ---------- */

.legend { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 8px; }
.legend li {
  margin: 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.45;
}
.section--alt .legend li { background: var(--surface); }
.legend .badge { margin-right: 4px; vertical-align: 1px; }

/* ---------- References ---------- */

.refs { font-size: 0.92rem; color: var(--muted); padding-left: 1.6rem; }
.refs li { padding-left: 4px; }
.refs li:target { background: var(--monitor-bg); color: var(--text); border-radius: 4px; }
sup a { display: inline-block; min-width: 24px; padding: 0 4px; text-align: center; font-weight: 700; text-decoration: underline; }

/* ---------- Draft notice (Terms) ---------- */

.draft-banner {
  padding: 14px 18px;
  border: 2px dashed var(--monitor);
  border-radius: var(--radius);
  background: var(--monitor-bg);
  color: var(--text);
  margin-bottom: 1.5rem;
}
.draft-banner strong { color: var(--monitor); }

.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 32px 40px;
  font-size: 0.95rem;
}
.footer-claim {
  max-width: 52rem;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.footer-bottom li + li { margin-top: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; font-weight: 600; }
.footer-bottom p { margin: 0; color: var(--muted); }

/* ---------- Motion ---------- */

@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;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .skip-link, .menu-button, .actions { display: none; }
  body { background: #ffffff; color: #000000; }
  .section--band { background: #ffffff; color: #000000; }
}
