/* Room8 website.
   Layout: 980px reading column, full-bleed stages; one fixed background
   layer whose colour is driven by scroll, sections themselves are transparent. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --night: #000000;
  --night-2: #161617;
  --on-night: #f5f5f7;
  --on-night-2: #a1a1a6;
  --blue: #0071e3;
  --blue-link: #0066cc;
  --blue-link-dark: #2997ff;
  --hair: #d2d2d7;
  --hair-dark: #424245;

  --font: system-ui, "Inter", "Helvetica Neue", Arial, sans-serif;

  --col: 980px;
  --gutter: max(22px, calc((100vw - var(--col)) / 2));
  --ease-out: cubic-bezier(.25, .1, .25, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

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

/* The scroll-driven background. Sections are transparent; this layer changes colour. */
#stage-bg { position: fixed; inset: 0; z-index: -1; background: var(--paper); }
#stage-bg.fade { transition: background-color .6s var(--ease-out); }

.wrap { width: min(var(--col), 100% - 44px); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }

/* ---------- Type scale (size-specific tracking, tight leading on display) ---------- */
.display { font-size: clamp(48px, 8vw, 96px); line-height: 1.04; font-weight: 600; letter-spacing: -0.015em; margin: 6px 0 0; text-wrap: balance; }
.headline-xl { font-size: clamp(40px, 6.2vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.015em; margin: 10px 0 0; text-wrap: balance; }
.headline { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; font-weight: 600; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
.lede { font-size: clamp(19px, 1.6vw, 21px); line-height: 1.38; font-weight: 400; letter-spacing: .011em; margin: 24px 0 0; }
.lede.narrow { margin-inline: auto; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -0.022em; color: var(--ink-2); margin: 0; }
.product-name { font-size: clamp(21px, 2vw, 28px); font-weight: 600; letter-spacing: .007em; margin: 0; }

.link { color: var(--blue-link); font-size: 17px; display: inline-flex; gap: 4px; align-items: center; }
.link:hover { text-decoration: underline; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em;
  padding: 11px 22px; border-radius: 980px;
  display: inline-block; text-align: center;
  transition: background-color .2s var(--ease-out), transform .1s var(--ease-out);
}
.btn:hover { background: #0077ed; }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: 12px; padding: 4px 11px; letter-spacing: -0.01em; }
.btn-lg { font-size: 17px; padding: 14px 28px; }
.cta-row { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Device frame ---------- */
.iphone {
  position: relative; margin: 0;
  aspect-ratio: 340 / 713;
  background: #1d1d1f;
  border-radius: 17% / 8.1%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.28), inset 0 0 0 1.5px #3a3a3c;
}
.iphone::after { /* Dynamic Island */
  content: ""; position: absolute; left: 50%; top: 3.15%; transform: translateX(-50%);
  width: 28.2%; aspect-ratio: 96 / 28; border-radius: 99px; background: #000; z-index: 2;
}
.iphone .screen { position: absolute; inset: 1.54% 3.24%; border-radius: 14.8% / 6.8%; overflow: hidden; background: #000; isolation: isolate; }
.iphone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease-out); }
/* Stacked screens crossfade: only the active one shows */
.iphone .screen img:not(:only-child):not(.is-active) { opacity: 0; }

/* ---------- Global nav (scrolls away) ---------- */
.globalnav { position: relative; z-index: 40; background: rgba(250,250,252,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.globalnav-inner { width: min(1024px, 100% - 44px); margin-inline: auto; height: 44px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
.gn-logo { justify-self: start; }
.gn-logo img { width: 16px; height: 16px; opacity: .88; }
.gn-links { display: flex; align-items: center; justify-self: end; gap: clamp(14px, 3.4vw, 38px); list-style: none; margin: 0; padding: 0; }
.gn-links a { font-size: 12px; letter-spacing: -0.01em; color: rgba(0,0,0,.8); transition: color .2s; }
.gn-links a:hover { color: #000; }

.ribbon { background: var(--mist); text-align: center; padding: 15px 22px; position: relative; z-index: 1; }
.ribbon p { margin: 0; font-size: 14px; letter-spacing: -0.016em; }
.ribbon a { color: var(--blue-link); white-space: nowrap; }
.ribbon a:hover { text-decoration: underline; }
.ribbon-link { background: none; border: 0; padding: 0; color: var(--blue-link); font-size: 14px; cursor: pointer; white-space: nowrap; }
.ribbon-link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.sec { position: relative; }
.theme-dark { color: var(--on-night); }
.theme-dark .muted, .theme-dark .eyebrow { color: var(--on-night-2); }
.theme-dark .link { color: var(--blue-link-dark); }

/* Hero */
.hero { padding-top: 0; }
.hero-copy { text-align: center; padding-top: clamp(56px, 7vw, 92px); }
.hero-stage {
  --p: 0;
  position: relative; display: flex; justify-content: center; align-items: flex-start;
  /* 60px of headroom inside the clipped stage, so the centre phone can drift up on scroll
     without its top being cropped; the negative margin keeps the phones where they were */
  margin-top: calc(clamp(36px, 4vw, 52px) - 60px);
  padding-top: 60px; box-sizing: content-box; pointer-events: none;
  height: clamp(420px, 52vw, 700px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.hero-stage .iphone { flex: none; will-change: transform; }
.hero-stage .center { width: clamp(220px, 26vw, 380px); z-index: 2; transform: translateY(calc(var(--p) * -28px)) scale(calc(1 - var(--p) * .04)); }
.hero-stage .side { width: clamp(170px, 20.5vw, 300px); margin-top: clamp(60px, 8vw, 116px); transform: translateY(calc(var(--p) * -70px)); }
.hero-stage .left { margin-right: -1.4vw; }
.hero-stage .right { margin-left: -1.4vw; }

.beta-pill {
  position: relative; z-index: 3; margin: -96px auto 0; width: min(760px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 14px 14px 32px; border-radius: 999px;
  background: rgba(232,232,237,.78); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
}
.bp-title { margin: 0; font-weight: 600; font-size: 17px; }
.bp-sub { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* Highlights */
.highlights { padding-block: clamp(40px, 5vw, 70px) clamp(60px, 7vw, 100px); }
/* Pinned gallery: the section holds still while vertical scroll moves the track sideways.
   main.js sets .hl-pin's height to one screen plus the track's sideways travel. */
.hl-pin { position: relative; }
.hl-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; }
.hl-head { margin-bottom: clamp(20px, 3vh, 36px); }
.hl-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(372px, 80vw); gap: 20px;
  overflow-x: hidden;
  padding-inline: var(--gutter); padding-bottom: 6px;
}
.hl-card {
  position: relative; overflow: hidden;
  /* never taller than the screen allows, so heading, cards and dots fit in one view */
  height: min(clamp(520px, 46vw, 660px), calc(100vh - 290px)); height: min(clamp(520px, 46vw, 660px), calc(100svh - 290px)); border-radius: 28px; background: var(--mist);
  padding: 40px 34px 0;
}
.hl-card h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.14; font-weight: 600; letter-spacing: .007em; position: relative; z-index: 1; }
.hl-card.dark { background: #000; color: var(--on-night); }
.hl-card .iphone { position: absolute; left: 50%; top: 156px; width: 74%; transform: translateX(-50%); box-shadow: 0 20px 50px -18px rgba(0,0,0,.35); }
.hl-card.dark .iphone { box-shadow: inset 0 0 0 1.5px #3a3a3c; }
.hl-controls { display: flex; justify-content: center; margin-top: clamp(16px, 2.6vh, 30px); }
.hl-dots { display: flex; align-items: center; gap: 12px; background: rgba(232,232,237,.78); backdrop-filter: blur(20px); border-radius: 999px; padding: 0 22px; height: 48px; }
.hl-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: var(--ink-3); cursor: pointer; transition: width .45s var(--spring), background-color .3s; }
.hl-dots button[aria-selected="true"] { width: 48px; background: var(--ink); }

/* Calendar — device flanked by callouts */
.calendar { padding-block: clamp(240px, 32vh, 360px) clamp(110px, 12vw, 150px); }
.callouts { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 6vw, 72px); }
.callout-col { display: grid; gap: 64px; min-width: 0; }
.callout { display: grid; gap: 10px; max-width: 300px; }
.callout-col:last-child .callout { justify-self: end; }
.callout svg { color: var(--ink); }
.callout h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .011em; }
.callout p { margin: 0; color: var(--ink-2); }
.callout-phone { width: min(360px, 32vw); }

/* Home — reuses the callout layout */
.home { padding-block: clamp(130px, 14vw, 180px) clamp(70px, 8vw, 110px); }

/* Pings — copy left, device right */
.pings { padding-block: clamp(90px, 10vw, 140px) clamp(100px, 11vw, 150px); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.split-copy .headline { margin-top: 10px; }
.split-phone { width: min(340px, 32vw); }
.ping-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ping-list li { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--hair); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.ping-list svg { flex: none; }
.anon-note { margin: 18px 0 0; color: var(--ink-2); }

/* Chats — dark */
.chats { padding-block: clamp(240px, 32vh, 360px) clamp(220px, 28vh, 320px); }
.chats-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 120px); align-items: center; }
.chats-copy .headline { margin-top: 10px; }
.points { list-style: none; margin: 36px 0 0; padding: 0; }
.points li { border-top: 1px solid var(--hair-dark); padding: 18px 0; }
.points h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; letter-spacing: .012em; }
.points p { margin: 0; color: var(--on-night-2); }
.chats-phone { width: min(360px, 34vw); }

/* Profile — lifestyle as a spec sheet */
.profile { padding-block: clamp(130px, 14vw, 180px); }
.profile-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; margin-top: clamp(56px, 6vw, 72px); }
.profile-phone { width: min(340px, 30vw); }
.side-title { margin: 0 0 16px; font-size: 28px; font-weight: 600; letter-spacing: .004em; }
.side-title + .lifestyle { margin-bottom: 36px; }
.side-title + .chips { margin-bottom: 26px; }
.lifestyle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.lifestyle div { position: relative; background: var(--paper); border-radius: 18px; padding: 16px 20px 16px 70px; }
/* Same icons and tile colours as the app's Lifestyle card; sits in the dt so the dl stays valid */
.life-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f2f2f7; color: #9a9aa0; }
.lifestyle dt { font-size: 13px; color: var(--ink-2); letter-spacing: -0.01em; }
.lifestyle dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pay-methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-methods li { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: 18px; padding: 14px 18px; }
.pay-methods strong { display: block; font-size: 17px; font-weight: 600; }
.pay-methods small { display: block; font-size: 13px; color: var(--ink-2); }
.pay-badge { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #f2f2f7; }
.pay-badge img { width: 26px; height: 26px; }
.chips li { padding: 7px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--c); background: var(--b); }
/* Two rows of four, matching the app: the break forces Gaming onto a new line */
.chips { row-gap: 0; }
.chips li { margin-bottom: 10px; }
.chips li.chip-break { flex-basis: 100%; height: 0; padding: 0; margin: 0; background: none; }

/* Ledger pinned story */
.ledger { padding-top: clamp(130px, 14vw, 190px); }
.pin-intro { text-align: center; }
.pin-intro .lede { max-width: 620px; margin-inline: auto; }
.pin-track { position: relative; height: 420vh; margin-top: 40px; }
.pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; }
.pin-grid { width: min(var(--col), 100% - 44px); display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 7vw, 110px); align-items: center; }
.pin-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 480px; justify-self: start; }
/* Every step is a card. Closed cards sit inset and show only their label; the open card spans the column. */
.pin-step { padding-inline: 22px; transition: padding .5s var(--spring); }
.pin-step button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; background: var(--paper); border-radius: 24px; padding: 22px 28px; transition: padding .5s var(--spring), box-shadow .4s var(--ease-out); }
.pin-step .ps-label { display: block; font-size: 17px; letter-spacing: -0.022em; color: var(--ink-2); transition: color .3s var(--ease-out); }
.pin-step button:hover .ps-label { color: var(--ink); }
.pin-step .ps-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--spring), opacity .35s var(--ease-out); }
.pin-step .ps-body > span { min-height: 0; overflow: hidden; display: grid; gap: 14px; }
.pin-step .ps-title { padding-top: 36px; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -0.005em; color: var(--ink); }
.pin-step .ps-text { font-size: 19px; line-height: 1.42; color: var(--ink-2); }
.pin-step.is-active { padding-inline: 0; }
.pin-step.is-active button { padding: 30px 34px 34px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.18); }
.pin-step.is-active .ps-body { grid-template-rows: 1fr; opacity: 1; }
.pin-step button:focus-visible { outline-offset: 6px; }
.pin-phone { width: min(360px, 34vh); }
.pin-progress { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 120px; height: 3px; border-radius: 3px; background: rgba(0,0,0,.1); overflow: hidden; opacity: 0; transition: opacity .3s var(--ease-out); }
.pin-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--pp, 0)); }

