/* Hearitage landing page. Tokens mirror the design system
   (Hearitage UI mockups/design_handoff_landing_page/_ds/.../tokens). */

:root {
  /* light grounds */
  --h-background: #F4F7F6;
  --h-surface: #FFFFFF;
  --h-surface-high: #EAF0EF;
  --h-border: #DCE6E5;
  --h-ring-muted: #C6D6D4;
  /* petrol text */
  --h-text-primary: #0E3A3B;
  --h-text-body: #123232;
  --h-text-muted: #54716F;
  --h-icon-muted: #8CA5A3;
  /* apricot accent */
  --h-accent: #FF7A2F;
  --h-accent-pressed: #E85F13;
  --h-accent-text: #C2410C;
  --h-on-accent: #0E3A3B;
  /* ink */
  --h-ink-surface: #0E3A3B;
  --h-on-ink: #F4F7F6;
  --h-on-ink-body: #C8DAD8;
  --h-on-ink-muted: #9DB8B6;
  --h-accent-on-ink: #FF9A5E;
  --h-on-ink-line: rgba(244, 247, 246, .28);
  --h-on-ink-track: rgba(244, 247, 246, .18);
  --h-on-ink-card: rgba(244, 247, 246, .08);
  /* misc */
  --h-user-dot: #0E3A3B;
  --h-user-dot-halo: rgba(14, 58, 59, .18);
  --h-map-wash: rgba(14, 58, 59, .12);
  --h-bezel: #082526;
  /* shadows (petrol-tinted, never black) */
  --shadow-floating: 0 4px 14px rgba(14, 58, 59, .16);
  --shadow-peek: 0 12px 34px rgba(14, 58, 59, .22);
  --shadow-accent: 0 4px 14px rgba(255, 122, 47, .35);
  --shadow-accent-large: 0 10px 26px rgba(255, 122, 47, .35);
  --shadow-pin-selected: 0 6px 16px rgba(14, 58, 59, .30);

  --font-serif: Georgia, "Times New Roman", serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--h-background);
  color: var(--h-text-primary);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--h-text-primary); text-decoration: none; }
a:hover { color: var(--h-accent-text); }

h1, h2, h3, p, ol { margin: 0; }

section[id] { scroll-margin-top: var(--nav-h); }

.container { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  flex-shrink: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
}

/* ---------- Brand primitives ---------- */

.wordmark { font-weight: 700; font-size: 24px; line-height: .94; color: var(--h-text-primary); }
.wordmark span { color: var(--h-accent); }

.kicker {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--h-accent-text);
}
.kicker--section { letter-spacing: 2.5px; }
.kicker--wide { letter-spacing: 3px; }
.kicker--eyebrow { letter-spacing: 4px; }
.on-ink .kicker, .kicker.on-ink { color: var(--h-accent-on-ink); }

.headline { font-weight: 700; text-wrap: pretty; color: var(--h-text-primary); }
.headline em { font-style: italic; color: var(--h-accent); }
.on-ink .headline { color: var(--h-on-ink); }
.on-ink .headline em { color: var(--h-accent-on-ink); }

.h1 { font-size: 60px; line-height: 1.05; }
.h2 { font-size: 44px; line-height: 1.12; }
.h2--lg { font-size: 48px; line-height: 1.1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms;
}
.btn .material-icons { font-size: 20px; }
.btn--petrol {
  height: 48px;
  border-radius: 16px;
  background: var(--h-text-primary);
  color: var(--h-on-ink);
}
.btn--petrol:hover { background: #164B4C; color: var(--h-on-ink); }
.btn--petrol:active { background: #1E5A5B; }
.btn--stadium {
  width: 100%;
  height: 58px;
  border-radius: 999px;
  background: var(--h-accent);
  color: var(--h-on-accent);
  box-shadow: var(--shadow-accent-large);
}
.btn--stadium:hover, .btn--stadium:active { background: var(--h-accent-pressed); color: var(--h-on-accent); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--h-accent-text); outline-offset: 3px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--h-background);
  box-shadow: 0 1px 0 var(--h-border);
}
.nav__row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; display: block; }
.nav__spacer { flex: 1; }
.nav__links { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  background-color: var(--h-background);
  background-image:
    linear-gradient(rgba(14, 58, 59, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 58, 59, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  overflow: hidden;
}
.hero__grid { padding-top: 72px; gap: 48px; align-items: end; }
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 88px;
  max-width: 540px;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--h-text-muted); text-wrap: pretty; }
