:root {
  /* Brickwork tokens. Components use these only; no raw colours below this block. */
  --bg: #16171C;
  --surface: #1F2128;
  --surface-2: #272A33;
  --border: #33363F;
  /* Input and control outlines: --border is a hairline (1.4:1), form fields need 3:1. */
  --border-strong: #6A6E78;
  --text: #F4F1EC;
  --text-muted: #A9A39A;

  --accent: #B4532A;
  --accent-hover: #9E4723;
  --accent-text: #E08A5F;
  --on-accent: #FFFFFF;

  --swim: #5E9BD6;
  --bike: #8F7BD6;
  --run: #4FA89A;
  --strength: #9AA1AD;

  --success: #5CC48A;
  --warning: #E6B545;
  --danger: #E5675B;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Hero phone width. Everything in the lineup (overlap, watch size and offset, hero padding) derives from it. */
  --phone: min(17.5rem, 74vw);
  /* Onboarding phones and the laptop, sized the same way so their text can derive from them. */
  --flow-phone: min(17.5rem, 74vw);
  --mac: min(62rem, 100vw - 4rem);
  --wrap: 76rem;
  --radius-card: 14px;
  --radius-control: 10px;
  --radius-chip: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

@media (min-width: 64rem) {
  :root { --phone: clamp(15rem, 21vw, 23rem); }
}

/* Four phones fit in a row from 72rem; below that the flow stays a carousel. */
@media (min-width: 72rem) {
  :root { --flow-phone: calc((min(100vw, var(--wrap)) - 4rem - 6rem) / 4); }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* Keeps anchor targets clear of the sticky nav. */
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
p, li { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }

::placeholder { color: var(--text-muted); opacity: 1; }

a { color: inherit; text-underline-offset: 0.2em; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap { padding: 0 1.5rem; }
}

@media (min-width: 64rem) {
  .wrap { padding: 0 2rem; }
}

/* General Sans has no tabular figures (no tnum feature), so numeric spans take theirs from the system face. */
.tnum { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }

/* Every number in the device mockups lines up in columns. */
.device-screen, .watch-screen { font-variant-numeric: tabular-nums; }

/* Buttons: primary (terracotta, scarce), secondary (outline), text link. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.15rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.btn:active { transform: translateY(1px); }

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

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); font-weight: 500; }
.btn-secondary:hover { border-color: var(--text-muted); }

.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary:disabled:hover { background: var(--accent); }
.btn-secondary:disabled:hover { border-color: var(--border); }

/* Text links: terracotta text. A faint underline keeps them findable without colour alone; it firms up on hover. */
.text-link,
.faq details a,
.form-note a,
.policy a,
.form-done a {
  color: var(--accent-text);
  text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent);
  text-underline-offset: 0.2em;
}

.text-link:hover,
.faq details a:hover,
.form-note a:hover,
.policy a:hover,
.form-done a:hover { text-decoration-color: currentColor; }

/* Buttons drawn inside the device mockups stay at screenshot scale; this widens their tap area to 44px. */
.device-screen button { position: relative; }
.device-screen button::after { content: ""; position: absolute; inset: -10px -2px; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

/* Logo: the three-brick mark in terracotta, then the wordmark in live text. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.logo-mark { width: 26px; height: 26px; flex: none; color: var(--accent-text); }
.logo-word { font-weight: 400; }
.logo-word b { font-weight: 700; }

.nav-links {
  display: none;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.9375rem;
}

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

.nav .btn {
  padding: 0 0.95rem;
  font-size: 0.875rem;
  transition: background-color 160ms var(--ease-out), opacity 160ms var(--ease-out), visibility 160ms;
}

/* The form is on screen, or the visitor has already joined. */
.nav .btn.is-off { opacity: 0; visibility: hidden; }

@media (min-width: 48rem) {
  .nav-links { display: flex; }
}


/* Hero */

.hero {
  background: var(--bg);
  color: var(--text);
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 64rem) {
  .hero { padding: 2.5rem 0 6rem; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 15ch;
}

.hero .lede {
  text-wrap: balance;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

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

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

/* Each sentence of the headline starts its own line. */
.hero h1 > span { display: block; }

/* Keeps "isn't a template." together, so the first line breaks on the contrast. */
.hero h1 .nb { white-space: nowrap; }

/* Desktop: headline left, subline and actions right, so the phone lineup rises into the first screen. */
@media (min-width: 64rem) {
  .hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: end;
  }

  .hero h1 { font-size: clamp(3.25rem, 4.8vw, 4.25rem); max-width: none; margin: 0; }
  .hero .lede { text-wrap: pretty; }
}

/* Product stage: Apple product bezels (assets/) with live screens underneath.
   Screen boxes are the measured transparent screen areas of each PNG.
   Screen content is sized in em against the screen width, so it scales like a screenshot. */

/* Hero lineup: four phones, each a different part of the product, plus a watch.
   Mobile: a swipeable row starting with the week view. */

.lineup {
  margin: 3rem -1rem 0;
  padding: 0 1rem 0.5rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lineup::-webkit-scrollbar { display: none; }

.lineup > .device-phone {
  flex: none;
  width: var(--phone);
  scroll-snap-align: center;
}

.ph-week { order: -1; }

/* What each phone shows, in one line under its frame. The lineup's bottom padding makes room. */
.lineup { padding-bottom: 3.25rem; }

.ph-cap {
  position: absolute;
  top: 100%;
  inset-inline: 8%;
  margin: 1rem 0 0;
  text-align: center;
  text-wrap: balance;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

/* Between 64rem and 80rem the phones are narrowest, so captions drop a step to stay on one line. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .ph-cap { inset-inline: 2%; font-size: 0.875rem; }
}

@media (min-width: 64rem) {
  .lineup {
    margin: 2rem calc((100% - min(96rem, 100vw - 3rem)) / 2) 0;
    padding: 0 0 3.25rem;
    gap: 0;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
  }

  .lineup > .device-phone + .device-phone { margin-left: calc(var(--phone) * -0.086); }

  /* Each phone sits on the one to its left, as in a product lineup; the week view is last and fully visible. */
  .ph-review { z-index: 1; }
  .ph-today { z-index: 2; }
  .ph-chat { z-index: 3; }
  .ph-week { order: 0; z-index: 4; }
}

.device { position: relative; width: 100%; }

.device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

.device-screen {
  position: absolute;
  overflow: hidden;
}

/* MacBook Air 13" (3400 x 2240 source; screen 420,288 2560 x 1664) */

.device-mac { display: none; aspect-ratio: 3400 / 2240; width: var(--mac); margin-inline: auto; }

@media (min-width: 64rem) {
  .device-mac { display: block; }
}

.mac-screen {
  left: 12.353%;
  top: 12.857%;
  width: 75.294%;
  height: 74.286%;
  background: var(--surface);
  font-size: calc(var(--mac) * 0.75294 * 16 / 900);
}

/* iPhone 17 Pro (1350 x 2760 source; screen 72,69 1206 x 2622) */

.device-phone {
  width: min(17.5rem, 80vw);
  aspect-ratio: 1350 / 2760;
}


.phone-screen {
  left: 5.333%;
  top: 2.5%;
  width: 89.333%;
  height: 95%;
  /* Just under the frame's inner corner, so square corners don't show outside the bezel on light sections. */
  border-radius: 13.6% / 6.25%;
  background: var(--surface);
  color: var(--text);
  padding: 0.9em 0.9em 1em;
  font-size: calc(var(--phone) * 0.89333 * 16 / 360);
}

/* Laptop window */

.window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  padding: 1.6em 1.25em 0.8em;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125em;
}

.window-bar strong { font-weight: 600; }
.window-bar span { color: var(--text-muted); }

.board {
  flex: 1;
  list-style: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4em;
  padding: 0.9em 0.85em 1.1em;
}

.day { display: flex; flex-direction: column; gap: 0.5em; }

.day-head {
  font-size: 0.8125em;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.15em 0.5em;
  margin-bottom: 0.25em;
  border-bottom: 1px solid var(--border);
}

.day-head b { color: var(--text); font-weight: 600; margin-right: 0.3em; }

.day-cards { display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }

.card {
  position: relative;
  min-width: 0;
  padding: 0.6em 0.7em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.6em;
  font-size: 0.8125em;
  line-height: 1.35;
}

.card-sport {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--text-muted);
  font-size: 0.92em;
}

.card-sport::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 2px;
  background: var(--sport);
  flex: none;
}

.card-title { display: block; color: var(--text); font-weight: 500; margin-top: 0.15em; }
.card-time { display: block; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.card-time span { white-space: nowrap; }


.card .tag {
  display: block;
  margin-top: 0.35em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--success);
}

.card.moving .tag { color: var(--warning); }
.card[data-state="proposed"] { font-size: 0.75em; }
/* Muted text on a tinted fixed card: lift it toward --text so it stays above 4.5:1. */
.card[data-state="fixed"] .card-sport,
.card[data-state="fixed"] .card-time { color: color-mix(in srgb, var(--text-muted) 55%, var(--text)); }
.card-check { position: absolute; top: 0.6em; right: 0.6em; width: 1em; height: 1em; color: var(--success); }

.window-foot {
  padding: 0.8em 1.25em;
  border-top: 1px solid var(--border);
  font-size: 0.75em;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li { display: inline-flex; align-items: center; gap: 0.4em; }

.legend li::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 2px;
}

.legend li::before { width: 1.1em; height: 0.75em; }
.legend .k-planned::before { background: var(--surface-2); border: 1px solid var(--text-muted); }
.legend .k-fixed::before { background: color-mix(in srgb, var(--text-muted) 22%, var(--surface)); border-left: 3px solid var(--text-muted); }
.legend .k-proposed::before { border: 1px dashed var(--warning); }

::view-transition-group(bike-laptop),
::view-transition-group(bike-phone) {
  animation-duration: 520ms;
  animation-timing-function: var(--ease-out);
}

/* Proposal (shared by both screens) */

.proposal p { margin: 0; }
.proposal p:focus { outline: none; }

.proposal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4em;
}

