/*
 * FitPilot — the website's design system.
 *
 * Every colour here is lifted from design/palette.json, which is the same file the iOS
 * asset catalogue and the Compose palette are generated from. The site and the app cannot
 * drift apart, because changing one means changing the source both read.
 *
 * Type is the platform's own: San Francisco on Apple devices, and the closest local face
 * everywhere else. Rounded for headings and figures, because that is the face the app uses
 * for the same job. Nothing is downloaded — a marketing page should not cost a web font.
 */

:root {
  /* Brand, from palette.json */
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-light: #60a5fa;
  --secondary: #34d399;
  --secondary-dark: #059669;

  --background: #f8fafc;
  --surface: #ffffff;
  --surface-secondary: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  --border: #e2e8f0;
  --divider: #e2e8f0;

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* The three rings, in the roles the app gives them */
  --ring-move: #ef4444;
  --ring-exercise: #22c55e;
  --ring-stand: #3b82f6;

  /* Spacing — the app's rhythm, doubled at the top end for a page rather than a phone */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  --radius-control: 10px;
  --radius-card: 16px;
  --radius-large: 28px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 48px rgba(15, 23, 42, 0.1);

  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-number: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", Roboto, sans-serif;

  --page: 1120px;
  --nav-height: 64px;
}

/*
 * Dark mode is a designed theme, not an inversion: surfaces lift off the background rather
 * than the reverse, and the accent lightens so it still reads against a dark card.
 */
:root[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-dark: #2563eb;
  --primary-light: #93c5fd;
  --secondary: #34d399;
  --secondary-dark: #10b981;

  --background: #0b0f14;
  --surface: #151b23;
  --surface-secondary: #1e2630;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  --border: #334155;
  --divider: #263241;

  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --info: #60a5fa;

  --ring-move: #f87171;
  --ring-exercise: #4ade80;
  --ring-stand: #60a5fa;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------------ resets */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-6));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
}

p {
  margin: 0;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--space-3);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 60ch;
}

.numeric {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* --------------------------------------------------------------- layout */

.page {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-12);
}

.section-head p {
  margin-top: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.muted-section {
  background: var(--surface-secondary);
}

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin-bottom: var(--space-2);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-control);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  min-height: 48px;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, #000);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-tertiary);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn--block {
  width: 100%;
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--border);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: auto;
}

.nav__brand img {
  width: 30px;
  height: 30px;
}

/*
 * The mark has a light-background and a dark-background cut, and the right one is chosen
 * in CSS rather than in script: swapping it after hydration would show the wrong logo for
 * a frame on every page load.
 */
.brand-mark--dark {
  display: none;
}

:root[data-theme="dark"] .brand-mark--light {
  display: none;
}

:root[data-theme="dark"] .brand-mark--dark {
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--text-primary);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav__toggle {
  display: none;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-6);
  border-top: 1px solid var(--border);
}

.nav__mobile a {
  padding: var(--space-3) 0;
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

.nav[data-open="true"] .nav__mobile {
  display: flex;
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__actions .btn {
    display: none;
  }

  .nav__toggle {
    display: grid;
  }
}

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

.hero {
  padding-top: clamp(var(--space-12), 7vw, var(--space-24));
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}

/* One soft wash, not a gradient scheme: it lifts the fold and then gets out of the way. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto -10%;
  height: 640px;
  background:
    radial-gradient(50% 50% at 20% 30%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 70%),
    radial-gradient(45% 45% at 80% 10%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero .lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero__note {
  margin-top: var(--space-4);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- device mockup */

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--space-8) 0;
}

.device {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border-radius: 46px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift), 0 0 0 10px color-mix(in srgb, var(--text-primary) 8%, transparent);
  padding: 14px;
  overflow: hidden;
}

.device__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  opacity: 0.9;
  z-index: 2;
}

.device__screen {
  height: 100%;
  border-radius: 34px;
  background: var(--background);
  padding: 42px 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.screen-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.screen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.screen-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.screen-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
}

.screen-metric span {
  display: block;
  font-size: 9px;
  color: var(--text-secondary);
}

