/* TeraThreshold promotional site
   Dark canvas modelled on linear.app's layout language (hairlines, product-as-hero,
   split section heads, mono figure labels); feature rows follow the MIT-licensed
   Tailark "Dusk" pattern. The four pillar colours come from logo.svg.
   Fonts (Google Fonts, loaded in each page): Barlow Semi Condensed for headlines,
   Barlow for copy, JetBrains Mono for figure labels and numbers, and Archivo
   (ExtraBold Italic at 125% width, subset to the letters of "TeraThreshold") for the
   wordmark only: the wide forward lean echoes the chevrons in the mark. */

:root {
  color-scheme: dark;

  /* canvas */
  --bg: #08090A;
  --bg-2: #0F1011;
  --bg-3: #16171A;
  --text: #F7F8F8;
  --text-2: #9A9FA7;
  --text-3: #7C8189;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);

  /* the four chevrons, plus lighter cuts for small text on black */
  --red: #E51E29;
  --amber: #FCB017;
  --green: #73BF44;
  --blue: #4374BA;
  --red-text: #FF5A62;
  --green-text: #8FD163;
  --blue-text: #7FA6E3;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --font-brand: "Archivo", var(--font-display);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --max-wide: 1320px;
  --gutter: 24px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.04; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.02em; line-height: 1.02; }
h2 { font-size: clamp(28px, 3.1vw, 42px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--max-wide), 100% - 2 * var(--gutter)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn:hover { background: rgba(255,255,255,.06); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn-ghost { background: rgba(255,255,255,.04); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,10,.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-style: italic; font-weight: 800; font-stretch: 125%; font-size: 17px; letter-spacing: -.005em; color: var(--text); }
.nav .brand { flex: none; }
.brand img { width: 22px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .15s; }
.nav .nav-legal { display: flex; } /* legal pages keep their three links on every width */
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 34px; padding: 0 14px; font-size: 14px; }
.cta-short { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 0; overflow: hidden; }
.eyebrow { color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin: 0 0 20px; }
.hero h1 { max-width: 17ch; }
.hero-sub { margin-top: 24px; max-width: 60ch; }
.lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--text-2); max-width: 56ch; margin: 0; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { font-size: 13px; color: var(--text-3); margin: 16px 0 0; }

/* the stage: three real screens on running-track lanes, fading into the page */
.stage { position: relative; margin: 40px auto 0; height: 560px; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 50%; top: 40px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,255,255,.045), transparent); pointer-events: none; }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(to bottom, rgba(8,9,10,0), var(--bg) 90%); pointer-events: none; z-index: 3; }
.lanes { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
.stage-phones { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-start; gap: 40px; padding-top: 24px; }
.stage-side { margin-top: 64px; }
.stage-side:first-child { transform: translateX(24px); }
.stage-side:last-child { transform: translateX(-24px); }

/* hero status link above the headline */
.eyebrow-link { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 10px; margin: 0 0 22px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--text-2); transition: color .15s ease, border-color .15s ease; }
.eyebrow-link .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(115,191,68,.18); }
.eyebrow-link .arrow { color: var(--text-3); transition: transform .15s ease, color .15s ease; }
.eyebrow-link:hover { color: var(--text); border-color: var(--text-3); }
.eyebrow-link:hover .arrow { color: var(--text); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .eyebrow-link, .eyebrow-link .arrow { transition: none; } }

/* ---------- devices: Rotato renders (iPhone 17 Pro Max), trimmed PNG/WebP ---------- */
/* --w is the render's width in CSS px at full size; --k scales every device together */
.device { display: block; flex: none; width: calc(var(--w) * var(--k, 1)); }
.device img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }

/* crossfading sequences of renders that share one camera: the first frame sets the size */
.device-seq { position: relative; flex: none; width: calc(var(--w) * var(--k, 1)); }
.device-seq > .device { width: 100%; opacity: 0; transition: opacity .9s ease; }
.device-seq > .device + .device { position: absolute; inset: 0; }
.device-seq > .device.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .device-seq > .device { transition: none; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.answers + .section { border-top: 0; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; margin-bottom: 44px; }
.split-head h2 { max-width: 18ch; }
.split-head > p { color: var(--text-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; margin: 0; max-width: 52ch; padding-top: 6px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* how it works: a real sequence, so the numbers stay */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 24px 32px 0; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 16px; margin: 0; max-width: 34ch; }

/* pillars: copy list beside a card that crops the phone (Tailark Dusk pattern) */
.pillar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: stretch; }
.pillar.flip .pillar-card { order: -1; }
.pillar.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pillar-copy { align-self: center; }
.checks { border-top: 1px solid var(--line); }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--text); }
.checks li span { color: var(--text-2); }
.pillar-card {
  position: relative; min-height: 440px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255,255,255,.035), transparent 75%),
    var(--bg-2);
}
/* the render is positioned, so the card's height comes from the copy beside it, never from the phone */
.pillar-card > .device, .pillar-card > .device-seq { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); }
.pillar-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, rgba(15,16,17,0), var(--bg-2)); pointer-events: none; z-index: 1; }
/* the body map sits low on its screen, so that phone hangs from the card's bottom and the fade flips to the top */
#body .pillar-card > .device-seq { top: auto; bottom: -40px; }
#body .pillar-card::after { inset: 0 0 auto 0; background: linear-gradient(to top, rgba(15,16,17,0), var(--bg-2)); }