.proposal-actions button {
  min-height: 2.6em;
  padding: 0 0.7em;
  white-space: nowrap;
  border-radius: 0.55em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out);
}

.proposal-actions button:hover { border-color: var(--text-muted); }
.proposal-actions button:active { transform: translateY(1px); }

.proposal-actions .accept { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.proposal-actions .accept:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.proposal-bar {
  display: flex;
  align-items: center;
  gap: 1em 1.5em;
  padding: 0.8em 1.25em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  color: var(--text);
  font-size: 0.8125em;
  line-height: 1.45;
}

.proposal-bar p { flex: 1; }
.proposal-bar strong { font-weight: 600; }
.proposal-bar .proposal-actions { flex: none; }
.proposal-bar.resolved { border-left-color: var(--success); }

/* Phone app screen */

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.6em;
  padding: 0 1.4em 0 1.9em;
  margin: -0.9em -0.9em 0.5em;
  color: var(--text);
}

.status-time { font-size: 0.95em; font-weight: 600; }

.status-icons { display: flex; align-items: center; gap: 0.35em; }
.status-icons svg { display: block; height: 0.7em; width: auto; }

.app-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.2em 0.15em 0.7em;
}

.app-head strong { font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; }
.app-head span { font-size: 0.8em; color: var(--text-muted); }