/* Stats — dark */
.stats { padding-block: clamp(240px, 32vh, 360px) clamp(200px, 26vh, 320px); }
/* background-clip:text only paints inside the box, so give descenders (the g in "goes") room */
.gradient-text { background: linear-gradient(180deg, #f5f5f7 15%, #0a84ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .16em; margin-bottom: -.16em; }
.stats-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3.4vw, 48px); margin-top: clamp(56px, 7vw, 90px); padding-inline: 22px; }
.stats-row .iphone { width: clamp(150px, 22vw, 320px); }
.stats-row .iphone.big { width: clamp(170px, 25vw, 360px); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(70px, 8vw, 100px); }
.spec { border-left: 1px solid var(--hair-dark); padding-left: 24px; }
.spec-big { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: .004em; line-height: 1.1; }
.spec-text { margin: 8px 0 0; color: var(--on-night-2); }

/* Appearance */
.appearance { padding-block: clamp(130px, 14vw, 180px) clamp(110px, 12vw, 150px); transition: color .6s var(--ease-out); }
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(118,118,128,.12); margin-top: 32px; }
.segmented button { border: 0; background: transparent; cursor: pointer; padding: 9px 24px; border-radius: 999px; font-size: 15px; transition: background-color .3s var(--ease-out), box-shadow .3s; }
.segmented button[aria-checked="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.appearance.theme-dark .segmented { background: rgba(118,118,128,.28); }
.appearance-phone { width: min(360px, 74vw); margin: clamp(48px, 6vw, 72px) auto 0; }

/* Add */
.add { padding-block: clamp(130px, 14vw, 180px); }
.add-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 60px); margin-top: clamp(56px, 7vw, 80px); }
.add-item { text-align: center; min-width: 0; }
.add-item .iphone { width: min(300px, 100%); margin-inline: auto; }
.add-item h3 { margin: 28px 0 6px; font-size: 21px; font-weight: 600; letter-spacing: .011em; }
.add-item p { margin: 0 auto; color: var(--ink-2); max-width: 300px; }

