/* BarbellFit website. One stylesheet for the home page and the content pages. */

@font-face { font-family: "Figtree"; src: url("assets/fonts/Figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/Figtree-ext.woff2") format("woff2"); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113; }

/* ---------- tokens ---------- */
:root {
  --yellow: #F4E83F;
  --ink: #12141F;
  --paper: #F6F6F2;

  /* dark theme (default) */
  --bg: #0B0D12;
  --card: #161922;
  --well: #10131A;
  --tint-cool: #171C2D;
  --tint-sand: #1C1C21;
  --slab-ink: #151926;
  --text: #F4F5F7;
  --muted: #9AA0AC;
  --soft: #BDC2CC;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --hover: rgba(255, 255, 255, 0.07);
  --btn-bg: var(--yellow);
  --btn-ink: #15160A;
  --mark: var(--yellow);
  --nav-bg: rgba(11, 13, 18, 0.92);
  --menu-bg: #161922;
  --error: #FF8F7A;
  --frame-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.9);
  --slab: var(--bg);
  color-scheme: dark;

  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --edge: clamp(20px, 5vw, 64px);
  --pad: max(var(--edge), calc((100vw - 1200px) / 2));
  --inset: 16px;        /* gap between a colour slab and the edge of the window */
  --slab-r: 32px;
  --radius: 24px;
  --nav-h: 80px;
}
:root[data-theme="light"] {
  --bg: var(--paper);
  --card: #FFFFFF;
  --well: #ECEBE4;
  --tint-cool: #DDE2F6;
  --tint-sand: #EAE8DE;
  --slab-ink: var(--ink);
  --text: var(--ink);
  --muted: #5E6270;
  --soft: #3B3F4C;
  --line: rgba(18, 20, 31, 0.12);
  --line-strong: rgba(18, 20, 31, 0.26);
  --hover: rgba(18, 20, 31, 0.06);
  --btn-bg: var(--ink);
  --btn-ink: #FFFFFF;
  --mark: var(--ink);
  --nav-bg: rgba(246, 246, 242, 0.94);
  --menu-bg: #FFFFFF;
  --error: #B8321C;
  --frame-shadow: 0 24px 40px -22px rgba(18, 20, 31, 0.5);
  --swoosh: #E2B400;
  color-scheme: light;
}