.proposal-card {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 0.9em;
  padding: 0.85em 0.9em 0.9em;
  font-size: 0.875em;
  line-height: 1.4;
  margin-bottom: 0.8em;
}

.proposal-card strong { display: block; font-weight: 600; margin-bottom: 0.1em; }
.proposal-card .proposal-actions { margin-top: 0.7em; }

@media (prefers-reduced-motion: no-preference) {
  .proposal-card { animation: card-in 700ms var(--ease-out) 350ms both; }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

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

.pdays li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 0.4em;
  align-items: center;
  padding: 0.45em 0.1em;
  border-top: 1px solid var(--border);
  font-size: 0.8em;
}

.pd { font-weight: 600; color: var(--text); }

/* SessionBrick: one session in a week view. The same API as the app will use:
   data-sport="swim|bike|run|strength|other", data-state="planned|fixed|proposed",
   data-done (completed), style="--min: <duration in minutes>".
   Width follows duration within the day's row; labels wrap, never truncate. */

[data-sport="swim"] { --sport: var(--swim); }
[data-sport="bike"] { --sport: var(--bike); }
[data-sport="run"] { --sport: var(--run); }
[data-sport="strength"] { --sport: var(--strength); }
[data-sport="other"] { --sport: var(--text-muted); }

.bricks { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }
.brick:not([data-sport]) { --sport: var(--text-muted); }

