/* RABITS: Indonesian product page.
   Layout: full-bleed tiles that alternate the app's own two worlds, its dark mode (night) and its light
   mode (sand/paper), so the phone screenshots sit on the same ground they were designed for.
   One accent, the app's orange. The page commits to this single look in every viewer theme. */

:root {
  color-scheme: light;
  /* colour, sampled from the app screenshots */
  --night: #161514;          /* app dark background */
  --night-card: #242220;     /* app dark card */
  --night-line: #3a3633;
  --on-night: #f5f3f0;
  --on-night-2: #c9c4bf;
  --on-night-muted: #a8a29e;
  --sand: #f3f2f0;           /* app light background */
  --paper: #ffffff;
  --ink: #1c1a18;
  --ink-2: #45403c;
  --muted: #6b6560;
  --line: #e4e1dd;
  --orange: #ff6a42;         /* app accent: buttons, marks on dark */
  --orange-ink: #bf3d1b;     /* the same hue, dark enough for text on light */
  --orange-tint: #fce9e4;
  --series: #d94a22;         /* chart marks on white */
  --sleep: #6494ad;
  /* type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  /* shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --pill: 9999px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);         /* shows only behind the sticky bar; every section paints its own ground */
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--orange-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 15px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ---------- type ---------- */
h1 { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
h2 { font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.tagline { font-size: 28px; font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.fine { font-size: 13px; line-height: 1.45; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 24px; border: 1px solid transparent; border-radius: var(--pill);
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--orange); color: var(--night); }
.btn-primary:hover { background: #ff7f5c; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: rgba(28, 26, 24, 0.06); }
.tile-night .btn-secondary { border-color: rgba(245, 243, 240, 0.45); color: var(--on-night); }
.tile-night .btn-secondary:hover { background: rgba(245, 243, 240, 0.08); }
.btn-sm { min-height: 32px; padding: 6px 15px; font-size: 14px; }
.btn-utility {
  min-height: 34px; padding: 6px 15px; border: 0; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip {
  min-height: 34px; padding: 7px 16px; border: 1px solid var(--night-line); border-radius: var(--pill);
  background: var(--night-card); color: var(--on-night); font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--on-night-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.center .cta-row { justify-content: center; }

/* ---------- navigation ---------- */
.globalnav { background: #000; color: #fff; }
.globalnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand img { width: 18px; height: auto; }
.globalnav nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.globalnav nav a { color: #fff; opacity: 0.84; font-size: 13px; line-height: 44px; }
.globalnav nav a:hover { opacity: 1; text-decoration: none; }

.subnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(22, 21, 20, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(245, 243, 240, 0.1);
}
.subnav .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 20px; height: 54px; }
.subnav-title { color: var(--on-night); font-size: 20px; font-weight: 800; letter-spacing: 0.04em; }
.subnav-title:hover { text-decoration: none; }
.subnav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.subnav-links a:not(.btn) { color: var(--on-night-2); font-size: 14px; font-weight: 500; }
.subnav-links a:not(.btn):hover { color: var(--on-night); text-decoration: none; }

/* ---------- tiles ---------- */
.tile { padding-block: 96px; }
.tile[id] { scroll-margin-top: 54px; }
.tile-paper { background: var(--paper); }
.tile-sand { background: var(--sand); }
.tile-night { background: var(--night); color: var(--on-night); }
.tile-night .lead { color: var(--on-night-2); }
.tile-night .fine { color: var(--on-night-muted); }
.tile-night .eyebrow { color: var(--orange); }
.tile-night a:not(.btn) { color: var(--orange); }
.head { display: flex; flex-direction: column; gap: 14px; }

/* ---------- phone frame ---------- */
.phone {
  position: relative; display: block; width: min(100%, 300px); max-width: 100%;
  padding: 8px; border-radius: 42px; background: #0b0a0a;
  box-shadow: 0 0 0 1px #3a3633, 0 28px 60px -24px rgba(0, 0, 0, 0.5);
}
.phone > img, .phone > video { width: 100%; height: auto; aspect-ratio: 540 / 1200; object-fit: cover; border-radius: 34px; background: var(--night); }
.phone-sm { width: min(100%, 250px); border-radius: 36px; padding: 7px; }
.phone-sm > img { border-radius: 29px; }
.phone-light > img { background: var(--sand); }
.video-toggle {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  min-height: 36px; padding: 7px 14px; border: 0; border-radius: var(--pill);
  background: rgba(22, 21, 20, 0.72); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* ---------- 1. hero ---------- */
.hero { padding-block: 56px; overflow: hidden; }
/* wide: words on the left, the device on the right. Narrow: name and promise, then the device, then the details. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); grid-template-areas: "top stage" "bottom stage";
  gap: 20px clamp(24px, 5vw, 64px); align-content: center;
}
.hero-top { grid-area: top; align-self: end; }
.hero-bottom { grid-area: bottom; align-self: start; }
.hero-stage { grid-area: stage; align-self: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero-copy h1 { color: var(--on-night); }
.hero-copy .tagline { color: var(--on-night); }
.hero-sub { color: var(--on-night-2); max-width: 34em; }
.hero-copy .cta-row { margin-top: 2px; }
.badge-new {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: var(--pill);
  background: rgba(255, 106, 66, 0.12); border: 1px solid rgba(255, 106, 66, 0.35);
  font-size: 14px; font-weight: 600;
}
.tile-night a.badge-new { color: var(--on-night); }
.badge-new:hover { text-decoration: none; border-color: var(--orange); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--orange);
  opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage { position: relative; width: 100%; aspect-ratio: 3.7 / 4.15; max-width: 100%; overflow: hidden; touch-action: pan-y; }
.scene { position: absolute; left: 50%; top: 50%; width: 0; height: 0; will-change: transform; }
.part, .callout-line, .callout { position: absolute; left: 0; top: 0; }
.part { will-change: transform; }
.part img {
  position: absolute; left: 0; top: 0; max-width: none;
  filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.38));
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.callout-line { height: 0; border-top: 1px solid rgba(255, 106, 66, 0.45); pointer-events: none; }
.callout { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; pointer-events: none; }
.callout .n { font-size: 12px; font-weight: 700; color: var(--orange); font-variant-numeric: tabular-nums; }
.callout .t { font-size: 14px; font-weight: 600; line-height: 1; color: var(--on-night); }

/* ---------- 2. one app for the day ---------- */
.day { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px clamp(32px, 6vw, 88px); align-items: center; }
.day-phone { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.day-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.day-list { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.day-list a {
  display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.day-list a:hover { text-decoration: none; background: rgba(255, 106, 66, 0.05); }
.day-list .when { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.day-list .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-list strong { font-size: 18px; font-weight: 700; }
.day-list .what > span { color: var(--ink-2); font-size: 15px; }
.day-list .go { font-size: 26px; line-height: 1; color: var(--orange-ink); transition: transform .2s var(--ease); }
.day-list a:hover .go { transform: translateX(4px); }
.tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--pill); vertical-align: 2px;
  background: var(--orange-tint); color: var(--orange-ink); font-size: 12px; font-style: normal; font-weight: 700;
}

/* ---------- 3. walking and running ---------- */
.walk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px clamp(32px, 6vw, 88px); align-items: center; }
.walk-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.walk-phone { display: flex; justify-content: center; }
.eyebrow-new { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: var(--pill); background: rgba(255, 106, 66, 0.14); }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 28px; color: var(--on-night-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}
.note-line { margin-top: 8px; padding: 12px 16px; border-radius: var(--r-md); background: var(--night-card); color: var(--on-night-2); font-size: 15px; }

.session {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: 72px;
  border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden; background: var(--night-card);
}
.session-map { padding: 20px; border-right: 1px solid var(--night-line); }
.route { width: 100%; height: auto; display: block; }
.route-grid path { stroke: var(--night-line); stroke-width: 1; }
.route-line { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 0; }
.route-start { fill: var(--night-card); stroke: var(--on-night); stroke-width: 3; }
.route-end { fill: var(--orange); stroke: var(--night-card); stroke-width: 3; }
.route-runner { fill: var(--orange); opacity: 0; }
.route-scale path { stroke: var(--on-night-muted); stroke-width: 1.5; }
.route-scale text { fill: var(--on-night-muted); font: 600 12px var(--font); }
.session-stats { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 28px clamp(20px, 4vw, 40px); }
.session-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.stats dt { font-size: 14px; color: var(--on-night-muted); }
.stats dd { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats small { font-size: 15px; font-weight: 500; color: var(--on-night-muted); letter-spacing: 0; }

/* screenshot rows */
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 56px; }
.screen {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 8px;
  border: 0; background: none; color: inherit; text-align: center; cursor: zoom-in;
}
.screen .phone { margin-bottom: 14px; transition: transform .35s var(--ease); }
.screen:hover .phone { transform: translateY(-6px); }
.screen strong { font-size: 19px; font-weight: 700; }
.screen > span:last-child { color: var(--ink-2); font-size: 15px; max-width: 18em; }
.tile-night .screen > span:last-child { color: var(--on-night-2); }

/* ---------- 5. vital signs ---------- */
.pulse { display: block; width: 100%; height: 72px; margin: 40px 0 8px; overflow: visible; }
.pulse-base { stroke: var(--night-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pulse-line { stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140 860; stroke-dashoffset: 0; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.mode {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
  padding: 24px; border-radius: var(--r-lg); background: var(--night-card); border: 1px solid var(--night-line);
}
.mode .phone { width: min(100%, 230px); justify-self: center; border-radius: 34px; padding: 7px; }
.mode .phone > video { border-radius: 27px; }
.mode .video-toggle { right: 14px; bottom: 14px; }
.mode-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mode-copy p:not(.eyebrow) { color: var(--on-night-2); font-size: 16px; }
.bridge { margin: 40px auto 0; max-width: 46rem; text-align: center; color: var(--on-night-2); }

/* ---------- 7. games ---------- */
.games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; margin-top: 48px; }
.game { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.game-wide { grid-column: span 3; }
.game-shot { padding: 0; border: 0; background: #000; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; }
.game-shot img { width: 100%; transition: transform .4s var(--ease); }
.game-shot:hover img { transform: scale(1.03); }
.game h3 { margin-top: 6px; }
.game p { color: var(--on-night-2); font-size: 16px; }

/* ---------- 8. the device ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr); gap: 48px clamp(32px, 6vw, 80px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.split-copy > p:not(.lead) { color: var(--ink-2); }
.clip { width: min(100%, 340px); justify-self: center; }
.clip video { width: 100%; height: auto; border-radius: var(--r-lg); background: #000; }
.clip figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.card { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 6px 20px; align-items: baseline; padding: 16px 20px; border-radius: var(--r-md); background: var(--sand); }
.card h3 { font-size: 17px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- 9. accuracy charts ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.chart { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 26px; border-radius: var(--r-lg); background: var(--paper); }
.chart h3 { font-size: 21px; }
.chart-sub { font-size: 14px; color: var(--muted); }
.chart-big { margin-top: 12px; font-size: 46px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chart-big small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: 0; color: var(--muted); }
.plot { position: relative; margin-top: 20px; }
.plot-rows { display: flex; flex-direction: column; gap: 22px; padding-block: 14px; }
.plot-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 76px; align-items: center; gap: 12px; outline-offset: 6px; }
.plot-row > .name { font-size: 14px; color: var(--ink-2); line-height: 1.25; }
.plot-row > .value { font-size: 17px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 24px; }
.grid { position: absolute; inset: 0; pointer-events: none; }
.grid i { position: absolute; top: -14px; bottom: -14px; width: 1px; background: #f0eeeb; }
.grid i.zero { background: #d6d2cd; }
.bar { position: absolute; left: 0; top: 2px; height: 20px; background: var(--series); border-radius: 0 4px 4px 0; transform-origin: left center; transition: transform .9s var(--ease), filter .15s ease; }
.whisker { position: absolute; top: 11px; height: 2px; background: var(--ink); }
.whisker::before, .whisker::after { content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: var(--ink); }
.whisker::before { left: 0; }
.whisker::after { right: 0; }
.range { position: absolute; top: 11px; height: 2px; background: #b9b3ad; }
.range::before, .range::after { content: ""; position: absolute; top: -6px; width: 2px; height: 14px; background: #b9b3ad; }
.range::before { left: 0; }
.range::after { right: 0; }
.iqr { position: absolute; top: 7px; height: 10px; border-radius: 2px; background: var(--series); }
.dot { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.plot-row:hover .bar, .plot-row:focus-visible .bar, .plot-row:hover .iqr, .plot-row:focus-visible .iqr { filter: brightness(1.12); }
.axis { position: relative; height: 20px; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.axis span { position: absolute; top: 4px; transform: translateX(-50%); }
.axis-title { margin-top: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.plot-bars .axis, .plot-bars .axis-title { margin-left: 124px; margin-right: 88px; }
.plot-single .plot-row { grid-template-columns: minmax(0, 1fr); }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 2;
  width: max-content; max-width: min(260px, 80vw); padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; text-align: left;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.tip b { display: block; font-size: 14px; font-weight: 700; }
.plot-row:hover .tip, .plot-row:focus-visible .tip { opacity: 1; }
.chart-note { margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.numbers { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 14px; }
.numbers caption { caption-side: top; text-align: left; padding-bottom: 12px; font-size: 17px; font-weight: 700; color: var(--ink); }
.numbers th, .numbers td { padding: 10px 12px 10px 0; border-top: 1px solid #dcd8d3; text-align: left; vertical-align: top; }
.numbers thead th { border-top: 0; font-weight: 500; color: var(--muted); }
.numbers tbody th { font-weight: 700; }
.numbers td { font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.plain { display: flex; flex-direction: column; gap: 10px; max-width: 46rem; margin: 40px auto 0; }
.plain li { position: relative; padding-left: 18px; color: var(--ink-2); }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- 10. what you should know ---------- */
#info h2 { font-size: 34px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.facts li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--orange); }
.facts h3 { font-size: 18px; }
.facts p { color: var(--ink-2); font-size: 15px; }

/* ---------- 11. contact ---------- */
.closing .wrap-text { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing .cta-row { margin-top: 8px; }
.address { font-size: 14px; color: var(--on-night-muted); user-select: all; }

/* ---------- footer ---------- */
.footer { background: var(--sand); padding-block: 44px 60px; color: var(--ink-2); }
.footer .wrap { display: flex; flex-direction: column; gap: 22px; }
.footer-note { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-block; padding-block: 8px; color: var(--ink-2); }

/* ---------- picture viewer ---------- */
dialog { width: min(92vw, 420px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
dialog.wide { width: min(94vw, 1200px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.66); }
.dialog-head, .dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 17px; }
.dialog-head p { font-size: 15px; font-weight: 700; }
.dialog-foot span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
dialog img { width: 100%; max-height: calc(92vh - 120px); object-fit: contain; background: var(--night); }

/* ---------- motion: everything is readable at rest; motion only adds a short entrance ---------- */
.js [data-reveal].is-pending { transform: translateY(28px); }
.js [data-reveal] { transition: transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .bar.is-pending { transform: scaleX(0); }

/* ---------- responsive ---------- */
@media (max-width: 1068px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .modes { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
@media (max-width: 833px) {
  .subnav-links a:not(.btn) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "stage" "bottom"; }
  .day, .walk, .split, .charts, .session { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-stage { width: min(100%, 560px); margin-inline: auto; }
  .walk-phone { order: 2; }
  .session-map { border-right: 0; border-bottom: 1px solid var(--night-line); }
  .facts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
@media (max-width: 640px) {
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .tagline { font-size: 22px; }
  .lead { font-size: 18px; }
  .tile { padding-block: 64px; }
  .hero { padding-block: 32px; }
  .callout { gap: 6px; }
  .callout .t { font-size: 12px; }
  .callout .n { font-size: 10px; }
  /* screenshot rows become a strip you swipe sideways, so the page stays short */
  .screens {
    display: flex; gap: 16px; margin-top: 40px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 68%; scroll-snap-align: center; padding: 0; }
  .phone-sm { width: min(100%, 230px); }
  .card { grid-template-columns: minmax(0, 1fr); }
  .games { grid-template-columns: minmax(0, 1fr); }
  .game, .game-wide { grid-column: auto; }
  .mode { grid-template-columns: minmax(0, 1fr); }
  .day-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .day-list .when { grid-column: 1 / -1; margin-bottom: -10px; }
  .stats dd { font-size: 28px; }
  .chart { padding: 20px 16px; }
  .chart-big { font-size: 38px; }
  .plot-row { grid-template-columns: 70px minmax(0, 1fr) 68px; gap: 8px; }
  .plot-row > .name { font-size: 12px; }
  .plot-bars .axis, .plot-bars .axis-title { margin-left: 78px; margin-right: 76px; }
  .numbers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .numbers tr { display: block; padding: 12px 0; border-top: 1px solid #dcd8d3; }
  .numbers th, .numbers td { display: block; padding: 2px 0; border: 0; }
  .numbers td::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media (max-width: 419px) {
  h1 { font-size: 38px; }
  h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot::after { animation: none; }
  .js [data-reveal], .bar, .btn, .screen .phone, .game-shot img, .day-list .go, .tip { transition: none; }
}
.swipe-hint { display: none; text-align: center; }
@media (max-width: 640px) { .swipe-hint { display: block; margin-top: 4px; } }
