/* Rounds website. Tokens follow docs/meds-tracker-design/DESIGN-HANDOFF.md (direction C, "Programme"). */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #e8385a;
  --brand-strong: #bf1d3c;
  --ink: #2b1a1f;
  --paper: #f5e6cc;
  --paper-raised: #fbf2e2;
  --muted: #6e5a5f;
  --hairline: #cdb894;
  --on-brand-button: #fff7ea;
  --warn: #f2b26e;
  --chip: #e7d3b1;
  --dashed: #8c7458;
  --accent-text: #bf1d3c;

  /* Page roles (swap in dark mode) */
  --bg: var(--paper);
  --surface: var(--paper-raised);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --rule: var(--ink);
  --line: var(--hairline);

  /* Fixed: the phone mockups always show light mode unless noted */
  --display: "Bricolage", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1014;
    --surface: #2b1a1f;
    --fg: #f5e6cc;
    --fg-muted: #c9b6a0;
    --rule: #f5e6cc;
    --line: #4a3238;
    --accent-text: #f27089;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1014;
  --surface: #2b1a1f;
  --fg: #f5e6cc;
  --fg-muted: #c9b6a0;
  --rule: #f5e6cc;
  --line: #4a3238;
  --accent-text: #f27089;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type helpers ---------- */
.display {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.01em;
}
.label {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted);
}
.mono { font-family: var(--mono); font-weight: 700; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Split-text lines (built by main.js) */
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: inline-block; will-change: transform; }

/* ---------- loader curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90; background: var(--brand);
  display: grid; place-items: center; pointer-events: none;
}
.curtain svg { width: 84px; height: 84px; color: var(--paper); }
.no-js .curtain, .reduced .curtain { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  color: var(--paper);
  border-bottom: 3px solid transparent;
}
.nav.is-solid { background: var(--bg); color: var(--fg); border-bottom-color: var(--rule); }
.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { white-space: nowrap; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a {
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 0 14px; min-height: 48px;
  display: inline-flex; align-items: center; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 10px; height: 3px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta {
  border: 2px solid currentColor; border-radius: 8px; margin-left: 6px;
}
.nav__cta::after { display: none; }
.theme-toggle {
  width: 48px; height: 48px; border-radius: 8px; border: 2px solid currentColor; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; margin-left: 4px;
}
.theme-toggle svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .nav__links a:not(.nav__cta):not(.keep) { display: none; }
}
@media (max-width: 560px) {
  .nav__links .nav__cta { display: none; }
}
@media (max-width: 420px) {
  .brand span { font-size: 22px; }
  .nav__links a { padding: 0 10px; font-size: 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--line { border-color: currentColor; background: transparent; }
.btn small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; line-height: 1.1; }
.btn .btn__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Official badges, shown as supplied. Both are 56px tall; Google's PNG
   carries its own clear space, which the negative margin overlaps. */
.store-badge { display: inline-flex; border-radius: 9px; transition: transform .25s var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.store-badge img { display: block; height: 56px; width: auto; }
.store-badge--google img { height: 82px; margin: -13px; }
.store-badges .store-soon { margin: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .75; max-width: none; }
.store-badges .store-soon[hidden] { display: none; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }

/* ---------- hero ---------- */
.hero {
  background: var(--brand); color: var(--paper); position: relative; overflow: hidden;
  padding: 120px 0 0; min-height: 100svh; display: flex; flex-direction: column;
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  align-items: end; flex: 1;
}
.hero__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.hero__kicker .pill {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--paper); border-radius: 6px; padding: 5px 9px;
}
.hero__title { font-size: clamp(60px, min(10.5vw, 17vh), 196px); }
.hero__title .accent { color: var(--ink); }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 34ch; margin: 28px 0 30px; font-weight: 500; }
.hero__copy { padding-bottom: clamp(40px, 6vw, 88px); }
.hero__phone { align-self: end; justify-self: center; position: relative; margin-bottom: -140px; }
.hero__badge {
  position: absolute; z-index: 3; left: -46px; top: 18%;
  width: 132px; height: 132px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; text-align: center;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge strong { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 40px; line-height: .9; }
.hero__badge span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero__foot {
  position: relative; z-index: 2; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 12px 0;
}
.hero__foot svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__phone { margin-bottom: -220px; }
  .hero__badge { left: auto; right: -20px; top: 8%; width: 112px; height: 112px; }
  .hero__badge strong { font-size: 34px; }
}