.brick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2em 0.4em;
  flex: var(--min, 60) 1 0;
  min-width: 6.4em;
  padding: 0.35em 0.55em;
  border-radius: 0.4em;
  line-height: 1.25;
  color: var(--text);
}

.brick-label { min-width: 0; overflow-wrap: break-word; }
.brick-check { flex: none; width: 1em; height: 1em; margin-left: auto; color: var(--success); }
.brick-tag { margin-left: auto; font-size: 0.85em; font-weight: 600; padding: 0.05em 0.45em; border-radius: 999px; color: var(--text-muted); border: 1px solid var(--border); }
.brick[data-state="fixed"] .brick-tag { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

/* States, shared with the laptop board's cards. */
.brick[data-state="planned"],
.card[data-state="planned"] {
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--sport) 60%, transparent);
}

.brick[data-state="fixed"],
.card[data-state="fixed"] {
  background: color-mix(in srgb, var(--sport) 22%, var(--surface));
  border: 1px solid transparent;
  border-left: 3px solid var(--sport);
}

.brick[data-state="proposed"],
.card[data-state="proposed"] {
  background: transparent;
  border: 1px dashed var(--warning);
  color: var(--warning);
}

/* A move waiting for approval. */
.brick.moving,
.card.moving { border: 1px solid var(--warning); }

/* In a day that mixes done and upcoming sessions, done ones step back. */
.bricks:has(> [data-done]):has(> :not([data-done])) > [data-done] { opacity: 0.7; }

/* Phone screens: shared pieces */

.pcard {
  display: grid;
  gap: 0.45em;
  margin-bottom: 0.55em;
  padding: 0.7em 0.8em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.8em;
  font-size: 0.8125em;
}

.plabel { color: var(--text-muted); }

/* Garmin attribution under a title that shows Garmin device data (Garmin API Brand Guidelines). */
.data-src { margin: -0.55em 0 0.6em 0.2em; font-size: 0.7em; color: var(--text-muted); }
.act .data-src { margin: -0.3em 0 0; }
.pnote { color: var(--text-muted); line-height: 1.4; }

.ptag { justify-self: start; font-size: 0.85em; font-weight: 600; padding: 0.15em 0.55em; border-radius: 999px; white-space: nowrap; }
.ptag-info { color: var(--text-muted); border: 1px solid var(--border); }
.ptag-missed { flex: none; color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4em;
  margin-bottom: 0.55em;
}

.metrics > div {
  display: grid;
  gap: 0.1em;
  padding: 0.6em 0.7em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.7em;
  font-size: 0.8125em;
}

.metrics span { color: var(--text-muted); font-size: 0.9em; }
.metrics b { font-size: 1.25em; font-weight: 600; letter-spacing: -0.01em; }

.metrics-inset { margin: 0; font-size: 1.23em; }
.metrics-inset > div { background: var(--surface); }

/* Session review */

.ibars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5em;
  height: 4.6em;
}

.icol { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0.2em; }
.icol i { text-align: center; font-style: normal; font-size: 0.85em; color: var(--text); }
.ibar { display: block; height: calc((100% - 1.4em) * var(--p)); border-radius: 0.3em 0.3em 0.1em 0.1em; background: var(--bike); }

.itarget {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc((100% - 1.4em) * 0.833);
  border-top: 1px dashed var(--text-muted);
  z-index: 1;
}

.rpe { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.25em; }

.rpe span {
  position: relative;
  text-align: center;
  padding: 0.35em 0;
  border-radius: 0.45em;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.rpe .planned { border-style: dashed; border-color: var(--text-muted); color: var(--text); }
.rpe .on { background: var(--warning); border-color: var(--warning); color: var(--bg); font-weight: 700; }

.ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35em; }

.ready li {
  display: grid;
  grid-template-columns: 4.6em auto 1fr;
  gap: 0.5em;
  align-items: baseline;
}

