/* OrthoRep blind site. Dark-first, system-adaptive. Tokens first; components only read tokens. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
/* Metric-matched fallbacks keep layout still while the woff2 files arrive. */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); size-adjust: 98%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }

:root {
  --bg: #0F1011; --surface: #17191B; --surface-2: #22252B;
  --border: #2A2D31; --border-strong: #33363D;
  --text: #F2F4F3; --text-2: #9BA1A6; --text-3: #8A9297;
  --accent: #05F6BD; --accent-hover: #00E0AC; --on-accent: #04140F; --accent-edge: transparent;
  --accent-text: #2FE6B1; --accent-tint: #0B2E25; --focus: #2FE6B1; --accent-line: #05F6BD;
  --nav-bg: rgb(15 16 17 / .92);
  --shadow-card: none; --shadow-bar: none;
  --stage: #0F1011; --stage-border: #2A2D31;

  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Arial Narrow", Arial, sans-serif;
  --font-text: "Inter", "Inter Fallback", -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.625rem, 1.5rem + 5vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.25rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.125rem + .5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem; --fs-small: .9375rem; --fs-caption: .8125rem;
  --fs-price: clamp(2.5rem, 2rem + 2vw, 3.5rem);

  --gutter: 16px; --max: 1120px; --section: clamp(64px, 10vw, 128px);
  --r-chip: 8px; --r-btn: 12px; --r-card: 16px; --r-stage: 24px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F3F5; --surface: #FFFFFF; --surface-2: #F7F8FA;
    --border: #E1E4E7; --border-strong: #C9CED3;
    --text: #111314; --text-2: #5F666B; --text-3: #666E73;
    --accent-edge: #006E54; --accent-line: #00A884; --accent-text: #006E54; --accent-tint: #DDF5EC; --focus: #006E54;
    --nav-bg: rgb(242 243 245 / .92);
    --shadow-card: 0 1px 2px rgb(17 19 20 / .06), 0 8px 24px rgb(17 19 20 / .08);
    --shadow-bar: 0 -4px 16px rgb(17 19 20 / .08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F3F5; --surface: #FFFFFF; --surface-2: #F7F8FA;
  --border: #E1E4E7; --border-strong: #C9CED3;
  --text: #111314; --text-2: #5F666B; --text-3: #666E73;
  --accent-edge: #006E54; --accent-line: #00A884; --accent-text: #006E54; --accent-tint: #DDF5EC; --focus: #006E54;
  --nav-bg: rgb(242 243 245 / .92);
  --shadow-card: 0 1px 2px rgb(17 19 20 / .06), 0 8px 24px rgb(17 19 20 / .08);
  --shadow-bar: 0 -4px 16px rgb(17 19 20 / .08);
  color-scheme: light;
}
@media (prefers-contrast: more) { :root { --border: var(--border-strong); } }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (min-width: 768px) { html { scroll-padding-top: 72px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.6 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.02em; max-width: 14ch; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); max-width: 52ch; text-wrap: pretty; }
p { max-width: 64ch; text-wrap: pretty; }
.eyebrow { font-size: var(--fs-caption); line-height: 1.4; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.eyebrow__lead { display: inline; }
@media (max-width: 479px) { .eyebrow__lead { display: none; } }
.caption { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-2); }
.nw { white-space: nowrap; }
.tnum { font-feature-settings: "tnum" 1, "cv11" 1; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-thickness .12s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); top: 8px; z-index: 100; padding: 12px 16px; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--border); }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }

