/* SetScribe on the web. Grounds are the rubber platform (dark) and gym chalk
   (light); Spot gets the yellow, the download gets the red. Plates keep their app
   jobs: red acts, blue is data, yellow is a record, green is done.
   Every section opens with its heading at poster size across the full frame,
   and the bar in the header loads a plate for each chapter you pass. */

@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/Archivo-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Archivo Expanded'; src: url('/fonts/ArchivoExpanded-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Archivo Expanded'; src: url('/fonts/ArchivoExpanded-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --chalk: #EDEEEB;
  --chalk-2: #E2E4E0;
  --card: #FFFFFF;
  --ink: #121314;
  --muted: #4E5156;

  --rubber: #15181D;
  --rubber-2: #1E232A;
  --rubber-3: #2A3039;
  --on-rubber: #F4F5F2;
  --on-rubber-muted: #AEB3BB;

  --red: #D1202A;
  --red-press: #B21A23;
  --blue: #1F56D4;
  --blue-deep: #1847B4;
  --yellow: #F5C211;
  --green: #127D47;
  --green-bright: #1FA463;
  --plate-white: #F7F7F4;
  --steel: #A9ACB2;
  --steel-dark: #7D8087;

  --wide: 'Archivo Expanded', 'Archivo', system-ui, sans-serif;
  --text: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Five sizes do the visible work. */
  --t-display: clamp(40px, 10.2vw, 184px);
  --t-head: clamp(34px, 7vw, 128px);
  --t-quote: clamp(24px, 2.7vw, 46px);
  --t-body: clamp(19px, 1.65vw, 28px);
  --t-small: 16px;

  --margin: clamp(16px, 2.8vw, 44px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(88px, 11vw, 176px);
  --nav-h: 64px;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--steel-dark) var(--chalk-2); }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.field-rubber :focus-visible, .field-red :focus-visible, .nav :focus-visible { outline-color: var(--yellow); }
.field-yellow :focus-visible { outline-color: var(--ink); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* The frame: one pair of margins for every section. */
.frame, .wrap { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 var(--margin); }

/* ── Fields ── */
.field-chalk { background: var(--chalk); color: var(--ink); }
.field-raised { background: var(--chalk-2); color: var(--ink); }
.field-rubber, .field-dark { background: var(--rubber); color: var(--on-rubber); }
.field-yellow { background: var(--yellow); color: var(--ink); }
.field-red { background: var(--red); color: #fff; }
.section { padding: var(--section) 0; }

/* ── Type ── */
.display { font-family: var(--wide); font-weight: 800; font-size: var(--t-display); line-height: .9; letter-spacing: -.045em; margin-left: -.05em; white-space: nowrap; }
.h2 { font-family: var(--wide); font-weight: 800; font-size: var(--t-head); line-height: .96; letter-spacing: -.04em; text-wrap: balance; margin-left: -.04em; }
.h3 { font-family: var(--wide); font-weight: 700; font-size: var(--t-quote); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.lead, .body-lg { font-size: var(--t-body); line-height: 1.45; max-width: 34ch; }
.hero .lead { font-size: clamp(22px, 2.3vw, 38px); line-height: 1.2; max-width: 20ch; font-weight: 600; }
.hero .lead b { font-family: var(--wide); font-weight: 800; letter-spacing: -.02em; color: var(--red); }
.meta { font-size: clamp(15px, 1.05vw, 17px); color: var(--on-rubber-muted); font-variant-numeric: tabular-nums; }
.field-red .meta { color: rgba(255, 255, 255, .86); }
b, strong { font-weight: 600; }

/* ── Buttons and links ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: clamp(60px, 4.6vw, 76px); padding: 0 clamp(28px, 2.4vw, 40px); font-size: clamp(18px, 1.35vw, 22px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-press); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-icon { width: 20px; height: 20px; flex: none; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: .08em; transition: opacity 160ms var(--ease); }
.text-link:hover { opacity: .72; }

/* ── Header: stays with you, and its bar loads as you read ── */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); display: flex; align-items: center; background: var(--rubber); color: var(--on-rubber); }
/* Three equal-sided columns, so the bar sits in the exact middle at every width. */
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.nav-row > .btn { grid-column: 3; justify-self: end; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--wide); font-weight: 800; font-size: 19px; letter-spacing: -.02em; flex: none; }
.nav-bar { width: clamp(140px, 26vw, 380px); display: flex; align-items: center; height: 30px; }
.nb-shaft { flex: 1; height: 3px; background: var(--steel); border-radius: 2px; }
.nb-sleeve { display: flex; align-items: center; gap: 2px; height: 100%; }
.nb-sleeve i { width: 6px; height: 26px; border-radius: 2px; background: var(--rubber-3); transition: background-color 380ms var(--ease), transform 380ms var(--ease); }
.nb-sleeve i.p-green { width: 5px; height: 17px; }
.nb-sleeve i.p-white { width: 4px; height: 13px; }
.nb-sleeve i.lit.p-red { background: var(--red); }
.nb-sleeve i.lit.p-blue { background: var(--blue); }
.nb-sleeve i.lit.p-yellow { background: var(--yellow); }
.nb-sleeve i.lit.p-green { background: var(--green-bright); }
.nb-sleeve i.lit.p-white { background: var(--plate-white); }
.nb-l i.lit { animation: nb-l 420ms var(--ease); }
.nb-r i.lit { animation: nb-r 420ms var(--ease); }
@keyframes nb-l { from { transform: translateX(-10px); } }
@keyframes nb-r { from { transform: translateX(10px); } }