.ready span { color: var(--text-muted); }
.ready b { font-weight: 600; }
.ready em { font-style: normal; color: var(--warning); text-align: right; }

.insight {
  padding: 0.8em 0.85em;
  border-radius: 0.8em;
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
  font-size: 0.8125em;
  line-height: 1.45;
}

.insight b { display: block; color: var(--text); font-size: 1.1em; margin-bottom: 0.2em; }
.insight p { margin: 0; color: var(--text); }

/* Today: cross-sport */

.act-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5em; }
.act-top b { font-size: 1.1em; }

.fbars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4em;
  height: 5.5em;
}

.fcol { display: flex; flex-direction: column; justify-content: flex-end; gap: 0.25em; }
.fcol i { text-align: center; font-style: normal; font-size: 0.85em; color: var(--text-muted); }
.fbar { display: block; height: calc((100% - 1.3em) * var(--p)); border-radius: 0.3em 0.3em 0.1em 0.1em; background: color-mix(in srgb, var(--text-muted) 35%, var(--surface)); }
.fbar.over { background: var(--warning); }

.flimit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(1.3em + (100% - 1.3em) * 0.75);
  border-top: 1px dashed var(--warning);
  z-index: 1;
}

.flimit i {
  position: absolute;
  left: 0;
  bottom: 0.2em;
  font-style: normal;
  font-size: 0.85em;
  color: var(--warning);
}

.proposal-card .swap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.6em;
  margin-top: 0.5em;
  padding: 0.45em 0.6em;
  border-radius: 0.5em;
  background: var(--surface);
}

.proposal-card .swap s { color: var(--text-muted); }
.proposal-card .swap span { font-weight: 600; }
.proposal-card.resolved { border-left-color: var(--success); }

.rest { list-style: none; margin: 0.55em 0 0; padding: 0; font-size: 0.8125em; }

.rest li {
  display: grid;
  grid-template-columns: 2.6em auto 1fr;
  gap: 0.5em;
  align-items: baseline;
  padding: 0.5em 0.1em;
  border-top: 1px solid var(--border);
}

.rest em { font-style: normal; color: var(--text-muted); text-align: right; }

/* Chat */

.chat { display: flex; flex-direction: column; gap: 0.6em; }

.msg { margin: 0; font-size: 0.8125em; line-height: 1.45; border-radius: 1em; padding: 0.65em 0.85em; }

.msg-me {
  align-self: flex-end;
  max-width: 82%;
  background: var(--border);
  color: var(--text);
  border-bottom-right-radius: 0.3em;
}

.msg-app {
  display: grid;
  gap: 0.45em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.3em;
}

.msg-app p { margin: 0; }
.msg-solo { display: block; align-self: flex-start; max-width: 88%; }
.msg-time { margin: 0.2em 0 -0.2em; text-align: center; font-size: 0.6875em; color: var(--text-muted); }