.cta { display: flex; flex-direction: column; gap: 14px; max-width: 320px; margin-top: 8px; }
.caption { font-size: 13px; color: var(--h-text-muted); }

/* ---------- Phone frame ----------
   The frame is drawn at 436×916 and scaled with --s; the outer box reserves
   the scaled footprint so layout stays correct. */

.phone-box { --s: .8; position: relative; width: calc(436px * var(--s)); }
.phone-box--crop { height: calc(700px * var(--s)); overflow: hidden; }
.phone-box--full { --s: .748; height: calc(916px * var(--s)); }
.phone {
  position: absolute;
  left: 0;
  top: 0;
  width: 436px;
  height: 916px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  background: var(--h-bezel);
  padding: 12px;
  border-radius: 52px;
}
.phone--crop { padding-bottom: 0; border-radius: 52px 52px 0 0; box-shadow: 0 30px 60px rgba(14, 58, 59, .28); }
.phone--ink { box-shadow: 0 0 0 1.5px rgba(244, 247, 246, .18), 0 30px 60px rgba(4, 20, 21, .5); }
.screen { position: relative; width: 412px; height: 892px; border-radius: 42px; overflow: hidden; }
.phone--crop .screen { height: 904px; border-radius: 42px 42px 0 0; }

.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  font: 600 14px var(--font-serif);
  z-index: 9;
}
.statusbar .material-icons { font-size: 16px; }
.statusbar div { display: flex; gap: 4px; }

