/* ==========================================================================
   pyste.nl — styles (version 3 design)
   Tokens mirror the app (Figma 03 Foundations). Self-hosted fonts, no external
   requests. Motion respects prefers-reduced-motion.
   Sections: base · header · phone · hero · home story · set up · band · FAQ ·
   launch · footer · text pages (support, legal, credits, press, 404).
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/BarlowCondensed-SemiBold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --orange: #FFB27F;
  --peach: #FFE0CB;
  --blue-dark: #2A6372;
  --blue-light: #B3EBF2;
  --blue-sky: #5CC1F0;
  --accent: #FF8433;
  --text: #2B2B2B;
  --muted: #5A5A5A;
  --white: #FFFFFF;
  --snow: #F7FAFB;
  --night: #0B2129;
  --piste-green: #34C272;
  --piste-blue: #377AB5;
  --piste-red: #DF322A;
  --piste-black: #2B2B2B;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-number: "Barlow Condensed", "Arial Narrow", var(--font);

  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;          /* steady: the bar never changes height */
  --header-slim: var(--header-h);
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px; --s40: 40px; --s48: 48px; --s56: 56px; --s80: 80px;
  --r12: 12px; --r24: 24px; --r32: 32px; --full: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-phone:
    0 1px 1px rgba(11, 33, 41, .08),
    0 8px 16px rgba(11, 33, 41, .10),
    0 24px 48px rgba(11, 33, 41, .14),
    0 48px 96px rgba(11, 33, 41, .16);
}
@media (min-width: 600px)  { :root { --gutter: 24px; --header-h: 80px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-slim) + 12px); }
/* smooth jumps only after a click (a page opened with #anchor lands there straight away) */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible, .is-night :focus-visible { outline-color: var(--blue-light); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blue-dark); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 8px; }
.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }

/* ---- Type ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-dark); margin: 0 0 16px;
}
.display { font-weight: 800; letter-spacing: -.045em; font-size: clamp(48px, 12.5vw, 76px); line-height: .94; }
@media (min-width: 960px) { .display { font-size: clamp(84px, 7.6vw, 118px); } }
.title { font-weight: 800; letter-spacing: -.035em; font-size: clamp(36px, 6.4vw, 72px); line-height: 1; text-wrap: balance; }
.title--md { font-size: clamp(32px, 4.4vw, 54px); }
.brand { color: var(--blue-dark); }
.lead { text-wrap: pretty; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; font-weight: 500; color: #3d3d3d; max-width: 34em; }

/* ---- Buttons and store pills --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--font); text-decoration: none; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--text); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.btn--ghost { background: rgba(255, 255, 255, .5); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(43, 43, 43, .16); }
.btn--ghost:hover { background: rgba(255, 255, 255, .8); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 22px 8px 16px; border-radius: 18px;
  background: #111; color: #fff; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 10px 24px rgba(0, 0, 0, .2);
}
.store__text { display: flex; flex-direction: column; }
.store__note { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.store__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 132, 51, .25); }
.store__name { font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -.01em; }

/* ---- Header: the same at every scroll position (as on the first site) ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--peach);
  box-shadow: 0 1px 0 rgba(42, 99, 114, .10), 0 8px 16px -12px rgba(42, 99, 114, .45);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.logo img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px; }
.nav a:not(.btn):hover { background: rgba(255, 178, 127, .45); }
.nav a[aria-current] { color: var(--blue-dark); font-weight: 700; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; font-weight: 600; margin-left: 4px; box-shadow: none; }
@media (max-width: 369px) { .nav .btn { display: none; } }

/* ---- Phone frame --------------------------------------------------------- */
.device {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 393 / 852;
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .16);
  background: linear-gradient(145deg, #4a4a4e 0%, #1d1d1f 18%, #2c2c2e 50%, #1a1a1c 82%, #47474b 100%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 calc(var(--w) * .008) #0a0a0a;
  flex: none;
}
.device::before {
  content: ""; position: absolute; left: -2.5px; top: 22%; width: 3px; height: 7%;
  border-radius: 2px 0 0 2px; background: #2a2a2c;
  box-shadow: 0 calc(var(--w) * .3) 0 #2a2a2c, 0 calc(var(--w) * .45) 0 #2a2a2c;
}
.device::after { content: ""; position: absolute; right: -2.5px; top: 30%; width: 3px; height: 11%; border-radius: 0 2px 2px 0; background: #2a2a2c; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .128); overflow: hidden; background: #fff; isolation: isolate; }
.device__screen > img, .device__screen > video, .device__screen > svg { width: 100%; height: 100%; object-fit: cover; }
.device__island {
  position: absolute; z-index: 3; top: calc(var(--w) * .03); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--w) * .085); border-radius: 999px; background: #050505;
  transition: width .4s var(--ease), height .4s var(--ease), top .4s var(--ease);
}
.device--android .device__island { width: calc(var(--w) * .07); height: calc(var(--w) * .07); top: calc(var(--w) * .045); }
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 32%, rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0) 100%);
}
/* stacked screens that crossfade inside one phone (view switches) */
.screen-swap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.screen-swap.is-shown { opacity: 1; }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% 10%, #FFC59E 0%, rgba(255, 197, 158, 0) 60%),
    radial-gradient(90% 70% at 0% 100%, #FFD2B3 0%, rgba(255, 210, 179, 0) 60%),
    var(--orange);
  padding-top: 32px;
}
.hero__grid { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--text); opacity: .78; text-transform: none; letter-spacing: .01em; font-size: 15px; line-height: 20px; }
.hero .display .brand { display: block; }
.hero__lead { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 24px 0 32px; color: var(--text); }
.hero__stage { --pw: clamp(240px, 68vw, 320px); position: relative; display: flex; justify-content: center; padding-bottom: 72px; }
.hero__stage .device {
  --w: var(--pw); z-index: 2;
  /* a softer shadow that fades out before the hero's straight bottom edge */
  box-shadow: 0 2px 4px rgba(11, 33, 41, .08), 0 16px 32px rgba(11, 33, 41, .14), 0 28px 48px rgba(11, 33, 41, .10), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 calc(var(--w) * .008) #0a0a0a;
}
.hero__mountains { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 22vw, 300px); display: block; }

@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .hero__copy { padding-bottom: clamp(140px, 17vw, 240px); }
  .hero__stage { padding-bottom: 80px; --pw: clamp(280px, 24vw, 330px); }
  /* short laptop screens: the phone and its Pause button fit the first screen */
  .hero__stage { --pw: clamp(200px, min(24vw, calc((100vh - 275px) * 393 / 852)), 330px); }
  @supports (height: 100svh) { .hero__stage { --pw: clamp(200px, min(24vw, calc((100svh - 275px) * 393 / 852)), 330px); } }
  }

/* ---- Facts strip --------------------------------------------------------- */
.facts { background: var(--white); padding: 32px 0 24px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.facts li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--snow);
  box-shadow: inset 0 0 0 1px rgba(42, 99, 114, .1);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
}
.facts .icon { width: 20px; height: 20px; color: var(--blue-dark); }
.facts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-dark); }
@media (min-width: 1024px) { .facts li { font-size: 17px; padding: 14px 22px; } }