.opt {
  display: grid;
  gap: 0.15em;
  text-align: left;
  padding: 0.55em 0.7em;
  border-radius: 0.6em;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.opt b { font-weight: 600; color: var(--text); }
.opt span { color: var(--text-muted); }
.opt:hover { border-color: var(--text-muted); }
.opt.chosen { border-color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.opt.chosen b { color: var(--success); }

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8em;
  padding: 0.7em 0.9em;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.8125em;
}

.chat-input svg { width: 1.2em; height: 1.2em; color: var(--accent-text); }

.sugg { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.6em; }

.sugg span {
  padding: 0.35em 0.65em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75em;
}

/* Week summary */

.wk-sum {
  display: grid;
  gap: 0.4em;
  margin-bottom: 0.5em;
  padding: 0.65em 0.8em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 0.8em;
  font-size: 0.8125em;
}

.wk-phase { display: flex; justify-content: space-between; }
.wk-phase span { color: var(--text-muted); }

.wk-prog { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0.2em; }
.wk-prog i { height: 0.3em; border-radius: 999px; background: var(--border); }
.wk-prog .on { background: var(--text-muted); }
.wk-prog .now { background: var(--text); }

.wk-load { color: var(--success); }

/* Watch: product photo (assets/garmin-forerunner-whitestone.webp, 658 x 800, background removed).
   The screen overlay covers the display: circle centre (324.7, 388.2), radius 220 in source pixels,
   inside the bezel labels (radius 230+) and the GARMIN logo.
   It stands beside the phone row with a clear gap and never covers a screen. Four phones and the watch
   only fit side by side from 80rem, so it's hidden below that. */

.watch-photo { display: none; }

@media (min-width: 80rem) {
  .watch-photo {
    display: block;
    position: relative;
    flex: none;
    width: calc(var(--phone) * 0.63);
    aspect-ratio: 658 / 800;
    order: -1;
    align-self: flex-end;
    margin: 0 calc(var(--phone) * 0.09) calc(var(--phone) * 0.12) 0;
  }

  .watch-photo img { display: block; width: 100%; height: 100%; }

  .watch-screen {
    position: absolute;
    left: 15.91%;
    top: 21.03%;
    width: 66.87%;
    height: 55%;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    display: grid;
    place-content: center;
    text-align: center;
    line-height: 1.1;
    font-size: calc(var(--phone) * 0.63 * 0.6687 * 16 / 150);
  }
}

.wf-top { font-size: 0.75em; color: var(--text-muted); font-weight: 600; }
.wf-big { font-size: 2em; font-weight: 600; letter-spacing: -0.02em; margin-top: 0.1em; }
.wf-unit { font-size: 0.75em; color: var(--text); }
.wf-target { font-size: 0.7em; color: var(--success); margin-top: 0.3em; }

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.6em 0.5em 1.9em;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1em 0.8em -0.2em var(--surface);
}

.tab {
  display: grid;
  justify-items: center;
  gap: 0.25em;
  font-size: 0.6875em;
  color: var(--text-muted);
}

.tab svg { width: 1.9em; height: 1.9em; }
.tab.on { color: var(--accent-text); font-weight: 600; }

.home-bar {
  position: absolute;
  left: 50%;
  bottom: 0.6em;
  width: 36%;
  height: 0.3em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 60%, transparent);
  transform: translateX(-50%);
}

/* Sections */

.section { padding: 5rem 0; }

@media (min-width: 64rem) {
  .section { padding: 7rem 0; }
}

.section-head { max-width: 40rem; margin-bottom: 3.5rem; }

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-head p { margin: 0; color: var(--text-muted); font-size: 1.125rem; }

/* How it works: three setup phones, then a missed session. Desktop: a row with captions.
   Mobile: a swipeable carousel, one phone at a time with the next peeking in. */

.flow {
  list-style: none;
  margin: 0 -1rem;
  padding: 0 1rem 0.5rem;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.flow::-webkit-scrollbar { display: none; }

.flow > li {
  flex: none;
  width: var(--flow-phone);
  scroll-snap-align: center;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.flow .device-phone { width: 100%; }
/* Onboarding screens hold less content than the hero screens, so their text runs slightly larger. */
.flow .phone-screen { font-size: calc(var(--flow-phone) * 0.89333 * 16 / 335); }

.flow-cap {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 72rem) {
  .flow {
    margin: 0;
    padding: 0;
    overflow: visible;
    justify-content: center;
    gap: 2rem;
  }

}

.flow-mac { display: none; }

@media (min-width: 64rem) {
  .flow-mac {
    display: grid;
    gap: 2rem;
    margin-top: 6rem;
  }

  .flow-mac-text { max-width: 40rem; }
  .flow-mac h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.75rem; }
  .flow-mac-text p { margin: 0; color: var(--text-muted); }
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-fixed { color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.pill-warn { color: var(--warning); border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }

/* Onboarding screens (inside .phone-screen, em-based) */

.ob-step { display: flex; justify-content: space-between; font-size: 0.75em; color: var(--text-muted); margin-top: 0.3em; }
.ob-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3em; margin: 0.5em 0 0.8em; }
.ob-prog i { height: 0.3em; border-radius: 999px; background: var(--border); }
.ob-prog .on { background: var(--text); }

.ob-title { margin: 0 0 0.6em; font-size: 1.35em; font-weight: 700; letter-spacing: -0.02em; }

.ob-chips { display: flex; flex-wrap: wrap; gap: 0.35em; }

.ob-chips span {
  padding: 0.35em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.ob-chips .on { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.ob-field {
  padding: 0.5em 0.7em;
  border-radius: 0.5em;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
}

.ob-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4em; }

.ob-hours span {
  display: grid;
  padding: 0.45em 0.55em;
  border-radius: 0.5em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.92em;
}

.ob-hours b { color: var(--text); font-size: 1.15em; font-weight: 600; }

.ob-fixed { list-style: none; margin: 0 0 0.55em; padding: 0; display: grid; gap: 0.4em; }

.ob-fixed li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.5em;
  padding: 0.6em 0.75em;
  border-radius: 0.75em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8125em;
}

.ob-fixed b { font-weight: 600; }
.ob-fixed span { grid-column: 1; color: var(--text-muted); }
.ob-fixed em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 0.85em; font-weight: 600; color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); padding: 0.15em 0.55em; border-radius: 999px; }

