/*
 * Car Line Market — public site. Direction "Dispatch".
 *
 * The subject is an operation: a queue of cars, worked in order, against a
 * dismissal time. So the page is built like the things that run it — hairline
 * rules, a mono voice for labels and status, painted-line amber for anything
 * that marks a step, and the pickup pass itself as the one loud object.
 *
 * Archivo carries display and body. It is a variable font with a width axis,
 * and the headlines use it narrowed — the tall, compressed lettering painted on
 * a school's pickup lane, which is set that way so it reads from a moving car.
 * DM Mono carries labels, statuses and anything that reads as instrumentation.
 *
 * The ink ramp, the plum and the amber are the app's own tokens from
 * `packages/ui/src/tokens.ts`, and every pass colour on the page is a real entry
 * from `SUGGESTED_PASS_COLORS`, so the site and the product cannot drift apart.
 *
 * Classes are shared with support/trust/privacy/s — `wrap`, `card`, `lede`,
 * `meta`, `contact`, `facts`, `scroll-x`, `open-app`, `join-school*` — so those
 * pages inherit this without their markup changing.
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* The ink ramp is tokens.ts's, verbatim. */
  --paper: #f5f3fa;
  --surface: #ffffff;
  --sunken: #eeebf5;
  --ink: #1a1526;
  --ink-2: #3d3550;
  --muted: #6b6280;
  --rule: #d6d1e4;
  --rule-soft: #e9e5f2;
  --primary: #5b2a86;
  --primary-lift: #7b44ad;
  --accent: #f0b429;
  --success: #2e9e6b;
  --success-ink: #1d7550;

  /* A filled control. Its own tokens, because the link colour turns light in
     dark mode and white text on it would fail. */
  --btn: #5b2a86;
  --btn-hover: #4a2170;
  --on-btn: #ffffff;

  --shadow-sm: 0 1px 2px rgb(26 21 38 / 0.06);
  --shadow: 0 1px 2px rgb(26 21 38 / 0.05), 0 18px 40px -18px rgb(43 23 70 / 0.28);

  --radius: 8px;
  --radius-lg: 14px;
  --measure: 62ch;

  --display: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14101c;
    --surface: #1d1728;
    --sunken: #181222;
    --ink: #f2eff8;
    --ink-2: #cec7de;
    --muted: #a79ebb;
    --rule: #342a45;
    --rule-soft: #261e33;
    --primary: #c39ae8;
    --primary-lift: #d5b4f0;
    --success: #57c08f;
    --success-ink: #7fd6ac;

    --btn: #8550b8;
    --btn-hover: #9662c8;
    --on-btn: #ffffff;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 22px 44px -18px rgb(0 0 0 / 0.7);

    color-scheme: dark;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

/* A label, a status, a time — anything that reads as instrumentation rather
   than as prose. */
.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

/* ---- header ------------------------------------------------------------ */

/*
 * One header on every page: the wordmark, the site's links, Contact and the
 * call to action — sticky, so they stay in reach on the long home page and
 * the pages are one site rather than two.
 */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

header.site .wrap {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding-block: 0.65rem;
}

/*
 * The wordmark: the name in the headline face, standing on the painted road
 * line — the amber stroke that marks steps and eyebrows everywhere else, and
 * the road the cars sit on in the app icon. The icon stays the app's and the
 * favicon's; a tile reads as "an app" in a website header (Nick, 2026-10-07).
 */
