/* SetSage website, v2.1 (28 Sep 2026)
   Palette v2 (toned-down dark): see branding/PALETTE.md. Fonts are self-hosted (fonts/OFL.txt).
   No external requests, no cookies, no scripts. */

/* ---------- Fonts (latin subset, SIL OFL 1.1) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* Palette v2 */
  --bg: #16181D;
  --surface0: #1A1C21;
  --surface1: #1E2127;
  --surface2: #272A31;
  --surface3: #30343C;
  --line: #2C2F36;
  --line2: #383C44;
  --ink: #E6E6E1;
  --soft: #CACAC5;
  --muted: #A6A7AD;
  --faint: #8E9098;
  --lime: #B8DB57;
  --lime-deep: #2A3319;
  --ember: #F0894F;
  --ember-deep: #33241A;
  --cyan: #6BC7E3;
  --cyan-deep: #17303A;
  --violet: #B7A1EE;
  --violet-deep: #221F2C;
  --violet-line: #3A3452;
  --red: #F07078;
  /* Derived tints for the web mockups (v1 board colours that had no v2 mapping) */
  --lime-hover: #CBE681;
  --lime-card: #1F2419;      /* v1 #151A0E: highlighted price card */
  --ember-card: #1F1B19;     /* v1 #16110D: trainer section */
  --ember-bubble: #3A2A1F;   /* v1 #2A1C12: trainer chat bubble */
  --violet-card: #1D1C24;    /* v1 #15131C: SetSage AI card */
  --violet-bubble: #2E2940;  /* v1 #241E33: AI chat bubble, PRO tag */
  --dash: #4A4E57;
  --control-line: #75787F;   /* outline of ghost buttons and the menu button: 3:1 or more on Bg and Surface1 */           /* v1 #3A3E47: dashed note border */
  --paper: #E6E6E1;          /* light "AI app" chat card */
  --paper-bubble: #D5D4CD;
  --paper-ink: #1A1B1E;
  --paper-meta: #55565B;
  --tbc-bg: #3A3417;         /* [TO CONFIRM] note highlight */
  --tbc-ink: #F2E08A;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--lime); text-underline-offset: 0.18em; }
