/* gymtiko.com: the one stylesheet. Brand Book §6, brand/colour/tokens.json; components in site-src/README.md.
   No JavaScript, no external requests. Ratios beside each token are measured WCAG 2.2 contrast.
   Beat Amber appears only in .signature-row .beat. */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-extrabold.ttf") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --canvas: #F7F8FA;          /* Paper */
  --surface: #FFFFFF;
  --tint: #EEF1F5;            /* surfaceVariant: tinted sections, table heads */
  --ink: #17202B;             /* 15.46 canvas, 16.43 surface, 14.50 tint */
  --slate: #4B5563;           /* 7.11 canvas, 7.56 surface, 6.67 tint */
  --primary: #155E55;         /* Plate Green: 7.15 canvas, 7.60 surface, 6.71 tint */
  --primary-hover: #0F4A43;   /* white on it 10.09 */
  --on-primary: #FFFFFF;      /* 7.60 on Plate Green */
  --primary-soft: #D3F0E9;    /* primaryContainer: icon tiles, badge; Plate Green icon on it 6.30 */
  --on-primary-soft: #0B3B35; /* 10.29 */
  --neutral-soft: #E4E8EE;    /* secondaryContainer: badge-soon; Ink on it 13.36 */
  --line: #CBD2DC;            /* brand Outline: dividers and decorative borders only, never text */
  --control: #737D8C;         /* derived outline for control boundaries: 4.17 surface, 3.92 canvas, 3.68 tint */
  --amber-text: #9A4D00;      /* 6.11 on surface */
  --amber-fill: #D97706;      /* 3.19 on surface (decorative dot only, always on surface) */
  --error: #B42318;           /* 5.75 on error-soft */
  --error-soft: #FDECEA;      /* Ink on it 14.37 */
  --shadow: 0 1px 2px rgba(23, 32, 43, 0.05), 0 6px 20px rgba(23, 32, 43, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #111318;          /* Night */
    --surface: #1B1E25;
    --tint: #181B21;
    --ink: #F3F5F8;             /* 17.01 canvas, 15.27 surface, 15.79 tint */
    --slate: #B8C0CC;           /* 10.13 canvas, 9.09 surface, 9.40 tint */
    --primary: #8DD8C8;         /* Chalk Mint: 11.32 canvas, 10.16 surface, 10.50 tint */
    --primary-hover: #A9E4D8;   /* Night on it 13.07 */
    --on-primary: #111318;      /* 11.32 on Chalk Mint */
    --primary-soft: #18433D;    /* Chalk Mint icon on it 6.70 */
    --on-primary-soft: #C9F1E8; /* 9.03 */
    --neutral-soft: #2C323C;    /* Ink on it 11.81 */
    --line: #505967;
    --control: #828C9B;         /* 4.90 surface, 5.46 canvas, 5.07 tint */
    --amber-text: #F5B556;      /* 9.23 on surface */
    --amber-fill: #F5B556;
    --error: #FFB4AB;           /* 7.67 on error-soft */
    --error-soft: #5C1A14;      /* Ink on it 11.92 */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-variant-numeric: tabular-nums;   /* the brand's numerals are always tabular */
  font-synthesis: none;                 /* no faux bold, no faux italic */
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
::selection { background: var(--primary-soft); color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.45rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; }
h4, h5, h6 { font: 600 1.0625rem/1.4 var(--text); margin: 1.5em 0 0.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin: 0.3em 0; }
strong, b, th { font-weight: 600; }
em, i, cite, address, dfn, var { font-style: normal; }
em, i { font-weight: 600; }
small { font-size: 0.875rem; }
code, kbd { font: 0.92em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--tint); border-radius: 6px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: clamp(48px, 6.5vw, 88px); }
.section-tinted { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head.center, .center .section-head { margin-inline: auto; text-align: center; }
.section-head > :last-child { margin-bottom: 0; }
.overline { font: 600 0.9375rem/1.4 var(--text); color: var(--primary); margin: 0 0 0.75rem; }
.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--slate); }
.muted { color: var(--slate); }
.small { font-size: 0.9375rem; }
.center { text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .split.reverse { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .split.reverse > :first-child { order: 2; }
}
.split > *, .grid > * { min-width: 0; }
.split > .phone, .split > figure { justify-self: center; }

/* Skip link */
.skip-link { position: absolute; left: 8px; top: -200px; z-index: 20; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* Header: the wordmark and a nav that wraps; no menu button, no JavaScript */
.site-header { background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 72px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-block: 4px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg, .brand img { display: block; height: 28px; width: auto; }   /* wordmark minimum is 24 px high */
/* Inline wordmark/mark SVGs follow the theme: letters in Ink, the plate in the primary colour. */
.brand svg path:not([stroke]), .footer-brand svg path:not([stroke]), svg.logo path:not([stroke]) { fill: var(--ink); }
.brand svg [stroke], .footer-brand svg [stroke], svg.logo [stroke] { stroke: var(--primary); }

.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; list-style: none; margin: 0 -12px; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-list a:hover { background: var(--tint); text-decoration: underline; }
.nav-list a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--primary); text-underline-offset: 6px; }
.nav-list a.nav-cta { padding: 0 18px; background: var(--primary); color: var(--on-primary); text-decoration: none; }   /* beats .nav-list a */
.nav-list a.nav-cta:hover { background: var(--primary-hover); }
@media (max-width: 719px) { .site-nav { flex-basis: 100%; } }
.nav-cta { min-height: 48px; }
/* Phones: the four links fill the row; the hero and page CTAs carry "Get Gymtiko" (docs/website-ux-v2.md, one primary CTA per screen). */
@media (max-width: 599px) { .nav-list li:has(> .nav-cta) { display: none; } }
.lang-switch, .lang-menu summary { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 14px; border: 1px solid var(--control); border-radius: 999px; color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer; list-style: none; }
.lang-menu { position: relative; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 8px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lang-menu li { margin: 0; }
.lang-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: var(--tint); }

/* Breadcrumbs: nav.breadcrumbs with links and › separators (or an ol) */
.breadcrumbs { padding-top: 16px; font-size: 0.9375rem; color: var(--slate); }
.breadcrumbs ol, .breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs a { color: var(--slate); display: inline-block; padding-block: 12px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs + main > .section:first-child, .breadcrumbs + main > article.section:first-child { padding-top: clamp(24px, 4vw, 48px); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 1.5rem 0 0.5rem; }
.cta-row.center { justify-content: center; }
/* One primary button; the secondary action is a text link. Full-width buttons on phones. */
@media (max-width: 599px) { .cta-row > .button { flex: 1 1 100%; } .cta-row > .text-link { margin-inline: auto; } }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 2px; color: var(--primary); font-weight: 600; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link .icon { width: 20px; height: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; font: 600 1rem/1.25 var(--text); text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { background: var(--primary); color: var(--on-primary); }
.button-primary:hover { background: var(--primary-hover); text-decoration: none; }
.button-secondary { background: transparent; border-color: var(--primary); color: var(--primary); }
.button-secondary:hover { background: var(--primary-soft); color: var(--on-primary-soft); }
.button .icon { width: 20px; height: 20px; }

/* Store badge ({{store:play}}): the official artwork as a link, or a "Coming soon" badge with no link */
.store-badge { display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.store-badge img { height: 56px; width: auto; }
.store-soon { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--neutral-soft); color: var(--ink); font-weight: 600; }
.store-button { min-width: 240px; }
.trademark { font-size: 0.8125rem; color: var(--slate); margin-top: 0.75rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft); font: 500 0.8125rem/1.4 var(--text); vertical-align: middle; white-space: nowrap; }
.badge-soon { background: var(--neutral-soft); color: var(--ink); }
.badge-plain { background: transparent; color: var(--ink); border: 1px solid var(--control); }
.badge .icon { width: 16px; height: 16px; }

/* Icons */
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; vertical-align: middle; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.icon-tile .icon { width: 26px; height: 26px; }

/* Hero */
/* Hero: fits ~1 viewport at 1280 × 720; the h1 takes 2 lines at 320 px */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(40px, 4.5vw, 64px); }
.hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; margin-bottom: 0.4em; }
.hero .lead { max-width: 38ch; margin-bottom: 0; }
.hero .cta-row { margin-top: 1.25rem; }
.hero .center h1, .hero.center h1, .hero .center .lead { margin-inline: auto; }
.hero-shots { display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 3vw, 24px); }
.hero-shots .phone { width: min(78%, 280px); }
.hero-shots .phone:nth-child(2) { margin-top: 40px; }
/* .wide-only: a second hero phone, shown from 1024 px; never the first phone (the build checks) */
@media (max-width: 1023px) { .wide-only { display: none !important; } }
@media (min-width: 1024px) { .hero-shots .phone { width: min(47%, 236px); } .hero-shots .phone:only-child { width: min(100%, 280px); } }