/* Map screen (placeholder map — swap for a real screenshot when available) */
.screen--map {
  background-color: #E6ECEA;
  background-image:
    linear-gradient(rgba(14, 58, 59, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 58, 59, .06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-wash { position: absolute; inset: 0; background: var(--h-map-wash); }
.map-road { position: absolute; left: -40px; right: -40px; top: 470px; height: 34px; background: #CFDCDA; transform: rotate(-8deg); }
.map-top { position: absolute; top: 44px; left: 16px; right: 16px; display: flex; gap: 10px; z-index: 5; }
.searchbar {
  flex: 1;
  min-width: 0;
  height: 48px;
  border-radius: 24px;
  background: var(--h-surface);
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.searchbar .material-icons { font-size: 20px; }
.searchbar span:last-child { font-size: 14px; color: var(--h-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--h-surface);
  box-shadow: var(--shadow-floating);
}
.round-btn .material-icons { font-size: 24px; }
.round-btn--accent { background: var(--h-accent); color: var(--h-on-accent); box-shadow: var(--shadow-accent); }

.map-pin { position: absolute; transform: translate(-50%, -50%); }
.pin {
  position: relative;
  display: grid;
  place-items: center;
}
.pin--active {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--h-accent);
  border: 3px solid #fff;
  box-shadow: var(--shadow-pin-selected);
  color: var(--h-on-accent);
}
.pin--active > .material-icons { font-size: 26px; }
.pin--heard {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--h-surface);
  border: 1.5px solid var(--h-ring-muted);
  color: var(--h-icon-muted);
}
.pin--heard > .material-icons { font-size: 22px; }
.pin__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--h-accent);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  color: var(--h-on-accent);
}
.pin__badge .material-icons { font-size: 11px; }
.gem { width: 48px; height: 48px; display: grid; place-items: center; }
.gem span { width: 16px; height: 16px; border-radius: 50%; background: var(--h-accent); box-shadow: 0 0 0 2px #fff; }
.user-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--h-user-dot-halo); display: grid; place-items: center; }
.user-dot span { width: 14px; height: 14px; border-radius: 50%; background: var(--h-user-dot); box-shadow: 0 0 0 2px #fff; }

/* Peek card (playing state) */
.peek {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 400px;
  z-index: 7;
  background: var(--h-surface);
  border-radius: 26px;
  box-shadow: var(--shadow-peek);
  padding: 10px 18px 18px;
}
.peek__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--h-border); margin: 0 auto 12px; }
.peek__head { display: flex; align-items: center; gap: 14px; }
.peek__thumb { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; background: var(--h-border); }
.peek__thumb .material-icons { font-size: 26px; }
.peek__text { flex: 1; min-width: 0; }
.peek__kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--h-accent-text); white-space: nowrap; overflow: hidden; }
.peek__title { font-size: 18px; font-weight: 700; line-height: 1.2; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.close-btn { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.close-btn span { width: 36px; height: 36px; border-radius: 50%; background: var(--h-surface-high); display: grid; place-items: center; color: var(--h-text-muted); font-size: 20px; }
.peek__actions { display: flex; gap: 10px; }
.mini-btn {
  flex: 1;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.mini-btn--petrol { background: var(--h-text-primary); color: var(--h-on-ink); }
.mini-btn--petrol .material-icons { font-size: 20px; }
.mini-btn--outline { background: var(--h-surface); box-shadow: inset 0 0 0 1.5px var(--h-border); }
.mini-btn--outline .material-icons { font-size: 18px; }

/* Playback primitives */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; flex-shrink: 0; height: var(--bar, 14px); }
.bars span {
  width: 3px;
  height: var(--bar, 14px);
  border-radius: 1.5px;
  background: var(--h-accent);
  transform-origin: bottom;
  animation: h-eq 700ms ease-in-out infinite alternate;
}
.bars span:nth-child(2) { animation-delay: -233ms; }
.bars span:nth-child(3) { animation-delay: -466ms; }
@keyframes h-eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

.rail { height: 4px; border-radius: 2px; background: var(--h-surface-high); overflow: hidden; }
.rail--ink { background: var(--h-on-ink-track); }
.rail span { display: block; height: 4px; border-radius: 2px; background: var(--h-accent); width: 50%; animation: h-breath 1600ms ease-in-out infinite alternate; }
@keyframes h-breath { from { width: 12%; } to { width: 90%; } }

.transport { display: flex; align-items: center; justify-content: center; gap: 22px; }
.transport__sec {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--h-border);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
}
.transport__sec .material-icons { font-size: 24px; }
.transport__pri {
  width: 68px;
  height: 68px;
  border-radius: 24px;
  background: var(--h-accent);
  color: var(--h-on-accent);
  box-shadow: var(--shadow-accent);
  display: grid;
  place-items: center;
}
.transport__pri .material-icons { font-size: 34px; }
.transport--lg { justify-content: space-between; }
.transport--lg .transport__sec { width: 60px; height: 60px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--h-on-ink-line); color: var(--h-on-ink); font-size: 15px; }
.transport--lg .transport__sec .material-icons { font-size: 26px; }
.transport--lg .transport__pri { width: 96px; height: 96px; border-radius: 32px; box-shadow: var(--shadow-accent-large); }
.transport--lg .transport__pri .material-icons { font-size: 44px; }

