/* ==========================================================================
   Staffroom — marketing site
   --------------------------------------------------------------------------
   Two deliberate moves keep this off the generic warm-cream-landing-page path
   the palette could otherwise drift into:

   1. Projected surfaces are DARK. Anywhere the page is showing you a board as
      a room would see it, the surround goes near-black — a screen at the front
      of a dim classroom. The cream is the page; the dark is the product.
   2. Sections wear the app's own widget chrome — a hairline card with a small
      uppercase header bar. The page is built out of the same objects the
      product is, rather than out of hero/features/testimonials bands.

   Display face is Nunito (rounded, warm, and the app's own face). Body is
   Inter, because a chunk of this audience is reading on a phone in a corridor.
   No editorial serif anywhere, on purpose.
   ========================================================================== */

:root {
  /* Palette — as specified, unchanged. */
  --sand: #f4a259;
  --brick: #bc4b51;
  --olive: #8cb369;
  --gold: #f4e285;
  --steel: #9aadbf;
  --bg: #fdf8f2;
  --ink: #2a2320;

  /* Derived tints, matching the app's own soft fills. */
  --sand-soft: #fdefe1;
  --olive-soft: #eef5e6;
  --gold-soft: #fdf8dd;
  --steel-soft: #eef2f5;
  --brick-soft: #f8e8e8;
  --card: #ffffff;
  --hairline: #ece2d7;
  --ink-muted: #6f635c;

  /* The projected surface. */
  --dark: #221d1a;
  --dark-card: #2e2723;
  --dark-line: #3d342e;
  --dark-ink: #f6f1ea;
  --dark-muted: #a2958a;

  /* Text on an accent fill stays near-black in every context. */
  --on-accent: #2a2320;

  /* Accessible text shades of the same five hues. The brand colours are built
     to be fills; used as small text on a light ground they fall well short —
     sand on cream measures 1.96:1. These are the same hues walked down in
     lightness until each clears 4.5:1 against every surface it appears on —
     sand-ink is checked against the cream, the steel panel, the gold panel and
     white card. Measured, not guessed. */
  --sand-ink: #ad570b;
  --olive-ink: #58773c;
  --steel-ink: #57718a;
  --brick-ink: #b6444a;

  --display: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------------------------------------------------------------------
     Spacing — one 8pt scale, used for every margin, padding and gap on the
     site. Nothing sits between these steps.
     --------------------------------------------------------------------- */
  --space-1: 0.5rem;   /*  8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */

  /* ---------------------------------------------------------------------
     Type ramp — seven steps, each with its line height fixed to it. Every
     piece of text on the site takes one of these pairs; there are no one-off
     sizes. Headings step up the ramp at breakpoints rather than scaling
     fluidly, so a heading is always exactly a ramp value.
     --------------------------------------------------------------------- */
  --text-xs: 0.875rem;  /* 14px */
  --lh-xs: 1.45;
  --text-sm: 1rem;      /* 16px */
  --lh-sm: 1.55;
  --text-md: 1.25rem;   /* 20px */
  --lh-md: 1.5;
  --text-lg: 1.5rem;    /* 24px */
  --lh-lg: 1.3;
  --text-xl: 2rem;      /* 32px */
  --lh-xl: 1.15;
  --text-2xl: 3rem;     /* 48px */
  --lh-2xl: 1.08;
  --text-3xl: 4rem;     /* 64px */
  --lh-3xl: 1.04;

  /* ---------------------------------------------------------------------
     One radius and one elevation, shared by every component — buttons,
     inputs, cards, widgets, panels, badges. Circles are the only exception,
     and only where the element genuinely is one (a stoplight lamp, the
     brand mark's squares).
     --------------------------------------------------------------------- */
  --radius: 16px;
  --shadow: 0 1px 2px rgb(42 35 32 / 0.05), 0 12px 32px rgb(42 35 32 / 0.08);
  /* The ring around a lit stoplight lamp. Not elevation — a lamp glow — but
     one consistent spread, with only the tint changing per light. */
  --lamp-ring: 8px;

  --gutter: 1rem;
  --max: 1160px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

/* Numbers that stand in for a projected widget shouldn't jitter. */
.hero-number,
.price-tag,
.badge {
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Focus — one visible, consistent ring everywhere. Never removed.
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Buttons and chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.btn-primary {
  background: var(--sand);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: #f2954a;
}

.btn-secondary {
  background: var(--card);
  border-color: var(--steel);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--steel-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  padding: 0.5rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--steel);
}

.btn-ghost:hover {
  color: var(--ink);
  text-decoration-color: var(--sand);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[data-loading] {
  cursor: default;
  opacity: 0.7;
}

.chip {
  border: 1px solid var(--hairline);
  background: var(--card);
  color: var(--ink-muted);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  cursor: pointer;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--steel);
}

.chip.is-on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-accent);
}