a:hover { color: var(--lime-hover); }
b, strong { font-weight: 700; color: var(--ink); }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--lime); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--ink); }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.wordmark { font: 800 1.875rem/1 var(--font-display); color: var(--ink); }
.wordmark span { color: var(--lime); }
.nav-desktop { flex: 1; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; color: var(--soft); text-decoration: none; }
.nav-link:hover { color: var(--ink); text-decoration: underline; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--control-line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 20px; height: 20px; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile nav { padding: 0 0 20px; }
.nav-mobile li { border-bottom: 1px solid var(--line); }
.nav-mobile .nav-link { width: 100%; min-height: 48px; font-size: 1.0625rem; }
.nav-mobile .btn { margin-top: 16px; width: 100%; }
.header-cta { flex: none; }

/* ---------- Buttons, chips, tags ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 26px; border-radius: 16px; font-size: 1.0625rem; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; border: 1px solid transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-lime { background: var(--lime); color: var(--bg); }
.btn-lime:hover { background: var(--lime-hover); color: var(--bg); }
.btn-ghost { border-color: var(--control-line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-ember { background: var(--ember); color: var(--bg); }
.btn-ember:hover { background: #F5A273; color: var(--bg); }
.btn-dark { background: var(--bg); color: var(--ink); }
.btn-dark:hover { background: var(--surface1); color: var(--ink); }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chip { font-size: 0.875rem; font-weight: 600; color: var(--soft); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; border-radius: 999px; padding: 4px 10px; line-height: 1.3; text-transform: uppercase; white-space: nowrap; }
.tag-soon { background: var(--surface2); color: var(--soft); }
.tag-ember { background: var(--ember-deep); color: var(--ember); }
.tag-lime { background: var(--lime-deep); color: var(--lime); }
.tag-violet { background: var(--violet-bubble); color: var(--violet); }
.code { font-family: var(--mono); font-size: 0.8125rem; color: var(--soft); background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; white-space: nowrap; }

/* ---------- Home: common section parts ---------- */
.section { padding-block: clamp(48px, 6vw, 84px); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lime); }
.eyebrow-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.h2 { font: 800 clamp(2.5rem, 4.4vw, 4rem)/0.97 var(--font-display); color: var(--ink); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--soft); }
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.stack { display: flex; flex-direction: column; gap: clamp(28px, 3.5vw, 40px); }
.card { background: var(--surface1); border: 1px solid var(--surface2); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ct { font-size: 1.375rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.ct-display { font: 800 1.875rem/1.05 var(--font-display); }
.cp { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.card-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.note { font-size: 0.9375rem; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.47; color: var(--soft); }
.ticks svg { flex: none; width: 18px; height: 18px; margin-top: 4px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: center; }
.split > .text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.c-lime { color: var(--lime); } .c-cyan { color: var(--cyan); } .c-ember { color: var(--ember); } .c-violet { color: var(--violet); } .c-muted { color: var(--muted); } .c-red { color: var(--red); }
.num { font-family: var(--font-display); font-weight: 800; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 4.5vw, 64px); }
.hero .split { gap: 48px; }
.hero .text { gap: 26px; }
.hero h1 { font: 800 clamp(3rem, calc(2.8rem + 3.8vw), 6.25rem)/0.92 var(--font-display); letter-spacing: -1px; }
.hero h1 span { color: var(--lime); }
.hero .lead { max-width: 560px; }
.cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; min-height: 620px; }
.hero-art .phone { position: absolute; left: 30px; top: 0; width: 320px; }
.hero-art .ai-chat { position: absolute; right: 0; top: 60px; width: 300px; }
.hero-art .watch-hero { position: absolute; right: 24px; bottom: 16px; }

/* Phone mock */
.phone { min-height: 620px; border-radius: 46px; background: var(--surface1); border: 8px solid var(--surface3); padding: 24px 18px; display: flex; flex-direction: column; gap: 12px; }
.phone .date { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1.8px; color: var(--muted); }
.phone .greet { font: 800 1.875rem/1 var(--font-display); }
.today-card { background: var(--bg); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.today-card .row { display: flex; gap: 12px; align-items: center; }
.today-card svg { width: 80px; height: 80px; flex: none; }
.today-card .k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1.4px; color: var(--cyan); }
.today-card .t { font: 800 1.625rem/1.1 var(--font-display); }
.today-card .m { font-size: 0.75rem; color: var(--muted); }
.fake-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 12px; background: var(--lime); color: var(--bg); font-size: 0.875rem; font-weight: 700; }
.agent-card { background: var(--violet-deep); border: 1px solid var(--violet-line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.agent-card .k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1.4px; color: var(--violet); }
.agent-card .b { font-size: 0.8125rem; line-height: 1.4; color: var(--soft); }
.pills { display: flex; gap: 8px; }
.pill { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 6px 12px; }
.pill-violet { background: var(--violet); color: var(--bg); }
.pill-line { color: var(--soft); border: 1px solid var(--violet-line); font-weight: 600; }

/* Light "your AI app" chat card */
.ai-chat { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); }
.ai-chat .me { align-self: flex-end; background: var(--paper-bubble); border-radius: 16px; padding: 10px 12px; font-size: 0.875rem; line-height: 1.36; max-width: 260px; }
.ai-chat .tool { font-size: 0.6875rem; font-weight: 600; color: var(--paper-meta); }
.ai-chat .reply { font-size: 0.875rem; line-height: 1.43; }