/* Now-narrating screen */
.screen--ink { background: var(--h-ink-surface); color: var(--h-on-ink); display: flex; flex-direction: column; padding-top: 40px; }
.narr__head { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0 24px; height: 44px; }
.narr__head .spacer { flex: 1; }
.narr__head .expand { width: 44px; height: 44px; display: grid; place-items: center; color: var(--h-icon-muted); font-size: 24px; }
.narr__body { padding: 20px 24px 0; }
.narr__meta { font-size: 11px; letter-spacing: 2.5px; color: var(--h-on-ink-muted); white-space: pre; }
.narr__title { font-size: 42px; line-height: 1.05; margin-top: 14px; }
.narr__bar { width: 64px; height: 3px; border-radius: 2px; background: var(--h-accent); margin: 20px 0; }
.narr__quote { font-size: 17px; line-height: 1.6; color: var(--h-on-ink-body); }
.narr__foot { margin-top: auto; padding: 0 24px 28px; }
.narr__depth { text-align: center; font-size: 12px; letter-spacing: 1.5px; color: var(--h-on-ink-muted); margin-bottom: 10px; }
.next-up { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 18px; background: var(--h-on-ink-card); margin-top: 22px; }
.next-up__thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background-color: var(--h-surface-high);
  background-image:
    linear-gradient(var(--h-ring-muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--h-ring-muted) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--h-accent);
}
.next-up__thumb .material-icons { font-size: 22px; }
.next-up__text { flex: 1; min-width: 0; }
.next-up__kicker { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--h-accent-on-ink); }
.next-up__name { font-size: 16px; font-weight: 600; margin-top: 4px; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.next-up > .material-icons { font-size: 24px; color: var(--h-icon-muted); }

/* ---------- How it works ---------- */

.ink-section {
  background-color: var(--h-ink-surface);
  background-image:
    linear-gradient(rgba(244, 247, 246, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 246, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--h-on-ink);
  overflow: hidden;
}
.how__grid { padding-block: 104px; gap: 64px; align-items: center; }
.how__phone { display: flex; justify-content: center; }
.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 47, .2), transparent 68%);
}
.how__copy { display: flex; flex-direction: column; gap: 36px; max-width: 520px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; box-shadow: 0 -1px 0 var(--h-on-ink-track); }
.steps li:last-child { box-shadow: 0 -1px 0 var(--h-on-ink-track), 0 1px 0 var(--h-on-ink-track); }
.steps__num { font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--h-accent-on-ink); }
.steps__text { display: flex; flex-direction: column; gap: 6px; }
.steps__title { font-size: 20px; font-weight: 700; }
.steps__body { font-size: 16px; line-height: 1.6; color: var(--h-on-ink-body); }

/* ---------- Features ---------- */

.features { display: flex; flex-direction: column; gap: 56px; padding-block: 104px; }
.features__head { max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  background: var(--h-surface);
  border-radius: 26px;
  padding: 32px 28px;
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--h-surface-high); display: grid; place-items: center; color: var(--h-accent); }
.card__icon .material-icons { font-size: 26px; }
.card h3 { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.card p { font-size: 16px; line-height: 1.6; color: var(--h-text-muted); text-wrap: pretty; }

.langs { display: flex; flex-direction: column; gap: 18px; }
.langs__caption { font-size: 15px; color: var(--h-text-muted); }
.langs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.lang {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--h-surface);
  box-shadow: inset 0 0 0 1.5px var(--h-border);
}
.lang--selected { box-shadow: inset 0 0 0 2px var(--h-accent); }
.lang > .material-icons { font-size: 24px; }
.lang__names { flex: 1; }
.lang__native { display: block; font-size: 18px; font-weight: 600; }
.lang__english { display: block; font-size: 13px; color: var(--h-text-muted); margin-top: 2px; }
.lang__check { color: var(--h-ring-muted); }
.lang--selected .lang__check { color: var(--h-accent); }

/* ---------- Pro ---------- */