.chip-primary {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.brand,
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-words {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  letter-spacing: -0.02em;
}

/* Small, quiet, and never competing with the product name. */
.brand-sub {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--ink-muted);
  letter-spacing: 0;
}

.brand-sub a {
  color: inherit;
  text-underline-offset: 2px;
}

.brand-sub a:hover {
  color: var(--ink);
}

/* The four-square mark, rebuilt in CSS so it inherits colour anywhere. */
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-mark span {
  border-radius: 28%;
}

.brand-mark span:nth-child(1) { background: var(--sand); }
.brand-mark span:nth-child(2) { background: var(--olive); }
.brand-mark span:nth-child(3) { background: var(--steel); }
.brand-mark span:nth-child(4) { background: var(--gold); }

.site-nav {
  display: none;
  margin-left: auto;
  gap: 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--sand);
}

.site-head .btn {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 1rem;
  display: grid;
  gap: 2rem;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
}

.lede {
  margin-top: 1rem;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  color: var(--ink-muted);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   The live demo — dark, because this is the room's view of the board.
   -------------------------------------------------------------------------- */
.demo {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.demo-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.demo-pause {
  background: transparent;
  border: 1px solid var(--dark-line);
  color: var(--dark-muted);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  cursor: pointer;
}

.demo-pause:hover {
  color: var(--dark-ink);
  border-color: var(--dark-muted);
}

.demo-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.widget-clock .hero-number {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
  white-space: nowrap;
}

.demo-note {
  padding: 0.5rem 0.5rem 0.5rem;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--dark-muted);
}

/* --------------------------------------------------------------------------
   Widget frame — the app's own chrome, reused as a page building block.
   -------------------------------------------------------------------------- */
.widget {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.widget-head {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.widget-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.widget-body.center {
  align-items: center;
  text-align: center;
}

/* A widget that spans two rows shouldn't float its content in the middle. */
.widget-body.top {
  justify-content: flex-start;
}

.hero-number {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  letter-spacing: -0.03em;
}

.hero-number.olive {
  color: var(--olive);
}

.widget-sub {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--ink-muted);
}

.widget-countdown {
  grid-column: 1 / -1;
}

.cd-track {
  height: 6px;
  border-radius: var(--radius);
  background: var(--steel-soft);
  overflow: hidden;
}

.cd-track span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: var(--radius);
  background: var(--olive);
  transition: width 0.3s linear, background-color 0.3s ease;
}

.cd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Stoplight */
.stoplight {
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: var(--card);
  border: 0;
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.lamp {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--steel-soft);
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.stoplight[data-light="red"] .lamp-red {
  background: var(--brick);
  box-shadow: 0 0 0 var(--lamp-ring) var(--brick-soft);
}

.stoplight[data-light="amber"] .lamp-amber {
  background: var(--gold);
  box-shadow: 0 0 0 var(--lamp-ring) var(--gold-soft);
}

.stoplight[data-light="green"] .lamp-green {
  background: var(--olive);
  box-shadow: 0 0 0 var(--lamp-ring) var(--olive-soft);
}

.stoplight-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter);
}

.section-kicker,
.lane-kicker,
.aside-kicker,
.chip-list-label {
  font-family: var(--body);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand-ink);
}