.brand {
  display: inline-grid;
  gap: 4px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.brand-word {
  font-weight: 850;
  font-stretch: 76%;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand::after {
  content: '';
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .brand:hover::after {
    transform: scaleX(1.06);
  }
}

nav.site {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.5rem;
  white-space: nowrap;
}

nav.site a:hover,
nav.site a[aria-current='page'] {
  color: var(--primary);
}

/* The phone menu: a <details>, so it opens and closes with no script at all.
   Hidden on wide screens, where the links sit in the bar. */
.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
  /* A long press on a phone selected the word "Menu" instead of opening it
     (iOS Safari, 2026-10-07): no selection, no callout, no double-tap zoom. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.menu summary::-webkit-details-marker {
  display: none;
}

/* Two bars that fold into a cross when open — drawn, not a glyph. */
.menu-icon {
  position: relative;
  width: 14px;
  height: 10px;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-icon::before {
  top: 1px;
}

.menu-icon::after {
  top: 7px;
}

.menu[open] .menu-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.menu[open] .menu-icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: grid;
  gap: 0.15rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise 0.2s ease;
}

.menu-panel a:not(.btn) {
  display: block;
  padding: 0.75rem 0.8rem;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.menu-panel a:not(.btn):hover {
  background: var(--sunken);
}

.menu-panel .btn {
  margin-top: 0.4rem;
}

@media (max-width: 60rem) {
  nav.site {
    display: none;
  }

  .menu {
    display: block;
    margin-left: auto;
  }
}

/* Room for the button beside the menu down to a narrow phone; below that the
   button lives in the menu. */
@media (max-width: 30rem) {
  header.site .wrap > .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel {
    animation: none;
  }
}

/* ---- buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--btn);
  color: var(--on-btn);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-quiet:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.btn-small {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.875rem;
}

/*
 * THE SIGN-UP SWITCH, for the whole site. Until parent groups can sign
 * themselves up (production admin sign-up on, with bot protection in front of
 * it), every call to action asks them to get in touch: `.cta-open` is hidden.
 * When they can, hide `.cta-closed` here instead and every button on every
 * page becomes "Set up your school". One line, one file.
 */
.cta-open {
  display: none !important;
}

/* ---- type -------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.125rem, 5.6vw, 3.5rem);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
  color: var(--ink-2);
}

.lede {
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}

/* The other pages open with a bare <h1> inside .wrap, where the home page
   opens with the hero and its own padding. */
main.wrap > h1:first-child,
main .wrap > h1:first-child {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* Headings inside the content pages need room above them and a little below;
   the reset at the top of this file leaves them flush with the paragraph
   before. */
main.wrap > h2 {
  margin: 2.25rem 0 0.6rem;
}

main.wrap > h3 {
  margin: 1.75rem 0 0.5rem;
}

main.wrap > .card + h2 {
  margin-top: 2rem;
}

main.wrap > ul,
main.wrap > ol {
  max-width: var(--measure);
  padding-left: 1.25rem;
  color: var(--ink-2);
}

main.wrap > ul li + li,
main.wrap > ol li + li {
  margin-top: 0.5rem;
}

main.wrap > h1 + .lede,
main.wrap > h1 + p,
main .wrap > h1 + .lede,
main .wrap > h1 + p {
  margin-top: 1rem;
}

/* ---- sections ---------------------------------------------------------- */

section {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

section + section {
  border-top: 1px solid var(--rule);
}

/* Anchored sections land below the sticky header, not under it. */
section[id] {
  scroll-margin-top: 4.5rem;
}

.home section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.home h2 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.015em;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head p {
  margin: 0;
  font-size: 1.0625rem;
}

/* The eyebrow, led by a short stroke of the painted line. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-2);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

/* ---- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.home .hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 3rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4rem;
  }
}

.hero-copy .eyebrow {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.875rem, 8.4vw, 5.5rem);
  font-weight: 850;
  font-stretch: 76%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 11ch;
}

.hero .lede {
  margin: 1.75rem 0 0;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/*
 * The signature: a pickup pass hanging from the mirror.
 *
 * Every car in a school pickup line carries one — a coloured card with the
 * family's number on it, hung where the volunteer at the curb can read it. The
 * app's pass is the digital version of exactly this object, so it is the one
 * loud thing on the page. Colour and number are the real Teal entry from
 * SUGGESTED_PASS_COLORS, drawn the way the app's full-screen pass draws them.
 */
.hero-visual {
  position: relative;
  margin: 0;
  display: grid;
  justify-items: center;
  padding-bottom: 1.5rem;
}

.scene {
  width: min(20rem, 82vw);
  transform-origin: 50% 0;
  animation: swing 2.6s cubic-bezier(0.25, 0.6, 0.3, 1) 0.15s both;
}

.cord {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -0.75rem;
  overflow: visible;
}

.mirror-stem {
  fill: var(--ink);
  opacity: 0.85;
}

.cord-line {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
}

.placard {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 1.75rem 1.25rem 1.1rem;
  border-radius: 18px;
  background: var(--pass);
  color: var(--pass-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    inset 0 -2px 0 rgb(0 0 0 / 0.12),
    0 30px 50px -24px rgb(15 60 56 / 0.55),
    0 2px 4px rgb(0 0 0 / 0.12);
}

/* The two punched holes the cord goes through, cut in the page colour. */
.placard-hole {
  position: absolute;
  top: 0.7rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.35);
}

.placard-hole-l {
  left: 12%;
}

.placard-hole-r {
  right: 12%;
}

.placard-word {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-right: -0.32em;
}

.placard-number {
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(6.5rem, 26vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.placard-foot {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}

@keyframes swing {
  0% {
    transform: rotate(9deg);
  }
  28% {
    transform: rotate(-5deg);
  }
  52% {
    transform: rotate(2.5deg);
  }
  74% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* The order the pass belongs to, drawn after the Lock Screen's Live Activity:
   four segments, the current one live. */
.ticket {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(19rem, calc(100% - 1.5rem));
  margin-top: -1.1rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
}

.ticket p {
  margin: 0;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ticket-time {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ticket-pass {
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--pass);
  color: #ffffff;
  font-weight: 750;
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
}

.ticket-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  list-style: none;
  margin: 0.95rem 0 0.7rem;
  padding: 0;
}

.ticket-bars li {
  height: 5px;
  border-radius: 3px;
  background: var(--rule-soft);
}

.ticket-bars .is-done,
.ticket-bars .is-now {
  background: var(--btn);
}

.ticket-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
}

.ticket-status span:last-child {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* The pulse marks which step is live, as the app's LivePulse does. */
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse 1.8s ease-out 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ticket-items {
  margin-top: 0.3rem !important;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.ticket-car {
  margin-top: 0.15rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.625rem;
}

@media (prefers-reduced-motion: reduce) {
  .scene,
  .ticket,
  .live-dot::after {
    animation: none;
  }
}

/* ---- how it works ------------------------------------------------------ */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .steps li {
    padding-inline: 1.75rem;
    border-left: 1px solid var(--rule);
  }

  .steps li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .steps li:last-child {
    padding-right: 0;
  }
}

/* The step marker is amber as a stroke, never as text: amber type on this
   paper measures under 2:1. */
.step-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  color: var(--ink-2);
}

.step-mark::before {
  content: '';
  width: 1.1rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.steps h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  font-size: 0.9375rem;
}


/* ---- the two routes ---------------------------------------------------- */

.route-pair {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .route-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.route {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.route-tag {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}

.route h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.route > p {
  font-size: 0.9375rem;
}

.route .ticks {
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-soft);
}

/* A tick drawn in CSS rather than a glyph: iOS draws some check and cross
   codepoints as an empty box (CLAUDE.md, the close-button tofu). */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.38em;
  width: 0.4rem;
  height: 0.7rem;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* ---- treasurers -------------------------------------------------------- */

.ledger-grid {
  display: grid;
  gap: 0;
  margin: 0;
}

@media (min-width: 40rem) {
  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .ledger-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ledger-grid > div {
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--rule);
}

.ledger-grid dt {
  font-weight: 650;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.ledger-grid dt .mono {
  display: block;
  margin-bottom: 0.55rem;
}

.ledger-grid dd {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 34rem;
}

/* ---- pricing ----------------------------------------------------------- */

.price-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .price-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
  }
}

.price-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.5rem;
  max-width: none;
}

.price-number {
  font-weight: 900;
  font-stretch: 72%;
  font-size: clamp(5.5rem, 16vw, 8.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-unit {
  font-weight: 650;
  font-size: 1.25rem;
  color: var(--ink);
}

.price-sub {
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
}

.price-card .ticks {
  margin-bottom: 1.5rem;
}

.price-card .meta {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

/* The worked example, set like a receipt so a treasurer can check it to the
   cent: mono figures, tabular, a dashed tear line, the total under a double
   rule. */
.ledger {
  margin: 0;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ledger figcaption {
  padding-bottom: 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px dashed var(--rule);
}

.ledger table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.ledger th,
.ledger td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: baseline;
  color: var(--ink-2);
}

.ledger th {
  text-align: left;
  font-weight: 500;
}

.ledger th span {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--muted);
}

.ledger td {
  text-align: right;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.ledger tbody tr:last-child th,
.ledger tbody tr:last-child td {
  border-bottom: 0;
}

.ledger tfoot th,
.ledger tfoot td {
  padding-top: 0.9rem;
  border-top: 3px double var(--ink);
  border-bottom: 0;
  font-weight: 700;
  color: var(--ink);
}

.ledger tfoot td {
  font-size: 1.25rem;
  font-weight: 750;
}

/* ---- getting started --------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 2rem;
  border-left: 2px solid var(--rule);
  margin-left: 0.4rem;
}

.timeline li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.1rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
}

.timeline-when {
  display: block;
  margin-bottom: 0.4rem;
}

.timeline h3 {
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
}

.timeline p {
  margin: 0;
  font-size: 0.9375rem;
}

@media (min-width: 56rem) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }

  .timeline li {
    margin-left: 0;
    padding: 2rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--rule);
  }

  .timeline li:last-child {
    border-top-color: var(--rule);
  }

  .timeline li::before {
    left: 0;
    top: -0.5rem;
  }
}

/* ---- families ---------------------------------------------------------- */

.home section.families {
  background: var(--sunken);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.families-wrap {
  display: grid;
  gap: 1.25rem;
}

.families-wrap .eyebrow {
  margin-bottom: 1rem;
}

.families-wrap > p {
  margin: 0;
  font-size: 1.0625rem;
}

@media (min-width: 56rem) {
  .families-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: end;
  }
}

/* ---- questions --------------------------------------------------------- */

.faq-list {
  max-width: 48rem;
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* A plus drawn from two bars that folds into a minus, not a glyph. */
.faq-list summary::after {
  content: '';
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  background: linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 2px no-repeat;
}

/* Only where there is a real pointer: on a phone the tapped question kept the
   hover colour after it closed again. */
@media (hover: hover) {
  .faq-list summary:hover {
    color: var(--primary);
  }
}

.faq-list details p {
  margin: 0 0 1.35rem;
  font-size: 0.9875rem;
}

/* ---- closing ----------------------------------------------------------- */

.home section.closing {
  padding-top: 0;
  border-top: 0;
}

.closing-box {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
}

.closing-box h2 {
  margin-bottom: 0.75rem;
}

.closing-box p {
  margin: 0;
  font-size: 1.0625rem;
}

.closing-box .btn {
  justify-self: start;
}

@media (min-width: 52rem) {
  .closing-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
  }
}

/* ---- cards, shared with the other pages -------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.125rem, 3vw, 1.5rem);
  margin-block: 1.25rem;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2 + p,
.card h3 + p {
  margin-top: 0.5rem;
}

.card ol,
.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  max-width: var(--measure);
  color: var(--ink-2);
}

.card li + li {
  margin-top: 0.55rem;
}

.card dl {
  margin: 0;
}

.card dt {
  font-weight: 600;
  margin-top: 1rem;
}

.card dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  max-width: var(--measure);
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.contact {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* `.facts` names the styled table, but privacy.html carries a bare <table> in a
   `.scroll-x` and nothing was reaching it — it rendered with browser defaults
   (border-collapse: separate, Times) inside the rest of this. Style both. */
.facts,
main table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

.facts th,
.facts td,
main table th,
main table td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  color: var(--ink-2);
}

.facts th,
main table th {
  font-weight: 600;
  color: var(--ink);
}

/* Only the label column of a key/value table may refuse to wrap; a real header
   row on a phone must be allowed to. */
.facts th {
  white-space: nowrap;
}

.scroll-x {
  overflow-x: auto;
}

/* ---- footer ------------------------------------------------------------ */

footer.site {
  border-top: 1px solid var(--rule);
  padding-block: 1.75rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--primary);
}

/* ---- a school's share-link page (s.html) -------------------------------- */

/* The button is the whole point of the page, so it is the one filled thing on
   it, and thumb-sized — families open this from a newsletter on a phone. */
.join-school {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.join-school + .lede {
  margin-top: 1rem;
}

.join-school h1 {
  margin: 0;
}

.join-school-logo {
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface);
  object-fit: cover;
}

.join-school-logo[hidden] {
  display: none;
}

a.open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 700;
  text-decoration: none;
}

a.open-app:hover {
  background: var(--btn-hover);
}

/* The school's menu on its share page: what is sold and what it costs, before
   a family installs anything. Rows rather than cards — it is read on a phone,
   scrolled with a thumb, and a price list is a list. */
.school-menu {
  margin-block: 2rem 1.5rem;
}

.school-menu > h2 {
  margin-bottom: 0.4rem;
}

.menu-group {
  margin-top: 1.5rem;
}

.menu-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

.menu-group-head h3 {
  font-size: 1.0625rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule-soft);
}

.menu-photo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--sunken);
}

.menu-photo-empty {
  display: block;
}

.menu-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.menu-name {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.menu-desc {
  font-size: 0.875rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-how {
  font-size: 0.625rem;
  margin-top: 0.15rem;
}

.menu-price {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}

/* ---- quiet arrivals ---------------------------------------------------- */

/* demo.js adds .js-reveal only when motion is allowed and the observer exists,
   so without it — or with reduced motion — nothing is ever hidden. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- the order demo ---------------------------------------------------- */

.demo {
  scroll-margin-top: 5rem;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

/* The intro reads across on a wide screen: words on the left, the mode switch
   on the right; stacked on a phone. */
@media (min-width: 60rem) {
  .demo-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    grid-template-areas:
      'eyebrow eyebrow'
      'title switch'
      'text desc'
      'note note';
    column-gap: 3rem;
    align-items: end;
  }

  .demo-intro > .eyebrow {
    grid-area: eyebrow;
  }

  .demo-intro > .demo-title {
    grid-area: title;
  }

  .demo-intro > p:not(.mode-desc):not(.demo-note) {
    grid-area: text;
    max-width: 38rem;
  }

  .demo-intro > .mode-switch {
    grid-area: switch;
    justify-self: end;
    margin-top: 0;
  }

  .demo-intro > .mode-desc {
    grid-area: desc;
    justify-self: end;
    max-width: 18rem;
    text-align: right;
  }

  .demo-intro > .demo-note {
    grid-area: note;
  }
}

/* The two phones, with a line between them that an order travels along. */
.demo-stage {
  display: grid;
  gap: 1rem;
}

.demo-phones {
  display: grid;
  grid-template-columns: auto minmax(3rem, 9rem) auto;
  justify-content: center;
  align-items: center;
}

.demo-device {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0;
}

.demo-device figcaption {
  order: -1;
}

.demo-link {
  position: relative;
  height: 3px;
  margin-top: 1.6rem;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  opacity: 0.8;
}

.demo-link-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0f8a80;
  box-shadow: 0 0 0 4px color-mix(in srgb, #0f8a80 25%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.demo-link-dot.is-sending {
  animation: send 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes send {
  0% {
    left: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.demo-tabs {
  display: none;
}

/* On a phone the two phones become a strip you swipe across, one at a time,
   with tabs saying which is which. The demo moves the strip to the runner's
   phone when an order arrives, and back when it is handed over. */
@media (max-width: 47.99rem) {
  .demo-tabs:not([hidden]) {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    justify-self: center;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--sunken);
  }

  .demo-tabs button {
    position: relative;
    min-height: 38px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font: inherit;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
  }

  .demo-tabs button[aria-selected='true'] {
    background: var(--surface);
    color: var(--ink);
    box-shadow:
      0 1px 2px rgb(26 21 38 / 0.12),
      0 0 0 1px var(--rule);
  }

  .tab-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }

  .tab-dot[hidden] {
    display: none;
  }

  .demo-phones {
    grid-template-columns: 100% 0 100%;
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-inline: calc(-1 * clamp(1rem, 5vw, 3rem));
    padding-inline: clamp(1rem, 5vw, 3rem);
    scroll-padding-inline: clamp(1rem, 5vw, 3rem);
  }

  .demo-phones::-webkit-scrollbar {
    display: none;
  }

  .demo-device {
    scroll-snap-align: center;
  }

  .demo-link {
    visibility: hidden;
  }
}

.demo-coach {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  text-align: center;
}

.demo-coach p {
  margin: 0;
  max-width: 40rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-auto {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-auto[hidden] {
  display: none;
}

.demo-title {
  margin: 0.9rem 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.demo-intro p {
  margin: 0;
}

.demo-intro .demo-note {
  margin-top: 0.9rem;
}

/* A brief amber wash on the runner's card each time the order moves. */
@keyframes rowflash {
  from {
    background-color: color-mix(in srgb, var(--accent) 34%, transparent);
  }
}

/*
 * The phone. Its screen keeps the app's light palette in both page themes, the
 * way a product shot would — it is a picture of the app, not part of the page.
 * Every colour inside it is therefore literal, from tokens.ts.
 */
.phone {
  position: relative;
  justify-self: center;
  width: min(300px, 86vw);
  aspect-ratio: 300 / 620;
  padding: 10px;
  border-radius: 48px;
  background: #15111d;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 44px 80px -34px rgb(43 23 70 / 0.5),
    0 2px 6px rgb(0 0 0 / 0.2);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: #f5f3fa;
  color: #1a1526;
  font-size: 13px;
  line-height: 1.35;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 84px;
  height: 24px;
  border-radius: 14px;
  background: #0b0910;
  transform: translateX(-50%);
}

/* Specific enough to beat `.home section`, which these are. */
.phone .ps {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 46px 12px 14px;
  border: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.phone .ps[hidden] {
  display: none;
}

.phone .ps::-webkit-scrollbar {
  display: none;
}

.ps-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6280;
}

.ps-top {
  display: grid;
  gap: 1px;
  padding: 0 4px 12px;
}

.ps-school {
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.ps-banner {
  display: grid;
  gap: 1px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #5b2a86, #7b44ad);
  color: #ffffff;
  box-shadow: 0 12px 22px -14px rgb(91 42 134 / 0.8);
}

.ps-label-light {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgb(255 255 255 / 0.82);
}

.ps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0b429;
}

.ps-banner-big {
  font-weight: 800;
  font-stretch: 88%;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.ps-banner-sub {
  font-size: 11.5px;
  opacity: 0.85;
}

.ps-items {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  border-radius: 18px;
  background: #ffffff;
}

.ps-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #efecf6;
}

.ps-item:last-child {
  border-bottom: 0;
}

.ps-item img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.ps-item-text {
  display: grid;
  min-width: 0;
}

.ps-item-text b {
  overflow: hidden;
  font-weight: 650;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-item-text small {
  overflow: hidden;
  font-size: 11px;
  color: #6b6280;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-item-text em {
  margin-top: 2px;
  font-style: normal;
  font-weight: 700;
}

.ps-add,
.ps-stepper button {
  display: grid;
  place-items: center;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ps-add {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe4f8;
  color: #5b2a86;
  transition: transform 0.15s ease;
}

.ps-add:active {
  transform: scale(0.92);
}

.ps-stepper {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  background: #5b2a86;
  color: #ffffff;
}

.ps-stepper button {
  width: 26px;
  height: 26px;
  font-size: 16px;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
}

.ps-stepper span {
  min-width: 14px;
  font-weight: 700;
  text-align: center;
}

.ps-cartbar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px 10px 10px 14px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 30px -12px rgb(26 21 38 / 0.4),
    0 0 0 1px rgb(26 21 38 / 0.06);
  animation: rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ps-cartbar[hidden] {
  display: none;
}

.ps-cartbar > span {
  display: grid;
}

.ps-cartbar small {
  font-size: 10.5px;
  color: #6b6280;
}

.ps-cartbar b {
  font-size: 16px;
}

.ps-btn {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #5b2a86;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.ps-btn:hover {
  background: #4a2170;
}

.ps-btn-wide {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
}

.ps-btn-quiet {
  background: #ffffff;
  color: #1a1526;
  box-shadow: inset 0 0 0 1px #d6d1e4;
}

.ps-btn-quiet:hover {
  background: #f5f3fa;
}

.phone :where(button):focus-visible {
  outline: 2px solid #f0b429;
  outline-offset: 2px;
}

.ps-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4px 12px;
  font-weight: 700;
  font-size: 15px;
}

/* A chevron drawn with a border, not a glyph. */
.ps-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #5b2a86;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.ps-back::before {
  content: '';
  width: 7px;
  height: 7px;
  border: solid #5b2a86;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}

.ps-lines {
  list-style: none;
  margin: 0;
  padding: 4px 12px;
  border-radius: 16px;
  background: #ffffff;
}

.ps-lines li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #efecf6;
}

.ps-lines li:last-child {
  border-bottom: 0;
}

.ps-card {
  display: grid;
  gap: 1px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
}

.ps-card b {
  font-size: 14px;
}

.ps-sums {
  display: grid;
  gap: 6px;
  margin: 2px 4px 0;
}

.ps-sums div {
  display: flex;
  justify-content: space-between;
}

.ps-sums dt {
  color: #6b6280;
}

.ps-sums dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ps-sums .ps-sums-total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #d6d1e4;
  font-size: 15px;
}

.ps-sums .ps-sums-total dt {
  color: #1a1526;
  font-weight: 700;
}

.phone .ps-fine {
  max-width: none;
  margin: 8px 4px 0;
  font-size: 10.5px;
  color: #6b6280;
}

.phone .ps-order-screen {
  background: linear-gradient(180deg, #5b2a86 0, #7b44ad 150px, #f5f3fa 290px);
}

.ps-order-head {
  display: grid;
  gap: 1px;
  padding: 0 4px 12px;
  color: #ffffff;
}

.ps-order-head span {
  font-weight: 800;
  font-size: 18px;
}

.ps-order-head small {
  font-size: 11px;
  opacity: 0.8;
}

.ps-pass {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 30px -18px rgb(26 21 38 / 0.45);
  animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ps-pass-card {
  display: grid;
  justify-items: center;
  padding: 12px 0 10px;
  border-radius: 14px;
  background: #0f8a80;
  color: #ffffff;
}

.ps-pass-word {
  margin-right: -0.3em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3em;
}

.ps-pass-num {
  font-weight: 900;
  font-stretch: 72%;
  font-size: 76px;
  line-height: 0.85;
  letter-spacing: -0.02em;
}

.ps-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
}

.ps-steps li {
  position: relative;
  padding-left: 26px;
  color: #9a92ad;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ps-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #d6d1e4;
  border-radius: 50%;
  background: #ffffff;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.ps-steps li.is-done,
.ps-steps li.is-now {
  color: #1a1526;
}

.ps-steps li.is-done::before {
  border-color: #5b2a86;
  background: #5b2a86;
}

.ps-steps li.is-now::before {
  border-color: #f0b429;
  background: #f0b429;
  box-shadow: 0 0 0 4px rgb(240 180 41 / 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .ps-cartbar,
  .ps-pass {
    animation: none;
  }
}

/* ---- the illustration and the route photos ----------------------------- */

.scene-art {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
}

.scene-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 686;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* On a phone 21:9 is a sliver; crop to the handover and the table. */
@media (max-width: 40rem) {
  .scene-art img {
    aspect-ratio: 4 / 3;
    object-position: 62% 50%;
  }
}

.scene-art figcaption {
  margin-top: 0.6rem;
  font-size: 0.625rem;
  text-align: right;
}

.route-photo {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  object-fit: cover;
}

/* ---- pricing: the slider and the semester ------------------------------ */

.ledger figcaption {
  display: grid;
  gap: 0.85rem;
}

.ledger-try {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.ledger-try output {
  min-width: 5ch;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}

.ledger input[type='range'],
.calc input[type='range'] {
  width: 100%;
  margin: 0;
  accent-color: var(--btn);
  cursor: pointer;
}

.calc {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.calc-head h3 {
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -0.01em;
}

.calc-head p {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.calc-body {
  display: grid;
  gap: 2rem;
  margin-top: 1.75rem;
}

@media (min-width: 56rem) {
  .calc-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }
}

.calc-inputs {
  display: grid;
  gap: 1.35rem;
}

.calc-inputs label {
  display: grid;
  gap: 0.55rem;
}

.calc-inputs label > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.calc-inputs output {
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

.calc-out {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.calc-out div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.calc-out dt {
  color: var(--ink-2);
}

.calc-out dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.calc-out .calc-net {
  margin-top: 0.2rem;
  padding-top: 0.9rem;
  border-top: 3px double var(--ink);
  border-bottom: 0;
  align-items: baseline;
}

.calc-out .calc-net dt {
  font-weight: 700;
  color: var(--ink);
}

.calc-out .calc-net dd {
  font-weight: 800;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

/* ---- the demo's two handover modes -------------------------------------- */

/* A two-way radio group drawn as a segmented control. */
.mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 1.25rem;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--sunken);
}

.mode-switch[hidden] {
  display: none;
}

.mode-switch button {
  min-width: 7.5rem;
  min-height: 40px;
  padding: 0 1rem;
  white-space: nowrap;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.mode-switch button[aria-checked='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgb(26 21 38 / 0.12),
    0 0 0 1px var(--rule);
}

@media (hover: hover) {
  .mode-switch button[aria-checked='false']:hover {
    color: var(--primary);
  }
}

.demo-intro .mode-desc {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.ps-card small {
  margin-top: 4px;
  font-size: 10.5px;
  color: #6b6280;
}

.ps-pass-place {
  margin-top: -4px;
  font-size: 14px;
}

.ps-pass[hidden],
.ps-pass-place[hidden] {
  display: none;
}

.ps-pass-hint {
  font-size: 10.5px;
  color: #6b6280;
  text-align: center;
}

.ps-steps li > span {
  display: block;
}

.ps-steps li > small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #6b6280;
}

.ps-steps li > small:empty {
  display: none;
}

/* ---- the contact page --------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.contact-layout .card {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.field .optional {
  margin-left: 0.35rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field small {
  font-size: 0.8125rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 36rem) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* 16px text: iOS zooms the page into any field set smaller. */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  /* A chevron drawn with gradients, not a glyph or an image. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.8rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

/* The honeypot: off screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .field-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, #c62b2b 10%, transparent);
  color: var(--ink);
  font-size: 0.9375rem;
}

.contact-form[hidden],
.contact-form .field-error[hidden],
.contact-done[hidden] {
  display: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.contact-actions .meta {
  margin: 0;
}

.contact-actions .btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.contact-done:focus {
  outline: none;
}

.contact-done h2 {
  margin-bottom: 0.6rem;
}

.contact-aside h2 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.125rem;
}

.contact-aside dl {
  margin: 0;
}

.contact-aside dt {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-aside dt:first-child {
  margin-top: 0;
}

.contact-aside dd {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.contact-page {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* ---- a page's opening, in the home page's voice (contact) ---------------- */

.page-hero {
  border-bottom: 1px solid var(--rule);
}

/* More specific than `section`, which would otherwise set this padding. */
section.page-hero {
  padding-block: clamp(2.75rem, 7vw, 4.75rem) clamp(2.5rem, 6vw, 4rem);
}

.page-hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 2.75rem);
  align-items: end;
}

@media (min-width: 60rem) {
  .page-hero .wrap {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.page-hero .eyebrow {
  margin-bottom: 1.4rem;
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.625rem, 7vw, 4.75rem);
  font-weight: 850;
  font-stretch: 76%;
  line-height: 0.93;
  letter-spacing: -0.02em;
}

.page-hero .lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
}

/* Three facts, set like the receipt on the pricing section: a mono label,
   a figure in the display face, a line of explanation, hairlines between. */
.page-hero-facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.page-hero-facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.page-hero-facts dt {
  margin: 0;
}

.page-hero-facts dd {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.page-hero-facts b {
  font-weight: 850;
  font-stretch: 78%;
  font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-hero-facts span {
  font-size: 0.875rem;
  color: var(--muted);
}

.page-hero + .contact-page .contact-layout {
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* The menu repeats the call to action only where the bar has no room for it. */
@media (min-width: 30.0625rem) {
  .menu-panel .btn {
    display: none;
  }
}

/* ---- the runner's phone --------------------------------------------------- */

/* Drawn from the runner app (QueueScreen, OrderDetailScreen): the card leads
   with a 72pt pass tile, then the car and the items, then a status pill in the
   app's own colours — amber still to pick up, blue being made, green out of
   the door. Literal colours, like the parent's phone: a picture of the app. */
.rs-top {
  display: grid;
  gap: 1px;
  padding: 0 4px 10px;
}

.rs-shift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #e3dfeb;
  border-radius: 16px;
  background: #ffffff;
}

.rs-shift b {
  display: block;
  font-size: 14px;
}

.rs-shift small {
  font-size: 11px;
  color: #6b6280;
}

.rs-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #34c759;
}

.rs-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.rs-queue {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-card,
.rs-card-btn {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.rs-card {
  padding: 9px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(26 21 38 / 0.08);
}

.rs-card.is-demo {
  display: block;
  padding: 0;
  outline: 2px solid #f0b429;
  outline-offset: -2px;
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rs-card-btn {
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rs-card.is-flash {
  animation: rowflash 1.3s ease-out;
}

.rs-card.is-leaving {
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.rs-tile {
  display: grid;
  place-items: center;
  align-content: center;
  width: 54px;
  height: 54px;
  border-radius: 11px;
  background: var(--tile);
  color: var(--tile-ink);
}

.rs-tile b {
  font-weight: 900;
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.rs-tile small {
  margin-top: 1px;
  font-weight: 800;
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.rs-tile-big {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.rs-tile-big b {
  font-size: 32px;
}

.rs-tile-big small {
  font-size: 10px;
}

.rs-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rs-text > b {
  overflow: hidden;
  font-size: 13.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-text > span:not(.rs-meta) {
  overflow: hidden;
  font-size: 11.5px;
  color: #3d3550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 3px;
  font-size: 10.5px;
  color: #6b6280;
}

.rs-pill {
  padding: 1px 7px;
  border-radius: 999px;
  background: #f5f3fa;
  color: #1a1526;
  font-weight: 600;
  font-size: 10.5px;
}

.rs-pill[data-status='pending'] {
  background: #fdf0df;
  color: #8a5310;
}

.rs-pill[data-status='preparing'] {
  background: #e8f0fc;
  color: #2a5290;
}

.rs-pill[data-status='en_route'] {
  background: #e4f5ec;
  color: #1e6b48;
}

/* Over: grey, as the apps draw a finished order. */
.rs-pill[data-status='delivered'] {
  background: #efecf6;
  color: #3d3550;
}

/* The push, sliding down over the queue as iOS draws a banner. */
.rs-alert {
  position: absolute;
  top: 40px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 30px -8px rgb(26 21 38 / 0.45);
  font-size: 12px;
  cursor: pointer;
}

.rs-alert[hidden] {
  display: none;
}

.rs-alert.is-in {
  animation: alert-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
}

.rs-alert-app {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6280;
}

.rs-alert-app i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #f0b429;
}

.rs-alert b {
  font-size: 13px;
}

.rd-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
}

.rd-who {
  display: grid;
  gap: 5px;
  justify-items: start;
  min-width: 0;
}

.rd-who b {
  font-size: 15px;
}

.rd-total {
  display: flex;
  justify-content: space-between;
  margin: 10px 4px 0;
  font-size: 13px;
  color: #6b6280;
}

.rd-total b {
  color: #1a1526;
}

.rd-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.rd-actions .ps-btn-wide {
  margin-top: 0;
}

.rd-actions [hidden] {
  display: none;
}

/* The gold slide, as the app's SlideToConfirm: drag the knob to the end. */
.slide {
  --fill: 0px;
  position: relative;
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 25px;
  background: #fbeacc;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--fill) + 46px);
  border-radius: 25px;
  background: #f0b429;
}

.slide-label {
  position: relative;
  font-weight: 700;
  font-size: 14px;
  color: #5a3b00;
}

.slide-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgb(26 21 38 / 0.25);
  cursor: grab;
  touch-action: none;
}

.slide-knob:active {
  cursor: grabbing;
}

/* A chevron drawn with a border. */
.slide-knob span {
  width: 9px;
  height: 9px;
  margin-left: -3px;
  border: solid #8a5310;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(-45deg);
}

.slide.is-done {
  background: #f0b429;
}

.slide.is-done .slide-knob {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .rs-card.is-demo,
  .rs-card.is-flash,
  .rs-alert.is-in,
  .demo-link-dot.is-sending {
    animation: none;
  }
}

/* ---- for the volunteers ----------------------------------------------------- */

.vol-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 60rem) {
  .vol-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

/* A shift, in order — so numbered by the list itself. */
.vol-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: shift;
}

.vol-steps li {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 0 1.15rem 3.25rem;
  border-top: 1px solid var(--rule);
  counter-increment: shift;
}

.vol-steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

.vol-steps li::before {
  content: counter(shift);
  position: absolute;
  left: 0;
  top: 1.05rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--ink);
}

.vol-steps h3 {
  font-size: 1.0625rem;
}

.vol-steps p {
  margin: 0;
  font-size: 0.9375rem;
}

.vol-aside {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.vol-aside h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.vol-aside .ticks li {
  font-size: 0.9375rem;
}

.vol-aside b {
  color: var(--ink);
}

/* ---- fundraising ------------------------------------------------------------ */

.calc-warn {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.calc-warn[hidden] {
  display: none;
}

.fund-grid {
  display: grid;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .fund-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
  }
}

.fund-goal {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}

.fund-goal figcaption {
  font-size: 0.625rem;
}

/* As the parent app draws it on a receipt (FundraisingCard). */
.goal-card {
  display: grid;
  gap: 6px;
  width: min(100%, 22rem);
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background: #ffffff;
  color: #1a1526;
  box-shadow: var(--shadow);
}

.goal-eyebrow {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a5310;
}

.goal-title {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.goal-track {
  display: block;
  height: 10px;
  margin-top: 4px;
  border-radius: 5px;
  background: #efecf6;
  overflow: hidden;
}

.goal-track span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #f0b429, #e8a317);
}

.goal-numbers {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #6b6280;
}

.goal-numbers b {
  font-size: 1.125rem;
  color: #1a1526;
}

.goal-numbers span {
  margin-left: auto;
}

.goal-card small {
  font-size: 0.75rem;
  color: #6b6280;
}

.fund-points {
  display: grid;
  margin: 0;
}

.fund-points > div {
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}

.fund-points > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.fund-points dt {
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--ink);
}

.fund-points dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