.pro { background: var(--h-surface-high); }
.pro__grid { padding-block: 104px; gap: 48px; align-items: center; }
.pro__copy { max-width: 520px; }
.body-muted { font-size: 17px; line-height: 1.6; color: var(--h-text-muted); text-wrap: pretty; }
.pro__card {
  background: var(--h-surface);
  border-radius: 26px;
  padding: 32px 28px;
  box-shadow: var(--shadow-peek);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
.pro__row { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.pro__row .material-icons { font-size: 20px; color: var(--h-accent-text); }
.hairline { height: 1px; background: var(--h-border); margin: 6px 0; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price strong { font-size: 36px; font-weight: 700; }
.price span { font-size: 14px; color: var(--h-text-muted); }

/* ---------- Closing CTA + footer ---------- */

.closing {
  padding-top: 96px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.closing > .material-icons { font-size: 56px; }
.closing .cta { width: 100%; margin-top: 0; }
.footer {
  margin-top: 64px;
  width: 100%;
  padding-top: 24px;
  box-shadow: 0 -1px 0 var(--h-on-ink-track);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--h-on-ink-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .nav__links { display: none; }
  .h1 { font-size: 44px; }
  .h2, .h2--lg { font-size: 36px; }
  .hero__copy { padding-bottom: 56px; }
  .how__grid, .features, .pro__grid { padding-block: 80px; }
}

@media (max-width: 420px) {
  .container, .nav__row { padding-inline: 16px; }
  .nav__row { gap: 12px; }
  .btn--petrol { padding: 0 14px; font-size: 15px; }
  .phone-box { --s: .66; }
  .phone-box--full { --s: .62; }
}

@media (max-width: 360px) {
  .nav__row { flex-wrap: nowrap; }
  .wordmark { font-size: 20px; }
  .btn--petrol { padding: 0 12px; font-size: 14px; }
}

/* =====================================================================
   Motion & play. Everything below is gated on `.motion` (set in <head>
   only when JS runs and the visitor has not asked for reduced motion),
   so the static page above is always the final, readable state.
   Brand rule: short ease-out, no bounces.
   ===================================================================== */

:root {
  --ease-out: cubic-bezier(.215, .61, .355, 1);
}

/* Language cards are real buttons now (tap to hear a sample voice). */
.lang {
  width: 100%;
  border: 0;
  font-family: var(--font-serif);
  color: var(--h-text-primary);
  text-align: left;
  cursor: pointer;
  transition: box-shadow 150ms, transform 200ms var(--ease-out);
}
.lang:hover { box-shadow: inset 0 0 0 1.5px var(--h-ring-muted); }
.lang--selected, .lang--selected:hover { box-shadow: inset 0 0 0 2px var(--h-accent); }
.lang:active { transform: scale(.985); }
.lang:focus-visible { outline: 3px solid var(--h-accent-text); outline-offset: 3px; }
.lang__lead { position: relative; width: 24px; height: 24px; display: grid; place-items: center; flex-shrink: 0; }
.lang__lead .bars { position: absolute; opacity: 0; }
.lang.is-speaking .lang__lead .material-icons { opacity: 0; }
.lang.is-speaking .lang__lead .bars { opacity: 1; }
.langs__hint { color: var(--h-accent-text); }

/* Nav: page scroll as a narration rail + scroll-spy. */
.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--h-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.nav__links a { position: relative; transition: color 150ms; }
.nav__links a.is-active { color: var(--h-accent-text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 1px;
  background: var(--h-accent);
  transform: scaleX(0);
  transition: transform 250ms var(--ease-out);
}
.nav__links a.is-active::after, .nav__links a:hover::after { transform: scaleX(1); }

/* Buttons: arrow nudges, download icon dips, stadium gets a light sweep. */
.btn .material-icons { transition: transform 200ms var(--ease-out); }
.btn:hover .material-icons:last-child { transform: translateX(3px); }
.btn--petrol:hover .material-icons:first-child { transform: translateY(2px); }
.btn--stadium { position: relative; overflow: hidden; isolation: isolate; }
.btn--stadium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--stadium:hover::before { transform: translateX(120%); transition: transform 700ms var(--ease-out); }

/* Interactive players (hero peek + narrating screen). */
[data-toggle], [data-replay] { cursor: pointer; transition: transform 150ms var(--ease-out); }
[data-toggle]:active, [data-replay]:active { transform: scale(.94); }
.is-paused .bars span, .is-paused .rail span { animation-play-state: paused; }

/* Hand-drawn squiggle under "ears". */
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg {
  position: absolute;
  left: 0;
  bottom: -.14em;
  width: 100%;
  height: .2em;
  overflow: visible;
}
.squiggle path {
  fill: none;
  stroke: var(--h-accent);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Geofence rings around the active landmark (hidden until motion runs). */
.geo-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  border: 2px solid var(--h-accent);
  opacity: 0;
  pointer-events: none;
}

/* Closing headphones with sound rings. */
.phones { position: relative; display: grid; place-items: center; width: 56px; height: 56px; }
.phones > .material-icons { font-size: 56px; position: relative; }
.phones__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--h-accent-on-ink);
  opacity: 0;
}

/* Cards: lift on hover, icons react. */
.card { transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-peek); }
.card__icon { position: relative; transition: background 250ms; }
.card:hover .card__icon { background: #FFE4D4; }
.card__icon .icon-b { position: absolute; opacity: 0; }
.card__icon .material-icons { transition: opacity 200ms, transform 250ms var(--ease-out); }
.card:hover .card__icon .icon-a { opacity: 0; transform: scale(.7); }
.card:hover .card__icon .icon-b { opacity: 1; }
.card--route:hover .card__icon .material-icons { transform: rotate(-12deg) scale(1.1); }

/* Karaoke quote: words light up as the "narration" reaches them. */
.narr__quote .w { transition: color 250ms; }
.motion .narr__quote.is-reading .w { color: rgba(200, 218, 216, .32); }
.motion .narr__quote.is-reading .w.lit { color: var(--h-on-ink); }

@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes walk {
  0%   { transform: translate(calc(-50% - 110px), calc(-50% + 150px)); opacity: 0; }
  8%   { opacity: 1; }
  45%  { transform: translate(calc(-50% - 60px), calc(-50% + 70px)); }
  100% { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes buzz {
  0%, 100% { translate: 0 0; }
  20% { translate: -3px 0; }
  40% { translate: 3px 0; }
  60% { translate: -2px 0; }
  80% { translate: 2px 0; }
}
@keyframes peek-in { from { transform: translateY(115%); } to { transform: none; } }
@keyframes ring { from { opacity: .6; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
@keyframes glow { from { opacity: .7; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

/* Scroll reveal */
.motion [data-reveal] { opacity: 0; }
.motion [data-reveal].is-in { animation: fade-up 650ms var(--ease-out) calc(var(--d, 0) * 110ms) both; }

/* Hero story, timed from page load:
   walk → reach the landmark → buzz → the player slides up → geofence pulses. */
.motion .hero-phone { animation: rise 800ms var(--ease-out) 150ms both, buzz 320ms linear 3.25s 1; }
.motion .hero-phone .pin,
.motion .hero-phone .gem { animation: pop 450ms var(--ease-out) calc(700ms + var(--d, 0) * 140ms) both; }
.motion .user-walk { animation: walk 2.3s cubic-bezier(.45, 0, .35, 1) 1s both; }
.motion .hero-phone .peek { animation: peek-in 550ms var(--ease-out) 3.5s both; }
.motion .geo-ring { animation: ring 2.4s var(--ease-out) 3.2s infinite; }
.motion .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-out) 1.1s forwards; }

.hero__device { display: flex; justify-content: center; transition: transform 400ms var(--ease-out); }
.motion .glow { animation: glow 3.2s ease-in-out infinite alternate; }
.motion .phones__ring { animation: ring 2.4s var(--ease-out) infinite; }
.motion .phones > .material-icons { animation: float 1.8s ease-in-out infinite alternate; }

/* ---------- Legal pages (privacy.html) ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 72px 28px 104px; color: var(--h-text-body); }
.legal__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.legal__summary {
  background: var(--h-surface);
  border-radius: 26px;
  box-shadow: var(--shadow-floating);
  padding: 28px;
  margin-bottom: 48px;
}
.legal__summary h2 { font-size: 20px; margin-bottom: 16px; color: var(--h-text-primary); }
.legal__summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.legal__summary li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.legal__summary .material-icons { font-size: 22px; color: var(--h-accent-text); }
.legal section { padding-top: 32px; margin-top: 32px; box-shadow: 0 -1px 0 var(--h-border); }
.legal section h2 { font-size: 24px; line-height: 1.25; color: var(--h-text-primary); margin-bottom: 12px; }
.legal p, .legal__list { font-size: 17px; line-height: 1.7; }
.legal p + p, .legal p + .legal__list, .legal__list + p { margin-top: 14px; }
.legal__list { padding-left: 22px; margin: 0; }
.legal__list li + li { margin-top: 6px; }
.legal a:not(.btn) { color: var(--h-accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal a:not(.btn):hover { color: var(--h-text-primary); }
.legal code { font-size: .9em; background: var(--h-surface-high); padding: 1px 6px; border-radius: 6px; }
.footer__link { color: var(--h-on-ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer__link:hover { color: var(--h-on-ink); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