/* every run */
.runs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.run-card { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.run-card-head { padding: 24px 24px 0; }
.run-card-head .label { display: block; color: var(--text-3); text-transform: uppercase; margin-bottom: 12px; }
.run-card-head p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 48ch; min-height: 3em; }
.run-card-phone { position: relative; height: 400px; overflow: hidden; display: flex; justify-content: center; padding-top: 24px; }
.run-card-phone::after { content: ""; position: absolute; inset: auto 0 0 0; height: 110px; background: linear-gradient(to bottom, rgba(15,16,17,0), var(--bg-2)); }
.run-card-phone .device, .run-card-phone .device-seq { --k: .9; }
.run-card-head { min-height: 0; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.trust div { padding: 24px 32px 0; border-left: 1px solid var(--line); }
.trust div:first-child { border-left: 0; padding-left: 0; }
.trust svg { width: 24px; height: 24px; margin-bottom: 18px; color: var(--text-2); fill: currentColor; }
.trust h3 { font-size: 20px; margin-bottom: 8px; }
.trust p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 32ch; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--bg-2); }
.plan-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.plan h3 { font-size: 22px; font-weight: 600; color: var(--text); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); }
.plan .price { color: var(--text-2); font-size: 15px; padding: 16px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan .price b { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 1; color: var(--text); letter-spacing: -0.02em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.plan .price b small { font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan .price span { display: block; }
.plan ul { display: grid; gap: 12px; margin-bottom: 28px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.plan li svg { width: 18px; height: 18px; margin-top: 1px; fill: currentColor; color: var(--text-3); }
.plan-cta { margin-top: auto; width: 100%; }
/* Pro: same card, one step brighter */
.plan-pro { border-color: var(--line-2); background: var(--bg-3); }
.plan-pro li svg { color: var(--text-2); }
.pricing-note { color: var(--text-3); font-size: 14px; margin-top: 20px; max-width: 70ch; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.faq h2 { position: sticky; top: 104px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 500; font-size: 18px; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--font-mono); font-size: 20px; color: var(--text-3); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-2); margin: 0 0 24px; max-width: 62ch; font-size: 16px; }

/* final cta */
.get { padding: 96px 0 88px; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.get::before { content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translate(-50%, -45%); background: radial-gradient(closest-side, rgba(255,255,255,.045), transparent); pointer-events: none; }
.get-inner { display: flex; flex-direction: column; align-items: center; position: relative; }
.get-mark { width: 48px; height: 55px; margin-bottom: 24px; }
.get h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 16ch; }
.get p { color: var(--text-2); max-width: 48ch; margin: 16px 0 28px; font-size: 17px; }

/* TestFlight request form */
.tf { width: min(460px, 100%); text-align: left; }
.tf-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.tf-row { display: flex; gap: 8px; }
.tf-input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px;
  font: 16px/1 var(--font); color: var(--text); /* 16px keeps iOS from zooming on focus */
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tf-input::placeholder { color: var(--text-3); }
.tf-input:focus { outline: none; border-color: var(--text-2); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.tf-input[aria-invalid="true"] { border-color: var(--red-text); }
.tf-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255,90,98,.18); }
.tf-submit:disabled { opacity: .6; cursor: progress; }
.tf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tf-captcha { margin-top: 12px; }
.get .tf-msg { margin: 10px 0 0; font-size: 14px; color: var(--red-text); max-width: none; }
.get .tf-msg:empty { display: none; }
.get .tf-note { margin: 12px 0 0; font-size: 13px; color: var(--text-3); max-width: none; }
.tf-note a, .faq-list details p a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tf-note a:hover, .faq-list details p a:hover { color: var(--text); text-decoration-color: var(--text); }
.tf-done { width: min(460px, 100%); text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.tf-done:focus { outline: none; }
.tf-done-title { font-size: 22px; margin-bottom: 8px; }
.get .tf-done-lede { margin: 0 0 16px; font-size: 16px; max-width: none; }
.tf-done-lede strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.tf-steps { display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.tf-steps li { display: flex; gap: 12px; align-items: baseline; }
.tf-steps .mono { color: var(--text-3); flex: none; }
.tf-steps a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tf-steps b { color: var(--text); font-weight: 600; }
.tf-done .tf-note { margin-top: 18px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 40px; font-size: 14px; color: var(--text-3); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px 40px; align-items: start; }
.footer-col h4 { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer-col a { display: block; padding: 4px 0; transition: color .15s; }
.footer-col a:hover, .footer-links a:hover { color: var(--text); }
.footer-col a.brand { display: inline-flex; padding: 0; }
.footer .brand { font-size: 16px; }
.footer .brand img { width: 20px; height: 23px; }
.footer .tagline { margin-top: 12px; max-width: 34ch; line-height: 1.5; }
.footer .copy { grid-column: 1 / -1; display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stage-phones { gap: 24px; }
  .stage-side { display: none; }
  .lanes { width: 160%; left: -30%; }
  .stage-side + .stage-main, .stage-main { margin-top: 0; }
}
@media (max-width: 1024px) {
  .pillar, .pillar.flip { gap: 40px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .nav-cta { order: 2; margin-left: auto; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { display: block; margin-left: 0; order: 3; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 20px; gap: 14px; font-size: 17px; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 48px; }
  .stage { margin-top: 32px; height: 480px; }
  .split-head, .pillar, .pillar.flip, .runs-grid, .plans, .faq { grid-template-columns: 1fr; }
  .split-head { gap: 16px; margin-bottom: 32px; }
  .pillar.flip .pillar-card { order: 0; }
  .pillar-card { min-height: 420px; }
  .steps, .trust { grid-template-columns: 1fr; }
  .step, .trust div { border-left: 0; padding-left: 0; padding-right: 0; }
  .step, .trust div { padding-top: 24px; padding-bottom: 24px; }
  .step + .step, .trust div + div { border-top: 1px solid var(--line); }
  .step::before { margin-bottom: 16px; }
  .trust svg { margin-bottom: 16px; }
  .faq { gap: 32px; }
  .faq h2 { position: static; }
  .section { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .stage { height: 440px; }
  .stage-phones { padding-top: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .device, .device-seq { --k: .84; }
  .run-card-phone { height: 400px; }
  .run-card-phone .device, .run-card-phone .device-seq { --k: .78; }
  .run-card-head { min-height: 0; }
  .run-card-head, .names { padding-left: 20px; padding-right: 20px; }
  .plan { padding: 26px; }
  .plan .price b { font-size: 44px; }
  .get { padding: 72px 0 64px; }
  .tf-row { flex-direction: column; }
  .nav-inner { gap: 16px; }
  .nav .brand { font-size: clamp(14px, 4vw, 17px); }
  .nav .nav-legal { gap: 14px; font-size: 13px; }
  .tf-done { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .nav-links a, .faq-list summary::after, .tf-input { transition: none; }
}

/* ---------- content components (richer sections) ---------- */

/* the four answers after every run: an index to the four sections */
.answers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 4; background: var(--bg); }
.answers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.answer { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 30px; border-left: 1px solid var(--line); transition: background .15s ease; }
.answer:first-child { border-left: 0; padding-left: 0; }
.answer .label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.answer .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.answer b { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--text); }
.answer p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.answer .more { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--text-3); transition: color .15s ease; }
.answer:hover .more, .answer:focus-visible .more { color: var(--text); }

/* a titled block inside a section, below the headline row */
.block { margin-top: 48px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h3 { font-size: 19px; }
.block-head p { margin: 0; color: var(--text-3); font-size: 14px; }

/* 0-100 scale with named bands and one marked value */
.scale { margin: 0; }
.scale-bar { position: relative; display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.scale-bar i { display: block; height: 100%; flex: var(--span) 0 0; background: var(--c); opacity: .85; }
.scale-pin { position: relative; height: 34px; }
.scale-pin span { position: absolute; left: calc(var(--at) * 1%); top: 6px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; color: var(--text); white-space: nowrap; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); }
.scale-pin span::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1px; height: 7px; background: var(--text-2); }
.scale-bands { display: flex; gap: 2px; }
.scale-bands div { flex: var(--span) 0 0; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.scale-bands b { display: block; color: var(--text); font-weight: 600; }
.scale-bands .mono { font-size: 11px; color: var(--text-3); }

/* definition grid: term and one-line meaning */
.defs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.defs > div { padding: 18px 24px 4px 0; }
.defs > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.defs dt { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text); margin-bottom: 6px; }
.defs dt .mono { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
.defs dd { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* durability patterns: a tiny form-over-distance line per pattern */
.patterns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.patterns li { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 16px 16px 18px; }
.patterns svg { display: block; width: 100%; height: 40px; margin-bottom: 12px; overflow: visible; }
.patterns svg .base { stroke: var(--line-2); stroke-width: 1; fill: none; }
.patterns svg .line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.patterns b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.patterns p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }

/* one run, read top to bottom: label, value, what it means */
.anatomy { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.anatomy li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.anatomy .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 4px; }
.anatomy b { display: block; font-weight: 600; color: var(--text); font-size: 16px; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.anatomy p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* plain inline lists (areas, workout names) */
.inline-list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.inline-list li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--text-3); }

/* severity swatches */
.sev { display: inline-flex; align-items: center; gap: 6px; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

@media (max-width: 1024px) {
  .answers-grid { grid-template-columns: 1fr 1fr; }
  .answer:nth-child(3) { border-left: 0; padding-left: 0; }
  .answer:nth-child(n+3) { border-top: 1px solid var(--line); }
  .patterns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defs { --cols: 2 !important; }
  .defs > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .defs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .answers-grid { grid-template-columns: 1fr; }
  .answer, .answer:nth-child(3) { border-left: 0; padding: 22px 0; }
  .answer + .answer { border-top: 1px solid var(--line); }
  .block { margin-top: 36px; }
  .block-head { flex-direction: column; gap: 4px; }
  .patterns { grid-template-columns: 1fr 1fr; }
  .anatomy li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
  .defs { --cols: 1 !important; }
  .defs > div, .defs > div + div { padding-left: 0; border-left: 0; }
  .defs > div + div { border-top: 1px solid var(--line); }
  .patterns { grid-template-columns: 1fr; }
  .scale-bands div { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .answer, .answer .more { transition: none; }
}

/* notes under a block */
.block-note { margin: 14px 0 0; color: var(--text-3); font-size: 14px; max-width: 80ch; }

/* example findings, laid out like the app's cards: pathway, title, detail, action */
.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.findings li { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 12px; background: var(--bg-2); padding: 16px 18px 18px; }
.findings .mono { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.findings b { font-weight: 600; font-size: 16px; color: var(--text); line-height: 1.35; }
.findings p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.findings em { font-style: normal; color: var(--green-text); font-size: 14px; line-height: 1.45; }

/* body map key under the list */
.map-key { margin-top: 20px; display: grid; gap: 8px; }
.map-key .label { margin: 8px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.map-key .label:first-child { margin-top: 0; }

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

/* how it works: four steps, and what is read */
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reads { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.reads .label { margin: 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }

/* every session */
.anatomy-label { margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
#runs .pillar { margin-bottom: 24px; }
#runs .pillar-card { min-height: 560px; }
.names-defs { margin: 0; padding: 4px 24px 24px; display: grid; grid-template-columns: 1fr; }
.names-defs > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.names-defs dt { font-weight: 600; color: var(--text); font-size: 14.5px; }
.names-defs dd { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }

@media (max-width: 1024px) {
  .steps.steps-4 { grid-template-columns: 1fr 1fr; }
  .steps.steps-4 .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps.steps-4 .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
}
@media (max-width: 860px) {
  .steps.steps-4 { grid-template-columns: 1fr; }
  .steps.steps-4 .step:nth-child(n+3) { margin-top: 0; }
  #runs .pillar-card { min-height: 460px; }
  .names-defs > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 560px) {
  .scale-bands { flex-wrap: wrap; gap: 10px 18px; }
  .scale-bands div { flex: 0 0 auto; }
}

/* method: the algorithms behind the numbers */
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.method-grid li { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 18px 18px 20px; }
.method-grid .mono { font-size: 11px; letter-spacing: .06em; color: var(--text-3); }
.method-grid h3 { font-size: 18px; }
.method-grid p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
#method .kicker::before { background: var(--text-2); }
@media (max-width: 1024px) { .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } }

/* touch: iPhone tap targets and small screens */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.nav-toggle { flex: none; width: 44px; height: 44px; }
.eyebrow-link { position: relative; }
.eyebrow-link::after { content: ""; position: absolute; inset: -7px -4px; }
.pillar-card > .device, .pillar-card > .device-seq, .run-card-phone > .device, .run-card-phone > .device-seq { max-width: calc(100% - 24px); }
@media (max-width: 860px) {
  .nav .nav-cta { height: 40px; position: relative; }
  .nav .nav-cta::after { content: ""; position: absolute; inset: -2px 0; }
  .footer-col a { padding: 11px 0; }
  .nav.open .nav-links a { padding: 6px 0; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 10px; }
  .nav .nav-cta { padding: 0 10px; font-size: 13px; }
}

/* ---------- legal / document pages ---------- */
.doc { padding: 72px 0 112px; }
.doc-inner { max-width: 72ch; }
.doc h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 12px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; font-family: var(--font); font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.doc ol { list-style: decimal; padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--text); }
.doc .summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 32px; }
.doc .summary p { margin: 0; font-size: 16px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 20px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { font-weight: 600; color: var(--text); font-size: 14px; }

@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: var(--bg-2); }
  .doc td { border: 0; padding: 4px 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }
}