/* Watch mocks */
.watch { position: relative; flex: none; border-radius: 50%; background: var(--bg); border: 10px solid var(--line2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.watch > svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.watch > span { position: relative; z-index: 1; }
.watch .k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 1.2px; color: var(--muted); }
.watch .hr { font-size: 0.8125rem; font-weight: 700; color: var(--red); }
.watch-hero { width: 210px; height: 210px; padding-top: 18px; }
.watch-hero .k { letter-spacing: 0.8px; }
.watch-hero .big { font: 800 2.875rem/1 var(--font-display); }
.watch-hero .big small { font-size: 1.25rem; color: var(--muted); }

/* ---------- Works with ---------- */
.works { border-block: 1px solid var(--line); padding-block: 24px; }
.works .wrap { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.works h2 { font-size: 0.875rem; font-weight: 600; color: var(--muted); }

/* ---------- One system flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px; }
.flow li { position: relative; background: var(--surface1); border: 1px solid var(--surface2); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow li + li::before { content: ""; position: absolute; left: -48px; top: 50%; width: 40px; height: 20px; margin-top: -10px; background: no-repeat center / 40px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M2 10h32M28 4l6 6-6 6' fill='none' stroke='%238E9098' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.flow .step { font: 800 1.25rem/1.1 var(--font-display); letter-spacing: 0.5px; }

/* ---------- Coach ---------- */
.card-ai { background: var(--violet-card); border-color: var(--violet-line); }
.card-pt { background: var(--ember-card); border-color: var(--ember-deep); }
.mini-chat { background: var(--bg); border: 1px solid var(--line2); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card-ai .mini-chat { border-color: var(--violet-line); }
.card-pt .mini-chat { border-color: var(--ember-deep); }
.bubble { border-radius: 14px; padding: 8px 12px; font-size: 0.875rem; line-height: 1.4; max-width: 85%; color: var(--ink); }
.bubble.me { align-self: flex-end; background: var(--surface2); }
.bubble.ai { align-self: flex-end; background: var(--violet-bubble); }
.bubble.pt { align-self: flex-start; background: var(--ember-bubble); }
.plain-reply { font-size: 0.875rem; line-height: 1.43; color: var(--soft); }
.byo-note { border: 1px dashed var(--dash); border-radius: 16px; padding: 12px 14px; font-size: 0.875rem; line-height: 1.43; color: var(--soft); }
.codes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }

/* ---------- Goals ---------- */
.goals-art { display: flex; flex-direction: column; gap: 14px; }
.goal { gap: 12px; padding: 24px; }
.goal .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.goal .name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.goal .val { font: 800 2.125rem/1 var(--font-display); }
.goal .val small { font-size: 1.125rem; color: var(--muted); }
.bar { height: 10px; border-radius: 5px; background: var(--surface2); }
.bar > span { display: block; height: 100%; border-radius: 5px; background: var(--lime); }
.goal-sm { gap: 10px; padding: 22px; }
.goal-sm .name { font-size: 1.25rem; font-weight: 700; }
.dots { display: flex; gap: 8px; }
.dots span { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); }
.dots span.off { background: transparent; border: 3px solid var(--line2); }

/* ---------- Watch section ---------- */
.panel { border-radius: 40px; padding: clamp(24px, 4.4vw, 64px); }
.panel-watch { background: var(--surface0); border: 1px solid var(--surface2); }
.watches { display: flex; justify-content: center; gap: 28px; align-items: center; flex-wrap: wrap; }
.watch-face { width: 250px; height: 250px; border-width: 12px; }
.watch-face .time { font: 800 3.375rem/1 var(--font-display); }
.watch-face .sub { font-size: 0.8125rem; font-weight: 700; color: var(--cyan); }
.watch-face .start { font-size: 0.75rem; font-weight: 700; color: var(--bg); background: var(--lime); border-radius: 999px; padding: 5px 12px; margin-top: 6px; }
.watch-rest { width: 200px; height: 200px; }
.watch-rest .time { font: 800 2.75rem/1 var(--font-display); color: var(--lime); }
.watch-rest .next { font-size: 0.75rem; color: var(--soft); }

/* ---------- Body map ---------- */
.bodies { display: flex; justify-content: center; gap: clamp(10px, 2vw, 24px); }
.bodies img { width: min(200px, 40vw); aspect-ratio: 642 / 1264; }

/* ---------- Trainers ---------- */
.panel-pt { background: var(--ember-card); border: 1px solid var(--ember-deep); display: flex; flex-direction: column; gap: 44px; }
.panel-pt .card { background: var(--surface1); }
.clients { background: var(--surface1); border: 1px solid var(--surface2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.clients .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.client { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface2); border-radius: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.client .who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.client .who span:first-child { font-weight: 600; }
.client .who span:last-child { font-size: 0.8125rem; color: var(--muted); }
.client .flag { font-size: 0.75rem; font-weight: 700; }

/* ---------- Comparison table ---------- */
.compare h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table.compare-table { border-collapse: collapse; width: 100%; background: var(--surface0); border-radius: 24px; overflow: hidden; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--surface2); font-size: 1rem; vertical-align: top; }
.compare-table thead th { font-size: 0.8125rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.compare-table tbody th { font-weight: 400; color: var(--ink); width: 55%; }
.compare-table tr:last-child > * { border-bottom: 0; }
.yes { color: var(--lime); font-weight: 700; }
.soon { color: var(--ember); font-weight: 700; }

/* ---------- Pricing ---------- */
.center { align-items: center; text-align: center; margin-inline: auto; }
.prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.price-card .price { font: 800 3.5rem/1 var(--font-display); color: var(--ink); }
.price-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-card li { font-size: 0.9375rem; line-height: 1.5; color: var(--soft); }
.price-card.best { position: relative; border: 2px solid var(--lime); background: var(--lime-card); }
.badge { position: absolute; top: -14px; left: 30px; background: var(--lime); color: var(--bg); font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; border-radius: 999px; padding: 5px 12px; }
.price-card .btn { margin-top: 8px; }
.price-card .small { font-size: 0.8125rem; line-height: 1.46; color: var(--muted); }
.footnotes { display: flex; flex-direction: column; gap: 8px; max-width: 980px; }
.footnotes p { font-size: 0.875rem; line-height: 1.57; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.faq details { background: var(--surface1); border: 1px solid var(--surface2); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; color: var(--ink); border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq details p { padding: 0 20px 20px; font-size: 1rem; line-height: 1.56; color: var(--muted); }

/* ---------- CTA band ---------- */
.band { background: var(--lime); border-radius: 40px; padding: clamp(28px, 4.4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; }
.band h2 { font: 800 clamp(2.75rem, 5vw, 4.5rem)/0.95 var(--font-display); color: var(--bg); max-width: 700px; }
.band .btn { flex: none; }
.band :focus-visible { outline-color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px 40px; font-size: 0.875rem; line-height: 1.57; color: var(--muted); }
.site-footer p { max-width: 640px; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--ink); }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: 4px 22px; max-width: 470px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; white-space: nowrap; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Long-form pages (legal, agents, delete account) ---------- */
.doc { max-width: calc(70ch + 2 * var(--gutter)); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 72px; font-size: 1.125rem; line-height: 1.65; }
.doc.wide { max-width: calc(900px + 2 * var(--gutter)); }
.doc h1 { font: 800 clamp(2.5rem, 6vw, 4rem)/1 var(--font-display); margin-bottom: 14px; }
.doc h2 { font: 800 clamp(1.75rem, 3vw, 2.125rem)/1.1 var(--font-display); margin: 48px 0 14px; color: var(--ink); }
.doc h3 { font-size: 1.1875rem; font-weight: 700; margin: 28px 0 8px; color: var(--ink); }
.doc p, .doc li { color: var(--soft); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 1.4em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--faint); }
.doc a { color: var(--lime); }
.doc .meta { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }
.doc code { font-family: var(--mono); font-size: 0.875em; background: var(--surface2); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc pre { font-family: var(--mono); font-size: 0.875rem; line-height: 1.55; background: var(--surface1); border: 1px solid var(--line2); border-radius: 14px; padding: 16px; overflow-x: auto; color: var(--soft); margin: 0 0 18px; }
.doc .code-block { margin: 0 0 18px; border-radius: 14px; overflow-x: auto; background: var(--surface1); border: 1px solid var(--line2); }
.doc .code-block pre { margin: 0; overflow: visible; border: 0; background: none; width: max-content; min-width: 100%; }
.summary-box { background: var(--surface1); border: 1px solid var(--surface2); border-left: 4px solid var(--lime); border-radius: 18px; padding: 20px 24px 6px; margin: 0 0 32px; }
.summary-box h2 { margin: 0 0 10px; font-size: 1.5rem; }
.toc { background: var(--surface0); border: 1px solid var(--surface2); border-radius: 18px; padding: 20px 24px; margin: 0 0 12px; }
.toc h2 { margin: 0 0 8px; font-size: 1.5rem; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2 16rem; column-gap: 32px; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: inline-block; padding-block: 4px; color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.doc .table-wrap { margin: 0 0 22px; border: 1px solid var(--surface2); border-radius: 14px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.5; }
.doc caption { text-align: left; font-weight: 700; color: var(--ink); padding: 12px 14px 4px; caption-side: top; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--surface2); color: var(--soft); }
.doc thead th { color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; background: var(--surface1); }
.doc tbody th { color: var(--ink); font-weight: 600; }
.doc tr:last-child > * { border-bottom: 0; }
.doc table.data-wide { min-width: 860px; }
.doc .table-title { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.doc .table-bleed { max-width: none; margin-inline: min(0px, calc((100% - min(1120px, 100vw - 2 * var(--gutter) - 20px)) / 2)); }
.doc .back { margin-top: 40px; }
.doc .back a { display: inline-block; padding-block: 6px; }
.doc a, .footnotes a, .fine a, .site-footer p a { padding-block: 0.2em; }
.tbc { background: var(--tbc-bg); color: var(--tbc-ink); border: 1px dashed #8C7A2A; border-radius: 6px; padding: 0 5px; font-size: 0.92em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tag-read { background: var(--lime-deep); color: var(--lime); }
.tag-write { background: var(--violet-deep); color: var(--violet); border: 1px solid var(--violet-line); }
.doc .tag { margin-left: 6px; font-size: 0.6875rem; }
@media (min-width: 640px) { .doc .tools tbody th { white-space: nowrap; } }
@media (max-width: 639px) { .doc .tools tbody th { min-width: 9.5rem; } .doc .tools th .tag { display: table; margin: 6px 0 0; } .doc .tools code { font-size: 0.8125rem; } }
.page-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .nav-desktop, .header-cta { display: none; }
  .nav-mobile { display: block; }
  .site-header { position: relative; }
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; column-gap: 16px; row-gap: 0; }
  .wordmark { font-size: 1.625rem; }
  /* The open menu pushes the page down (no overlay), so nothing focused can hide under it. */
  .nav-mobile[open] { flex-basis: 100%; order: 5; margin-left: 0; }
  .nav-mobile[open] summary { position: absolute; top: 10px; right: var(--gutter); }
  .nav-mobile[open] nav { border-top: 1px solid var(--line); margin-top: 10px; }
  .hero .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 576px; width: 100%; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .flow li + li::before { display: none; }
  .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 .card-pt { grid-column: 1 / -1; }
  .panel-pt .grid-3 .card { grid-column: auto; }
}
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
  .panel-watch .watches { order: 2; }
  .grid-2, .grid-3, .faq { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: stretch; }
  .band .btn { width: 100%; }
  .site-footer .wrap { flex-direction: column; }
  .footer-links ul { justify-content: flex-start; }
}
@media (max-width: 639px) {
  .hero-art { min-height: 0; }
  .hero-art .phone, .hero-art .watch-hero { display: none; }
  .hero-art .ai-chat { position: static; width: auto; box-shadow: none; }
  .cta-row .btn { width: 100%; }
  .hero .note { text-align: center; }
  .flow, .prices { grid-template-columns: 1fr; }
  .panel { border-radius: 28px; }
  .band { border-radius: 28px; }
  .watch-face { display: none; }
  .watch-rest { width: 190px; height: 190px; }
  .card { border-radius: 24px; }
  .client { gap: 10px; padding: 10px; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 0.9375rem; }
  .compare-table thead th { font-size: 0.75rem; letter-spacing: 0.6px; }
  .compare-table tbody th { width: 50%; }
  .summary-box, .toc { padding-inline: 16px; }
  .doc { font-size: 1.0625rem; }
}
@media (max-width: 379px) {
  .chip { white-space: normal; }
  .tag { white-space: normal; }
  .code { white-space: normal; word-break: break-all; }
  .client .flag { font-size: 0.6875rem; max-width: 4.5em; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .tag, .chip, .fake-btn { border: 1px solid CanvasText; }
  .tbc { border: 2px dashed CanvasText; }
}