/* ── Barbell: real proportions, plates sized by --h and --w of the bar height --H ── */
.bar { --H: 120px; display: flex; align-items: center; height: var(--H); width: 100%; }
.shaft { flex: 1 1 auto; min-width: 10%; height: calc(var(--H) * .065); background: var(--steel); border-radius: 2px; }
.collar { flex: none; width: calc(var(--H) * .07); height: calc(var(--H) * .3); background: var(--steel-dark); border-radius: 3px; }
.sleeve { position: relative; flex: none; display: flex; align-items: center; gap: calc(var(--H) * .018); min-width: calc(var(--H) * 1.1); height: 100%; }
.sleeve::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--H) * .11); transform: translateY(-50%); background: var(--steel); }
.sleeve-l { justify-content: flex-end; }
.sleeve-r { justify-content: flex-start; }
.sleeve-end { flex: none; width: calc(var(--H) * .05); height: calc(var(--H) * .11); background: var(--steel); }
.plate { position: relative; z-index: 1; flex: none; width: calc(var(--H) * var(--w)); height: calc(var(--H) * var(--h)); border-radius: calc(var(--H) * .035); }
.plate::after { content: ""; position: absolute; left: 30%; right: 30%; top: 9%; bottom: 9%; border-radius: 2px; background: rgba(255, 255, 255, .13); }
.p-red { background: var(--red); }
.p-blue { background: var(--blue); }
.p-yellow { background: var(--yellow); }
.p-green { background: var(--green); }
.p-white { background: var(--plate-white); }
.p-white::after, .p-yellow::after { background: rgba(0, 0, 0, .08); }
.p-steel { background: var(--steel-dark); }
.plate.ghost { background: transparent; outline: 2px dashed rgba(244, 245, 242, .32); outline-offset: -2px; }
.plate.ghost::after { display: none; }
.sleeve-l .plate.arrive { animation: plate-in-l 520ms var(--ease) both; }
.sleeve-r .plate.arrive { animation: plate-in-r 520ms var(--ease) both; }
@keyframes plate-in-l { from { transform: translateX(-48px); opacity: 0; } }
@keyframes plate-in-r { from { transform: translateX(48px); opacity: 0; } }