/* Trust line (3 facts) and the small availability note */
.trust-line { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 0; margin: 1rem 0 0; color: var(--slate); font-size: 0.9375rem; font-weight: 500; }
.trust-line li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.trust-line .icon { width: 18px; height: 18px; color: var(--primary); }
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--slate); }
.availability .icon { width: 16px; height: 16px; }

/* Screenshots: 9:16, rounded, a quiet frame; no fake device chrome */
.phone { margin: 0; width: min(100%, 320px); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.phone figcaption { margin-top: 12px; text-align: center; font-size: 0.9375rem; color: var(--slate); }
.phone.small { width: min(100%, 220px); }
.phone.small img { border-radius: 18px; }
.shots-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(16px, 2.5vw, 28px); justify-items: center; }
.shots-row .phone { width: min(100%, 220px); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.6vw, 28px); }
.card h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: 0.4em; }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--slate); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--control); box-shadow: var(--shadow); }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.card:focus-visible { outline-offset: 2px; }
.more { display: inline-flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 12px; color: var(--primary); font-weight: 600; }
.more .icon { width: 20px; height: 20px; }
.card-list { list-style: none; padding: 0; margin: 0.5rem 0 1em; }
.card-list li { position: relative; padding-left: 32px; margin: 0.55em 0; }
.card-list li > .icon:first-child { position: absolute; left: 0; top: 0.12em; width: 22px; height: 22px; color: var(--primary); }