/* Privacy */
.privacy { padding-block: clamp(130px, 14vw, 180px); }
.lock-badge { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(200deg, #4c7dff, #1b3fa8); }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 6vw, 72px); }
.tile { background: var(--mist); border-radius: 28px; padding: 36px; min-width: 0; }
.tile h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: .011em; }
.tile p { margin: 0; color: var(--ink-2); }

/* Get started */
.start { padding-block: clamp(120px, 13vw, 160px); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--paper); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-n { font-size: 64px; line-height: 1; font-weight: 600; color: var(--blue); letter-spacing: -0.02em; margin-bottom: 26px; }
.step h3 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: .009em; }
.step p { margin: 0 0 6px; color: var(--ink-2); }
.step .link { margin-top: auto; }

/* Final */
.final { padding-block: clamp(130px, 14vw, 180px); }
.app-icon { width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 27px; display: grid; place-items: center; background: linear-gradient(200deg, #4c7dff, #1b3fa8); box-shadow: 0 14px 34px rgba(27,63,168,.3); }
.final .lede { margin-top: 14px; }

/* Footer */
.footer { background: var(--mist); color: var(--ink-2); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding: 18px 0 20px; }
.crumb { display: flex; align-items: center; gap: 10px; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.crumb img { opacity: .85; }
.footnote { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.footnote a { color: inherit; text-decoration: underline; }
.fcols { display: flex; justify-content: flex-start; gap: 24px 72px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.fcols h4 { margin: 0 0 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
/* Links fill columns of three, so a long group grows sideways instead of down */
.flinks { display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; justify-content: start; gap: 8px 32px; }
.flinks a { color: var(--ink-2); white-space: nowrap; }
.flinks a:hover { color: var(--ink); text-decoration: underline; }
.legal { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-top: 14px; }
.legal p { margin: 0; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Floating beta bar */
.beta-bar {
  position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); z-index: 35;
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(232,232,237,.78); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transform: translate(-50%, calc(-100% - 40px)); opacity: 0;
  transition: transform .55s var(--spring), opacity .35s var(--ease-out), background-color .35s;
}
.beta-bar.is-shown { transform: translate(-50%, 0); opacity: 1; }
.beta-bar p { margin: 0; font-size: 14px; white-space: nowrap; }
.beta-bar p span { color: var(--ink-2); margin-left: 6px; }
.beta-bar .btn-sm { font-size: 14px; padding: 8px 16px; white-space: nowrap; }
body[data-chrome="dark"] .beta-bar { background: rgba(40,40,42,.78); color: var(--on-night); }
body[data-chrome="dark"] .beta-bar p span { color: var(--on-night-2); }

/* Scroll-linked reveals: progressive enhancement, content stays readable without support */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    @keyframes rise { from { opacity: .15; transform: translateY(48px); } to { opacity: 1; transform: none; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stage .iphone { transform: none !important; }
  .beta-bar, .hl-dots button, .iphone .screen img { transition: none; animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .globalnav, .beta-bar, .beta-pill, .hl-dots { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 833px) {
  .gn-links { display: flex; }
  .beta-pill { flex-direction: column; text-align: center; border-radius: 28px; padding: 22px; margin-top: -60px; }
  .pin-grid { grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .pin-sticky { place-items: start center; padding-top: 76px; }
  .pin-phone { width: min(230px, 25vh); order: -1; }
  .pin-steps { width: 100%; max-width: 440px; justify-self: center; }
  .pin-step:not(.is-active) { display: none; }
  .pin-step.is-active button { padding: 22px 24px 26px; }
  .pin-step .ps-title { padding-top: 18px; font-size: 24px; }
  .pin-step .ps-text { font-size: 17px; }
  .specs, .tiles3, .steps, .add-grid { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; justify-items: center; }
  .callout-phone { width: min(280px, 72vw); order: -1; }
  .callout-col { gap: 28px; width: 100%; max-width: 440px; }
  .callout-col:last-child .callout { justify-self: start; }
  .chats-grid, .profile-grid, .split-grid { grid-template-columns: 1fr; justify-items: center; }
  .split-phone { width: min(280px, 72vw); }
  .split-copy { width: 100%; max-width: 520px; }
  .chats-phone, .profile-phone { width: min(280px, 72vw); }
  .profile-phone { order: -1; }
  .profile-side { width: 100%; max-width: 520px; }
  .chips { column-gap: 6px; }
  .chips li { font-size: 13px; padding: 6px 10px; }
  .pay-methods li { padding: 14px; gap: 10px; }
  .lifestyle div { padding: 14px; }
  .life-icon { position: static; transform: none; margin-bottom: 10px; }
  .pay-methods strong { white-space: nowrap; }
  .add-item .iphone { width: min(260px, 70vw); }
  .fcols { gap: 20px 36px; }
  .stats-row .iphone:not(.big) { display: none; }
  .stats-row .iphone.big { width: min(300px, 72vw); }
}
@media (max-width: 480px) {
  .hero-stage .side { display: none; }
  .hero-stage .center { width: min(280px, 72vw); }
  .beta-bar p span { display: none; }
}

/* Native page snapping preserves touch, trackpad, keyboard and nested controls. */
html { scroll-snap-type: y mandatory; }
main > .sec, .closing-section { scroll-snap-align: start; scroll-snap-stop: always; }
/* Sticky stories use their individual scroll stops, not their outer containers. */
main > #highlights, main > #overview { scroll-snap-align: none; }
html.hero-free-scroll { scroll-snap-type: none; }
.hl-snap-stop { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
#journey #steps > .step { scroll-snap-align: start; scroll-snap-stop: always; }

/* The invitation and footer form one closing snap destination. Taller content
   remains naturally scrollable on small screens. */
.closing-section { min-height: 100svh; display: flex; flex-direction: column; }
.closing-section .final { flex: 1; display: grid; align-content: center; padding-block: clamp(48px, 8svh, 96px); }
.closing-section .footer { flex: none; scroll-snap-align: none; }

/* Keep the privacy snap aligned with its content instead of a large blank lead-in. */
.privacy { min-height: 100svh; padding-block: clamp(32px, 5svh, 64px); display: flex; flex-direction: column; justify-content: center; }
.privacy .tiles3 { margin-top: clamp(24px, 4svh, 48px); }
@media (max-width: 850px) {
  .privacy { justify-content: flex-start; }
  .privacy .tile { scroll-snap-align: start; scroll-snap-stop: always; scroll-margin-top: 24px; }
}

.gn-links .gn-beta { color: #fff; }
.gn-links .gn-beta:hover { color: #fff; }

/* Balance privacy content so the three cards fit beneath the introduction. */
.privacy { gap: 0; padding-block: clamp(32px, 5svh, 56px); }
.privacy .lock-badge { width: 64px; height: 64px; border-radius: 17px; margin-bottom: 20px; }
.privacy .lock-badge svg { width: 30px; height: 30px; }
.privacy .headline-xl { font-size: clamp(36px, 4.5vw, 64px); margin: 0; }
.privacy .lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; margin-top: 20px; }
.privacy .tiles3 { margin-top: clamp(28px, 4svh, 40px); gap: 20px; }
.privacy .tile { padding: clamp(24px, 2.4vw, 32px); border-radius: 24px; }
.privacy .tile h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.privacy .tile p { font-size: 16px; line-height: 1.5; }
.privacy-location-note { max-width: 780px; margin: 24px auto 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; text-align: center; }
@media (min-width: 851px) and (max-height: 740px) {
  .privacy { padding-block: 24px; }
  .privacy .lock-badge { width: 52px; height: 52px; margin-bottom: 14px; }
  .privacy .headline-xl { font-size: 48px; }
  .privacy .tiles3 { margin-top: 24px; }
  .privacy .tile { padding: 24px; }
  .privacy-location-note { margin-top: 18px; }
}
@media (max-width: 850px) {
  .privacy .tiles3 { gap: 16px; }
  .privacy-location-note { text-align: left; }
}

/* Four privacy commitments, balanced on desktop and stacked on phones. */
.privacy .privacy-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.privacy .privacy-points .link { display: inline-block; margin-top: 12px; font-size: 14px; }
@media (max-width: 850px) {
  .privacy .privacy-points { grid-template-columns: 1fr; }
}

/* Touch screens use a native carousel, independent of vertical page scrolling. */
@media(max-width:850px){
 .hl-sticky{position:relative;height:auto;padding-top:0}
 .hl-track{overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .hl-track::-webkit-scrollbar{display:none}
 .hl-snap-stop{display:none}
}

/* Keep the TestFlight invitation compact, including on small screens. */
.beta-pill { width:min(660px,100%);gap:14px;padding:12px 12px 12px 24px; }
.bp-title { font-size:16px; }
.bp-sub { font-size:14px;line-height:1.4; }
@media(max-width:850px){
 .beta-pill { flex-direction:column;text-align:center;gap:12px;padding:16px 20px;border-radius:22px; }
 .beta-pill>div { flex:1;min-width:0; }
 .bp-title { font-size:14px;line-height:1.3; }
 .bp-sub { font-size:12px;line-height:1.35;margin-top:4px; }
 .beta-pill .btn { flex-shrink:0;font-size:13px;padding:10px 14px;min-height:44px; }
}

/* A practical onboarding guide with equal steps and readable details. */
.start { padding-block:clamp(56px,7svh,88px); }
.start-heading { max-width:760px; }
.start-eyebrow { color:var(--ink-2);font-size:12px;font-weight:600;letter-spacing:.12em;margin:0 0 14px; }
.start-heading .headline { margin:0; }
.start-intro { font-size:clamp(17px,1.6vw,21px);line-height:1.5;color:var(--ink-2);margin:18px 0 0;max-width:620px; }
.start .steps { margin-top:36px;gap:20px;align-items:stretch; }
.start .step { background:#fff;border-radius:24px;padding:28px;display:flex;flex-direction:column; }
.start .step-n { display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:#edf3ff;color:var(--blue);font-size:20px;letter-spacing:-.04em;margin-bottom:24px; }
.start .step h3 { font-size:23px;line-height:1.15;letter-spacing:-.03em;margin:0 0 14px; }
.start .step>p { font-size:15px;line-height:1.55;color:var(--ink-2);margin:0 0 20px; }
.start-checklist { list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px; }
.start-checklist li { position:relative;padding-left:20px;font-size:14px;line-height:1.5;color:var(--ink); }
.start-checklist li::before { content:'✓';position:absolute;left:0;color:var(--blue);font-weight:600; }
.start .step .link,.start .step .start-tip { margin-top:auto;font-size:14px;line-height:1.5; }
.start .step .start-tip { padding-top:16px;border-top:1px solid #ececf0;margin-bottom:0; }
.start-note { font-size:12px;line-height:1.6;color:var(--ink-2);text-align:center;margin:24px 0 0; }
@media(max-width:850px){
 .start .steps { grid-template-columns:1fr;margin-top:28px;gap:16px; }
 .start .step { padding:24px; }
 .start .step-n { margin-bottom:20px; }
 .start-heading .headline { font-size:36px; }
 .start-note { max-width:290px;margin-inline:auto; }
}