/* ── Hero: the claim across the frame, then the words and a set you can say ── */
.hero { padding: clamp(28px, 3.4vw, 64px) 0 clamp(64px, 8vw, 128px); overflow: hidden; }
.hero .display { overflow: visible; }
.hero-grid { margin-top: clamp(32px, 3.6vw, 64px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; align-items: start; }
.hero-copy { min-width: 0; grid-column: 1 / 6; display: grid; gap: 28px; justify-items: start; padding-top: 8px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero .meta { margin-top: -6px; }
.console { min-width: 0; grid-template-columns: minmax(0, 1fr); position: relative; grid-column: 7 / 13; background: var(--rubber-2); border-radius: 32px; padding: clamp(22px, 2.4vw, 36px); padding-top: clamp(28px, 2.8vw, 40px); display: grid; gap: 18px; }
.console .spot-console { position: absolute; right: clamp(16px, 2vw, 32px); top: clamp(-118px, -7vw, -64px); width: clamp(120px, 11vw, 190px); }
.console-title { font-size: clamp(15px, 1.1vw, 18px); font-weight: 600; color: var(--on-rubber-muted); padding-right: 40%; }
.said { font-family: var(--wide); font-weight: 700; font-size: var(--t-quote); line-height: 1.12; letter-spacing: -.02em; min-height: 2.24em; text-wrap: balance; transition: color 200ms var(--ease); }
.said.is-live { color: var(--on-rubber-muted); }
.logged { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--rubber-3); min-height: 60px; transition: opacity 200ms var(--ease); }
.logged-check { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--green-bright); color: #fff; display: grid; place-items: center; }
.logged-check svg { width: 18px; height: 18px; }
.logged-ex { font-size: clamp(17px, 1.3vw, 21px); font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logged-set { font-family: var(--wide); font-weight: 700; font-size: clamp(17px, 1.4vw, 22px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.logged.is-waiting { opacity: .4; }
.logged.pop { animation: pop 420ms var(--ease); }
@keyframes pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: none; } }
/* The hero's bar: full width, loaded live by whatever you say to Spot. */
.hero .hl { color: var(--red); }
.hero .display { font-size: clamp(40px, 8.6vw, 156px); }
.hero-bar { margin-top: clamp(24px, 2.6vw, 44px); }
.hero-bar .bar { margin-inline: auto; max-width: calc(var(--H) * 6.4); }
.hero-bar .bar-caption { font-size: clamp(16px, 1.3vw, 22px); text-align: center; text-wrap: balance; }
.hero-grid { margin-top: clamp(28px, 3vw, 52px); }
.bar-caption { margin-top: 12px; font-size: clamp(15px, 1.1vw, 18px); color: var(--on-rubber-muted); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.bar-caption b { color: var(--on-rubber); }
.try-row { display: flex; gap: 10px; align-items: center; }
.mic { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; transition: transform 160ms var(--ease), background-color 160ms var(--ease); }
.mic svg { width: 24px; height: 24px; }
.mic:hover { background: var(--red-press); }
.mic:active { transform: scale(.94); }
.mic.is-on { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.try-input { flex: 1; min-width: 0; height: clamp(56px, 4.2vw, 68px); font-size: clamp(17px, 1.3vw, 21px); border: 0; border-radius: 999px; padding: 0 22px; background: var(--rubber-3); color: var(--on-rubber); caret-color: var(--red); }
.try-input::placeholder { color: var(--on-rubber-muted); opacity: 1; }
.try-input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; }
.try-go { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--on-rubber); color: var(--rubber); display: grid; place-items: center; transition: transform 160ms var(--ease); }
.try-go svg { width: 22px; height: 22px; }
.try-go:active { transform: scale(.94); }
.try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; border-radius: 999px; padding: 11px 18px; font-size: clamp(15px, 1.1vw, 18px); background: var(--rubber-3); color: var(--on-rubber); font-weight: 600; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.chip:hover { background: #363D48; }
.chip:active { transform: scale(.96); }
.try-note { font-size: var(--t-small); color: var(--on-rubber-muted); }
.try-note:empty { display: none; }

/* ── Spot ── */
.spot { position: relative; aspect-ratio: 220 / 178; }
.spot > img, .spot > svg { width: 100%; height: 100%; }
.spot.pop { animation: spot-pop 460ms var(--ease); }
@keyframes spot-pop { 0% { transform: scale(.94) translateY(4px); } 55% { transform: scale(1.04) translateY(-6px); } 100% { transform: none; } }
.spot.blink .spot-eye { transform: scaleY(.1); transform-box: fill-box; transform-origin: center; }
.spot-art .spot-eye { transition: transform 90ms ease; }
.spot-xl { width: min(280px, 60vw); }

/* ── Section openers: the heading across the frame, its sentence under the right half ── */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 40px); }
.intro .h2 { grid-column: 1 / -1; }
.intro .body-lg { grid-column: 1 / 7; }

/* ── Voice: a script, what you say set large beside what lands in your log ── */
.transcript { margin-top: clamp(48px, 6vw, 96px); display: grid; gap: 12px; }
.transcript li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 14px; align-items: center; background: var(--card); border-radius: 26px; padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 36px); }
.t-said { grid-column: 1 / 8; min-width: 0; font-family: var(--wide); font-weight: 700; font-size: var(--t-quote); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.t-log { grid-column: 8 / 13; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--chalk); }
.t-log span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: clamp(17px, 1.3vw, 21px); }
.t-log span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green-bright); flex: none; }
.t-log b { font-family: var(--wide); font-weight: 700; font-size: clamp(16px, 1.3vw, 21px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.after { margin-top: clamp(96px, 11vw, 176px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: center; }
.after-text { grid-column: 1 / 6; padding-right: clamp(0px, 2vw, 32px); display: grid; gap: 18px; }
.after-text .h3 { max-width: 14ch; margin-bottom: 6px; font-size: clamp(28px, 3.4vw, 58px); }
.after-text p { max-width: 26ch; font-size: var(--t-body); }
.after-stage { grid-column: 6 / 13; background: var(--chalk-2); border-radius: 32px; padding: clamp(28px, 4vw, 64px) 24px; display: grid; place-items: center; }

/* A phone with the app inside, built from the app's own tokens. */
.phone { width: min(360px, 100%); padding: 10px; border-radius: 44px; background: #0B0D10; }
.ps { border-radius: 35px; background: #121418; color: #F4F5F2; padding: 18px 18px 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.35; }
.ps-status { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 0 6px 6px; font-variant-numeric: tabular-nums; }
.ps-sys { display: flex; gap: 4px; align-items: center; }
.ps-sys i { width: 14px; height: 9px; border-radius: 2px; background: #F4F5F2; }
.ps-sys i:first-child { width: 9px; }
.ps-title { font-family: var(--wide); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.ps-input { background: #22272F; border-radius: 16px; padding: 14px 16px; color: #C3C7CD; font-size: 14px; line-height: 1.55; }
.ps-kicker { font-size: 13px; color: #AEB3BB; font-weight: 600; margin-top: 4px; }
.ps-ex { background: #1C2026; border-radius: 16px; padding: 12px 14px; display: grid; gap: 8px; }
.ps-ex p { font-weight: 600; }
.ps-sets { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-sets span { background: #2A3039; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-btn { margin-top: 6px; display: grid; place-items: center; min-height: 48px; border-radius: 999px; background: var(--red); font-weight: 600; }

/* ── Spot's section: the one centred moment ── */
.spot-stage { display: grid; justify-items: center; text-align: center; gap: 24px; }
.spot-stage .h2 { margin-left: 0; }
.spot-intro { max-width: 40ch; }
.spot-scene { display: grid; justify-items: center; margin-top: clamp(8px, 2vw, 28px); width: 100%; }
.spot-hero { width: min(640px, 92%); }
.bubble { position: relative; max-width: 22ch; background: var(--card); color: var(--ink); border-radius: 28px; padding: 20px 30px; font-weight: 600; font-size: clamp(19px, 1.8vw, 30px); line-height: 1.35; margin-bottom: 18px; }
.bubble::after { content: ""; position: absolute; left: calc(50% - 14px); bottom: -12px; width: 28px; height: 28px; background: var(--card); border-radius: 0 0 6px 0; transform: rotate(45deg); }
.bubble.pop { animation: pop 380ms var(--ease); }
.moments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.moment { border: 0; border-radius: 999px; padding: 14px 24px; font-size: clamp(16px, 1.2vw, 19px); background: rgba(18, 19, 20, .1); color: var(--ink); font-weight: 600; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.moment:hover { background: rgba(18, 19, 20, .18); }
.moment:active { transform: scale(.96); }
.moment.is-on { background: var(--ink); color: var(--yellow); }

.wardrobe { margin-top: clamp(88px, 10vw, 160px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: end; }
.wardrobe-text { grid-column: 1 / 5; display: grid; gap: 16px; }
.wardrobe-text p { max-width: 24ch; font-size: var(--t-body); }
.wardrobe-list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.wardrobe-list .spot { width: 100%; margin-bottom: 10px; }
.w-name { font-family: var(--wide); font-weight: 700; font-size: clamp(17px, 1.4vw, 24px); }
.w-how { font-size: clamp(15px, 1.1vw, 18px); color: rgba(18, 19, 20, .78); }

/* ── Training: the week on a full-width platform, then rows ── */
.week { margin-top: clamp(56px, 7vw, 104px); background: var(--rubber-2); border-radius: 32px; padding: clamp(22px, 3vw, 44px); display: grid; gap: clamp(20px, 2.4vw, 36px); }
.week-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.week-count { font-family: var(--wide); font-weight: 700; font-size: var(--t-quote); letter-spacing: -.02em; }
.week-count b { font-weight: 800; }
.week-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-size: clamp(15px, 1.15vw, 19px); font-weight: 600; background: var(--rubber-3); }
.pill-streak::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-bright); }
.pill-pass::before { content: ""; width: 10px; height: 12px; border-radius: 3px 3px 6px 6px; background: var(--yellow); }
.bar-week { margin: 0 auto; max-width: 1100px; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); max-width: 520px; width: 100%; margin: 0 auto; gap: 8px; }
.week-days li { aspect-ratio: 1; max-width: 48px; justify-self: center; width: 100%; display: grid; place-items: center; border-radius: 50%; font-weight: 600; font-size: var(--t-small); color: var(--on-rubber-muted); background: var(--rubber-3); }
.week-days .on { background: var(--green-bright); color: #fff; }
.week-days .today { outline: 2px solid var(--on-rubber); outline-offset: -2px; color: var(--on-rubber); background: transparent; }

.rows { margin-top: clamp(56px, 7vw, 104px); display: grid; gap: clamp(36px, 4vw, 56px); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 10px; align-items: baseline; }
.row dt { grid-column: 1 / 6; }
.row dd { grid-column: 7 / 13; max-width: 30ch; font-size: var(--t-body); }
.lights { display: flex; gap: 10px; margin-bottom: 14px; }
.lights i { width: clamp(30px, 2.6vw, 44px); height: clamp(30px, 2.6vw, 44px); border-radius: 50%; background: var(--rubber-3); transition: background-color 260ms var(--ease); }
.lights i.on { background: #fff; }

/* ── Friends: heading across, words on the left, the crew's screens on the right ── */
.friends { grid-template-rows: auto auto 1fr; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 40px); align-items: start; }
.friends-text { display: contents; }
.friends .h2 { grid-column: 1 / -1; }
.friends-text .body-lg, .friends-text .rows { grid-column: 1 / 6; }
.friends-text .rows { margin-top: 8px; }
.crew { grid-column: 7 / 13; grid-row: 2 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; margin-top: clamp(0px, 4vw, 56px); }
.rows-tight { gap: 28px; }
.rows-tight .row { grid-template-columns: 1fr; gap: 6px; }
.rows-tight .row dt, .rows-tight .row dd { grid-column: auto; }
.rows-tight .h3 { font-size: clamp(22px, 2.1vw, 34px); }
.card { background: var(--card); border-radius: 28px; padding: clamp(20px, 2vw, 32px); display: grid; gap: 16px; align-content: start; font-size: clamp(16px, 1.25vw, 20px); }
.card-title { font-weight: 600; font-size: var(--t-small); color: var(--muted); }
.live { grid-column: 1 / 3; }
.live-list { display: grid; gap: 12px; }
.live-list li, .feed-top { display: flex; align-items: center; gap: 12px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--wide); font-weight: 800; font-size: 14px; }
.live-list .avatar { outline: 3px solid var(--green-bright); outline-offset: 2px; }
.a-red { background: var(--red); } .a-blue { background: var(--blue); } .a-green { background: var(--green); }
.who { display: grid; font-weight: 600; flex: 1; min-width: 0; line-height: 1.3; }
.who small { font-weight: 400; font-size: var(--t-small); color: var(--muted); }
.tag { justify-self: start; border-radius: 6px; padding: 5px 10px; font-size: clamp(13px, 1vw, 16px); font-weight: 600; white-space: nowrap; }
.tag-gym { background: #E3EAFB; color: var(--blue-deep); }
.tag-pr { background: var(--yellow); color: var(--ink); }
.goal-n { font-family: var(--wide); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.goal-n b { font-size: clamp(34px, 3.4vw, 56px); letter-spacing: -.02em; }
.track { display: block; height: 12px; border-radius: 99px; background: var(--chalk-2); overflow: hidden; }
.track i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 99px; background: var(--blue); transform-origin: left; }
.board { display: grid; gap: 6px; }
.board li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.board li.me { background: #E3EAFB; color: var(--blue-deep); }
.feed-lift { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.feed-lift span:first-child { flex: 1; min-width: 7em; }
.feed-lift b { font-family: var(--wide); font-weight: 700; font-size: clamp(16px, 1.3vw, 21px); font-variant-numeric: tabular-nums; }
.cheers { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.cheer { border-radius: 999px; padding: 6px 12px; background: var(--chalk); font-weight: 600; font-size: var(--t-small); }
.cheer.is-on { background: #FFF1C2; }
.feed-train { margin-left: auto; font-weight: 600; font-size: var(--t-small); color: var(--red); }

/* ── Lock screen: the devices lead, the words answer beside them ── */
.lock { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 40px); align-items: center; }
.lock-text { display: contents; }
.lock .h2 { grid-column: 1 / -1; }
.lock-text .body-lg, .lock-text .rows { grid-column: 9 / 13; }
.lock-text .body-lg { grid-row: 2; align-self: end; }
.lock-text .body-lg { margin-top: 8px; }
.lock-text .rows { grid-row: 3; margin-top: 0; align-self: start; }
.lock { grid-template-rows: auto auto 1fr; }
.lock-devices { grid-column: 1 / 8; grid-row: 2 / span 2; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 36px); background: var(--rubber); border-radius: 32px; padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); margin-top: 8px; }
.lockphone { flex: none; width: min(320px, 56%); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 54px 14px 14px; background: var(--rubber); color: #F4F5F2; display: flex; flex-direction: column; align-items: center; outline: 10px solid #0B0D10; outline-offset: -1px; box-shadow: 0 0 0 1px #2A3039; }
.lp-time { font-size: clamp(56px, 5.6vw, 82px); font-weight: 400; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-date { font-size: 15px; color: #C3C7CD; margin-top: 8px; }
.notif { margin-top: auto; width: 100%; background: #2A3039; border-radius: 26px; padding: 16px 16px 14px; display: grid; gap: 4px; font-size: 14px; }
.n-app { display: flex; align-items: center; gap: 8px; color: #C3C7CD; font-size: 13px; }
.n-app img { width: 16px; height: 16px; }
.n-timer { margin-left: auto; color: #F4F5F2; font-weight: 600; font-variant-numeric: tabular-nums; }
.n-title { font-weight: 600; font-size: 16px; }
.n-text { color: #C3C7CD; }
.n-actions { display: flex; gap: 6px; margin-top: 8px; }
.n-actions span { flex: 1; text-align: center; padding: 9px 4px; border-radius: 999px; background: #3A414C; font-weight: 600; font-size: 13px; white-space: nowrap; }
.n-actions span:first-child { background: #DCE6FF; color: #0E2C70; }
.widget { flex: none; width: min(250px, 40%); background: var(--card); color: var(--ink); border-radius: 28px; padding: 18px; display: grid; gap: 12px; }
.wd-top { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.wd-top b { font-family: var(--wide); font-weight: 800; font-size: 22px; }
.wd-top span { margin-left: auto; font-weight: 600; color: var(--green); font-size: 13px; }
.wd-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.wd-bar i { height: 12px; border-radius: 4px; }
.wd-bar .r { background: var(--red); } .wd-bar .b { background: var(--blue); } .wd-bar .y { background: var(--yellow); } .wd-bar .o { background: var(--chalk-2); }
.wd-days { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.wd-days .on { color: var(--green); }
.wd-start { display: grid; place-items: center; min-height: 40px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; }

/* ── Bringing your history, and the rest of the kit ── */
.switch { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 40px); align-items: start; }
.switch-text { display: contents; }
.switch .h2 { grid-column: 1 / -1; }
.switch-text .body-lg { grid-column: 1 / 6; }
.exports { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.exports > div { background: var(--chalk-2); border-radius: 24px; padding: 24px 26px; display: grid; gap: 8px; align-content: start; }
.exports .h3 { font-size: clamp(24px, 2.4vw, 40px); }
.exports p { font-size: var(--t-body); }
.kit { margin-top: clamp(96px, 11vw, 176px); }
.kit-list { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
.kit-list > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 6px solid var(--ink); }
.kit-list dt { font-family: var(--wide); font-weight: 700; font-size: clamp(22px, 2.1vw, 34px); letter-spacing: -.02em; }
.kit-list dd { max-width: 24ch; font-size: var(--t-body); }

/* ── Download: the red plate ── */
.download { grid-template-rows: auto auto 1fr; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(24px, 3vw, 40px); align-items: start; }
.dl-main { display: contents; }
.download .h2 { grid-column: 1 / 11; grid-row: 1; }
.spot-dl { grid-column: 11 / 13; grid-row: 1; align-self: end; width: 100%; max-width: 230px; justify-self: end; }
.dl-main .body-lg { grid-column: 1 / 6; grid-row: 2; color: #fff; }
.dl-main > div.reveal:not(.spot) { grid-column: 1 / 6; grid-row: 3; }
.dl-main .meta { margin-top: 16px; }
.checksum { margin-top: 14px; font-size: var(--t-small); }
.checksum summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; width: fit-content; }
.checksum p { margin-top: 10px; }
.checksum code { font-size: 14px; word-break: break-all; background: rgba(0, 0, 0, .18); padding: 8px 10px; border-radius: 8px; display: inline-block; }
.dl-side { grid-column: 7 / 13; grid-row: 2 / span 2; display: grid; gap: 40px; align-content: start; }
.steps { display: grid; gap: 10px; }
.steps li { background: var(--red-press); border-radius: 22px; padding: clamp(18px, 1.6vw, 26px) clamp(22px, 2vw, 32px); font-size: var(--t-body); }
.steps strong { font-family: var(--wide); font-weight: 700; }
.play { display: grid; gap: 12px; }
.play .h3 { font-size: clamp(24px, 2.4vw, 40px); }
.play p { color: #fff; max-width: 30ch; font-size: var(--t-body); }

/* ── Privacy, then questions ── */
.qa { display: grid; gap: clamp(96px, 11vw, 176px); }
.qa-side { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 4vw, 56px); align-items: start; }
.qa-side .h2 { grid-column: 1 / -1; }
.promises { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.promises li { padding-top: 18px; border-top: 6px solid var(--red); }
.promises strong { display: block; font-family: var(--wide); font-weight: 700; font-size: clamp(22px, 2vw, 32px); line-height: 1.15; margin-bottom: 10px; }
.promises li { font-size: var(--t-body); }
.qa-side .text-link { grid-column: 1 / -1; }
.qa-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(32px, 4vw, 56px); }
.qa-main .h2 { grid-column: 1 / -1; }
.faq { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--gap); align-items: start; }
.faq details { background: var(--card); border-radius: 22px; padding: 4px 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: clamp(20px, 1.8vw, 28px) 0; font-weight: 600; font-size: clamp(18px, 1.6vw, 26px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 24px; max-width: 40ch; font-size: var(--t-body); }

/* ── Footer: the name, the width of the page ── */
.footer { padding: clamp(72px, 9vw, 140px) 0 36px; }
.footer-word { width: 100%; height: auto; overflow: visible; }
.footer-word text { font-family: var(--wide); font-weight: 800; font-size: 150px; fill: var(--on-rubber); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(28px, 3vw, 48px); font-size: clamp(16px, 1.2vw, 19px); color: var(--on-rubber-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--on-rubber); text-decoration: none; font-weight: 600; transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--yellow); }

/* ── Privacy policy page ── */
.policy { padding: clamp(48px, 8vw, 112px) 0 var(--section); }
.policy-head { display: grid; gap: 20px; max-width: 46rem; margin-bottom: clamp(48px, 6vw, 88px); }
.policy .display { font-size: clamp(40px, 7vw, 112px); white-space: normal; }
.policy-head .lead { color: var(--muted); }
.policy-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.policy-toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; font-size: 16px; }
.policy-toc a { color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 160ms var(--ease); }
.policy-toc a:hover { color: var(--ink); }
.policy-sections { display: grid; gap: clamp(48px, 5vw, 72px); max-width: 44rem; }
.policy-sections section { display: grid; gap: 16px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.policy-sections .h3 { font-size: clamp(22px, 2vw, 28px); }
.policy-sections ul { display: grid; gap: 10px; }
.policy-sections li { padding-left: 22px; position: relative; }
.policy-sections li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.policy-sections a:not(.btn) { color: var(--red); font-weight: 600; text-decoration: none; }
.policy-sections a:not(.btn):hover { color: var(--red-press); }
.policy-mail { justify-self: start; }
body > main.wrap .display { white-space: normal; font-size: clamp(40px, 8vw, 120px); }

/* ── Entrances: content is there on first paint; script only moves it in ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .track i { transform: scaleX(0); transition: transform 1100ms var(--ease) 300ms; }
.js .in .track i { transform: none; }
.js .hero .display { animation: rise 900ms var(--ease) both; }
.js .hero .display ~ * { animation: rise 900ms var(--ease) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

/* Sections below the first screen render when they're near. */
.section:not(.hero) { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* ── Tablet ── */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; }
  .console { grid-column: 1 / -1; max-width: 680px; margin-top: 56px; }
  .intro .body-lg { grid-column: 1 / 10; }
  .t-said, .t-log { grid-column: 1 / -1; }
  .transcript li { row-gap: 14px; }
  .after-text, .after-stage { grid-column: 1 / -1; }
  .wardrobe-text, .wardrobe-list { grid-column: 1 / -1; }
  .row dt { grid-column: 1 / 5; }
  .row dd { grid-column: 5 / 13; }
  .friends-text .body-lg, .friends-text .rows, .crew { grid-column: 1 / -1; grid-row: auto; }
  .crew { margin-top: 24px; }
  .lock-text .body-lg, .lock-text .rows, .lock-devices { grid-column: 1 / -1; grid-row: auto; }
  .switch-text .body-lg, .exports { grid-column: 1 / -1; }
  .kit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download .h2 { grid-column: 1 / 10; }
  .spot-dl { grid-column: 10 / 13; }
  .dl-main .body-lg, .dl-main > div.reveal:not(.spot), .dl-side { grid-column: 1 / -1; grid-row: auto; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

/* ── Phone: its own composition ── */
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .nav-row { gap: 12px; }
  .nav-bar { width: min(20vw, 84px); }
  .nb-sleeve { gap: 1px; }
  .nb-sleeve i { width: 4px; height: 22px; }
  .nb-sleeve i.p-green { width: 4px; height: 15px; }
  .nb-sleeve i.p-white { width: 3px; height: 11px; }
  .brand { font-size: 16px; gap: 7px; }
  .brand img { width: 26px; height: 26px; }
  .hero-copy { gap: 22px; }
  .actions .btn { width: 100%; }
  .console { border-radius: 26px; margin-top: 72px; }
  .spot-console { width: 116px; top: -70px; }
  .chip:nth-child(3) { display: none; }
  .t-log { padding: 14px 16px; flex-wrap: wrap; }
  .after-stage { padding: 20px 14px; border-radius: 26px; }
  .transcript li { border-radius: 22px; }
  .t-log { padding: 12px 14px; }
  .lock-devices { padding: 24px 16px; border-radius: 26px; }
  .wardrobe-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .row dt, .row dd { grid-column: 1 / -1; }
  .crew { grid-template-columns: minmax(0, 1fr); }
  .live { grid-column: auto; }
  .lock-devices { flex-direction: column; align-items: stretch; }
  .lockphone { width: min(320px, 100%); align-self: center; }
  .widget { width: 100%; margin: 0; }
  .exports { grid-template-columns: minmax(0, 1fr); }
  .kit-list { grid-template-columns: minmax(0, 1fr); }
  .download .h2 { grid-column: 1 / -1; }
  .spot-dl { grid-column: 1 / -1; grid-row: auto; justify-self: start; max-width: 150px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .faq details { padding: 2px 18px; }
  .policy-body { grid-template-columns: minmax(0, 1fr); }
  .policy-toc { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms linear; }
  .js .track i { transform: none; transition: none; }
  .js .hero .display, .js .hero .display ~ * { animation: none; }
  .plate.arrive, .logged.pop, .bubble.pop, .spot.pop, .mic.is-on, .nb-sleeve i.lit { animation: none; }
  .btn:active, .chip:active, .moment:active, .mic:active, .try-go:active { transform: none; }
}