/* Tones: a block that sets its own colours whatever the theme. */
.tone-yellow, .tile--yellow {
  --slab: var(--yellow); --text: var(--ink); --muted: rgba(18, 20, 31, 0.7); --soft: rgba(18, 20, 31, 0.82);
  --line: rgba(18, 20, 31, 0.16); --line-strong: rgba(18, 20, 31, 0.34); --hover: rgba(18, 20, 31, 0.08);
  --btn-bg: var(--ink); --btn-ink: #FFFFFF; --mark: var(--ink); --card: rgba(255, 255, 255, 0.5); --swoosh: #FFFFFF;
  color: var(--text);
}
.tone-ink, .tile--ink {
  --slab: var(--slab-ink); --text: #F6F6F2; --muted: rgba(246, 246, 242, 0.66); --soft: rgba(246, 246, 242, 0.82);
  --line: rgba(255, 255, 255, 0.12); --line-strong: rgba(255, 255, 255, 0.26); --hover: rgba(255, 255, 255, 0.08);
  --btn-bg: var(--yellow); --btn-ink: #15160A; --mark: var(--yellow); --card: rgba(255, 255, 255, 0.06); --swoosh: var(--yellow);
  color: var(--text);
}
.tone-cool { --slab: var(--tint-cool); }
.tone-sand { --slab: var(--tint-sand); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: var(--s5); }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: var(--s2); }
.dim { color: color-mix(in srgb, var(--text) 46%, transparent); }
p { color: var(--muted); max-width: 34rem; text-wrap: pretty; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; width: fit-content; height: 28px; padding: 0 var(--s3); margin-bottom: var(--s5); border: 1px solid var(--text); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; line-height: 1; color: var(--text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { background: var(--hover); border-color: var(--text); }
.btn--primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-bg); border-color: var(--btn-bg); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--arrow::after { content: "↗"; font-size: 1.05em; line-height: 1; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 10; inset: 0 0 auto 0; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: var(--inset) var(--pad) 0; border-bottom: 1px solid transparent; transition: background-color 0.25s, border-color 0.25s, height 0.25s, padding 0.25s; }
.nav.is-stuck, .nav.is-open { height: 68px; padding-top: 0; background: var(--nav-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
/* At the top of the page the nav sits on the yellow slab, so it takes the slab's colours. */
body:not(:has(.page__head--article)) .nav:not(.is-stuck):not(.is-open) { --text: var(--ink); --muted: rgba(18, 20, 31, 0.72); --line-strong: rgba(18, 20, 31, 0.34); --hover: rgba(18, 20, 31, 0.08); --btn-bg: var(--ink); --btn-ink: #FFFFFF; --swoosh: #FFFFFF; color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.025em; color: var(--text); }
.logo { display: block; width: 46px; height: auto; flex: none; }
.logo__mark { fill: var(--text); }
.logo__swoosh { fill: var(--swoosh, var(--yellow)); }
.nav nav { display: flex; align-items: center; gap: var(--s6); margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav nav a:not(.nav__cta) { color: var(--muted); transition: color 0.2s; }
.nav nav a:not(.nav__cta):hover, .nav nav a[aria-current="page"] { color: var(--text); }
.nav__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 600; transition: transform 0.2s; }
.nav__cta:hover { transform: translateY(-1px); }
.nav__tools { display: flex; align-items: center; gap: var(--s2); margin-left: var(--s3); }
.theme, .nav__toggle { width: 40px; height: 40px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; transition: background-color 0.2s; }
.theme { display: grid; place-items: center; }
.theme:hover, .nav__toggle:hover { background: var(--hover); }
.theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme .theme__sun, :root[data-theme="light"] .theme .theme__moon { display: none; }
:root[data-theme="light"] .theme .theme__sun { display: block; }
.nav__toggle { display: none; place-content: center; gap: 5px; }
.nav__toggle i { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.25s; }
.nav.is-open .nav__toggle i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__toggle i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- home ----------
   Layers, bottom to top: slab colours (z -1), copy (z 2), nav (z 10). The 3D canvas is z 3 on wide screens
   (in front of the copy) and z 1 on phones (behind it).
   `main` and the sections must not create stacking contexts, or the copy would fall behind the canvas. */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* On wide screens the device passes in front of the feature tiles as it crosses the page. */
@media (min-width: 821px) { #stage { z-index: 3; } }
main > section { position: relative; padding-inline: var(--pad); }
.slab::before { content: ""; position: absolute; inset: 0 var(--inset); z-index: -1; border-radius: var(--slab-r); background: var(--slab); }
.slab + .slab, .feature + .slab, .slab + .feature { margin-top: var(--inset); }
.hero__copy, .facts, .unfold__stage, .feature__copy, .devices__copy, .band__copy, .play__copy, .play__panel { position: relative; z-index: 2; }

/* side scale: page position and fold angle. Difference blending keeps it readable on every slab. */
.gauge { position: fixed; z-index: 3; left: 0; top: 0; bottom: 0; width: 72px; pointer-events: none; mix-blend-mode: difference; color: #A4A4A4; }
.gauge__rule { position: absolute; left: 40px; top: 120px; bottom: 136px; width: 12px;
  background:
    repeating-linear-gradient(to bottom, #A4A4A4 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, #5A5A5A 0 1px, transparent 1px 8px) left / 6px 100% no-repeat; }
.gauge__needle { position: absolute; left: -4px; top: 0; width: 24px; height: 2px; background: #C8C8C8; will-change: transform; }
.gauge__label { position: absolute; left: 32px; top: -9px; font-size: 0.75rem; font-weight: 600; font-style: normal; line-height: 20px; white-space: nowrap; }
.gauge__read { position: absolute; left: 40px; bottom: 36px; display: grid; gap: 2px; }
.gauge__read span { font-size: 0.75rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.gauge__read strong { font-size: 1.75rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 1360px) { .gauge__label { display: none; } }
@media (max-width: 1100px) { .gauge { display: none; } }

/* hero */
.hero { min-height: 100svh; display: grid; align-content: center; gap: var(--s8); padding-top: calc(var(--nav-h) + var(--s6)); padding-bottom: var(--s8); }
.hero.slab::before { top: var(--inset); }
.hero__copy { width: min(54%, 42rem); }
.hero h1 { font-size: clamp(3rem, 5.5vw, 5.125rem); line-height: 1; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .line > span { display: block; }
.hero .lede { margin: var(--s6) 0; max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); width: min(54%, 42rem); border-top: 1px solid var(--line-strong); padding-top: var(--s5); }
.facts dt { font-size: 2.25rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.facts dd { color: var(--muted); font-size: 0.875rem; line-height: 1.4; margin-top: var(--s1); }

/* unfold (sticky) */
.unfold { height: 360vh; }
.unfold__stage { position: sticky; top: 0; height: 100svh; }
.step { position: absolute; left: 0; bottom: 14vh; width: min(100%, 26rem); visibility: hidden; opacity: 0; }
.step[data-step="1"] { visibility: visible; opacity: 1; }
.step h2 { font-size: clamp(1.875rem, 2.8vw, 2.75rem); margin-bottom: var(--s4); }

/* features: the copy sits in a tinted tile beside the device */
.feature { min-height: 112svh; display: flex; align-items: center; }
.feature--right { justify-content: flex-end; }
.tile { border-radius: var(--slab-r); background: var(--card); padding: clamp(28px, 3.4vw, 48px); }
.tile--yellow { background: var(--yellow); }
.tile--ink { background: var(--slab-ink); }
.tile--cool { background: var(--tint-cool); }
.tile--sand { background: var(--tint-sand); }
.feature__copy { width: min(46%, 33rem); }
.feature__copy h2 { font-size: clamp(1.875rem, 3vw, 2.875rem); margin-bottom: var(--s4); }
.ticks { list-style: none; padding: var(--s5) 0 0; margin-top: var(--s6); display: grid; gap: var(--s3); border-top: 1px solid var(--line-strong); }
.ticks li { position: relative; padding-left: 32px; color: var(--text); font-size: 0.9375rem; font-weight: 500; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--btn-bg); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 5px; border: solid var(--btn-ink); border-width: 0 0 1.75px 1.75px; transform: rotate(-45deg); }

/* devices */
.devices { min-height: 125svh; display: flex; align-items: center; padding-block: 14vh; }
.devices__copy { width: min(54%, 40rem); }
.devices__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s4); margin-top: var(--s7); }
.device { margin: 0; display: grid; gap: var(--s5); justify-items: center; align-content: space-between; padding: var(--s6) var(--s5) var(--s5); border-radius: var(--radius); background: var(--card); }
.device figcaption { width: 100%; }
.device figcaption p { font-size: 0.9375rem; line-height: 1.5; }

/* device frames (also used in the blog) */
.phone, .duo, .duo-open, .watch__case { background: linear-gradient(145deg, #8E929B, #454952 28%, #23262D 72%, #6C7079); box-shadow: var(--frame-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.phone img, .duo img, .duo-open img, .watch__case img { display: block; width: 100%; height: auto; outline: 2px solid #050608; outline-offset: -1px; }
.phone { position: relative; width: clamp(140px, 13vw, 184px); padding: 3%; border-radius: 15% / 7%; }
.phone img { border-radius: 12.6% / 5.8%; }
.phone::after { content: ""; position: absolute; left: 50%; top: 3.3%; width: 27%; height: 2.7%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.watch { position: relative; width: clamp(100px, 9.5vw, 132px); padding: 34% 0; }
.watch::before, .watch::after { content: ""; position: absolute; left: 14%; right: 14%; height: 24%; background: linear-gradient(90deg, #12151C, #232733 50%, #12151C); }
.watch::before { top: 0; border-radius: 12px 12px 3px 3px; }
.watch::after { bottom: 0; border-radius: 3px 3px 12px 12px; }
.watch__case { position: relative; z-index: 1; padding: 6%; border-radius: 26%; }
.watch__case::after { content: ""; position: absolute; right: -5%; top: 26%; width: 6%; height: 20%; border-radius: 3px; background: linear-gradient(#8E929B, #454952); }
.watch__case img { border-radius: 21%; }
.duo { position: relative; padding: 3% 3% 3% 6%; border-radius: 6% 15% 15% 6% / 4% 10% 10% 4%; }
.duo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3.4%; border-radius: 99px 0 0 99px; background: linear-gradient(90deg, #6C7079, #33363E); }
.duo img { border-radius: 3% 12% 12% 3% / 2% 8.5% 8.5% 2%; }
.duo-open { padding: 1.6%; border-radius: 5.5% / 7.5%; }
.duo-open img { border-radius: 4.5% / 6.4%; }

/* privacy band */
.band { min-height: 92svh; display: flex; align-items: center; }
.band__copy { width: min(48%, 34rem); }
.band__copy .btn { margin-top: var(--s6); }

/* interactive demo */
.play { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--nav-h) + var(--s7)); padding-bottom: var(--s7); text-align: center; justify-items: center; }
.play__copy { display: grid; justify-items: center; }
.play__copy h2 { margin-bottom: var(--s3); }
.play__pad { width: 100%; min-height: 42vh; cursor: grab; touch-action: pan-y; }
.play__pad:active { cursor: grabbing; }
.play__panel { width: min(100%, 30rem); display: grid; justify-items: center; gap: var(--s4); }
.readout { font-size: 4rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.readout strong { font-weight: inherit; }
.readout span { color: var(--muted); font-weight: 400; }
.ruler { width: 100%; display: block; position: relative; height: 44px; }
.ruler::before { content: ""; position: absolute; inset: 10px 11px;
  background:
    repeating-linear-gradient(to right, color-mix(in srgb, var(--text) 55%, transparent) 0 1px, transparent 1px calc(100% / 6)),
    repeating-linear-gradient(to right, color-mix(in srgb, var(--text) 22%, transparent) 0 1px, transparent 1px calc(100% / 36)) center / 100% 50% no-repeat;
  border-right: 1px solid color-mix(in srgb, var(--text) 55%, transparent); }
.ruler input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; cursor: ew-resize; margin: 0; }
.ruler input::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ruler input::-moz-range-track { height: 100%; background: transparent; }
.ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 44px; border: 0; border-radius: 0; background: linear-gradient(var(--mark), var(--mark)) center / 3px 100% no-repeat; }
.ruler input::-moz-range-thumb { width: 22px; height: 44px; border: 0; border-radius: 0; background: linear-gradient(var(--mark), var(--mark)) center / 3px 100% no-repeat; }
.presets { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.presets button { height: 40px; padding: 0 20px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.presets button:hover { background: var(--btn-bg); color: var(--btn-ink); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 3; margin: var(--inset); padding: var(--s8) calc(var(--pad) - var(--inset)) var(--s6); border-radius: var(--slab-r); background: var(--slab); }
.foot__cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s7); }
.foot__about p { font-size: 0.9375rem; line-height: 1.55; max-width: 20rem; margin-top: var(--s4); }
.foot nav { display: grid; gap: var(--s3); align-content: start; font-size: 0.9375rem; }
.foot nav h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); margin-bottom: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.foot nav a { color: var(--text); width: fit-content; transition: color 0.2s; }
.foot nav a:hover { color: var(--yellow); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s7); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); }
.foot__base p { font-size: 0.8125rem; line-height: 1.5; max-width: 44rem; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: var(--yellow); }
.loader__inner { display: grid; justify-items: center; gap: var(--s5); }
.loader__inner .logo { width: 104px; --text: var(--ink); --swoosh: #FFFFFF; }
.loader__track { width: 120px; height: 3px; border-radius: 3px; background: rgba(18, 20, 31, 0.18); overflow: hidden; }
.loader__track i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease-out; }
.is-loading { overflow: hidden; }

/* ---------- content pages ---------- */
.page main { padding-inline: var(--pad); }
.page__head { margin: var(--inset) calc(var(--inset) - var(--pad)) 0; padding: calc(var(--nav-h) + var(--s8)) calc(var(--pad) - var(--inset)) var(--s8); border-radius: var(--slab-r); background: var(--slab); }
.page__head h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); max-width: 18ch; }
.page__head .lede { margin-top: var(--s5); max-width: 38rem; }
.page__body { padding: var(--s8) 0 var(--s9); }
.prose a, .faq a, .contact__info a, .form a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.prose a:hover, .faq a:hover, .contact__info a:hover, .form a:hover { text-decoration-color: var(--text); }

.cards { display: grid; gap: var(--s4); }
.cards--topics { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: var(--s8); }
.card { display: block; padding: var(--s5); border-radius: var(--radius); background: var(--card); transition: transform 0.2s; }
.card:nth-child(4n+2) { background: var(--tint-cool); }
.card:nth-child(4n+3) { background: var(--tint-sand); }
.card:nth-child(4n+4) { background: var(--yellow); --text: var(--ink); --muted: rgba(18, 20, 31, 0.7); color: var(--text); }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: var(--s1); }
.card p { font-size: 0.875rem; line-height: 1.5; }

.faq { max-width: 48rem; margin-bottom: var(--s8); scroll-margin-top: calc(var(--nav-h) + var(--s5)); }
.faq h2 { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: var(--s4); }
.faq h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.faq__more { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.2; margin: var(--s8) 0 var(--s4); }
.posts + .callout, .cards + .callout { margin-top: var(--s8); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s5); padding: 20px 0; font-weight: 500; font-size: 1.0625rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat, var(--hover); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s7) var(--s5) 0; max-width: 42rem; }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); padding: clamp(28px, 4vw, 48px); border-radius: var(--slab-r); background: var(--slab); }
.callout h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; margin-bottom: var(--s2); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s9); }
.contact__info h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); margin: 0 0 var(--s2); }
.contact__info p { margin-bottom: var(--s6); color: var(--text); }
.contact__info p:first-of-type { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; margin-bottom: var(--s2); }
.contact__info .contact__note { color: var(--muted); }
.form { display: grid; gap: var(--s5); padding: clamp(24px, 3vw, 40px); border-radius: var(--slab-r); background: var(--card); }
.form label { display: grid; gap: var(--s2); font-weight: 500; font-size: 0.9375rem; }
.form input, .form select, .form textarea { font-size: 1rem; line-height: 1.4; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; width: 100%; transition: border-color 0.2s; }
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 0; border-color: var(--mark); }
.form .btn { justify-self: start; }
.form__note { font-size: 0.8125rem; }
.form__error { color: var(--error); font-size: 0.875rem; font-weight: 500; }