.ob-typed { margin: 0 0 0.55em; }
.ob-conn-row { display: flex; justify-content: space-between; align-items: center; }
.ob-conn-row em { font-style: normal; font-size: 0.85em; font-weight: 600; color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); padding: 0.15em 0.55em; border-radius: 999px; }
.ob-fixed li.new { border-color: color-mix(in srgb, var(--accent-text) 45%, transparent); }
.ob-fixed li.new em { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 40%, transparent); }

.ob-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3em; height: 6.5em; }

.ob-week > span {
  position: relative;
  border-radius: 0.35em;
  background: var(--surface);
  border: 1px solid var(--border);
}

.ob-week i {
  position: absolute;
  left: 15%;
  right: 15%;
  top: calc(var(--a) * 100%);
  height: calc((var(--b) - var(--a)) * 100%);
  border-radius: 0.2em;
  background: color-mix(in srgb, var(--success) 45%, var(--surface));
}

.ob-week b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.4em;
  text-align: center;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text-muted);
}

.ob-free { gap: 0.6em; padding-bottom: 0.9em; }
.ob-free .pnote { margin-top: 1.1em; }

.ob-sum { font-size: 1em; color: var(--text-muted); }
.ob-sum b { color: var(--text); font-size: 1.25em; font-weight: 700; }

.ob-days { list-style: none; margin: 0 0 0.55em; padding: 0; font-size: 0.8em; }
.ob-days .brick { padding-block: 0.25em; }

.ob-days li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 0.5em;
  align-items: center;
  padding: 0.18em 0.1em;
  border-top: 1px solid var(--border);
}


.phone-screen .modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.2em;
  border-radius: 0.6em;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-screen .modes button {
  min-height: 2.3em;
  border: 0;
  border-radius: 0.45em;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.phone-screen .modes button:hover { color: var(--text); }
.phone-screen .modes button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.ob-btn {
  position: absolute;
  left: 0.9em;
  right: 0.9em;
  bottom: 2em;
  padding: 0.8em;
  border-radius: 0.75em;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-size: 0.875em;
  font-weight: 600;
  box-shadow: 0 0 0 0.6em var(--surface), 0 -1em 0.7em -0.1em var(--surface);
}

/* Also built in */

.also { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.also-grid {
  display: grid;
  gap: 2.5rem 2rem;
}

@media (min-width: 40rem) {
  .also-grid { grid-template-columns: 1fr 1fr; }
  .also-grid > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }

  /* The lead item runs full width, so the other four sit in even rows. */
  .also-grid > .also-lead {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 2rem;
  }

  .also-lead .artifact { grid-row: 1 / 3; align-self: start; margin-bottom: 0; }
}

@media (min-width: 64rem) {
  .also-grid { grid-template-columns: repeat(4, 1fr); }
}

.artifact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 0.875rem;
}

.art-label { color: var(--text-muted); font-size: 0.8125rem; }
.art-what { font-weight: 600; }
.art-meta { color: var(--text-muted); font-size: 0.8125rem; }

.also-grid h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.4rem; }
.also-grid p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* FAQ */

.faq-list { max-width: 48rem; }

