/* Commutez front page.
   Layout: full-width bands that alternate paper and near-black, each with a
   1200px inner column. Fonts and colours are the app's own (Palette.swift,
   Typography.swift); the page commits to that look in both OS themes. */

@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/SchibstedGrotesk.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f5f3ef;
  --paper-2: #ebe8e2;
  --ink: #11100f;
  --ink-2: #1a1916;
  --card-dark: #1d1c1a;
  --text-2: #3d3a35;
  --muted: #5f5c56;
  --muted-dark: #a39f98;
  --body-dark: #c9c5be;
  --hair: rgba(17, 16, 15, 0.14);
  --hair-dark: rgba(245, 243, 239, 0.16);
  --accent: #4a6fa5;
  --accent-on-dark: #86a5d3;
  --amber: #a8740a;
  --wall-home: #34404c;
  --wall-lock: #26303b;
  --island-bg: #e1ddd6;

  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --band: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: keeps position: sticky working in Safari */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-feature-settings: "ss04"; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ---------- bands ---------- */
.band { padding: var(--band) var(--gutter-r) var(--band) var(--gutter); }
.band.dark { background: var(--ink); color: var(--paper); }
.inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.intro { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.eyebrow { font-family: var(--mono); font-feature-settings: "ss04"; font-size: 13px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.dark .eyebrow { color: var(--muted-dark); }
.h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
.lede { font-size: 19px; color: var(--text-2); max-width: 52ch; }
.dark .lede { color: var(--body-dark); }

/* ---------- header ---------- */
.top { padding: 20px var(--gutter-r) 20px var(--gutter); }
.top .row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.lang a { text-decoration: none; color: var(--muted); padding: 10px 2px; }
.lang a:hover { color: var(--accent); }
.lang a[aria-current="page"] { color: var(--ink-2); text-decoration: underline; text-underline-offset: 5px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 14px 26px;
  border-radius: 10px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 500; font-size: 17px;
}
.btn:hover { color: var(--paper); background: #2a2826; }
.btn.small { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 8px; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #fff; color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 104px) var(--gutter-r) clamp(56px, 8vw, 120px) var(--gutter); }
.hero .inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }
.hero .lede { font-size: clamp(18px, 1.6vw, 22px); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-row .link { font-size: 16px; text-underline-offset: 4px; }
.note { font-family: var(--mono); font-feature-settings: "ss04"; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.hero-tile { flex: 0 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tile {
  --tile-bg: var(--paper); --tile-fg: #111; --tile-dim: rgba(0,0,0,.4); --tile-box: rgba(0,0,0,.1); --tile-box-fg: rgba(0,0,0,.6);
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; border-radius: 22%;
  background: var(--tile-bg); color: var(--tile-fg);
  border: 1px solid rgba(17,16,15,.08);
  box-shadow: 0 1px 0 rgba(17,16,15,.06), 0 30px 60px -20px rgba(17,16,15,.28);
  transition: background .4s ease, color .4s ease;
}
.is-urgent .tile { --tile-bg: var(--accent); --tile-fg: #fff; --tile-dim: rgba(255,255,255,.6); --tile-box: rgba(255,255,255,.22); --tile-box-fg: #fff; }
.tile .box { position: absolute; top: 9%; left: 9%; width: 13%; aspect-ratio: 1; border-radius: 22%; background: var(--tile-box); color: var(--tile-box-fg); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: clamp(14px, 1.6vw, 20px); }
.tile .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: clamp(120px, 15vw, 200px); letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .next { position: absolute; right: 8%; bottom: 7%; font-family: var(--mono); font-size: clamp(18px, 2vw, 26px); color: var(--tile-dim); }
/* scale the tile's type with the tile itself where supported */
@supports (container-type: inline-size) {
  .tile { container-type: inline-size; }
  .tile .num { font-size: 52cqw; }
  .tile .next { font-size: 6.8cqw; }
  .tile .box { font-size: 5.2cqw; }
}
.legend { font-family: var(--mono); font-feature-settings: "ss04"; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-align: center; }

/* ---------- one number: surface tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid rgba(245,243,239,.12); }
.tabs button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 0; min-height: 48px; cursor: pointer; font: inherit; font-family: var(--mono);
  font-size: 13px; letter-spacing: 0.08em; color: var(--muted-dark); text-transform: uppercase;
}
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--paper); }
.tabs button:hover { color: var(--paper); }
.surface { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 96px); }
.surface-copy { flex: 1 1 340px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.surface-copy .step { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--accent-on-dark); }
.surface-copy h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; }
.surface-copy p { font-size: 18px; color: var(--body-dark); }
.stage { flex: 1 1 520px; min-width: 0; min-height: 640px; display: flex; align-items: center; justify-content: center; }
.panel[hidden] { display: none !important; }

.phone { width: 300px; max-width: 100%; border-radius: 50px; background: #2a2826; padding: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.phone .screen { border-radius: 40px; overflow: hidden; aspect-ratio: 1206 / 2622; position: relative; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .screen .urgent-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.is-urgent .phone .screen .urgent-shot { opacity: 1; }

.shot-stack { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.shot-card { border-radius: 28px; padding: 18px; background: var(--wall-home); position: relative; }
.shot-card.lock { background: var(--wall-lock); }
.shot-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: rgba(255,255,255,.7); margin-bottom: 12px; display: block; }
.shot-card .img-wrap { position: relative; }
.shot-card img { width: 100%; }
.shot-card .widget img { border-radius: 6.2% / 13.2%; }
.shot-card .widget .urgent-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.is-urgent .shot-card .widget .urgent-shot { opacity: 1; }
.shot-card .la img { border-radius: 6.3% / 23%; }
.caption-dark { font-size: 14px; color: var(--muted-dark); text-align: center; }

/* Drawn surfaces (no screenshot): island and watch */
.island-demo { width: 300px; max-width: 100%; border-radius: 50px; background: #2a2826; padding: 10px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.island-demo .screen { border-radius: 40px; background: #e9e6e0; padding: 10px; display: flex; flex-direction: column; gap: 22px; min-height: 600px; }
.island-x { border-radius: 34px; background: #000; color: var(--paper); padding: 16px 20px 14px; display: flex; flex-direction: column; gap: 10px; }
.island-x .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.cap { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted-dark); text-transform: uppercase; display: block; }
.island-x .big { font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
/* Like the apps: the Live Activity and Dynamic Island keep their colours
   when it's time to go; the watch face turns blue. */
.watch .face { transition: background .4s ease; }
.is-urgent .watch .face { background: var(--accent); }
.is-urgent .watch .cap { color: rgba(255,255,255,.8); }
.island-x .ride { font-size: 13px; font-weight: 500; }
.island-x .line { font-family: var(--mono); font-size: 10px; color: var(--muted-dark); }
.pills { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pills .cap { color: var(--muted); font-size: 10px; }
.pill { width: 190px; height: 34px; border-radius: 17px; background: #000; color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 14px; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.pill.flip { padding: 0 14px 0 8px; }
.badge { background: var(--accent); border-radius: 6px; padding: 2px 7px; font-weight: 500; }
.ghost-lines { display: flex; flex-direction: column; gap: 10px; padding: 8px 12px; opacity: .5; }
.ghost-lines span { height: 12px; border-radius: 6px; background: #c9c5be; }

.watch { display: flex; align-items: center; }
.watch .case { width: 224px; height: 268px; border-radius: 60px; background: #2a2826; padding: 12px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.watch .face { height: 100%; border-radius: 48px; background: #000; color: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.watch .cap { color: var(--accent-on-dark); font-size: 10px; }
.watch .big { font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: 88px; line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.watch .crown { width: 9px; height: 46px; border-radius: 0 5px 5px 0; background: #3a3734; }

/* ---------- a normal day: time × surface grid ---------- */
.day-scroll { overflow-x: auto; padding-bottom: 8px; }
.day { min-width: 1080px; display: flex; flex-direction: column; gap: 28px; }
.day-row { display: grid; grid-template-columns: 200px repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.day-row + .day-row { padding-top: 24px; border-top: 1px solid var(--hair); }
.day-row.head { align-items: start; }
.col-head .t { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--accent); line-height: 1; display: block; }
.col-head strong { display: block; font-size: 16px; font-weight: 600; margin-top: 6px; }
.col-head span { display: block; font-size: 14px; color: var(--text-2); line-height: 1.4; margin-top: 4px; }
.row-head .cap { color: var(--accent); font-size: 12px; }
.row-head strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; margin-top: 8px; }
.row-head span:last-child { display: block; font-size: 14px; color: var(--text-2); margin-top: 8px; }

.moment { margin: 0; min-width: 0; }
.moment figcaption { display: none; }
.cell { border-radius: 20px; padding: 10px; }
.cell.isl { height: 120px; background: var(--island-bg); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cell.isl .pill { width: 160px; height: 32px; }
.cell.isl .ghost-lines { width: 100%; padding: 0 8px; gap: 8px; }
.cell.isl .ghost-lines span { height: 9px; border-radius: 5px; }
.cell.lock { height: 210px; background: var(--wall-lock); color: #fff; padding: 14px 10px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cell.lock .clock { font-size: 36px; font-weight: 600; line-height: 1; }
.cell.lock .grow { flex: 1; }
.notif { width: 100%; border-radius: 14px; background: rgba(245,243,239,.92); color: var(--ink-2); padding: 8px 10px; display: flex; gap: 8px; align-items: center; font-size: 10px; line-height: 1.3; }
.notif img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.notif strong { display: block; font-weight: 600; }
.late { color: var(--amber); font-family: var(--mono); }
.la-mini { width: 100%; border-radius: 16px; background: var(--ink); padding: 9px 12px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.la-mini .cap { font-size: 8px; }
.la-mini .big { font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: 24px; line-height: 1; color: var(--paper); }
.la-mini .big.hot { color: var(--accent-on-dark); }
.la-mini .right { text-align: right; min-width: 0; }
.la-mini .right .cap { font-size: 7px; }
.la-mini .right b { font-size: 11px; font-weight: 500; color: #fff; }

.cell.home { height: 236px; background: var(--wall-home); padding: 12px 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 100px 100px; gap: 12px; }
.w { border-radius: 20px; background: var(--paper); color: #111; --dim: rgba(0,0,0,.4); --faint: rgba(0,0,0,.32); --hi: var(--accent); --box: rgba(0,0,0,.1); }
.w.hot { background: var(--accent); color: #fff; --dim: rgba(255,255,255,.6); --faint: rgba(255,255,255,.5); --hi: #fff; --box: rgba(255,255,255,.22); }
.w.sq { position: relative; }
.w.sq .box { position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--box); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 7px; font-weight: 500; }
.w.sq .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: 46px; }
.w.sq .nx { position: absolute; right: 7px; bottom: 5px; font-family: var(--mono); font-size: 9px; color: var(--dim); }
.w.board { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; font-family: var(--mono); }
.w.board .ph { font-size: 6px; letter-spacing: .1em; color: var(--accent); line-height: 1.4; }
.w.board .n { font-weight: 300; font-size: 30px; line-height: 1; }
.w.board .n small { font-family: var(--sans); font-size: 9px; font-weight: 500; color: var(--dim); }
.w.board .bd { font-size: 6px; letter-spacing: .06em; color: rgba(0,0,0,.45); }
.w.board .stop { font-size: 7px; font-weight: 500; letter-spacing: .06em; }
.icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 4px; }
.icons span { border-radius: 11px; background: rgba(255,255,255,.16); }
.w.wide { grid-column: span 2; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.w.wide .top-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.w.wide .n { font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 300; font-size: 28px; line-height: 1; }
.w.wide .n small { font-family: var(--sans); font-size: 10px; color: var(--dim); }
.w.wide .meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.w.wide .meta .cap { font-size: 7px; color: var(--dim); }
.w.wide .meta span:last-child { font-size: 9px; color: var(--dim); }
.w.wide .meta .ph { color: var(--accent); }
.strip { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.strip b { font-weight: 500; color: var(--hi); }
.strip i { flex: 1; height: 2px; background: var(--faint); position: relative; }
.strip i.fill::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 15%; background: var(--accent); }

.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 20px 24px; border-radius: 16px; background: var(--paper-2); }
.choices .lead { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.choices .lead strong { font-size: 17px; font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.toggle.off { color: var(--muted); }
.switch { width: 28px; height: 16px; border-radius: 8px; background: var(--accent); position: relative; display: inline-block; }
.switch::after { content: ""; position: absolute; top: 2px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.off .switch { background: #c9c5be; }
.off .switch::after { left: 2px; }
/* "Show me": pick which surfaces the day walks through */
.day-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 8px; }
.day-filter .eyebrow { flex: 1 1 100%; }
button.toggle { appearance: none; background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; font: inherit; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
button.toggle:hover { color: var(--accent); }
.toggle[aria-pressed="false"] { color: var(--muted); }
.toggle[aria-pressed="false"] .switch { background: #c9c5be; }
.toggle[aria-pressed="false"] .switch::after { left: 2px; }
.switch::after { transition: left .2s ease; }
.filter-note { flex: 1 1 100%; font-size: 14px; color: var(--muted); max-width: 60ch; }
.day-row.is-off { display: none !important; }
.closing { font-size: 17px; color: var(--text-2); max-width: 60ch; padding-top: 8px; border-top: 1px solid var(--hair); }

/* ---------- week ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card-dark); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { font-size: 16px; color: var(--body-dark); }
.card .meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-dark); }
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-family: var(--mono); font-size: 10px; text-align: center; }
.weekgrid div { display: flex; flex-direction: column; gap: 4px; }
.weekgrid span:first-child { color: var(--muted-dark); letter-spacing: .08em; }
.weekgrid span:last-child { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 8px 0; line-height: 1.5; }
.weekgrid .off span:last-child { background: transparent; color: #7a766f; }
.flex { display: flex; align-items: baseline; gap: 10px; min-height: 86px; }
.flex .n { font-family: var(--mono); font-weight: 300; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--accent-on-dark); }
.flex .u { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted-dark); }
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-align: center; min-height: 86px; align-items: center; }
.dir span { padding-bottom: 10px; border-bottom: 1px solid #4a4743; color: var(--muted-dark); }
.dir span.on { border-bottom-color: var(--paper); color: var(--paper); }

/* ---------- details ---------- */
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 40px; }
.detail { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--ink-2); padding-top: 20px; }
.detail h3 { font-size: 21px; font-weight: 600; }
.detail p { font-size: 16px; color: var(--text-2); }
.rows { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; display: flex; flex-direction: column; gap: 8px; text-transform: uppercase; }
.rows div { display: flex; justify-content: space-between; gap: 12px; }
.rows .grey { color: #8a867f; }
.rows .dim { color: var(--muted); }
.stripe { display: flex; align-items: center; gap: 10px; }
.stripe::before { content: ""; width: 5px; height: 34px; border-radius: 2px; background: var(--accent); }

/* ---------- privacy ---------- */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; }
.split > div:first-child { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.facts { flex: 1 1 340px; min-width: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair-dark); }
.facts div:last-child { border-bottom: 1px solid var(--hair-dark); }
.facts span:first-child { color: var(--muted-dark); }
.facts span:last-child { text-align: right; }
.dark .text-link { color: var(--paper); text-underline-offset: 4px; }
.dark .text-link:hover { color: var(--accent-on-dark); }

/* ---------- countries ---------- */
.countries { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink-2); }
.countries div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.countries .code { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.countries strong { font-size: 22px; font-weight: 600; }
.countries span:nth-child(3) { font-size: 15px; color: var(--text-2); }
.countries .src { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* ---------- get it ---------- */
.get { padding: 0 var(--gutter-r) var(--band) var(--gutter); }
.get .box { max-width: 1200px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 48px; }
.get .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.get .copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.get h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.get p { font-size: 18px; color: var(--body-dark); max-width: 46ch; }
.get .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.get .soon { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted-dark); text-transform: uppercase; }
.get .soon a { text-transform: none; letter-spacing: 0; }
.get .count { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-feature-settings: "ss04"; }
.get .count .n { font-weight: 300; font-size: clamp(96px, 12vw, 168px); line-height: .9; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.is-urgent .get .count .n { color: var(--accent-on-dark); }
.get .count .u { font-size: 20px; color: var(--muted-dark); }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--hair-dark); }
.stages div { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 6px; border-top: 2px solid transparent; margin-top: -1px; }
.stages div.done { border-top-color: var(--muted-dark); }
.stages div.now { border-top-color: var(--accent-on-dark); }
.stages .cap { font-size: 11px; color: var(--muted-dark); }
.stages .now .cap { color: var(--accent-on-dark); }
.stages strong { font-size: 19px; font-weight: 600; }
.stages div:not(.now):not(.done) strong { color: var(--muted-dark); }
.stages span:last-child { font-size: 15px; color: var(--muted-dark); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--muted-dark); padding: 48px var(--gutter-r) 48px var(--gutter); font-size: 14px; }
.foot .row { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; }
.foot .brand { color: var(--paper); font-size: 16px; }
.foot .brand img { width: 28px; height: 28px; border-radius: 6px; }
.foot p { max-width: 60ch; line-height: 1.6; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--paper); }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .stage { min-height: 0; }
}

/* ---------- phone: one screen per notch ----------
   Desktop ignores all of this. On a phone the page snaps hard, one screen
   at a time. Chapters with more than a screen of content are pinned stages
   that step in place: "One number" (5 surfaces) and "A normal Tuesday"
   (3 surfaces × 4 times). home.js adds the snap points and scroll room
   (.snap-pt, .step-track) and picks what each stage shows. */

/* Desktop: phone-only helpers stay out of the way. */
.day-pin, .day-end { display: contents; }
.day-steps, .step-track, .snap-pt, .t-short { display: none; }

@media (max-width: 760px) {
  :root { --bar: 56px; --screen: calc(100vh - var(--bar)); }
  @supports (height: 100svh) { :root { --screen: calc(100svh - var(--bar)); } }
  html { scroll-snap-type: y mandatory; scroll-padding-top: var(--bar); }
  .t-long, .hide-phone { display: none; }
  .t-short { display: inline; }

  /* thin bar instead of the full header */
  .top { position: sticky; top: 0; z-index: 20; height: var(--bar); padding-block: 0; background: var(--paper); border-bottom: 1px solid var(--hair); }
  .top .row { height: 100%; flex-wrap: nowrap; }
  .top .brand { font-size: 0; gap: 0; }
  .brand img { width: 30px; height: 30px; border-radius: 7px; }
  .nav { flex-wrap: nowrap; gap: 14px; }
  .nav > a:not(.btn) { display: none; }
  .btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; white-space: nowrap; }

  .snap-pt { display: block; position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; pointer-events: none; }
  .step-track { display: block; }

  /* 1 · hero: one screen */
  .hero { height: var(--screen); padding-block: 16px; display: flex; align-items: center; scroll-snap-align: start; scroll-snap-stop: always; }
  .hero .inner { width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 22px; }
  .hero-copy { flex: none; gap: 16px; }
  .hero h1 { font-size: clamp(44px, 13vw, 60px); }
  .hero .lede { font-size: 17px; }
  .cta-row .link, .hero .note { display: none; }
  .hero-tile { flex: none; gap: 8px; }
  .tile { max-width: clamp(120px, calc(var(--screen) - 470px), 220px); }

  /* 2 · one number: pinned, 5 steps */
  #how { position: relative; padding-top: 0; padding-bottom: 0; }
  #how > .inner { position: sticky; top: var(--bar); height: var(--screen); gap: 14px; justify-content: center; padding-block: 16px; }
  #how .intro { gap: 8px; }
  #how .h2 { font-size: clamp(30px, 8.5vw, 38px); }
  .tabs { flex-wrap: nowrap; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; font-size: 11px; min-height: 40px; }
  .surface { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .surface-copy { flex: none; max-width: none; gap: 0; }
  .surface-copy .step, .surface-copy h3 { display: none; }
  .surface-copy p { font-size: 16px; }
  .stage { flex: none; min-height: 0; }
  .phone { width: fit-content; padding: 6px; border-radius: 30px; }
  .phone .screen { height: max(150px, calc(var(--screen) - 300px)); width: auto; border-radius: 24px; }
  .shot-stack { gap: 10px; }
  .island-demo { width: 100%; }
  .island-demo .screen { min-height: 0; gap: 16px; }
  .island-demo .ghost-lines { display: none; }
  .watch .case { width: 180px; height: 216px; border-radius: 50px; }
  .watch .face { border-radius: 40px; }
  .watch .big { font-size: 70px; }

  /* 3 · a normal day: intro screen, pinned stage of 12 steps, closing screen */
  #day { padding-top: 0; padding-bottom: 0; }
  #day > .inner { gap: 0; }
  #day .intro { min-height: var(--screen); justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
  .day-scroll { overflow: visible; padding-bottom: 0; position: relative; }
  .day {
    min-width: 0; height: var(--screen); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
    position: sticky; top: var(--bar); background: var(--paper);
  }
  .day-row.head { display: none; }
  .day-row:not(.head) { grid-area: 1 / 1; display: block; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .day-row.is-current { opacity: 1; pointer-events: auto; }
  .day-row + .day-row { padding-top: 0; border-top: 0; }
  .day-pin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row-head { grid-row: 1; }
  .row-head strong { font-size: 24px; }
  .row-head span:last-child { display: none; }
  .moment { grid-row: 2; grid-column: 1; width: 100%; max-width: 400px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .moment.is-active { opacity: 1; pointer-events: auto; }
  .moment figcaption { display: flex; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 500; margin-bottom: 10px; min-height: 2.6em; }
  .moment figcaption b { font-family: var(--mono); font-feature-settings: "ss04"; font-weight: 500; font-size: 16px; color: var(--accent); }
  .day-steps { grid-row: 3; display: flex; align-items: center; gap: 8px; }
  .day-steps span { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); transition: background .3s ease, width .3s ease; }
  .day-steps span.on { width: 22px; border-radius: 4px; background: var(--accent); }
  .day-end { display: flex; flex-direction: column; justify-content: center; gap: 24px; min-height: var(--screen); scroll-snap-align: start; scroll-snap-stop: always; }
  .choices { gap: 12px 20px; padding: 18px 20px; }
  .closing { border-top: 0; padding-top: 0; }

  /* 4–8 · not rebuilt yet: a notch at each block so nothing is skipped */
  .band:not(#how):not(#day) .intro, .cards > *, .details > *, .split > div:first-child, .facts, .countries, .get .box { scroll-snap-align: start; }
  .foot { scroll-snap-align: end; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .moment, .day-steps span, .day-row { transition: none; }
}