/* App Store badge: Apple artwork, unmodified, black in both themes. */
.badge { display: inline-flex; flex: none; border-radius: 9px; padding-block: 2px; text-decoration: none; }
.badge img { height: 40px; width: auto; }
.badge--lg { margin: 14px 0; }
.badge--lg img { height: 56px; }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
/* Phones: the header scrolls away (the download bar at the bottom carries the badge) and the Menu sits centered. Tablets and up: sticky. */
.nav { position: relative; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .nav { position: sticky; top: env(safe-area-inset-top, 0px); } }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav { background: var(--nav-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.nav__in { display: flex; align-items: center; gap: 12px; min-height: 56px; position: relative; }
@media (max-width: 767px) {
  .nav__in { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
  .menu > summary { white-space: nowrap; }
  .menu > summary svg { flex: none; }
  .nav__end { display: contents; }
  .nav__end .menu { justify-self: center; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.01em; }
.brand { flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__links { display: none; }
.nav__links a, .menu__panel a { color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-small); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; border-radius: 8px; transition: color .12s, background-color .12s; }
.nav__links a:hover { color: var(--accent-text); }
.nav__links a, .menu__panel a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--accent-text); transform: scaleX(0); transition: transform .2s ease-out; }
.nav__links a[aria-current="true"] { color: var(--accent-text); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.menu__panel a[aria-current="true"] { color: var(--accent-text); background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .nav__links a::after { transition: none; } }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--r-btn); border: 1px solid var(--border-strong); background: transparent; color: var(--text); cursor: pointer; transition: color .12s, background-color .12s; }
.theme[hidden] { display: none; }
.theme:hover { color: var(--accent-text); }
.theme:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.theme__moon { display: none; }
.theme[data-mode="light"] .theme__sun { display: none; }
.theme[data-mode="light"] .theme__moon { display: block; }
.theme--row { display: none; }
.menu__panel .theme { width: 100%; height: auto; min-height: 48px; justify-content: start; grid-auto-flow: column; place-items: center start; gap: 12px; padding-inline: 12px; border: 0; border-top: 1px solid var(--border); border-radius: 8px; font: 500 var(--fs-body)/1.2 var(--font-text); margin-top: 4px; }
.menu__panel .theme:hover { background: var(--surface-2); }
.theme--row[hidden] { display: none; }
@media (max-width: 639px) {
  .nav__end > .theme { display: none; }
  .menu__panel .theme--row:not([hidden]) { display: inline-grid; }
}
.menu { position: static; }
.menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-inline: 12px; border-radius: var(--r-btn); border: 1px solid var(--border-strong); font-weight: 500; font-size: var(--fs-small); color: var(--text); user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { transition: transform .15s; }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu__panel { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 100%; margin-top: 1px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px; display: grid; }
.menu__panel a { min-height: 48px; padding-inline: 12px; font-size: var(--fs-body); }
.menu__panel a:hover { background: var(--surface-2); }
@media (max-width: 379px) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 768px) {
  .menu { display: none; }
  .nav__links { display: flex; gap: 2px; margin-left: auto; }
  .nav__end { margin-left: 8px; }
}
@media (min-width: 1024px) {
  .nav__links { position: absolute; left: 50%; transform: translateX(-50%); gap: 8px; }
  .nav__end { margin-left: auto; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-btn); font: 600 var(--fs-body)/1.2 var(--font-text); text-decoration: none; cursor: pointer; transition: background-color .12s, border-color .12s, transform .12s; }
.btn--primary { min-height: 52px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent-edge); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: scale(.98); }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn--secondary:active { transform: scale(.98); }
.btn--strong { font-weight: 600; }