.faq details { padding: 0.2rem 0; border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.15rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translateY(-25%);
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover::after { border-color: var(--text); }
.faq summary:focus-visible { outline-offset: 4px; }

.faq details p { margin: 0 0 1.25rem; max-width: 42rem; color: var(--text-muted); }

/* Join */

.join {
  background: var(--bg);
  color: var(--text);
}

.join .wrap {
  display: grid;
  gap: 3rem;
}

@media (min-width: 56rem) {
  .join .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 5rem; align-items: start; }
  /* The pitch stays beside the long form while it scrolls. */
  .join .wrap > div:first-child { position: sticky; top: 6rem; }
}

.join h2 { color: var(--text); }
.join-lede { margin: 0; max-width: 34rem; color: var(--text-muted); font-size: 1.125rem; }
.join-founder { margin: 1rem 0 0; color: var(--text); font-weight: 500; }

.join-side { display: grid; gap: 1.25rem; align-content: start; }

.hyrox-note {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.hyrox-note p { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }
.hyrox-note strong { color: var(--text); }
.hyrox-note .btn { justify-self: start; }

.facts {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  color: var(--text-muted);
}

.facts li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; }

.facts svg { width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; color: var(--success); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

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

.field > label,
.field legend { padding: 0; font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.field legend { margin-bottom: 0.5rem; }
.optional { font-weight: 400; color: var(--text-muted); }

.field input[type="email"],
.field input[type="text"],
.select select {
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  /* 16px: iOS zooms the page when a smaller field is focused. */
  font-size: 1rem;
}

.field input:hover,
.select select:hover { border-color: var(--text-muted); }
.field input:focus-visible,
.select select:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-error { margin: 0; font-size: 0.875rem; color: var(--danger); }

.select { position: relative; display: block; margin-top: 0.25rem; }
.select select { appearance: none; padding-right: 2.5rem; }
.select select:disabled { opacity: 0.4; cursor: not-allowed; }
.select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select option { background: var(--surface-2); color: var(--text); }

/* Choice chips: real checkboxes and radios, visually hidden, so keyboard and screen readers work as usual. */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.choice { position: relative; display: inline-flex; }

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.choice input:hover + span { border-color: var(--text-muted); color: var(--text); }
.choice input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.consent-group { display: grid; gap: 0.5rem; }

.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.65rem;
  align-items: start;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}

/* Honeypot: off screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

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

.form-error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent);
  border-radius: var(--radius-control);
  padding: 0.7rem 0.85rem;
}

.form-error a { color: var(--text); }

.form .btn { width: 100%; }

.form-note { margin: 0; font-size: 0.8125rem; color: var(--text-muted); }

/* Success state */
.form-done { gap: 1rem; }
.form-done:focus { outline: none; }
.form-done h3 { margin: 0; font-size: 1.375rem; }
.form-done p { margin: 0; color: var(--text-muted); }
.done-share { font-size: 0.9375rem; }
.done-share [data-share-status] { color: var(--text); overflow-wrap: anywhere; }

.link-button {
  min-height: 44px;
  padding: 0 0.15rem;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent);
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-button:hover { text-decoration-color: currentColor; }

.hyrox-note[hidden] { display: none; }


/* Footer */

.footer {
  background: var(--bg);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
  font-size: 0.875rem;
}

.footer .wrap { display: grid; gap: 1.25rem; }

@media (min-width: 48rem) {
  .footer .wrap { grid-template-columns: auto 1fr; gap: 3rem; align-items: start; }
}

.footer .logo { align-self: start; }
.footer p { margin: 0 0 0.35rem; max-width: 60ch; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-bottom: 0.75rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

/* Policy page */

.policy {
  max-width: 44rem;
  padding: 3.5rem 0 5rem;
}

.policy h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}

.policy h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 3rem 0 0.75rem;
}

.policy h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.policy p, .policy li { color: var(--text-muted); max-width: 68ch; }
.policy strong { color: var(--text); font-weight: 600; }
.policy li { margin-bottom: 0.4rem; }

.policy .meta { color: var(--text-muted); margin: 0 0 2.5rem; }

.policy .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
}

.policy .summary p { margin: 0; }
.policy .summary ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }

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

.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 0.5rem 0 1rem;
}

.policy th, .policy td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.policy th { font-weight: 600; color: var(--text); }
.policy td { color: var(--text-muted); }


@media (prefers-reduced-motion: reduce) {
  *, ::view-transition-group(*) { animation: none !important; transition: none !important; }
}