/* Steps: numbered by the list itself; the circle is a visual echo of it */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 16px; }
.steps[start="2"] { counter-reset: step 1; } .steps[start="3"] { counter-reset: step 2; } .steps[start="4"] { counter-reset: step 3; }
.steps > li { counter-increment: step; position: relative; margin: 0; padding: 20px 20px 20px 72px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 800 1.0625rem/36px var(--display); text-align: center; }
.steps > li h3 { font-size: 1.0625rem; margin-bottom: 0.25em; }
.steps > li p { margin-bottom: 0; color: var(--slate); }
.steps li > * { min-width: 0; }
/* Steps row: 3 steps, icon circle numbered by the list; 3 columns from 768 px */
.steps-row { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 24px; }
.steps-row > li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-content: start; margin: 0; }
.steps-row .step-icon { grid-row: 1 / span 3; position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.steps-row .step-icon::after { content: counter(step); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 800 0.8125rem/24px var(--display); text-align: center; }
.steps-row h3 { font-size: 1.125rem; margin: 0.15em 0 0.2em; }
.steps-row p { margin: 0; color: var(--slate); }
.steps-row + .signature-row { max-width: 560px; margin: 32px auto 0; }
@media (min-width: 768px) {
  .steps-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
  .steps-row > li { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .steps-row .step-icon { grid-row: auto; margin-bottom: 14px; }
}

/* Feature grid: link cards, 2 columns from 360 px, 3 from 900 px */
.feature-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; margin: 0 0 1.25rem; }
.feature-grid > li { margin: 0; display: flex; }
@media (min-width: 360px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
a.feature { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: clamp(16px, 2vw, 22px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.feature .icon-tile { width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; }
.feature .icon-tile .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.0625rem; margin: 0 0 0.25em; }
.feature p { margin: 0; color: var(--slate); font-size: 0.9375rem; line-height: 1.5; }
a.feature:hover, a.feature:focus-visible { border-color: var(--control); box-shadow: var(--shadow); }
a.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.feature:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  a.feature { transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; }
  a.feature:hover, a.feature:focus-visible { transform: translateY(-2px); }
}

/* Proof band: one large statement, centred, with room around it */
.proof-band { padding-block: clamp(64px, 9vw, 120px); }
.proof-band .narrow { width: min(100% - 2 * var(--gutter), 720px); }
.proof-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.15; margin-bottom: 0.45em; }
.proof-band .lead { max-width: 48ch; margin-inline: auto; }
.proof-band .lead + p { margin-bottom: 0; }

/* Tab bar: in-page anchors, sticky under the static header, scrolls sideways */
.tabbar { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.tabbar ul { display: flex; gap: 8px; list-style: none; width: min(100%, var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabbar ul::-webkit-scrollbar { display: none; }
.tabbar li { flex: none; margin: 0; }
.tabbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 500; white-space: nowrap; text-decoration: none; }
.tabbar a:hover { background: var(--tint); text-decoration: underline; text-underline-offset: 4px; }
.tabbar a:focus-visible { outline-offset: 1px; }
.tabbar .icon { width: 20px; height: 20px; color: var(--primary); }
@media (max-height: 480px) { .tabbar { position: static; } }   /* short screens, 200 % zoom */

/* Tab panel: one feature group, text + one phone */
.tab-panel { padding-block: clamp(40px, 5.5vw, 72px); scroll-margin-top: 72px; }
.tab-panel [id] { scroll-margin-top: 88px; }
.tab-panel + .tab-panel:not(.section-tinted) { border-top: 1px solid var(--line); }
.tab-panel h2 { margin-bottom: 0.35em; }
.tab-panel .card-list { margin-top: 1rem; }
.tab-panel .phone { width: min(64%, 240px); }
@media (min-width: 900px) { .tab-panel .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } .tab-panel .phone { width: min(100%, 260px); } }
.tab-panel:target h2 { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Signature row: the app's "last time" row, echoed in text. Beat Amber lives here and nowhere else. */
.signature-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 1.5rem 0; padding: 14px 18px; min-height: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; line-height: 1.4; }
.signature-row .ex { font-weight: 600; color: var(--ink); margin-right: auto; }
.signature-row .last { color: var(--slate); }
.signature-row .beat { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-text); font-weight: 600; }
.signature-row .beat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-fill); flex: none; }
@media (max-width: 479px) { .signature-row { flex-direction: column; align-items: flex-start; } .signature-row .ex { margin-right: 0; } }