/* ---- Piste markers ------------------------------------------------------- */
.marker {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--font-number); font-weight: 600; font-size: 22px; line-height: 1; color: #fff;
  box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(0, 0, 0, .15);
}
.marker--green { background: var(--piste-green); }
.marker--blue  { background: var(--piste-blue); }
.marker--red   { background: var(--piste-red); }
.marker--black { background: var(--piste-black); }
.marker--orange { background: var(--accent); }

/* ---- Section rhythm ------------------------------------------------------ */
.section { padding: 88px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .lead { margin-left: auto; margin-right: auto; }
.section__head .lead { margin-top: 20px; }
.head-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.head-row .eyebrow { margin: 0; }

.rows { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.rows li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.rows .icon { color: var(--blue-dark); margin-top: 1px; }
.dots { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--piste-green); } .dot--blue { background: var(--piste-blue); }
.dot--red { background: var(--piste-red); } .dot--black { background: var(--piste-black); }
.dot--orange { background: var(--accent); }

.safety-note { margin: 20px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--snow); font-size: 14px; line-height: 20px; color: var(--muted); max-width: 30em; }
.safety-note a { color: var(--blue-dark); font-weight: 700; }

/* ---- App-style segmented switch (as in the app's settings) --------------- */
.seg {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
  padding: 4px; border-radius: 999px; background: var(--blue-light);
  box-shadow: inset 0 0 0 1.5px var(--blue-dark);
}
.seg button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--blue-dark); font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg button .icon { width: 20px; height: 20px; }
.seg button[aria-pressed="true"] { background: var(--blue-dark); color: #fff; }
.seg-wrap { margin-top: 24px; }
.seg-caption { margin: 12px 0 0; font-size: 15px; color: var(--muted); min-height: 1.5em; }

/* ---- Scroll story -------------------------------------------------------- */
.story { background: var(--white); padding-top: 72px; transition: background-color .6s var(--ease), color .6s var(--ease); }
.story__head { margin-bottom: 56px; }
.chapters { display: grid; gap: 40px; }
.chapter { display: grid; gap: 36px; align-items: center; }
.chapter__text { max-width: 560px; }
.chapter__text .lead { margin-top: 18px; }
.chapter__media { display: flex; flex-direction: column; align-items: center; gap: 20px; position: relative; }
.chapter__media .device { --w: min(76vw, 300px); }
.chapter__under { min-height: 56px; display: flex; align-items: center; justify-content: center; }
.chapter--night { background: linear-gradient(180deg, #0F2D36 0%, var(--night) 100%); color: #fff; border-radius: 32px; padding: 40px 20px; }
.chapter--night .eyebrow, .chapter--night .brand { color: var(--blue-light); }
.chapter--night .lead { color: rgba(255, 255, 255, .78); }
.chapter--night .rows .icon { color: var(--blue-light); }
.chapter--night .seg-caption { color: rgba(255, 255, 255, .7); }
@media (min-width: 760px) {
  .chapter { grid-template-columns: 1fr auto; gap: 56px; }
  .chapter--night { padding: 56px 48px; }
}
.chapter-bar { display: none; }
/* without the script the chapters show both phones side by side: give them a real column */
@media (min-width: 760px) { .story:not(.js-ready) .chapter { grid-template-columns: 1fr 1fr; } }

/* Play / Pause: large, labelled, with a ring that fills as the video plays */
.play {
  display: inline-flex; align-items: center; gap: 12px; padding: 4px 20px 4px 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.play__ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.play__ring svg.ring { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.play__ring .ring circle { fill: none; stroke-width: 3; }
.play__ring .ring .track { stroke: rgba(255, 255, 255, .22); }
.play__ring .ring .fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.play__ring .i { width: 16px; height: 16px; fill: currentColor; }
.play .i-play { display: none; }
.play[data-state="paused"] .i-play { display: block; }
.play[data-state="paused"] .i-pause { display: none; }

/* Pinned version (desktop, set by script): text and phone stay put, chapters crossfade */
.story.is-pinned .story__track { position: relative; height: calc(100vh - var(--header-slim) + 400vh); }
.story.is-pinned .story__pin {
  position: sticky; top: var(--header-slim); height: calc(100vh - var(--header-slim));
  display: grid; grid-template-rows: 1fr auto; padding: 16px 0 24px;
}
.story.is-pinned .chapters { position: relative; display: block; }
.story.is-pinned .chapter {
  position: absolute; inset: 0 var(--gutter); grid-template-columns: 1fr auto; gap: 72px;
  opacity: 0; visibility: hidden; transition: opacity .55s var(--ease), visibility 0s linear .55s;
}
.story.is-pinned .chapter.is-active { opacity: 1; visibility: visible; transition: opacity .55s var(--ease), visibility 0s; }
.story.is-pinned .chapter__text { transform: translateY(18px); transition: transform .7s var(--ease); }
.story.is-pinned .chapter.is-active .chapter__text { transform: none; }
.story.is-pinned .chapter__media .device { --w: min(320px, calc((100vh - var(--header-slim) - 200px) * 393 / 852)); }
.story.is-pinned .chapter--night { background: none; border-radius: 0; padding: 0; color: inherit; }
.story.is-pinned:not(.is-night) .chapter--night .eyebrow { color: var(--blue-dark); }
.story.is-pinned:not(.is-night) .chapter--night .brand { color: var(--blue-dark); }
.story.is-pinned:not(.is-night) .chapter--night .lead { color: #3d3d3d; }
.story.is-pinned:not(.is-night) .chapter--night .rows .icon { color: var(--blue-dark); }
.story.is-pinned:not(.is-night) .chapter--night .seg-caption { color: var(--muted); }
.story.is-night .story__head .eyebrow { color: var(--blue-light); }

.story.is-pinned .chapter-bar { display: flex; justify-content: center; }
.chapter-bar__list {
  list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; border-radius: 999px;
  background: rgba(43, 43, 43, .06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .6s;
}
.is-night .chapter-bar__list { background: rgba(255, 255, 255, .1); }
.chapter-bar button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; font-weight: 700; font-size: 14px; opacity: .65; transition: opacity .3s, background-color .3s;
}
.chapter-bar button:hover { opacity: 1; }
.chapter-bar .dot { width: 9px; height: 9px; }
.chapter-bar button[aria-current="true"] { opacity: 1; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.is-night .chapter-bar button[aria-current="true"] { background: rgba(255, 255, 255, .16); box-shadow: none; }
.chapter-bar .bar-fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: currentColor; opacity: .35; }
.chapter-bar button[aria-current="true"] .bar-fill { width: calc(var(--p, 0) * 100%); }

/* ---- Location · Offline band (logo colours) ------------------------------ */
.band { background: var(--blue-light); position: relative; overflow: hidden; }
.band .eyebrow { color: var(--blue-dark); }
.band__grid { display: grid; gap: 28px; margin-top: 40px; }
.band__item h3 { font-size: 19px; letter-spacing: -.01em; margin: 14px 0 6px; color: var(--blue-dark); }
.band__item p { margin: 0; color: #24505c; }
.band__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--blue-dark); color: var(--blue-light); display: grid; place-items: center; }
.band { padding-bottom: 190px; }
.band__peaks { position: absolute; right: -24px; bottom: -2px; width: 250px; height: auto; pointer-events: none; }
@media (min-width: 1024px) { .band { padding-bottom: 230px; } .band__peaks { width: 330px; right: max(-24px, calc(50% - 720px)); } }
.band .container { position: relative; z-index: 1; }
@media (min-width: 700px) { .band__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .band__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-section { background: var(--snow); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq { background: #fff; border-radius: 24px; box-shadow: 0 1px 2px rgba(11, 33, 41, .05); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-weight: 700; font-size: clamp(17px, 2vw, 20px); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue-dark); transition: transform .3s var(--ease); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; color: #444; }
.faq__body p { margin: 0; }
.faq__body a { color: var(--blue-dark); font-weight: 700; }
.faq-more { text-align: center; margin-top: 32px; }

/* ---- Launch: the route's destination ------------------------------------- */
.launch { background: var(--snow); padding-top: 0; }
.launch__card { position: relative; overflow: hidden; text-align: center; border-radius: 40px; padding: 120px 24px 72px;
  background: radial-gradient(80% 60% at 50% 0%, #FFC8A3 0%, rgba(255, 200, 163, 0) 70%), var(--orange); }
.launch__route { position: absolute; left: 50%; top: 0; width: 4px; height: 76px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--blue-dark) 0 8px, transparent 8px 15px); opacity: .55; }
.launch__pin { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .35), 0 10px 24px rgba(0,0,0,.15); }
.launch__pin .icon { color: var(--accent); width: 30px; height: 30px; }
.launch .title { margin-top: 24px; }
.launch .lead { margin: 20px auto 32px; }
.launch .stores { justify-content: center; }
/* One family of buttons (hero and launch card): the store badges and the buttons under them share one
   size and shape, on a grid of 220 px columns. Teal = what you can do now, outline = the quieter option. */
.hero .stores, .launch .stores, .tile-row { display: grid; grid-template-columns: repeat(2, 220px); gap: 12px; }
.launch .stores, .launch .tile-row { justify-content: center; }
.hero .stores { margin-bottom: 0; }
.tile-row { margin-top: 12px; }
.hero .store, .launch .store { justify-content: center; padding: 8px 16px; }
.hero .store__text, .launch .store__text { align-items: center; }
.tile-btn { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 16px; border-radius: 18px;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; transition: transform .2s var(--ease), background-color .2s; }
.tile-btn:hover { transform: translateY(-1px); }
.tile-btn--teal { background: var(--blue-dark); color: #fff; box-shadow: 0 10px 24px rgba(42, 99, 114, .25); }
.tile-btn--outline { color: var(--blue-dark); box-shadow: inset 0 0 0 2px var(--blue-dark); }
.tile-btn--outline:hover { background: rgba(255, 255, 255, .35); }
@media (max-width: 499px) {
  .hero .stores, .launch .stores, .tile-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-row .tile-btn:only-child { grid-column: 1 / -1; }
  .hero .store, .launch .store { padding: 8px 8px; }
  .hero .store__note, .launch .store__note { font-size: 10px; letter-spacing: .03em; }
}
@media (min-width: 1024px) { .launch__card { padding: 140px 48px 96px; } }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { position: relative; background: var(--blue-dark); color: #fff; padding: 0 0 40px; }
.footer__peaks { display: block; width: 100%; height: clamp(70px, 10vw, 140px); background: var(--peach); margin-bottom: -1px; }
.footer__close { font-weight: 800; letter-spacing: -.04em; font-size: clamp(40px, 8vw, 96px); line-height: .95; margin: 40px 0 56px; }
.footer__close span { color: var(--blue-light); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__col h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: rgba(255, 255, 255, .88); font-weight: 600; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand .logo { color: #fff; }
.footer__brand p { color: rgba(255, 255, 255, .85); margin: 14px 0 20px; max-width: 26em; }
.site-footer .store { background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); min-height: 52px; }
.footer__meta { padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.todo { background: rgba(255, 178, 127, .25); color: inherit; padding: 0 4px; border-radius: 4px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---- Quiet fade-ins (scroll-driven; nothing is ever fully hidden) -------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes reveal { from { opacity: .35; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   Version 3: the merge. Version 2's design with yesterday's app feel:
   peach page, the story on one orange card, light-blue row lists,
   two phones side by side on phones and tablets, Support in the top menu.
   ========================================================================== */
body { background: var(--peach); }
.facts, .story, .faq-section, .launch { background: transparent; }
.facts li { background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(42, 99, 114, .08); }
.faq { box-shadow: none; }

/* yesterday's light-blue panel rows */
.rows { display: block; margin: 24px 0 0; padding: 0 16px; background: var(--blue-light); border-radius: 24px; max-width: 480px; }
.rows li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; color: var(--blue-dark); font-size: 15px; line-height: 22px; font-weight: 500; }
.rows li + li { border-top: 1px solid rgba(42, 99, 114, .35); }
.rows .icon, .chapter--night .rows .icon { color: var(--blue-dark); margin-top: -1px; }
.rows strong { font-weight: 700; }
.safety-note { background: rgba(255, 255, 255, .5); }

/* the story: each chapter an orange card on phones and tablets */
.chapters { gap: 24px; }
.chapter { background: var(--orange); border-radius: 32px; padding: 32px 20px 40px; }
.chapter--night { background: linear-gradient(180deg, #0F2D36 0%, var(--night) 100%); }
@media (min-width: 760px) { .chapter { padding: 48px; } }
.media-single { display: none; }
.media-pair { display: flex; justify-content: center; gap: 16px; width: 100%; container-type: inline-size; }
.media-pair figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.media-pair figure:last-child { margin-top: 40px; }
.chapter__media .media-pair .device { --w: min(240px, calc((100cqi - 16px) / 2)); }
.media-pair figcaption { font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--text); color: #fff; }
.chapter--night .media-pair figcaption { background: rgba(255, 255, 255, .14); }
.story:not(.is-pinned) .seg-wrap { display: none; }
@media (min-width: 760px) and (max-width: 1023px) { .chapter { grid-template-columns: 1fr 1fr; } }

/* laptop: one orange card that stays put; chapters crossfade inside it */
.story.is-pinned .story__pin { display: block; padding: 10px 0 18px; }
.story.is-pinned .story__wrap { height: 100%; }
.story.is-pinned .story__card {
  height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 8px;
  background: var(--orange); border-radius: 40px; padding: 28px 56px 22px;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.story.is-pinned .chapter { inset: 0; background: none; border-radius: 0; padding: 0; gap: 56px; }
.story.is-pinned .media-single { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.story.is-pinned .media-pair { display: none; }
.story.is-pinned .chapter__media .device { --w: min(300px, calc((100vh - var(--header-slim) - 250px) * 393 / 852)); }
.story.is-night .story__head .eyebrow { color: var(--blue-dark); }
.story.is-night .story__card { background: var(--night); color: #fff; }
.story.is-pinned .chapter-bar { display: flex; justify-content: center; }
.chapter-bar__list { background: rgba(255, 255, 255, .38); }

/* Location · Offline as a rounded card */
.band-section { padding-top: 0; }
.band { border-radius: 40px; padding: 48px 24px 190px; }
.band__inner { position: relative; z-index: 1; }
@media (min-width: 1024px) { .band { padding: 64px 56px 230px; } .band__peaks { right: -24px; } }

/* Laptop: every chapter's text starts on the same line, so 01–04 and the headings
   never jump; the phone stays centred on the right. */
.story.is-pinned .chapter { align-items: start; }
.story.is-pinned .chapter__text { align-self: start; padding-top: clamp(16px, 5vh, 56px); }
.story.is-pinned .chapter__media { align-self: center; }
/* Shorter laptop screens (e.g. 1366×768, 1280×720): a slightly tighter chapter so the
   longest one (Lock screen) still fits above the chapter bar. */
@media (max-height: 880px) {
  .story.is-pinned .chapter__text { padding-top: clamp(4px, 2vh, 20px); }
  .story.is-pinned .head-row { margin-bottom: 12px; }
  .story.is-pinned .title--md { font-size: clamp(32px, 3.4vw, 44px); }
  .story.is-pinned .chapter__text .lead { font-size: 17px; margin-top: 12px; }
  .story.is-pinned .seg-wrap { margin-top: 16px; }
  .story.is-pinned .seg button { min-height: 38px; }
  .story.is-pinned .rows { margin-top: 16px; }
  .story.is-pinned .rows li { padding: 8px 0; }
  .story.is-pinned .safety-note { margin-top: 12px; padding: 10px 14px; }
}

/* Footer: the range mirrors the hero; the launch route continues down to the main peak */
.footer__peaks { height: clamp(150px, 18vw, 262px); background: var(--peach); }
.launch { padding-bottom: 0; }
.launch__trail { display: block; width: 4px; height: 88px; margin: 0 auto; opacity: .55;
  background: repeating-linear-gradient(to bottom, var(--blue-dark) 0 8px, transparent 8px 15px); }
@media (min-width: 1024px) { .launch__trail { height: 112px; } }


/* ==========================================================================
   Final version 3 (29 Oct): steady header, one play button style, pill fill,
   real-map screens, Set up as one orange card.
   ========================================================================== */

/* Hero: the play button sits under the phone */
.hero__play { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); }
@media (min-width: 960px) { .hero__play { bottom: 20px; } }
.hero__stage { padding-bottom: 88px; }
@media (min-width: 960px) { .hero__stage { padding-bottom: 96px; } }

/* One Play / Pause style everywhere */
.play[hidden] { display: none; }

/* Chapter bar: the whole active pill fills in the chapter's piste colour while you scroll */
.chapter-bar button { isolation: isolate; }
.chapter-bar .bar-fill {
  position: absolute; inset: 0; z-index: -1; width: calc(var(--p, 0) * 100%); height: auto;
  background: var(--tint, rgba(43, 43, 43, .2)); opacity: 1; border-radius: inherit;
  transition: width .15s linear;
}
.chapter-bar button:not([aria-current]) .bar-fill { width: 0; }

/* Navigate: the safety line, quiet, under the rows */
.safety-line { margin: 14px 0 0; max-width: 480px; font-size: 14px; line-height: 20px; color: #4a3a30; }
.safety-line a { color: var(--blue-dark); font-weight: 700; }

/* ==========================================================================
   Text pages: Support, Privacy, Terms, Legal notice, Data credits, Press, 404
   (layout and components from the first site, in the version 3 frame)
   ========================================================================== */
.btn--primary { background: var(--blue-dark); color: var(--blue-light); }
.btn--primary:hover { background: #22525F; }
.btn--soft { background: var(--peach); color: var(--text); }
.btn--soft:hover { background: #FFD4B6; }
.btn--outline { box-shadow: inset 0 0 0 2px var(--blue-light); color: var(--blue-light); background: transparent; }
.card-orange { background: var(--orange); border-radius: 40px; }

.subpage main { padding: 24px 0 72px; }
@media (min-width: 1024px) { .subpage main { padding: 40px 0 112px; } }
.subpage .kicker { font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-dark); margin: 0 0 16px; }
.subpage .headline { font-size: clamp(36px, 6.4vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.subpage .headline span { display: inline; }
.subpage .lead { color: #3d3d3d; }
.todo { background: #FFE6A6; color: #5A4300; border-radius: 6px; padding: 0 4px; font-weight: 600; }

.page-hero { padding: 40px 24px; }
.page-hero .headline { max-width: 16em; }
.page-hero .lead { margin-top: 18px; margin-bottom: 0; }
.page-hero .meta { margin: 16px 0 0; font-size: 14px; color: #4A3A30; }
@media (min-width: 860px) { .page-hero { padding: 56px; } }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.page-body > * { min-width: 0; }
@media (min-width: 1024px) {
  .page-body--toc { grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.toc { background: var(--white); border-radius: 24px; padding: 16px 16px 8px; }
.toc h2 { font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin: 4px 8px 8px; color: #5B5B5B; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 8px; border-radius: 12px; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.toc a:hover { background: var(--peach); }
@media (max-width: 1023px) {
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { background: var(--peach); border-radius: 999px; padding: 8px 12px; }
}

.prose { background: var(--white); border-radius: 32px; padding: 32px 24px; max-width: 820px; }
@media (min-width: 600px) { .prose { padding: 48px; } }
.prose h2 { font-size: 26px; line-height: 32px; font-weight: 800; margin: 48px 0 12px; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; line-height: 24px; font-weight: 700; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 26px; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 16px; }
.prose li + li { margin-top: 4px; }
.prose a { color: var(--blue-dark); font-weight: 600; text-underline-offset: 3px; }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--blue-light); }
.prose a.btn--soft { color: var(--text); }
.prose .summary { background: var(--blue-light); color: var(--blue-dark); border-radius: 24px; padding: 24px; margin-bottom: 32px; }
.prose .summary h2 { margin: 0 0 12px; font-size: 20px; line-height: 28px; }
.prose .summary ul { margin: 0; }
.prose .callout { background: var(--peach); border-radius: 24px; padding: 16px 24px; margin: 16px 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border-radius: 12px; border: 1px solid #E3D6CC; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; line-height: 20px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid #EFE4DB; }
.prose th { background: #FFF4EC; font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) {
  .table-wrap { border: 0; overflow: visible; }
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { border: 1px solid #E3D6CC; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .prose td { border-bottom: 1px solid #EFE4DB; padding: 8px 16px 12px; }
  .prose td:first-child { background: #FFF4EC; }
  .prose tr td:last-child { border-bottom: 0; }
  .prose td::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #6B5A4E; margin-bottom: 2px; }
}

/* Support: FAQ groups in app rows (light blue), contact card */
.faq-group { background: var(--white); border-radius: 32px; padding: 24px 16px 16px; max-width: 820px; scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 600px) { .faq-group { padding: 32px 32px 24px; } }
.faq-group > h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -.01em; margin: 0 8px 16px; }
.faq-group > h2 .badge { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-dark); color: var(--blue-light); display: grid; place-items: center; flex: none; }
.faq-group .faq { background: var(--blue-light); border-radius: 24px; color: var(--blue-dark); box-shadow: none; }
.faq-group .faq + .faq { margin-top: 8px; }
.faq-group .faq summary { min-height: 56px; padding: 12px 16px; font-size: 16px; line-height: 22px; }
.faq-group .faq__body { padding: 0 16px 16px; font-size: 15px; line-height: 24px; color: #1E4752; }
.faq-group .faq__body p { margin: 0 0 12px; }
.faq-group .faq__body p:last-child, .faq-group .faq__body ul:last-child { margin-bottom: 0; }
.faq-group .faq__body ul { padding-left: 1.2em; margin: 0 0 12px; }
.contact-card { background: var(--blue-dark); color: var(--blue-light); border-radius: 32px; padding: 32px 24px; max-width: 820px; }
@media (min-width: 600px) { .contact-card { padding: 40px; } }
.contact-card h2 { font-size: 26px; line-height: 32px; font-weight: 800; margin-bottom: 8px; }
.contact-card p { color: rgba(179, 235, 242, .9); }
.contact-card a.on-dark-link { color: var(--blue-light); font-weight: 700; }

/* Data credits rows (like G-06) */
.credit-list { list-style: none; padding: 0 !important; margin: 0 0 24px; background: var(--blue-light); border-radius: 24px; }
.credit-list li { margin: 0 !important; }
.credit-list li + li { border-top: 1px solid rgba(42, 99, 114, .35); }
.credit-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; text-decoration: none; color: var(--blue-dark); min-height: 56px; }
.credit-list .name { font-weight: 700; display: block; }
.credit-list .what { font-size: 14px; line-height: 20px; font-weight: 400; display: block; color: #1E4752; }
.prose .credit-line { font-size: 14px; line-height: 22px; color: #4A5A5E; }

/* Legal notice: company details as label · value */
.details-list { margin: 0 0 32px; border-radius: 24px; background: var(--peach); padding: 8px 24px; }
.details-list > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 0; }
.details-list > div + div { border-top: 1px solid rgba(42, 99, 114, .2); }
.details-list dt { font-size: 13px; line-height: 18px; font-weight: 700; color: #5B5B5B; }
.details-list dd { margin: 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .details-list > div { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .details-list dt { font-size: 15px; line-height: 24px; font-weight: 600; color: var(--text); }
}

/* Press kit */
.prose .press-name { font-size: 20px; line-height: 28px; font-weight: 800; margin-bottom: 4px; }
.prose .press-oneliner { font-size: 18px; color: var(--blue-dark); font-weight: 600; }
.key-facts { margin: 0 0 16px; border: 1px solid #E3D6CC; border-radius: 12px; overflow: hidden; }
.key-facts > div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-bottom: 1px solid #EFE4DB; }
.key-facts > div:last-child { border-bottom: 0; }
.key-facts dt { font-weight: 700; font-size: 15px; }
.key-facts dd { margin: 0; font-size: 15px; line-height: 24px; }
@media (max-width: 479px) { .key-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.press-icon { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 16px; }
.press-icon img { width: 120px; height: 120px; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 32px 16px; margin: 24px 0; }
.press-shot { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.press-shot .device { --w: min(170px, 100%); box-shadow: 0 12px 24px rgba(11, 33, 41, .16); }
.press-shot figcaption { display: grid; gap: 4px; font-size: 14px; line-height: 20px; }
.press-shot__caption { font-weight: 700; }
.prose .press-dl { font-size: 14px; }
.swatches { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.swatches li { display: flex; align-items: center; gap: 12px; margin: 0 !important; font-size: 14px; line-height: 20px; }
.swatch { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* 404 */
.not-found { text-align: center; padding: 80px 24px; }
.not-found .headline { margin-bottom: 16px; }
.not-found .lead { margin: 0 auto 24px; }
.not-found .btn-row { justify-content: center; }

/* Footer route (home): draws itself down the main peak once the footer is in view (home.js adds
   .is-drawing, then .is-drawn). Without the script, or with reduced motion, it is simply shown. */
.footer__peaks.is-drawing .footer__run { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0s; }
.footer__peaks.is-drawing.is-drawn .footer__run { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.45, 0, .25, 1) .3s; }
.footer__peaks.is-drawing .footer__run-end { opacity: 0; transition: opacity 0s; }
.footer__peaks.is-drawing.is-drawn .footer__run-end { opacity: 1; transition: opacity .35s ease 2.4s; }


/* ==========================================================================
   Phones: refinements so the phone version matches the laptop version
   ========================================================================== */
/* Top bar: logo mark only, so How it works, Support and Instagram fit on one line */
.nav a:not(.btn) { white-space: nowrap; }
@media (max-width: 479px) {
  .site-header .logo span { display: none; }
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: 0 9px; }
  .nav .btn { padding: 0 14px; margin-left: 2px; }
}

/* Facts: smaller pills that sit closer together */
@media (max-width: 599px) {
  .facts ul { gap: 8px; }
  .facts li { padding: 9px 14px; font-size: 14px; gap: 8px; }
  .facts .icon { width: 18px; height: 18px; }
}

/* Story without pinning (phones, tablets, short screens). With the script:
   - the chapter bar sticks under the top bar; on phones only the active pill shows its name
   - On the slope and Lock screen show one phone with the same switch as on laptops */
.story.js-ready:not(.is-pinned) .story__card { display: flex; flex-direction: column; }
.story.js-ready:not(.is-pinned) .chapter-bar {
  display: flex; justify-content: center; order: -1; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; margin-bottom: 16px;
}
.story.js-ready:not(.is-pinned) .chapter-bar__list { background: rgba(255, 224, 203, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.story.js-ready:not(.is-pinned) .chapter { scroll-margin-top: calc(var(--header-h) + 72px); }
@media (max-width: 759px) {
  .story.js-ready:not(.is-pinned) .chapter-bar button { min-height: 36px; padding: 0 12px; }
  .story.js-ready:not(.is-pinned) .chapter-bar button:not([aria-current]) { font-size: 0; gap: 0; }
}
.story.js-ready .media-pair { display: none; }
.story.js-ready .media-single { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.story.js-ready .seg-wrap { display: block; }

/* Footer: store badges in the same family as the hero, links in a neat grid */
.site-footer .stores { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.site-footer .store { justify-content: center; padding: 8px; }
.site-footer .store__text { align-items: center; }
@media (max-width: 899px) {
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col:last-child ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
}
@media (max-width: 499px) { .site-footer .store__note { font-size: 10px; letter-spacing: .03em; } }

/* Support: "Still stuck?" buttons in the same family, light on the dark card */
.contact-card .tile-row { margin-top: 24px; }
.tile-btn--light { background: var(--blue-light); color: var(--blue-dark); }
.tile-btn--outline-light { color: var(--blue-light); box-shadow: inset 0 0 0 2px var(--blue-light); }
.tile-btn--outline-light:hover { background: rgba(179, 235, 242, .1); }


/* ==========================================================================
   Review fixes (laptop and phone checked against each other)
   ========================================================================== */
/* Tablet (760–1023): the phone shrinks so the chapter cards stay inside the screen */
@media (min-width: 760px) and (max-width: 1023px) { .chapter__media .device { --w: min(300px, 32vw); } }

/* Phone story: no empty strip under the phone when there is no Play button */
.story:not(.is-pinned) .chapter__under:empty { display: none; }

/* Hero: until the route clip is in assets/video/, don't keep space for its Play button */
.hero__stage { padding-bottom: 48px; }
.hero__stage.has-video { padding-bottom: 88px; }
@media (min-width: 960px) { .hero__stage.has-video { padding-bottom: 96px; } }


/* Small phones: tile labels stay on one line */
.tile-btn { text-align: center; line-height: 1.2; }
@media (max-width: 399px) { .launch .tile-btn { font-size: 15px; white-space: nowrap; padding: 0 10px; } .tile-btn { padding: 8px 12px; } }
.not-found .tile-row { justify-content: center; }
@media (max-width: 499px) { .not-found .tile-row { grid-template-columns: minmax(0, 1fr); } }

/* Tap targets: at least 44 px everywhere */
.nav .btn { min-height: 44px; }
.logo { min-height: 44px; }
.story.js-ready:not(.is-pinned) .chapter-bar button { min-height: 44px; min-width: 44px; justify-content: center; }
@media (max-width: 1023px) { .toc a { padding: 12px 14px; } }
.footer__col ul { gap: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.prose .press-dl { display: inline-flex; align-items: center; min-height: 44px; }

/* Footer store badges: same size and black as in the hero */
.site-footer .store { min-height: 60px; background: #111; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 10px 24px rgba(0, 0, 0, .2); }

/* Laptop story: a bigger phone, closer to the text */
.story.is-pinned .chapter { grid-template-columns: minmax(0, 560px) auto; justify-content: space-around; }
.story.is-pinned .chapter__media .device { --w: min(320px, calc((100vh - var(--header-slim) - 200px) * 393 / 852)); }

/* Lock screen (night): a light ring keeps the chapter dots visible */
.is-night .chapter-bar .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }

/* Text pages on laptops: the cards use the full width under the orange header card; text lines stay readable */
.page-body .prose, .page-body .faq-group, .page-body .contact-card { max-width: none; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .faq-group .faq__body p { max-width: 72ch; }

/* Press on phones: two screenshots per row */
.press-shots { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

/* Home FAQ in the Support style: light-blue rows in one white card */
.faq-list.faq-group { gap: 0; margin: 0 auto; }
.faq-more.tile-row { grid-template-columns: minmax(0, 300px); justify-content: center; margin-top: 24px; }
@media (max-width: 499px) { .faq-more.tile-row { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Titles and text on phones
   ========================================================================== */
/* Headings: even line lengths, no word left alone on the last line */
.headline, .display, .prose h2, .prose h3, .faq-group > h2, .contact-card h2, .band__item h3 { text-wrap: balance; }
.hero .eyebrow { display: block; text-wrap: balance; }
/* Short sentences in titles never break in the middle; on phones each gets its own line */
.title .s { white-space: nowrap; }
@media (max-width: 599px) {
  .title--md .s { display: block; }
  /* clear size steps: section titles 36, chapter titles 30, card titles 24 */
  .title { font-size: 36px; }
  .title--md { font-size: 30px; line-height: 1.05; }
  .faq-group > h2, .contact-card h2, .prose h2 { font-size: 24px; line-height: 30px; }
  /* smaller chapter number, so the title sits higher */
  .marker { width: 36px; height: 36px; font-size: 18px; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, .15); }
  .head-row { gap: 12px; margin-bottom: 14px; }
  /* more room for text inside the orange cards */
  .chapter { padding: 28px 16px 32px; }
  .chapter--night { padding: 28px 16px 32px; }
  .rows { padding: 0 14px; }
  /* calmer intro text, so the titles stand out */
  .lead { font-size: 17px; line-height: 1.5; color: #4a4a4a; }
}
/* chapter bar: names never wrap; on the smallest phones the bar sits a little tighter */
.chapter-bar button { white-space: nowrap; }
@media (max-width: 379px) {
  .story.js-ready:not(.is-pinned) .chapter-bar__list { padding: 4px; gap: 0; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[aria-current] { padding: 0 10px; }
}


/* ==========================================================================
   Chapter bar, scroll hint and switches (29 Oct, evening)
   ========================================================================== */
/* The active pill fills in the chapter's full colour; its name turns white as the fill passes */
.chapter-bar .bar-fill { z-index: 1; overflow: hidden; background: var(--tint); }
.chapter-bar .bar-fill__label {
  position: absolute; left: 0; top: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; color: #fff; white-space: nowrap;
}
.chapter-bar .bar-fill__label .dot { background: #fff; }
.is-night .chapter-bar .bar-fill { background: #fff; }
.is-night .chapter-bar .bar-fill__label { color: var(--night); }
.is-night .chapter-bar .bar-fill__label .dot { background: var(--piste-black); box-shadow: none; }
.story.js-ready:not(.is-pinned) .chapter-bar .bar-fill__label { padding: 0 12px; }
@media (max-width: 379px) { .story.js-ready:not(.is-pinned) .chapter-bar .bar-fill__label { padding: 0 10px; } }

/* Laptops: a small "Scroll" hint above the chapter bar in chapter 01; it fades once you start scrolling */
.scroll-hint { display: none; }
.story.is-pinned .chapter-bar { position: relative; }
.story.is-pinned .scroll-hint {
  display: inline-flex; align-items: center; gap: 6px; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark);
  pointer-events: none; transition: opacity .4s var(--ease);
}
.story.is-pinned .scroll-hint .icon { width: 18px; height: 18px; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .story.is-pinned .scroll-hint .icon { animation: none; } }
.story.is-started .scroll-hint { opacity: 0; }

/* Switches: as wide as the rows card on laptops; under the phone, as wide as the phone, elsewhere */
.story.is-pinned .seg { display: grid; width: 100%; max-width: 480px; }
.story:not(.is-pinned) .chapter__under { width: min(76vw, 300px); }
@media (min-width: 760px) and (max-width: 1023px) { .story:not(.is-pinned) .chapter__under { width: min(300px, 32vw); } }
.chapter__under .seg-wrap { margin-top: 0; width: 100%; }
/* switch and Play together (On the slope on phones): the switch on top, Play under it */
.chapter__under { flex-wrap: wrap; gap: 10px; }
.chapter__under .seg-wrap { order: -1; }
.chapter__under .seg { display: grid; width: 100%; }
.chapter__under .seg button { padding: 0 12px; }

/* ==========================================================================
   Smoother story (scroll-tied; set by home.js with .is-scrubbed)
   ========================================================================== */
/* Laptops: a little less scrolling per chapter */
.story.is-pinned .story__track { height: calc(100vh - var(--header-slim) + 300vh); }
/* chapters follow the scroll position instead of a timed fade; the text drifts with --ty */
.story.is-pinned.is-scrubbed .chapter { transition: none; }
.story.is-pinned.is-scrubbed .chapter__text { transition: none; opacity: var(--ot, 1); transform: translateY(var(--ty, 0px)); will-change: transform, opacity; }
.story.is-pinned.is-scrubbed .chapter__media { opacity: var(--om, 1); }
.story.is-pinned .chapter:not(.is-active) { pointer-events: none; }
/* one phone frame that stays put; only the screens inside it change */
.story.is-pinned .story__card { position: relative; }
.story-frame { display: none; }
.story.is-pinned .story-frame { display: block; position: absolute; z-index: 0; margin: 0; pointer-events: none; }
.story-frame .device__screen { background: #E8EEF0; }
.story.is-pinned .chapters { z-index: 1; }
.story.is-pinned .chapter__media .device { background: none; box-shadow: none; }
.story.is-pinned .chapter__media .device::before, .story.is-pinned .chapter__media .device::after { display: none; }

/* Phones and tablets: each chapter's text and phone rise into place as the chapter scrolls in (--e from 0 to 1) */
.story.is-scrubbed:not(.is-pinned) .chapter__text { opacity: calc(.3 + .7 * var(--e, 1)); transform: translateY(calc((1 - var(--e, 1)) * 32px)); }
.story.is-scrubbed:not(.is-pinned) .chapter__media { opacity: calc(.3 + .7 * var(--e, 1)); transform: translateY(calc((1 - var(--e, 1)) * 64px)) scale(calc(.94 + .06 * var(--e, 1))); transform-origin: 50% 100%; }

/* ==========================================================================
   Final review fixes (30 Oct)
   ========================================================================== */
/* Chapter colours live here, not in the HTML (the site's security settings block inline styles) */
.chapter-bar button[data-go="0"] { --tint: var(--piste-green); }
.chapter-bar button[data-go="1"] { --tint: var(--piste-blue); }
.chapter-bar button[data-go="2"] { --tint: var(--piste-red); }
.chapter-bar button[data-go="3"] { --tint: var(--piste-black); }
.chapter-bar button[data-go="4"] { --tint: var(--accent); }
.swatch--orange { background: #FFB27F; } .swatch--blue-dark { background: #2A6372; } .swatch--blue-light { background: #B3EBF2; }
.swatch--accent { background: #FF8433; } .swatch--peach { background: #FFE0CB; }

/* Contrast: dark text on the light green and orange fills, darker teal for small text on orange */
.chapter-bar button[data-go="0"] .bar-fill__label, .chapter-bar button[data-go="4"] .bar-fill__label { color: #2B2B2B; }
.chapter-bar button[data-go="0"] .bar-fill__label .dot, .chapter-bar button[data-go="4"] .bar-fill__label .dot { background: #2B2B2B; }
.chapter-bar button { opacity: .8; }
.chapter-bar button[aria-current="true"] { opacity: 1; }
.marker--green, .marker--orange { color: #2B2B2B; }
.story .eyebrow, .story.is-pinned:not(.is-night) .chapter--night .eyebrow, .story.is-pinned .scroll-hint,
.page-hero .kicker, .not-found .kicker, .subpage .kicker { color: #1E4A56; }
.chapter--night .eyebrow, .story.is-night .chapter .eyebrow { color: var(--blue-light); }
.launch__card .tile-btn--outline, .not-found .tile-btn--outline { color: #1E4A56; box-shadow: inset 0 0 0 2px #1E4A56; }

/* Press: buttons inside text keep their own colours */
.prose a.tile-btn { text-decoration: none; }
.prose a.tile-btn--teal { color: #fff; }
.prose a.tile-btn--outline { color: var(--blue-dark); }

/* Laptop story: every chapter stays readable for keyboards and screen readers; the script fades
   the text (--ot) and screen (--om) of the chapters you're not looking at */
.story.is-pinned.is-scrubbed .chapter { opacity: 1; visibility: visible; }
.story.is-pinned .chapters { order: 1; }
.story.is-pinned .chapter-bar { order: 2; }
.story.is-pinned .chapter { justify-content: space-between; }
.story.is-pinned .chapter__media { padding-bottom: 10px; }
/* short laptops: a little tighter, so the text fits above the chapter bar */
@media (min-width: 1024px) and (max-height: 760px) {
  .story.is-pinned .title--md { font-size: clamp(28px, 2.8vw, 36px); }
  .story.is-pinned .chapter__text .lead { font-size: 15px; line-height: 1.45; margin-top: 8px; }
  .story.is-pinned .rows { margin-top: 12px; }
  .story.is-pinned .rows li { padding: 6px 0; font-size: 14px; line-height: 20px; }
  .story.is-pinned .seg-wrap { margin-top: 12px; }
  .story.is-pinned .seg button { min-height: 36px; }
  .story.is-pinned .safety-line { margin-top: 8px; font-size: 13px; line-height: 18px; }
  .story.is-pinned .head-row { margin-bottom: 8px; }
  .story.is-pinned .chapter__media .device { --w: min(280px, calc((100vh - var(--header-slim) - 190px) * 393 / 852)); }
}
/* tall screens: the story card is capped and centred, text and phone line up */
@media (min-width: 1024px) and (min-height: 1000px) {
  .story.is-pinned .story__pin { display: flex; align-items: center; }
  .story.is-pinned .story__wrap { height: min(100%, 920px); width: 100%; }
  .story.is-pinned .chapter { align-items: center; }
  .story.is-pinned .chapter__text { align-self: center; padding-top: 0; }
}
/* chapter bar fill starts at the dot, not as a sliver */
.chapter-bar button[aria-current="true"] .bar-fill { width: calc(30px + var(--p, 0) * (100% - 30px)); }
.story.js-ready:not(.is-pinned) .chapter-bar button[aria-current="true"] .bar-fill { width: calc(26px + var(--p, 0) * (100% - 26px)); }
/* scroll hint bobs a few times, then rests */
.story.is-pinned .scroll-hint .icon { animation-iteration-count: 4; }
.story.is-started .scroll-hint .icon { animation: none; }

/* Phones and tablets: the chapter bar keeps one width (no sideways jumps); inactive pills show their number */
.bar-num { display: none; }
@media (max-width: 759px) {
  .story.js-ready:not(.is-pinned) .chapter-bar__list { width: min(100%, 380px); justify-content: space-between; }
  .story.js-ready:not(.is-pinned) .chapter-bar li { display: flex; }
  .story.js-ready:not(.is-pinned) .chapter-bar li:has(button[aria-current]) { flex: 1 1 auto; min-width: 0; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[aria-current] { width: 100%; justify-content: center; }
  .story.js-ready:not(.is-pinned) .chapter-bar button:not([aria-current]) { width: 44px; padding: 0; flex-direction: column; gap: 2px; }
  .story.js-ready:not(.is-pinned) .chapter-bar button:not([aria-current]) .bar-num { display: block; font-size: 11px; line-height: 1; font-weight: 700; color: #2B2B2B; }
  .story.js-ready:not(.is-pinned) .chapter-bar button:not([aria-current]) > .dot { width: 6px; height: 6px; }
}
/* chapter jumps land just under the sticky bar */
.story.js-ready:not(.is-pinned) .chapter { scroll-margin-top: 64px; }
/* landscape phones and big zoom: the bar doesn't stick (header + bar would fill a third of the screen) */
@media (max-height: 500px) {
  .story.js-ready:not(.is-pinned) .chapter-bar { position: relative; top: auto; }
  .story.js-ready:not(.is-pinned) .chapter { scroll-margin-top: 8px; }
}
/* phones turned sideways (wide but low): the top menu scrolls away and each chapter's phone,
   with its switch under it, fits the screen height */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 760px) {
  .site-header { position: relative; }
  .story:not(.is-pinned) .chapter__media .device { --w: min(300px, calc((100vh - 66px - 24px) * 393 / 852)); }
  @supports (height: 100svh) { .story:not(.is-pinned) .chapter__media .device { --w: min(300px, calc((100svh - 66px - 24px) * 393 / 852)); } }
}
.story.is-scrubbed:not(.is-pinned) .chapter__media { will-change: transform, opacity; }

/* Switch under the phone on tablets: smaller labels so both fit */
.chapter__under .seg button { padding: 0 10px; gap: 6px; }
@media (min-width: 760px) and (max-width: 1023px) { .chapter__under .seg button { font-size: 14px; } .chapter__under .seg button .icon { width: 18px; height: 18px; } }

/* Wide screens (over 1440 px): the hero and footer drawings keep their size; the range continues at the sides */
.footer__sky { background: var(--peach); }
@media (min-width: 1441px) {
  .hero__mountains { width: 1440px; left: 50%; right: auto; transform: translateX(-50%); overflow: visible; }
  .footer__peaks { width: 1440px; margin-left: auto; margin-right: auto; overflow: visible; }
  .site-footer { overflow-x: clip; }
}

/* Line breaks: no single word alone on the last line */
.lead, .rows li > span, .faq__body p, .band__item p { text-wrap: pretty; }
.launch .lead, .section__head--center .lead { text-wrap: balance; }

/* Tablet hero: centred, instead of a stretched phone layout */
@media (min-width: 600px) and (max-width: 959px) {
  .hero__copy { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
  .hero__copy .eyebrow { display: block; }
  .hero .stores, .hero .tile-row { justify-content: center; }
}
/* Location band: headings take the same height, so the text lines up; less empty space */
@media (min-width: 1100px) { .band__item h3 { min-height: calc(2 * 1.3em); line-height: 1.3; } }
@media (min-width: 1024px) { .band { padding-bottom: 200px; } }

/* "On this page" on phones: one row you can swipe, instead of a screen full of pills */
@media (max-width: 1023px) {
  .toc ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; }
}
/* Long links wrap instead of running off the screen */
.prose a { overflow-wrap: anywhere; }
/* Credits: the list uses the full card */
.prose > ul.credit-list { max-width: none; }
/* Press: 4 screenshots per row on laptops, captions and links centred */
@media (min-width: 1024px) { .press-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.press-shot figcaption { justify-items: center; text-align: center; }
/* Chapter bar label over the fill: the white/dark copy covers the whole pill and is clipped to the fill,
   so it always sits exactly on top of the normal label (also when the pill is centred on phones) */
.chapter-bar .bar-fill { overflow: visible; }
.chapter-bar .bar-fill__label {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: inherit;
  gap: inherit; padding: inherit; white-space: nowrap; pointer-events: none; color: #fff; --fs: 30px;
  clip-path: inset(0 calc((100% - var(--fs)) * (1 - var(--p, 0))) 0 0);
}
.chapter-bar button:not([aria-current]) .bar-fill__label { display: none; }
.story.js-ready:not(.is-pinned) .chapter-bar .bar-fill__label { padding: inherit; --fs: 26px; }
@media (max-width: 379px) { .story.js-ready:not(.is-pinned) .chapter-bar .bar-fill__label { padding: inherit; } }
.chapter-bar .bar-fill__label .bar-num { display: none !important; }
/* headings that receive focus from the chapter bar or the menu don't need a focus box */
.chapter h3[tabindex="-1"]:focus, .story .title[tabindex="-1"]:focus { outline: none; }
/* laptops: a slightly lower footer drawing, so the summit and route stay in view at the very bottom */
@media (min-width: 1024px) and (max-width: 1440px) {
  .footer__peaks { height: clamp(150px, 15vw, 262px); }
  .footer__close { margin: 32px 0 40px; }
}

/* ==========================================================================
   Landscape phones and the phone hero (2 Nov)
   ========================================================================== */
/* phones: the logo peaks sit under the phone, fully visible; Pause between them */
@media (max-width: 959px) {
  .hero__stage.has-video { padding-bottom: calc(clamp(150px, 22vw, 300px) + 64px); }
  .hero__stage.has-video .hero__play { bottom: calc(clamp(150px, 22vw, 300px) + 4px); }
}

/* phones turned sideways: the chapter bar becomes a rail on the left that stays in view (tap a number to jump);
   the hero phone fits the screen height, like the chapter phones */
@media (max-height: 500px) and (orientation: landscape) and (min-width: 760px) {
  .story.js-ready:not(.is-pinned) .story__card { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .story.js-ready:not(.is-pinned) .chapter-bar { grid-column: 1; grid-row: 1; position: sticky; top: calc(50vh - 128px); margin: 0; order: 0; justify-content: flex-start; }
  .story.js-ready:not(.is-pinned) .chapters { grid-column: 2; grid-row: 1; min-width: 0; }
  .story.js-ready:not(.is-pinned) .chapter-bar__list { flex-direction: column; padding: 4px; gap: 4px; width: auto; }
  .story.js-ready:not(.is-pinned) .chapter-bar button { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 0; gap: 2px; flex-direction: column; justify-content: center; }
  .story.js-ready:not(.is-pinned) .chapter-bar button .bar-num { display: block; font-size: 11px; line-height: 1; font-weight: 700; color: #2B2B2B; position: relative; z-index: 2; }
  .story.js-ready:not(.is-pinned) .chapter-bar button > .dot { width: 6px; height: 6px; position: relative; z-index: 2; }
  .story.js-ready:not(.is-pinned) .chapter-bar .bar-fill__label { display: none; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[aria-current="true"] .bar-fill { width: 100%; height: 100%; top: 0; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[aria-current="true"] .bar-num { color: #fff; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[aria-current="true"] > .dot { background: #fff; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[data-go="0"][aria-current="true"] .bar-num,
  .story.js-ready:not(.is-pinned) .chapter-bar button[data-go="4"][aria-current="true"] .bar-num { color: #2B2B2B; }
  .story.js-ready:not(.is-pinned) .chapter-bar button[data-go="0"][aria-current="true"] > .dot,
  .story.js-ready:not(.is-pinned) .chapter-bar button[data-go="4"][aria-current="true"] > .dot { background: #2B2B2B; }
  .story.js-ready:not(.is-pinned) .chapter { scroll-margin-top: 16px; }
  .hero__stage { --pw: min(300px, calc((100svh - 96px) * 393 / 852)); }
}