.section-head {
  max-width: 46ch;
}

.section h2,
.section-title {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  margin-top: 0.5rem;
}

.section-lede {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  max-width: 52ch;
}

/* Lanes ------------------------------------------------------------------ */
.lanes {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

.section-title {
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.lane-grid {
  display: grid;
  gap: 1rem;
}

.lane {
  border-radius: var(--radius);
  padding: 0;
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.lane-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 22%, transparent);
}

.lane-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius);
  background: currentColor;
}

.lane h3,
.lane p {
  padding-inline: 1.5rem;
}

.lane-link {
  margin-inline: 1.5rem;
  margin-bottom: 1.5rem;
}

.lane-sand { background: var(--sand-soft); border-color: #f2d9bf; }
.lane-olive { background: var(--olive-soft); border-color: #d5e5c4; }
.lane-steel { background: var(--steel-soft); border-color: #d6e0e7; }

.lane-olive .lane-kicker { color: var(--olive-ink); }
.lane-steel .lane-kicker { color: var(--steel-ink); }

.lane h3 {
  font-size: var(--text-md);
  line-height: var(--lh-md);
}

.lane p {
  color: var(--ink-muted);
}

.lane-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  align-self: flex-start;
}

.lane-link:hover {
  border-bottom-color: currentColor;
}

/* The projected board ----------------------------------------------------- */
.projected {
  margin-top: 2rem;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.projected-inner {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.widget-tint-brick .widget-body {
  background: var(--brick-soft);
}

.workmode-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--brick);
  position: relative;
  display: block;
}

.workmode-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 30px;
  height: 16px;
  border: 3px solid var(--brick);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}

.workmode-title {
  margin-top: 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.walt-label {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.walt {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  margin-block: 0.5rem 0.5rem;
}

.walt-list li {
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  padding-left: 1rem;
  position: relative;
}

.walt-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 800;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
}

.bars span {
  flex: 1;
  border-radius: var(--radius);
  background: var(--olive);
}

.bars span.off {
  background: var(--steel-soft);
}

.turn-role {
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.turn-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}

/* Widget name list -------------------------------------------------------- */
.chip-list-label {
  margin-top: 2rem;
  color: var(--ink-muted);
}

.chip-list {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  border: 1px solid var(--hairline);
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
}

.chip-list .chip-pro {
  background: var(--brick-soft);
  border-color: #edcccd;
  color: var(--brick-ink);
}

.chip-list .chip-pro::after {
  content: " · Pro";
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Why it's built this way --------------------------------------------------- */
.problem {
  background: var(--steel-soft);
  max-width: none;
  border-block: 1px solid var(--hairline);
}

.problem-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.who-list {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.who-list li {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.who-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  margin-bottom: var(--space-1);
}

.who-list li p:last-child {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.problem-note {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  max-width: 60ch;
}

/* Seating plans and exam mode ----------------------------------------------- */
.tool-grid {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.tool {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tool-body {
  flex: 1;
  padding: var(--space-3);
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.tool-body > p {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

/* A seating plan that isn't a grid — that's the whole point of the tool. */
.seating-demo {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.teacher-desk {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 9%;
  border-radius: 4px;
  background: var(--steel);
}

.desk-cluster {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 20%;
}

.desk-cluster i {
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  background: var(--sand-soft);
  border: 1px solid var(--sand);
}

.cluster-a { top: 32%; left: 8%; transform: rotate(-8deg); }
.cluster-b { top: 30%; left: 38%; }
.cluster-c { top: 34%; right: 8%; transform: rotate(7deg); }
.cluster-d { bottom: 8%; left: 26%; }

.exam-demo {
  /* Same box as the seating plan beside it, so the two cards line up. */
  aspect-ratio: 16 / 9;
  min-width: 0;
  background: var(--dark);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: center;
  display: grid;
  align-content: center;
  gap: var(--space-1);
}

.exam-clock {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  color: var(--dark-ink);
  font-variant-numeric: tabular-nums;
}

.exam-count {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  color: var(--olive);
  font-variant-numeric: tabular-nums;
}

.exam-count span {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--dark-muted);
}

.exam-reminder {
  margin-top: var(--space-1);
  background: var(--gold);
  color: var(--on-accent);
  border-radius: var(--radius);
  padding: var(--space-1) var(--space-2);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  justify-self: center;
}

/* Demo video -------------------------------------------------------------- */
/* The slot is sized before the film exists, so dropping the real embed in
   later doesn't move anything below it. */
.video-frame {
  margin-top: 2rem;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.video-frame > * {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

.video-placeholder {
  background: var(--dark-card);
  border: 1px dashed var(--dark-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.video-play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--sand);
  position: relative;
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--on-accent);
}

.video-note {
  color: var(--dark-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
}

/* Where the money goes ---------------------------------------------------- */
.give-band {
  margin-top: 1.5rem;
  background: var(--olive-soft);
  border: 1px solid #d5e5c4;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.give-figure {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  letter-spacing: -0.03em;
  color: var(--olive-ink);
}

.give-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
}

.give-body {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  max-width: 62ch;
}

.give-body a {
  font-weight: 700;
  color: var(--olive-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.give-body a:hover {
  color: var(--ink);
}

/* Relief ------------------------------------------------------------------ */
.section-relief {
  background: var(--gold-soft);
  max-width: none;
  border-block: 1px solid var(--hairline);
}

.relief-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.section-relief .section-kicker {
  color: var(--sand-ink);
}

.tick-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.tick-list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: var(--radius);
  background: var(--sand);
}

.relief-cta {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
  justify-items: start;
}

.relief-cta-note {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  max-width: 52ch;
}

/* Phone ------------------------------------------------------------------- */
.phone {
  justify-self: center;
  width: min(340px, 100%);
  background: var(--dark);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.phone-screen {
  background: var(--bg);
  /* Concentric with the bezel: bezel radius minus the bezel's own padding. */
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.phone-back {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  color: var(--ink-muted);
}

.phone-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.phone-title-row h3 {
  font-size: var(--text-lg);
  line-height: var(--lh-lg);
}

.badge {
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  white-space: nowrap;
}

.badge-soon {
  background: var(--sand);
  color: var(--on-accent);
}

.phone-meta {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--ink-muted);
}

.brief-card,
.plan-card,
.emergency-card {
  border-radius: var(--radius);
  padding: 0.5rem;
  border: 1px solid var(--hairline);
  background: var(--card);
  display: grid;
  gap: 0.5rem;
}

.brief-card {
  background: var(--gold-soft);
  border-color: var(--gold);
  margin-top: 0.5rem;
}

.brief-label,
.plan-label,
.emergency-label {
  font-family: var(--body);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
}

.plan-label span {
  letter-spacing: 0;
}

.brief-body {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.brief-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.brief-list li {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  padding-left: 0.5rem;
  position: relative;
}

.brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sand);
}

.plan-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.plan-row em {
  margin-left: auto;
  font-style: normal;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  color: var(--ink-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-gold { background: var(--gold); }
.dot-sand { background: var(--sand); }
.dot-olive { background: var(--olive); }

.emergency-card {
  background: var(--brick-soft);
  border-color: #edcccd;
}

.emergency-label {
  color: var(--brick-ink);
}

.emergency-body {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

/* Where we stop ----------------------------------------------------------- */
.stop-band {
  background: var(--ink);
  color: var(--bg);
  max-width: none;
}

/* One wrapper does the centring so every child can stay left-aligned — a
   narrow max-width plus auto margins was centring the heading on its own. */
.stop-inner {
  max-width: var(--max);
  margin-inline: auto;
}

.stop-lede {
  margin-top: 1rem;
  color: #c9bdb2;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  max-width: 52ch;
}

.stop-band h2 {
  font-size: var(--text-xl);
  line-height: var(--lh-xl);
  max-width: 22ch;
  margin-inline: 0;
  text-align: left;
}

.stop-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

.stop-item p:last-child {
  color: #c9bdb2;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  margin-top: 0.5rem;
}

.stop-no {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  color: var(--gold);
}

/* Pricing ----------------------------------------------------------------- */
.price-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.price {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

.price-featured {
  border-color: var(--sand);
  box-shadow: var(--shadow);
}

.price-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--text-md);
  line-height: var(--lh-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-pro {
  background: var(--brick-soft);
  color: var(--brick-ink);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem;
  font-family: var(--body);
  font-weight: 800;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-tag {
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: var(--lh-2xl);
  letter-spacing: -0.03em;
}

.price-tag span {
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.price-sub {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
}

.price ul {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.price li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.price li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 800;
}

.price .btn {
  margin-top: auto;
}

/* Capture ----------------------------------------------------------------- */
.capture-grid {
  display: grid;
  gap: 2rem;
}

.capture-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 26rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  border: 0;
  padding: 0;
  margin: 0;
}

.field label,
.field legend {
  font-weight: 700;
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  padding: 0;
}

.optional {
  color: var(--ink-muted);
  font-weight: 500;
}

.field input[type="email"],
.field input[type="text"] {
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--steel);
  background: var(--card);
  color: var(--ink);
}

.field input::placeholder {
  color: var(--ink-muted);
}

.radios {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.radios label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
}

.radios input {
  accent-color: var(--sand);
  width: 18px;
  height: 18px;
}

.form-note {
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  font-weight: 600;
  min-height: 1.4em;
}

.form-note[data-state="ok"] { color: var(--olive-ink); }
.form-note[data-state="error"] { color: var(--brick-ink); }

.capture-aside {
  background: var(--steel-soft);
  border: 1px solid #d6e0e7;
  border-radius: var(--radius);
  padding: 1.5rem;
  align-self: start;
  display: grid;
  gap: 0.5rem;
}

.aside-kicker { color: var(--steel-ink); }

.aside-body {
  color: var(--ink-muted);
}

/* Footer ------------------------------------------------------------------ */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 2rem var(--gutter) 3rem;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 0.5rem;
}



.foot-line {
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: var(--lh-xs);
  max-width: 60ch;
}

.foot-quiet a {
  color: var(--ink-muted);
  text-underline-offset: 3px;
}

.foot-quiet a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .section,
  .lanes {
    padding-block: var(--space-6);
  }

  /* Type steps up a ramp notch once there's room for it. */
  .hero h1,
  .section h2,
  .section-title,
  .stop-band h2 {
    font-size: var(--text-2xl);
    line-height: var(--lh-2xl);
  }

  .lede,
  .section-lede {
    font-size: var(--text-md);
    line-height: var(--lh-md);
  }

  .hero-number,
  .give-figure,
  .price-tag,
  .exam-clock {
    font-size: var(--text-2xl);
    line-height: var(--lh-2xl);
  }

  :root { --gutter: 2rem; }

  .lane-grid { grid-template-columns: repeat(2, 1fr); }
  .projected-inner { grid-template-columns: repeat(2, 1fr); }
  .stop-grid { grid-template-columns: repeat(2, 1fr); }
  .who-list { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .give-band { grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.5rem; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .capture-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: var(--text-3xl);
    line-height: var(--lh-3xl);
  }

  .section,
  .lanes {
    padding-block: var(--space-7);
  }

  .site-nav { display: flex; }
  .site-head .btn { margin-left: 0; }

  .hero {
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 3rem;
    padding-block: 4rem 2rem;
  }

  .lane-grid { grid-template-columns: repeat(3, 1fr); }

  .projected-inner { grid-template-columns: repeat(3, 1fr); }
  .projected-inner .widget:nth-child(3) { grid-row: span 2; }

  .relief-grid {
    grid-template-columns: 1fr 0.85fr;
    align-items: start;
    gap: 4rem;
  }

  .phone { position: sticky; top: 6rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion — the demo is information, not decoration, so it keeps
   updating. What stops is anything that moves on its own: the stoplight's
   auto-cycle, the live dot, transitions and smooth scrolling.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .demo-label::before { animation: none; }
}