.screen-metric strong {
  font-family: var(--font-number);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.screen-start {
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 9px;
}

/* Floating figures: part of the composition, anchored to the device, never overlapping
   the screen content they are describing. */
.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-card);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.82rem;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.float-card strong {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.float-card span {
  color: var(--text-secondary);
}

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

.float-card--steps {
  top: 12%;
  left: -6%;
  animation-delay: -1s;
}

.float-card--exercise {
  top: 34%;
  right: -8%;
  animation-delay: -3s;
}

.float-card--sleep {
  bottom: 22%;
  left: -10%;
  animation-delay: -2s;
}

.float-card--energy {
  bottom: 8%;
  right: -4%;
  animation-delay: -4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 620px) {
  .float-card--steps,
  .float-card--sleep {
    left: -2%;
  }

  .float-card--exercise,
  .float-card--energy {
    right: -2%;
  }

  .float-card {
    font-size: 0.72rem;
    padding: var(--space-2) var(--space-3);
  }
}

/* ---------------------------------------------------------------- rings */

.rings {
  --size: 260px;
  width: var(--size);
  height: var(--size);
  position: relative;
  display: grid;
  place-items: center;
  margin-inline: auto;
}

.rings svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.rings circle {
  fill: none;
  stroke-linecap: round;
}

.rings .track {
  opacity: 0.18;
}

.rings .value {
  stroke-dasharray: var(--circumference);
  stroke-dashoffset: var(--circumference);
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.rings[data-filled="true"] .value {
  stroke-dashoffset: var(--offset);
}

.ring-legend {
  display: grid;
  gap: var(--space-4);
}

.ring-legend__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.ring-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-1px);
}

.ring-legend__label {
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 88px;
}

.ring-legend__value {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------- charts */

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
}

.chart__bar {
  flex: 1;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  border-radius: 6px 6px 3px 3px;
  height: 0;
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart__bar:last-child {
  background: var(--primary);
}

.chart[data-filled="true"] .chart__bar {
  height: var(--h);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--divider);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row__name {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.metric-row__value {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.delta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
}

.delta--down {
  color: var(--text-secondary);
}

/* -------------------------------------------------------------- timeline */

.steps {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}

.step__number {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 35%, transparent);
  margin-bottom: var(--space-3);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: var(--space-3);
}

.flow__node {
  flex: 1 1 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
}

.flow__node small {
  display: block;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.flow__arrow {
  align-self: center;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------- history */

.session {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--divider);
}

.session:last-child {
  border-bottom: 0;
}

.session__day {
  width: 84px;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.session__title {
  font-family: var(--font-display);
  font-weight: 600;
}

.session__meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.session__stat {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .session {
    flex-wrap: wrap;
  }

  .session__day {
    width: 100%;
  }

  .session__stat {
    margin-left: 0;
    text-align: left;
  }
}

/* ------------------------------------------------------------------ CTA */

.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: clamp(var(--space-12), 7vw, var(--space-24)) var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta p {
  margin: var(--space-4) auto 0;
  max-width: 46ch;
}

.cta__actions {
  margin-top: var(--space-8);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-16) var(--space-8);
  background: var(--surface);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-8);
}

.footer h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.footer a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer__legal {
  max-width: 62ch;
}

@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------- document pages */

.doc {
  padding-block: var(--space-16);
}

.doc__header {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.doc__body {
  max-width: 72ch;
}

.doc__body h2 {
  font-size: 1.5rem;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  scroll-margin-top: calc(var(--nav-height) + var(--space-6));
}

.doc__body h3 {
  font-size: 1.1rem;
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.doc__body p,
.doc__body li {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.doc__body ul,
.doc__body ol {
  padding-left: 1.3rem;
}

.doc__body strong {
  color: var(--text-primary);
}

/* A value the site owner must supply before publishing; deliberately impossible to miss. */
.placeholder {
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  border-bottom: 1px dashed var(--warning);
  padding: 0 4px;
  border-radius: 3px;
  font-family: var(--font-number);
  font-size: 0.9em;
  color: var(--text-primary);
  white-space: nowrap;
}

.notice {
  background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
}

.notice p {
  color: var(--text-primary);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--space-6);
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

td {
  color: var(--text-secondary);
}

td:first-child {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

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

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

.faq-search {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.faq-search::placeholder {
  color: var(--text-tertiary);
}

details {
  border-bottom: 1px solid var(--divider);
  padding: var(--space-4) 0;
}

details:last-of-type {
  border-bottom: 0;
}

summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

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

summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin-top: var(--space-3);
}

.faq-group[hidden] {
  display: none;
}

/* ----------------------------------------------------------------- form */

.field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

/* ------------------------------------------------------------ animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/*
 * Anyone who has asked the system for less movement gets none of it: every entrance
 * resolves to its final state and the floating cards stop rather than slow down.
 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .rings .value {
    stroke-dashoffset: var(--offset);
  }

  .chart__bar {
    height: var(--h);
  }
}

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