/* ---------- phone ---------- */
.phone {
  --pw: 320px;
  width: var(--pw); aspect-ratio: 9 / 19.2; border-radius: calc(var(--pw) * .14);
  background: var(--ink); padding: calc(var(--pw) * .032); position: relative;
  box-shadow: 0 0 0 2px #1a0f12, 0 40px 80px -30px rgba(43, 26, 31, .55);
  flex: none;
}
.phone::before {
  content: ""; position: absolute; top: calc(var(--pw) * .055); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--pw) * .075); background: #120a0c; border-radius: 99px; z-index: 5;
}
.screen {
  position: absolute; inset: calc(var(--pw) * .032); border-radius: calc(var(--pw) * .11);
  overflow: hidden; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 11px; line-height: 1.35;
}
.screen .label { color: var(--muted); font-size: 8.5px; }
@media (max-width: 420px) { .phone { --pw: 272px; } }

/* App UI pieces inside the phone */
.s-head { background: var(--brand); color: var(--paper); padding: 46px 16px 14px; }
.s-head .s-date { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.s-head h4 { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 52px; text-transform: uppercase; line-height: .85; }
.s-head h4.sm { font-size: 36px; }
.s-strip { background: var(--ink); color: var(--paper); padding: 6px 16px; font-size: 9.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.s-strip svg { width: 10px; height: 10px; }
.s-body { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 14px; }
.s-h { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1; border-bottom: 2.5px solid var(--ink); padding-bottom: 4px; margin: 0; }
.s-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.s-row:last-child { border-bottom: 2.5px solid var(--ink); }
.s-tile { width: 38px; flex: none; text-align: center; border: 1.5px solid var(--ink); border-radius: 6px; padding: 2px 0; }
.s-tile.fill { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.s-tile.dash { border-style: dashed; border-color: var(--dashed); }
.s-tile b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 20px; line-height: 1; }
.s-tile i { display: block; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 8px; letter-spacing: .06em; }
.s-row .t { flex: 1; min-width: 0; }
.s-row .t b { display: block; font-size: 11.5px; }
.s-row .t span { color: var(--muted); font-size: 9.5px; }
.s-btn { min-height: 26px; padding: 0 10px; border-radius: 5px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 10px; display: inline-flex; align-items: center; background: transparent; }
.s-btn.fill { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand-button); }
.s-btn.ink { background: var(--ink); color: var(--paper); }
.s-warn { display: flex; border: 1.5px solid var(--ink); border-radius: 7px; overflow: hidden; }
.s-warn .ic { width: 32px; background: var(--warn); display: grid; place-items: center; flex: none; }
.s-warn .ic svg { width: 14px; height: 14px; }
.s-warn .tx { background: var(--paper-raised); padding: 7px 9px; flex: 1; font-weight: 600; font-size: 10.5px; }
.s-ticket { background: var(--ink); color: var(--paper); border-radius: 9px; padding: 11px; }
.s-ticket .big { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 6px 0; }
.s-ticket .big em { font-style: normal; font-size: 17px; color: #f27089; }
.s-ticket .mono { font-size: 10px; display: flex; justify-content: space-between; }
.s-ticket .mono span + span { font-family: var(--body); color: #d9c6a8; font-weight: 500; }
.s-field { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hairline); }
.s-input { background: var(--paper-raised); border: 1.5px solid var(--ink); border-radius: 5px; padding: 5px 7px; font-weight: 600; font-size: 10.5px; }
.s-seg { display: flex; border: 1.5px solid var(--ink); border-radius: 5px; overflow: hidden; }
.s-seg span { flex: 1; text-align: center; padding: 5px 0; font-weight: 700; font-size: 10px; background: var(--paper-raised); }
.s-seg span + span { border-left: 1.5px solid var(--ink); }
.s-seg span.on { background: var(--ink); color: var(--paper); }
.s-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.s-table th { text-align: left; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; border-bottom: 2.5px solid var(--ink); }
.s-table td { padding: 6px 0; border-bottom: 1px solid var(--hairline); font-weight: 600; }
.s-table td.mono { font-size: 10px; }
.s-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 4px double var(--ink); padding-top: 6px; }
.s-total b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--brand-strong); }
.s-save { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 2.5px solid var(--ink); padding: 9px 14px 18px; display: flex; gap: 8px; align-items: center; }
.s-save p { flex: 1; font-size: 9px; color: var(--muted); font-weight: 600; }
.s-cam { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 35%, #4a3238, #120a0c); }
.s-cam .pack {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%) rotate(-6deg);
  width: 64%; aspect-ratio: 1.5; background: #efe3cc; border-radius: 6px; padding: 10px;
  display: grid; grid-template-columns: 1fr 52px; gap: 8px; color: var(--ink);
}
.s-cam .pack i { display: block; height: 5px; background: #cdb894; border-radius: 3px; margin-bottom: 5px; }
.s-cam .pack i:first-child { width: 70%; background: var(--ink); }
.dm { width: 52px; height: 52px; display: grid; grid-template-columns: repeat(10, 1fr); }
.dm b { background: var(--ink); }
.dm b.o { background: transparent; }
.s-bracket { position: absolute; left: 50%; top: 30%; width: 118px; height: 118px; transform: translate(-50%, 0); }
.s-bracket::before, .s-bracket::after, .s-bracket i::before, .s-bracket i::after { content: ""; position: absolute; width: 26px; height: 26px; border: 4px solid var(--brand); }
.s-bracket::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.s-bracket::after { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.s-bracket i::before { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.s-bracket i::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.s-scanline { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.s-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 18px 18px 0 0; border-top: 2.5px solid var(--ink); padding: 10px 14px 20px; }
.s-sheet .grab { width: 34px; height: 4px; background: var(--ink); border-radius: 4px; margin: 0 auto 10px; opacity: .5; }
.s-code { font-family: var(--mono); font-weight: 700; line-height: 1; margin: 4px 0 2px; }
.s-code small { font-size: 14px; color: var(--muted); }
.s-code big { font-size: 34px; letter-spacing: .02em; }
.s-count { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.s-count .n { width: 40px; text-align: center; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 30px; line-height: 1; border-radius: 6px; padding: 3px 0; }
.s-count .n.low { background: var(--warn); }
.s-lock { position: absolute; inset: 0; background: linear-gradient(170deg, #4a1724, #1c1014 60%); color: var(--paper); padding: 44px 12px 0; }
.s-lock .time { text-align: center; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 64px; line-height: 1; margin-bottom: 4px; }
.s-lock .day { text-align: center; font-size: 11px; font-weight: 600; margin-bottom: 18px; opacity: .85; }
.s-note { background: rgba(245, 230, 204, .95); color: var(--ink); border-radius: 15px; padding: 9px 10px; margin-bottom: 8px; }
.s-note .hd { display: flex; gap: 6px; align-items: center; font-size: 9px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.s-note .hd i { width: 15px; height: 15px; border-radius: 4px; background: var(--brand); display: grid; place-items: center; }
.s-note .hd i svg { width: 9px; height: 9px; color: var(--ink); }
.s-note p { font-size: 11.5px; font-weight: 600; margin-bottom: 7px; }
.s-acts { display: flex; gap: 5px; }
.s-acts span { flex: 1; text-align: center; min-height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 10px; }
.s-acts span.o { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.s-search { background: var(--paper-raised); color: var(--ink); border-radius: 6px; padding: 6px 9px; font-weight: 600; font-size: 11px; margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.s-search svg { width: 12px; height: 12px; }
.hit { background: var(--ink); color: var(--paper); border-radius: 3px; padding: 0 2px; }
.s-ai { border: 1.5px dashed var(--dashed); border-radius: 8px; padding: 9px; background: var(--paper-raised); }
.s-chipline { display: flex; gap: 5px; flex-wrap: wrap; }
.s-chip { border: 1.5px solid var(--ink); border-radius: 5px; padding: 3px 7px; font-weight: 700; font-size: 9.5px; }
.s-chip.on { background: var(--ink); color: var(--paper); }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; border-top: 3px solid var(--ink); position: relative; z-index: 1; }
.marquee--brand { background: var(--brand); color: var(--ink); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: 28px; padding: 18px 14px;
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 72px); line-height: 1; white-space: nowrap;
}
.marquee__item svg { width: .62em; height: .62em; color: var(--brand); flex: none; }
.marquee--brand .marquee__item svg { color: var(--paper); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 11vw, 170px) 0; }
.sec__head { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: start; border-top: 3px solid var(--rule); padding-top: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec__num { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-text); }
.sec__title { font-size: clamp(48px, 8vw, 132px); }
.sec__intro { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--fg-muted); margin-top: 22px; }
@media (max-width: 760px) {
  .sec__head { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- manifesto ---------- */
.manifesto { padding-top: clamp(240px, 26vw, 340px); }
.manifesto__text {
  font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 6.6vw, 112px); line-height: .92; letter-spacing: -.005em;
}
.manifesto__text .w { color: var(--fg); }
.no-js .manifesto__text .w, .reduced .manifesto__text .w { color: var(--fg); }
.manifesto__text .w.em { font-style: normal; }
.manifesto__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 7vw, 96px); border-top: 3px solid var(--rule); border-bottom: 3px solid var(--rule); }
.manifesto__foot > div { padding: 22px 24px 24px 0; }
.manifesto__foot > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.manifesto__foot h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 10px; }
.manifesto__foot p { color: var(--fg-muted); font-size: 16px; }
@media (max-width: 760px) {
  .manifesto__foot { grid-template-columns: 1fr; }
  .manifesto__foot > div { padding: 20px 0; }
  .manifesto__foot > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* ---------- acts (pinned feature story) ---------- */
.acts { background: var(--bg); }
.acts__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 100px); align-items: center; }
.acts__list { display: flex; flex-direction: column; }
.act { padding: 28px 0; border-top: 1px solid var(--line); }
.act:last-child { border-bottom: 3px solid var(--rule); }
.act__no { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.act__no span { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.act h3 { font-size: clamp(40px, 5.2vw, 84px); }
.act > p { color: var(--fg-muted); max-width: 46ch; margin-top: 14px; font-size: 18px; }
.act > ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.act > ul > li { border: 2px solid var(--rule); border-radius: 6px; padding: 5px 10px; font-weight: 700; font-size: 14px; }
.act__phone { display: none; }
.acts__device { position: relative; }
.acts__device .phone { --pw: clamp(280px, 24vw, 350px); }
.acts__device .screen { transition: none; }
.acts__device .screen[data-screen] { clip-path: inset(0 0 0 0 round calc(var(--pw) * .11)); }
.acts__progress { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.acts__progress i { width: 34px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; position: relative; }
.acts__progress i b { position: absolute; inset: 0; background: var(--brand-strong); transform: scaleX(0); transform-origin: left; }

/* Desktop pinned mode: acts stack on top of one another */
.is-pinned .acts__list { position: relative; min-height: 560px; }
.is-pinned .act { position: absolute; left: 0; right: 0; top: 50%; border: 0; padding: 0; }
.is-pinned .act:last-child { border: 0; }

@media (max-width: 900px) {
  .acts__stage { grid-template-columns: 1fr; }
  .acts__device { display: none; }
  .act__phone { display: flex; justify-content: center; margin-top: 28px; }
  .act__phone .phone { --pw: min(300px, 78vw); }
}

/* Stacked acts: reduced motion, or no GSAP */
.no-js .acts__device .screen ~ .screen { display: none; }
.acts--stacked .acts__stage { grid-template-columns: 1fr; }
.acts--stacked .acts__device { display: none; }
.acts--stacked .act__phone { display: flex; justify-content: center; margin-top: 28px; }
.acts--stacked .act__phone .phone { --pw: min(300px, 78vw); }
@media (min-width: 901px) {
  .acts--stacked .act { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 64px; }
  .acts--stacked .act > * { grid-column: 1; }
  .acts--stacked .act__no { grid-row: 2; }
  .acts--stacked .act > h3 { grid-row: 3; }
  .acts--stacked .act > p { grid-row: 4; }
  .acts--stacked .act > ul { grid-row: 5; align-self: start; }
  .acts--stacked .act__phone { grid-column: 2; grid-row: 1 / -1; margin: 0; }
}

/* ---------- listings (horizontal) ---------- */
.listings { background: var(--ink); color: var(--paper); overflow: hidden; }
.listings .sec__head { border-top-color: var(--paper); }
.listings .sec__num { color: #f27089; }
.listings .sec__intro { color: #c9b6a0; }
.rail { display: flex; gap: 0; width: max-content; padding: 0 var(--gutter); border-top: 3px solid var(--paper); border-bottom: 3px solid var(--paper); }
.card {
  width: clamp(280px, 30vw, 420px); flex: none; padding: 26px 28px 30px; min-height: 420px;
  display: flex; flex-direction: column; gap: 14px; border-right: 1px solid #4a3238; position: relative;
}
.card:first-child { padding-left: 0; }
.card__date { display: flex; align-items: center; gap: 14px; }
.card__tile { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--paper); display: grid; place-items: center; flex: none; }
.card__tile svg { width: 28px; height: 28px; }
.card:nth-child(3n+1) .card__tile { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.card:nth-child(3n+2) .card__tile { background: var(--warn); border-color: var(--warn); color: var(--ink); }
.card h3 { font-size: clamp(36px, 3.4vw, 54px); margin-top: auto; }
.card p { color: #c9b6a0; font-size: 16px; }
.card .label { color: #c9b6a0; }
.rail-hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #c9b6a0; font-weight: 700; font-size: 14px; }
.rail-hint svg { width: 20px; height: 20px; }
.rail-scroller { overflow: visible; }
@media (max-width: 900px) {
  .rail-scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail-scroller::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; min-height: 360px; width: min(82vw, 340px); }
}

/* ---------- AI ---------- */
.ai__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.switch {
  display: inline-flex; align-items: center; gap: 14px; margin: 6px 0 30px; font-weight: 700;
}
.switch__track { width: 76px; height: 42px; border-radius: 99px; border: 3px solid var(--rule); position: relative; background: var(--surface); }
.switch__knob { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); }
.ai__cards { display: grid; gap: 16px; }
.ai-card { border: 2px solid var(--rule); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 72px 1fr; background: var(--surface); }
.ai-card__ic { background: var(--brand); color: var(--paper); display: grid; place-items: center; }
.ai-card:nth-child(2) .ai-card__ic { background: var(--ink); }
:root[data-theme="dark"] .ai-card:nth-child(2) .ai-card__ic { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-card:nth-child(2) .ai-card__ic { background: var(--brand-strong); } }
.ai-card__ic svg { width: 30px; height: 30px; }
.ai-card__body { padding: 18px 20px 20px; }
.ai-card h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: 1; margin-bottom: 8px; }
.ai-card p { color: var(--fg-muted); font-size: 16px; }
.ai-card dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 12px; }
.ai-card dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); padding-top: 2px; }
.ai-card dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .ai__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ai-card { grid-template-columns: 1fr; } .ai-card__ic { height: 56px; } }

/* ---------- privacy ticket ---------- */
.privacy { background: var(--brand); color: var(--paper); }
.privacy .sec__head { border-top-color: var(--paper); }
.privacy .sec__num { color: var(--ink); }
.privacy .sec__intro { color: var(--paper); opacity: .92; }
.ticket {
  background: var(--ink); color: var(--paper); border-radius: 16px; position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); transform: translateY(-50%);
}
.ticket::before { left: -17px; } .ticket::after { right: -17px; }
.stat { padding: 34px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.stat + .stat { border-left: 2px dashed rgba(245, 230, 204, .3); }
.stat b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: clamp(64px, 7vw, 120px); line-height: .85; text-transform: uppercase; color: var(--paper); }
.stat b em { font-style: normal; color: #f27089; }
.stat > span { font-weight: 600; color: #d9c6a8; font-size: 15px; }
.stat .label { color: #c9b6a0; }
.privacy__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 48px; border-top: 3px solid var(--paper); }
.privacy__list p { padding: 16px 0; border-bottom: 1px solid rgba(245, 230, 204, .35); display: flex; gap: 12px; font-weight: 600; }
.privacy__list svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
@media (max-width: 900px) {
  .ticket { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 2px dashed rgba(245, 230, 204, .3); }
  .ticket::before, .ticket::after { display: none; }
}
@media (max-width: 560px) {
  .privacy__list { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
}

/* ---------- final CTA ---------- */
.cta { padding: clamp(90px, 12vw, 180px) 0; text-align: left; overflow: hidden; }
.cta__big { font-size: clamp(72px, 15vw, 260px); }
.cta__big .plus { display: inline-block; color: var(--brand); vertical-align: -0.04em; width: .7em; height: .7em; }
.cta__row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-top: 36px; border-top: 3px solid var(--rule); padding-top: 26px; }
.cta__row p { max-width: 44ch; color: var(--fg-muted); font-size: 18px; }
.cta .btn--ink { background: var(--fg); color: var(--bg); }

/* ---------- footer ---------- */
.foot { border-top: 3px solid var(--rule); padding: 36px 0 48px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 600; }
.foot ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__note { color: var(--fg-muted); max-width: 52ch; margin-top: 12px; }
.foot__base { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-muted); font-size: 14px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- changelog page ---------- */
.page-head { background: var(--brand); color: var(--paper); padding: 140px 0 40px; }
.page-head h1 { font-size: clamp(72px, 14vw, 220px); }
.page-head p { max-width: 48ch; font-size: clamp(17px, 1.5vw, 20px); margin-top: 22px; font-weight: 500; }
.page-head__row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.page-head .btn--line { color: var(--paper); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0; border-bottom: 3px solid var(--rule); position: sticky; top: 71px; background: var(--bg); z-index: 10; }
.filter {
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--rule); background: transparent; cursor: pointer; font-weight: 700; font-size: 15px;
}
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filter[aria-pressed="true"]::before { content: "✓ "; }
.release { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.release__side { position: sticky; top: 170px; align-self: start; display: flex; gap: 14px; align-items: flex-start; }
.date-tile { width: 76px; flex: none; text-align: center; border: 2px solid var(--rule); border-radius: 10px; padding: 6px 0 7px; }
.release:first-of-type .date-tile { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.date-tile b { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 40px; line-height: 1; }
.date-tile i { display: block; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.release__meta { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.release__meta .ver { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.release__meta a { font-size: 14px; color: var(--fg-muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.release__meta a:hover { color: var(--fg); text-decoration: underline; }
.release h2 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 14px; }
.release__summary { font-size: 19px; color: var(--fg-muted); max-width: 60ch; margin-bottom: 24px; }
.group { margin-top: 20px; }
.group h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 2px solid var(--rule); margin-bottom: 4px; }
.group[data-kind="new"] h3 { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand-button); }
.group[data-kind="improved"] h3 { background: var(--warn); border-color: var(--warn); color: var(--ink); }
.group ul { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--rule); }
.group li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.group li strong { font-weight: 700; }
.group li code { font-family: var(--mono); font-size: .9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.cl-empty, .cl-error { padding: 60px 0; color: var(--fg-muted); font-size: 18px; }
@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .release__side { position: static; }
  .filters { top: 71px; }
}

/* ---------- reduced motion & no-js fallbacks ---------- */
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- privacy policy ---------- */
.policy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px 56px; padding-top: 48px; padding-bottom: 96px; }
.policy__summary { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 28px 28px 24px; }
.policy__summary h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 14px; }
.policy__summary ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.policy__summary li { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 4px 0; border-top: 3px solid var(--paper); }
.policy__summary li + li { padding-left: 18px; border-left: 2px dashed rgba(245, 230, 204, .3); }
.policy__summary b { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 64px; line-height: .85; color: #f27089; }
.policy__summary span { font-weight: 600; color: #d9c6a8; font-size: 15px; }
.policy__toc { position: sticky; top: 96px; align-self: start; }
.policy__toc ol { list-style: none; margin: 8px 0 0; padding: 0; border-top: 3px solid var(--rule); counter-reset: toc; }
.policy__toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.policy__toc a { display: flex; gap: 10px; min-height: 44px; align-items: center; text-decoration: none; font-weight: 600; font-size: 15px; }
.policy__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.policy__toc a:hover { text-decoration: underline; text-underline-offset: 4px; }
.policy__body { max-width: 72ch; }
.policy__body section { padding: 8px 0 36px; scroll-margin-top: 96px; }
.policy__body h2 { font-size: clamp(34px, 4vw, 52px); border-bottom: 3px solid var(--rule); padding-bottom: 8px; margin-bottom: 18px; }
.policy__body p, .policy__body li { font-size: 17px; }
.policy__body p + p, .policy__body ul + p, .policy__body p + ul, .policy__body div + p, .policy__body table + p { margin-top: 14px; }
.policy__body ul { margin: 12px 0 0; padding-left: 20px; }
.policy__body li { margin: 6px 0; }
.policy__body li::marker { color: var(--accent-text); }
.policy__body a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.policy__body code { font-family: var(--mono); font-size: .85em; background: var(--surface); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.policy__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.policy__card { border: 2px solid var(--rule); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.policy__card h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; margin-bottom: 10px; }
.policy__card dl { margin: 0; display: grid; gap: 4px; }
.policy__card dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-top: 6px; }
.policy__card dd { margin: 0; font-size: 15px; font-weight: 500; }
.policy__table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.policy__table thead th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); padding: 6px 12px 6px 0; border-bottom: 3px solid var(--rule); }
.policy__table tbody th { text-align: left; font-weight: 700; padding: 12px 16px 12px 0; vertical-align: top; width: 34%; }
.policy__table td { padding: 12px 0; vertical-align: top; }
.policy__table tbody tr { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .policy { grid-template-columns: 1fr; }
  .policy__toc { position: static; }
  .policy__summary ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy__summary li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .policy__summary { padding: 22px 18px; }
  .policy__summary ul, .policy__cards { grid-template-columns: 1fr; }
  .policy__summary li + li { padding-left: 0; border-left: 0; }
  .policy__table, .policy__table tbody, .policy__table tr, .policy__table th, .policy__table td { display: block; width: auto; }
  .policy__table thead { display: none; }
  .policy__table tbody th { padding: 12px 0 2px; }
  .policy__table td { padding: 0 0 12px; }
}

/* ---------- blog ---------- */
.posts { list-style: none; margin: 0; padding: 32px 0 96px; }
.post-item { border-bottom: 1px solid var(--line); }
.post-item a { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 32px; padding: 32px 0; text-decoration: none; }
.post-item time { padding-top: 10px; }
.post-item h2 { font-size: clamp(32px, 4vw, 56px); }
.post-item a:hover h2 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.post-item p { grid-column: 2; color: var(--fg-muted); font-size: 18px; max-width: 60ch; }
.post-item .draft { color: var(--accent-text); }
.prose { max-width: 70ch; padding: 48px 0 96px; }
.page-head .label, .page-head .label a { color: var(--paper); }
.prose > * + * { margin-top: 16px; }
.prose p, .prose li { font-size: 18px; }
.prose h2 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; line-height: .9; font-size: clamp(34px, 4vw, 52px); border-bottom: 3px solid var(--rule); padding-bottom: 8px; margin-top: 40px; }
.prose h3 { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 28px; line-height: 1; margin-top: 32px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent-text); }
.prose a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.prose code { font-family: var(--mono); font-size: .85em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: 18px; color: var(--fg-muted); }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.post-meta { margin-top: 22px; }
@media (max-width: 700px) {
  .post-item a { grid-template-columns: 1fr; }
  .post-item time { padding-top: 0; }
  .post-item p { grid-column: 1; }
}

.foot__legal { margin: 14px 0 0; font-size: 12px; opacity: .6; max-width: 80ch; }

/* ---------- coming soon ---------- */
.soon {
  background: var(--brand); color: var(--paper);
  display: flex; align-items: center;
  padding: 120px 0 clamp(64px, 8vw, 112px);
}
.soon__kicker { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.soon__kicker .pill {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--paper); border-radius: 6px; padding: 5px 9px;
}
.soon__title { font-size: clamp(72px, min(15vw, 24vh), 240px); }
.soon__title span { display: block; }
.soon__title .accent { color: var(--ink); }
.soon__lede { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; max-width: 40ch; margin: 28px 0 24px; }
.soon__points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; }
.soon__points li::before { content: '+'; margin-right: 8px; color: var(--ink); font-weight: 800; }
.soon__more { font-size: 16px; }
.soon__more a { color: inherit; font-weight: 700; text-underline-offset: 4px; }

.intro-video { padding: clamp(56px, 8vw, 112px) 0; }
.intro-video__title { font-size: clamp(44px, 7vw, 104px); margin: 0 0 clamp(20px, 3vw, 36px); }
.intro-video__frame {
  /* The app's card radius (12) on phones, its sheet radius (24) when large. */
  border: 3px solid var(--rule); border-radius: clamp(12px, 2vw, 24px); overflow: hidden;
  isolation: isolate;
  background: var(--brand); aspect-ratio: 16 / 9;
}
.intro-video__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-video__desc { margin: 14px 0 0; color: var(--fg-muted); font-size: 15px; max-width: 60ch; }