/* Callouts */
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 1.5rem 0; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); }
.callout > .icon { color: var(--primary); margin-top: 1px; }
.callout > div { min-width: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warning { background: var(--error-soft); border-color: transparent; border-left-color: var(--error); }
.callout-warning > .icon { color: var(--error); }

/* App labels, numbers, notes */
.ui { font-weight: 600; color: var(--ink); }
@media (min-width: 600px) { .ui { white-space: nowrap; } }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { font-size: 0.9375rem; color: var(--slate); }
.checked { font-size: 0.9375rem; color: var(--slate); margin: 0 0 2rem; }

/* FAQ */
.faq { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 56px 14px 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--primary);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.faq[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq-body { padding: 0 20px 18px; color: var(--ink); }
.faq-body > :last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); color: var(--ink); }
tbody tr:last-child > * { border-bottom: 0; }
td.yes, td.no { text-align: center; font-weight: 600; }
td.yes { color: var(--primary); }
td.no { color: var(--slate); }

/* Long text: legal pages, press, about */
.prose.narrow, .narrow.prose { width: min(100% - 2 * var(--gutter), 68ch); }
.prose h1 { margin-bottom: 0.4em; }
.prose h2 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); letter-spacing: -0.01em; margin: 2.5em 0 0.6em; }
.prose h3 { font-size: 1.125rem; margin: 2em 0 0.5em; }
.prose h2 + h3 { margin-top: 1em; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li::marker { color: var(--slate); }
.prose li > ul, .prose li > ol { margin: 0.3em 0; }
.prose blockquote { margin: 1.5rem 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--line); color: var(--slate); }
.prose > table, .prose > div > table { display: block; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose .meta, .prose .updated { color: var(--slate); font-size: 0.9375rem; }
.prose a { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }

.narrow > ul + h2, .narrow > ol + h2, .narrow > p + h2, .narrow > .table-wrap + h2 { margin-top: 2.2em; }

/* 404 */
.page-404 main .section, .not-found { text-align: center; }
.page-404 h1, .not-found h1 { margin-inline: auto; }
.page-404 .lead, .not-found .lead { max-width: 40ch; margin-inline: auto; }

/* Footer */
.site-footer { margin-top: 0; padding-block: 56px 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--ink); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; margin-bottom: 32px; }
.footer-brand svg, .footer-brand img { height: 28px; width: auto; flex: none; }
.footer-brand p { margin: 0; color: var(--slate); }
.footer-brand strong { color: var(--ink); }
.footer-brand .footer-note { flex-basis: 100%; }
.footer-cols { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-bottom: 32px; }
.footer-col h2 { font: 600 0.9375rem/1.4 var(--text); letter-spacing: 0; margin: 0 0 4px; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-note { margin: 0.5em 0 0; font-size: 0.875rem; color: var(--slate); }
.footer-note a { color: var(--slate); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Windows high contrast: keep every boundary */
@media (forced-colors: active) {
  .card, .callout, .faq, .steps > li, .signature-row, .badge, .table-wrap, a.feature, .tabbar a, .step-icon { border: 1px solid CanvasText; }
  .tabbar { border-bottom: 1px solid CanvasText; }
  .steps > li::before, .signature-row .beat::before, .step-icon::after { forced-color-adjust: none; border: 1px solid CanvasText; }
}

/* Print: legal texts print cleanly */
@media print {
  .site-header, .site-footer, .breadcrumbs, .cta-row, .skip-link, .tabbar { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .section { padding-block: 12pt; }
  .section-tinted, .card, .faq, .table-wrap { background: none; }
  tr, .card, .callout, figure, .signature-row { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
@page { size: A4; margin: 14mm; }