.legal { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s9); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--nav-h) + var(--s5)); display: grid; gap: var(--s2); font-size: 0.875rem; }
.legal__toc h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); margin-bottom: var(--s2); }
.legal__toc a { color: var(--muted); transition: color 0.2s; }
.legal__toc a:hover { color: var(--text); }

.prose { max-width: 42rem; }
.prose section { scroll-margin-top: calc(var(--nav-h) + var(--s5)); }
.prose h2 { font-size: 1.75rem; letter-spacing: -0.025em; line-height: 1.2; margin: var(--s7) 0 var(--s4); }
.prose h3 { margin: var(--s6) 0 var(--s2); }
.prose p, .prose li { color: var(--soft); max-width: none; line-height: 1.7; }
.prose p + p { margin-top: var(--s4); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: var(--s4) 0; display: grid; gap: var(--s2); }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose__lead { font-size: 1.25rem; line-height: 1.55 !important; color: var(--text) !important; }

/* blog index */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.post-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--slab-r); overflow: hidden; background: var(--card); transition: transform 0.25s; }
.post-card:hover { transform: translateY(-4px); }
.post-card--lead { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
.post-card__img { margin: var(--s3) var(--s3) 0; border-radius: 22px; background: var(--tint-cool); height: 272px; overflow: hidden; padding-top: var(--s6); }
.post-card:nth-child(3n) .post-card__img { background: var(--tint-sand); }
.post-card:nth-child(3n+1) .post-card__img { background: var(--yellow); }
.post-card--lead .post-card__img { margin: var(--s3) 0 var(--s3) var(--s3); height: auto; min-height: 380px; padding-top: var(--s7); }
.post-card__text { padding: var(--s5); display: grid; align-content: start; }
.post-card--lead .post-card__text { padding: var(--s7); align-content: center; }
.post-card__text .eyebrow { height: auto; padding: 0; border: 0; color: var(--muted); margin-bottom: var(--s3); }
.post-card__text h2 { font-size: 1.375rem; line-height: 1.22; letter-spacing: -0.02em; margin-bottom: var(--s3); }
.post-card--lead h2 { font-size: clamp(1.875rem, 2.8vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.post-card__text p:not(.eyebrow) { font-size: 0.9375rem; line-height: 1.55; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s5); font-weight: 600; font-size: 0.9375rem; color: var(--text); }
.more::after { content: "→"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); font-size: 0.875rem; transition: transform 0.2s; }
.post-card:hover .more::after { transform: translateX(3px); }

/* device shots in cards and articles */
.shots { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px); }
.shot { margin: 0; display: grid; justify-items: center; gap: var(--s3); }
.shot figcaption { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.shots--hero { margin: 0 0 var(--s7); padding: var(--s7) var(--s5) var(--s6); border-radius: var(--slab-r); background: var(--tint-cool); }
.shots--hero .phone { width: clamp(110px, 17vw, 184px); }
.shots--hero .duo { width: clamp(130px, 21vw, 232px); }
.shots--hero .watch { width: clamp(80px, 12vw, 128px); }
.shots--hero .duo-open { width: clamp(220px, 44vw, 460px); }
.shots--card { align-items: flex-start; gap: var(--s4); }
.shots--card figcaption { display: none; }
.shots--card .phone { width: 124px; }
.shots--card .duo { width: 164px; }
.shots--card .watch { width: 92px; padding: 30% 0 0; margin-top: 40px; }
.shots--card .watch::before { display: none; }
.shots--card .duo-open { width: 310px; margin-top: var(--s5); }
.post-card:not(.post-card--lead) .shot--duo-open + .shot { display: none; }
.post-card--lead .shots--card .phone { width: 168px; }
.post-card--lead .shots--card .duo { width: 224px; }
.post-card--lead .shots--card .watch { width: 124px; }
.post-card--lead .shots--card .duo-open { width: 440px; }

/* article */
.article { max-width: 46rem; margin: 0 auto; padding-bottom: var(--s9); }
.page__head--article { margin: 0; padding: calc(var(--nav-h) + var(--s8)) 0 var(--s7); border-radius: 0; background: none; }
.page__head--article h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.06; max-width: none; }
.page__head--article .eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.byline { margin-top: var(--s5); font-size: 0.875rem; }
.article .prose { max-width: none; }
.takeaways { margin: 0 0 var(--s7); padding: var(--s6); border-radius: var(--radius); background: var(--yellow); --text: var(--ink); --muted: rgba(18, 20, 31, 0.7); color: var(--text); }
.takeaways h2 { font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.08em !important; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3) !important; }
.takeaways ul { margin: 0; }
.takeaways li { color: var(--ink); }
.takeaways li::marker { color: var(--ink); }
.faq--article { margin: var(--s8) 0 0; max-width: none; }
.faq--article h2 { margin-top: 0; }
.sources { margin-top: var(--s7); }
.sources ol { font-size: 0.875rem; }
.sources li { line-height: 1.55; }
.disclaimer { margin-top: var(--s7) !important; padding: var(--s5); border-radius: 16px; background: var(--card); font-size: 0.8125rem; line-height: 1.55 !important; color: var(--muted) !important; }
.related { margin-top: var(--s8); }
.related > h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; color: var(--muted); margin-bottom: var(--s3); }
.related__list { display: grid; gap: var(--s3); }
.next { display: grid; gap: var(--s1); padding: var(--s5); border-radius: var(--radius); background: var(--card); transition: transform 0.2s; }
.next:hover { transform: translateY(-2px); }
.next span { font-size: 0.8125rem; color: var(--muted); }
.next strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  :root { --nav-h: 68px; --inset: 8px; --slab-r: 24px; --radius: 20px; }
  .nav { padding-top: var(--inset); }
  .nav__toggle { display: grid; }
  .nav nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); display: grid; gap: 0; margin: 0; padding: var(--s2); border-radius: var(--radius); background: var(--menu-bg); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5); font-size: 1.0625rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
  .nav.is-open nav { opacity: 1; visibility: visible; transform: none; }
  .nav nav a { padding: 14px; border-radius: 12px; }
  .nav nav a:not(.nav__cta) { color: var(--text); }
  .nav nav .nav__cta { height: 48px; margin-top: var(--s2); justify-content: center; }

  /* home: device on top, copy below it on the slab's own colour */
  .hero { align-content: end; gap: var(--s6); padding-top: 58svh; padding-bottom: var(--s7); }
  .hero__copy, .facts { width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2) { display: none; }
  .step { bottom: 5vh; width: 100%; }
  .feature, .devices, .band { align-items: flex-end; padding-block: 0 7svh; min-height: 120svh; }
  .devices { min-height: 160svh; }
  .feature__copy { width: 100%; }
  .devices__copy, .band__copy { width: 100%; padding-top: 72px; background: linear-gradient(to top, var(--slab) calc(100% - 72px), transparent); }
  .devices__row { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .device { padding: var(--s5) var(--s3) var(--s4); }
  .phone { width: 30vw; }
  .watch { width: 22vw; }
  .play__pad { min-height: 44vh; }

  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .page__head { padding-top: calc(var(--nav-h) + var(--s7)); padding-bottom: var(--s7); }
  .contact, .legal { grid-template-columns: 1fr; gap: var(--s7); }
  .legal__toc { position: static; padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
  .posts { grid-template-columns: 1fr; }
  .post-card--lead { grid-template-columns: 1fr; }
  .post-card--lead .post-card__img { margin: var(--s3) var(--s3) 0; min-height: 0; height: 272px; padding-top: var(--s6); }
  .post-card--lead .post-card__text { padding: var(--s5); }
  .post-card--lead .shots--card .phone { width: 124px; }
  .post-card--lead .shots--card .duo { width: 164px; }
  .post-card--lead .shots--card .watch { width: 92px; }
  .post-card--lead .shots--card .duo-open { width: 290px; }
  .shots--hero { gap: var(--s3); padding-inline: var(--s3); }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