/* Device stage: always dark, both themes. */
.stage { background: var(--stage); border: 1px solid var(--stage-border); border-radius: var(--r-stage); padding: clamp(16px, 4vw, 48px); color: #F2F4F3; container-type: inline-size; }
.stage picture, .stage img { display: block; }
picture > img { width: 100%; height: auto; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 88px) var(--section); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.hero h1 .nb { white-space: nowrap; }
.cta { display: grid; gap: 4px; justify-items: start; }
.cta__row { display: flex; align-items: center; gap: 24px; }
.cta .caption { max-width: 44ch; font-size: var(--fs-caption); }
.qr { display: none; }
@media (min-width: 768px) and (hover: hover) {
  .qr { display: flex; align-items: center; gap: 12px; }
  .qr__tile { background: #FFFFFF; color: #000000; border-radius: 10px; padding: 0; width: 88px; height: 88px; border: 1px solid var(--border); flex: none; }
  .qr__tile svg { width: 100%; height: 100%; }
  .qr p { font-size: var(--fs-caption); line-height: 1.45; color: var(--text-2); max-width: 17ch; }
}
.devices { --pw: min(340px, calc(100cqi / 1.53)); display: flex; align-items: center; justify-content: center; }
.devices__phone { width: var(--pw); flex: none; }
.devices__watch { width: calc(var(--pw) * .68); flex: none; margin-left: calc(var(--pw) * .68 * -.22); position: relative; align-self: center; }
@container (max-width: 420px) { .devices__watch { margin-left: calc(var(--pw) * .68 * -.42); } .devices { --pw: calc(100cqi / 1.4); } }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Facts strip */
.facts { background: var(--surface); border-block: 1px solid var(--border); }
.facts__list { display: grid; grid-template-columns: 1fr; gap: 0; }
.fact { display: grid; grid-template-columns: 20px 1fr; column-gap: 14px; row-gap: 4px; padding-block: 20px; border-top: 1px solid var(--border); }
.fact:first-child { border-top: 0; }
.fact svg { grid-row: span 2; width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }
.fact h3 { font-size: var(--fs-body); line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.fact p { font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
@media (min-width: 640px) { .facts__list { grid-template-columns: 1fr 1fr; column-gap: 32px; } .fact:nth-child(2) { border-top: 0; } }
@media (min-width: 1024px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .fact { border-top: 0; padding-block: 32px; padding-right: 8px; }
}

/* Two-column feature layout */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .split--rev > :first-child { order: 2; }
}
.bullets { display: grid; gap: 12px; padding: 0; list-style: none; margin-top: 28px; }
.bullets li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; max-width: 56ch; }
.bullets li::before { content: ""; width: 8px; height: 8px; margin: .6em 0 0 6px; border-radius: 2px; background: var(--accent-text); }

/* Steps (#how): a real sequence, so numbered. */
.steps { display: grid; gap: 0; counter-reset: step; list-style: none; padding: 0; margin-top: 32px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; row-gap: 6px; padding-block: 20px; border-top: 1px solid var(--border); }
.steps li::before { content: counter(step); grid-row: span 2; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: var(--fs-caption); font-weight: 600; color: var(--text-2); font-feature-settings: "tnum" 1; }
.steps h3 { font-size: var(--fs-body); line-height: 1.4; }
.steps p { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }

/* Demo: the logging screen, rebuilt. Always app-dark; it lives on the stage. */
.demo-wrap { display: grid; gap: 14px; justify-items: center; }
.demo-wrap .stage { width: 100%; display: grid; justify-items: center; padding: clamp(16px, 4vw, 40px); }
@media (max-width: 479px) { .demo-wrap .stage { padding-inline: 8px; } }
.phone { position: relative; width: min(100%, 380px); aspect-ratio: 735 / 1500; }
.phone__screen { position: absolute; left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; overflow: hidden; container-type: size; border-radius: 15.15% / 6.97%; background: #0F1011; isolation: isolate; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; z-index: 2; }
/* The screen is laid out at a fixed 390 x 848 and scaled to the hole. --k is set by JS where typed calc() is missing. */
.demo { --d-bg: #0F1011; --d-card: #17191B; --d-border: #2A2D31; --d-text: #F2F4F3; --d-text2: #9BA1A6; --d-text3: #8A9297;
  position: absolute; left: 0; top: 0; width: 390px; height: 848px; transform-origin: 0 0; scale: var(--k, .6); background: var(--d-bg); color: var(--d-text); padding: 0 16px 34px; font-size: 15px; line-height: 1.3; font-feature-settings: "tnum" 1, "cv11" 1; display: flex; flex-direction: column; gap: 14px; }
@supports (scale: calc(1px / 1px)) { .demo { scale: calc(100cqw / 390px); } }
.d-status { display: flex; align-items: center; justify-content: space-between; flex: none; height: 62px; padding: 20px 26px 0 36px; margin: 0 -16px; font: 600 17px/1 var(--font-text); }
.d-status svg { width: 66px; height: 12px; }
.d-top { flex: none; }
.d-add { display: grid; place-items: center; min-height: 46px; border-radius: 14px; border: 1px solid var(--d-border); font-weight: 500; }
.d-dock { margin-top: auto; }
.d-home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: var(--d-text); }
.d-top { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--d-border); }
.d-top .back { width: 18px; height: 18px; color: var(--d-text); }
.d-top .timer { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #2FE6B1; }
.d-top .timer svg { width: 16px; height: 16px; }
.d-top .fin { padding-left: 12px; border-left: 1px solid var(--d-border); font-weight: 500; }
.d-meta { display: flex; justify-content: space-between; color: var(--d-text2); font-size: 13px; }
.d-meta b { color: var(--d-text); font-weight: 600; margin-left: 4px; }
.d-meta .hr { display: inline-flex; align-items: center; gap: 5px; color: var(--d-text); font-weight: 600; }
.d-meta .hr svg { width: 13px; height: 13px; color: #FF6B63; }
.d-ex { display: grid; gap: 3px; }
.d-ex .name { font: 700 30px/1.1 var(--font-text); letter-spacing: -.01em; }
.d-ex .tgt { color: var(--d-text2); font-size: 14px; }
.d-ex .last { color: var(--d-text3); font-size: 13px; }
.d-ex .last b { color: var(--d-text2); font-weight: 600; }
.d-label { font-weight: 600; font-size: 15px; margin-top: 2px; }
.d-sets { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.row { position: relative; display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; column-gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 14px; background: var(--d-card); border: 1px solid var(--d-border); }
.row::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid #05F6BD; background: #0B2E25; opacity: 0; transition: opacity .26s ease-out; z-index: 0; pointer-events: none; }
.row > * { position: relative; z-index: 1; }
.row .ck { width: 24px; height: 24px; position: relative; }
.row .ck .ring { position: absolute; inset: 0; border: 2px solid #5F666B; border-radius: 999px; }
.row .ck .fill { position: absolute; inset: 0; border-radius: 999px; background: #2FE6B1; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
.row .ck .fill svg { width: 14px; height: 14px; color: #04140F; }
.row .nm { display: grid; line-height: 1.15; }
.row .nm b { font-weight: 600; font-size: 16px; }
.row .nm small { font-size: 12px; color: var(--d-text3); display: none; }
.row .val { color: var(--d-text); padding-left: 12px; border-left: 1px solid var(--d-border); white-space: nowrap; display: none; }
.row .rir { color: var(--d-text2); font-size: 14px; display: none; white-space: nowrap; }
.row .more { color: var(--d-text3); letter-spacing: 1px; grid-column: 4; }
.row[data-s="logged"] .ck .fill { opacity: 1; transform: none; }
.row[data-s="logged"] .ck .ring { opacity: 0; }
.row[data-s="logged"] .v-log, .row[data-s="logged"] .rir { display: block; }
.row[data-s="logged"] .rir { grid-column: 4; }
.row[data-s="logged"] .more { display: none; }
.row[data-s="current"]::before { opacity: 1; }
.row[data-s="current"] .ck .ring { border-color: #2FE6B1; }
.row[data-s="current"] .st-cur { display: block; color: #2FE6B1; }
.row[data-s="planned"] .st-plan { display: block; }
.row[data-s="planned"] .v-plan { display: block; }
.d-next { display: flex; align-items: center; justify-content: space-between; background: var(--d-card); border: 1px solid var(--d-border); border-radius: 14px; padding: 10px 14px; }
.d-next small { display: block; color: var(--d-text3); font-size: 12px; }
.d-next b { font-weight: 600; }
.d-next svg { width: 16px; height: 16px; color: var(--d-text3); }
.d-dock { background: var(--d-card); border: 1px solid var(--d-border); border-radius: 20px; padding: 10px; display: grid; gap: 10px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip--w { color: #4DA3FF; background: #0E1E33; border-color: #2F8CFF; }
.chip--r { color: #3DD68C; background: #0F2A1C; border-color: #2E8F5E; }
.chip--i { color: #FF6B63; background: #2E1414; border-color: #A8423C; }
.logbtn { position: relative; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: #05F6BD; color: #04140F; font: 700 19px/1 var(--font-text); cursor: pointer; display: grid; place-items: center; transition: background-color .12s, transform .12s; }
.logbtn:hover:not(:disabled) { background: #00E0AC; }
.logbtn:active:not(:disabled) { transform: scale(.98); }
.logbtn:disabled { cursor: default; }
.logbtn:focus-visible { outline: 2px solid #2FE6B1; outline-offset: 3px; }
.logbtn .rest { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: grid; text-align: left; font-size: 12px; font-weight: 500; line-height: 1.15; }
.logbtn .rest b { font-size: 16px; font-weight: 700; }
.demo-foot { display: flex; align-items: center; gap: 16px; min-height: 44px; flex-wrap: wrap; justify-content: center; }
.linkbtn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 500 var(--fs-small)/1.2 var(--font-text); color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 2px; }
.nojs-note { font-size: var(--fs-caption); color: var(--text-2); }
.js .nojs-note { display: none; }
html:not(.js) .linkbtn { display: none; }

/* Micro-cards (#how) */
.minis { display: grid; gap: 16px; list-style: none; padding: 0; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .minis { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); display: grid; gap: 8px; align-content: start; }
.mini__art { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 96px; margin-bottom: 8px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.mini h3 { font-size: var(--fs-body); line-height: 1.4; }
.mini p { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }
.mini .chip { padding-inline: 12px; min-height: 36px; font-size: 14px; }
.mpill { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 11px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.mpill--open { background: transparent; color: var(--text-2); border: 1px dashed var(--text-2); }
.mlast { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.mlast b { color: var(--text); font-weight: 600; margin-left: 2px; }
.marrow { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.mtry { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Watch cards */
.cards3 { display: grid; gap: 24px; list-style: none; padding: 0; }
@media (max-width: 699px) {
  .wrap--watch { container-type: inline-size; }
  ul.cards3[role="list"] { --cw: min(78cqw, 340px); --edge: calc((100cqw + 2 * var(--gutter) - var(--cw)) / 2);
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--gutter) * -1); padding-block: 4px 12px; padding-inline: var(--edge); scroll-padding-inline: var(--edge); scrollbar-width: none; }
  .cards3::-webkit-scrollbar { display: none; }
  .cards3 .wcard { flex: 0 0 var(--cw); scroll-snap-align: center; }
}
.dots { display: none; justify-content: center; gap: 6px; margin-top: 4px; }
@media (max-width: 699px) { .dots { display: flex; } }
.dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background-color .2s, transform .2s; }
.dots button[aria-selected="true"]::before { background: var(--accent-text); transform: scale(1.25); }
.dots button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -4px; border-radius: 50%; }
@media (min-width: 768px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.wcard { display: grid; gap: 14px; align-content: start; }
.wcard .stage { display: grid; place-items: center; padding: 24px 16px; }
.wcard img { width: min(170px, 100%); }
@media (min-width: 768px) { .wcard img { width: min(220px, 100%); } }
.wcard p { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }

/* Arithmetic */
.arith { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1024px) { .arith { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.arith .stage { display: grid; place-items: center; }
.arith .stage img { border-radius: var(--r-card); width: min(100%, 400px); }
.calc { display: grid; gap: 0 32px; list-style: none; padding: 0; }
@media (min-width: 640px) { .calc { grid-template-columns: 1fr 1fr; } }
.calc li { display: grid; gap: 6px; align-content: start; padding-block: 20px; border-top: 1px solid var(--border); }
.calc h3 { font-size: var(--fs-body); line-height: 1.4; }
.calc p { color: var(--text-2); font-size: var(--fs-small); line-height: 1.55; }

/* Progress + dashboard: one dark tile; a scroll-snap row on phones, three across on desktop. */
.progress-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.progress-grid .bullets { margin-top: 0; }
@media (min-width: 768px) { .progress-grid .bullets { grid-template-columns: 1fr 1fr; column-gap: 40px; } .progress-grid .bullets li { max-width: none; } }
/* Phones: the three screens fan inside one tile, nothing to scroll. */
.prog-stage { display: grid; grid-template-columns: 1fr; justify-items: center; overflow: hidden; padding: clamp(20px, 5vw, 32px) 12px; }
.prog-stage > * { grid-area: 1 / 1; }
.prog-stage .ph { width: 56%; z-index: 3; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .55)); }
.prog-stage .ph:last-child { width: 48%; z-index: 1; justify-self: start; align-self: end; }
.prog-stage .bm { width: 48%; z-index: 2; justify-self: end; align-self: start; transform: translate(0, 12%); }
@media (min-width: 768px) {
  .prog-stage { display: flex; align-items: center; overflow: visible; justify-content: center; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); }
  .prog-stage > * { flex: 0 0 auto; }
  .prog-stage .ph, .prog-stage .ph:last-child { width: min(260px, 26cqi); filter: none; }
  .prog-stage .bm { width: min(240px, 24cqi); transform: none; }
}

/* Privacy */
.privacy { display: grid; gap: 24px; }
@media (min-width: 1024px) { .privacy { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.privacy__body { display: grid; gap: 18px; }
.privacy__body p { color: var(--text-2); }
.checks { display: grid; gap: 12px; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--text); max-width: 56ch; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.privacy__body .lead--strong { color: var(--text); }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btnrow .btn { font-size: var(--fs-small); }

/* Pricing */
.plans { display: grid; gap: 16px; list-style: none; padding: 0; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-card); display: grid; gap: 6px; align-content: start; }
.plan--rec { border: 2px solid var(--accent-line); padding: 23px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.plan h3 { font-size: var(--fs-body); font-weight: 600; letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: var(--fs-caption); font-weight: 600; line-height: 1.2; border: 1px solid var(--accent-edge); }
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.price b { font: 700 var(--fs-price)/1 var(--font-display); letter-spacing: -.02em; font-feature-settings: "tnum" 1; }
.price span { color: var(--text-2); font-size: var(--fs-small); }
.plan .trial { font-weight: 600; margin-top: 14px; font-size: var(--fs-small); line-height: 1.5; }
.plan .note { color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.footnote { margin-top: 24px; font-size: var(--fs-caption); color: var(--text-3); max-width: 80ch; line-height: 1.55; }

/* FAQ */
.faq { display: grid; gap: 24px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 14px; font-weight: 600; font-size: var(--fs-body); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { width: 18px; height: 18px; flex: none; color: var(--text-2); transition: transform .15s; }
.qa[open] summary svg { transform: rotate(90deg); }
.qa summary:hover { color: var(--accent-text); }
.qa p { color: var(--text-2); padding-bottom: 20px; max-width: 62ch; }

/* Closing CTA */
.close { padding-block: var(--section); border-top: 1px solid var(--border); }
.close__panel { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent-edge); border-radius: var(--r-stage); box-shadow: var(--shadow-card); padding: clamp(28px, 6vw, 64px); display: grid; gap: 24px; align-items: center; }
.close__panel img.icon { width: 64px; height: 64px; border-radius: 15px; }
.close__copy { display: grid; gap: 14px; justify-items: start; }
.close__copy p { color: var(--on-accent); }
.close__panel h2 { color: var(--on-accent); }
.close__panel :focus-visible { outline-color: var(--on-accent); }
.close__panel .badge { outline-offset: 3px; }
.close__panel .qr__tile { border-color: var(--on-accent); }
.close__panel .qr p { color: var(--on-accent); }
@media (min-width: 900px) { .close__panel { grid-template-columns: auto 1fr auto; gap: 40px; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 56px 40px; font-size: var(--fs-small); }
.footer__grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.footer__grid > :nth-child(1), .footer__grid > :nth-child(3) { grid-column: 1 / -1; }
.footer__grid > :nth-child(3) { order: 3; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; } .footer__grid > * { grid-column: auto !important; order: 0 !important; } }
.footer h2 { font: 600 var(--fs-caption)/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; max-width: none; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; }
.footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; }
.footer li a:hover { color: var(--accent-text); text-decoration: underline; }
.footer .chd a { font-weight: 600; }
.footer__brand { display: grid; gap: 12px; align-content: start; }
.footer__brand p { color: var(--text-2); max-width: 30ch; }
.footer__line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-caption); max-width: none; }

/* Sticky mobile CTA */
.sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-bar);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; gap: 14px; min-height: 64px; transform: translateY(110%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; }
.sbar p { font-size: var(--fs-caption); line-height: 1.35; color: var(--text-2); }
.sbar.is-on { transform: none; visibility: visible; transition: transform .2s ease-out, visibility 0s; }
body.has-sbar { padding-bottom: 72px; }
@media (min-width: 768px) { .sbar { display: none; } body.has-sbar { padding-bottom: 0; } }

/* Legal + 404 */
.prose-wrap { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.prose { max-width: 68ch; margin-inline: auto; font-size: var(--fs-body); line-height: 1.7; }
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.05; max-width: 20ch; margin-bottom: 28px; }
.prose h2 { font: 600 1.5rem/1.25 var(--font-text); letter-spacing: -.01em; margin: 48px 0 12px; max-width: none; text-wrap: balance; }
.prose h3 { font-size: 1.1875rem; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--text-3); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.prose strong { font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--border-strong); padding-left: 16px; color: var(--text-2); }
.prose .table { overflow-x: auto; margin-bottom: 16px; }
.prose table { border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.toc { margin: 0 0 40px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.toc h2 { margin: 0 0 8px; font: 600 var(--fs-caption)/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: var(--fs-small); line-height: 1.5; }
.toc li { margin: 0; }
.toc li { padding-block: 5px; }
.askbox { margin-top: 48px; padding: 20px 24px; border: 1px solid var(--border-strong); border-radius: var(--r-card); background: var(--surface); }
.askbox p { margin: 0; }
.nf { padding-block: clamp(80px, 14vw, 160px); display: grid; justify-items: center; text-align: center; gap: 20px; }
.nf h1 { max-width: 16ch; }
.nf p { color: var(--text-2); }
.nf .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Back to top: ring fills with scroll progress. Sits above the sticky download bar on phones. */
.totop { --off: 0px; position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--off)); width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s, bottom .2s ease-out; }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s, bottom .2s ease-out; }
.totop svg { grid-area: 1 / 1; }
.totop__ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke-width: 3; }
.totop__track { stroke: var(--border-strong); }
.totop__bar { stroke: var(--accent-line); stroke-linecap: round; }
.totop__arrow { width: 20px; height: 20px; }
.totop:hover { background: var(--surface-2); }
.totop:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 767px) { body.has-sbar .totop { --off: 72px; } }
@media (prefers-reduced-motion: reduce) { .totop, .totop.is-on { transition: none; transform: none; } }
