@font-face { font-family: "Canopy Serif"; src: url("/assets/LibreBaskerville.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/Manrope.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --canopy: #052d24;
  --pine: #073f36;
  --contour: #2a5948;
  --sage: #cfe8d7;
  --amber: #e7d27a;
  --stop: #d32f2f;
  --mist: #f1f6ee;
  --muted: #b9d2c1;
  --serif: "Canopy Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canopy);
  color: var(--mist);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ── Top bar ─────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--canopy) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand b { font: 400 1.5rem/1 var(--serif); letter-spacing: -.01em; }
.bar nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.lang {
  border: 1px solid var(--contour); background: transparent; color: var(--mist);
  font: 600 .85rem var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.lang[aria-pressed="true"] { background: var(--amber); color: var(--canopy); border-color: var(--amber); }

/* ── Store buttons ───────────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; background: var(--amber); color: var(--canopy);
}
.store.alt { background: transparent; color: var(--mist); border: 1.5px solid var(--sage); }
.store svg { width: 20px; height: 20px; }

/* ── Hero: the replay itself ─────────────────────────── */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(32px, 6vw, 72px);
  overflow: hidden;
}
.hero svg.topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo .lines path { fill: none; stroke: var(--contour); stroke-width: 1.2; opacity: .75; }
.topo .ghost { fill: none; stroke: var(--amber); stroke-opacity: .18; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.topo .walked { fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.topo .walker circle { fill: #2196f3; stroke: #fff; stroke-width: 3; }
.topo .bubble rect { fill: var(--stop); }
.topo .bubble text { fill: #fff; font: 700 15px var(--sans); }
.hero-copy { position: relative; max-width: 620px; }
.hero h1 {
  font: 400 clamp(2.6rem, 7.2vw, 5.6rem)/1.02 var(--serif);
  letter-spacing: -.025em; margin: 0 0 20px;
}
.hero p.lede { font-size: 1.18rem; color: var(--sage); max-width: 34em; margin: 0 0 28px; }
.split {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 6vw, 72px);
  display: flex; gap: 18px; padding: 12px 18px; border-radius: 14px;
  background: var(--pine); font-weight: 700; font-variant-numeric: tabular-nums;
}
.split span { display: inline-flex; gap: 8px; align-items: center; }
.split i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ── The page is a hike: sections are waypoints ──────── */
.trail { position: relative; padding: 24px var(--gutter) 40px; }
.trail::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) + 9px); border-left: 3px dotted var(--amber); opacity: .55;
}
.stop {
  position: relative; display: grid; grid-template-columns: minmax(0, 580px) minmax(220px, 320px);
  justify-content: space-between; max-width: 1120px;
  gap: clamp(24px, 6vw, 80px); align-items: center;
  padding: clamp(48px, 9vw, 110px) 0 clamp(48px, 9vw, 110px) 52px;
}
.stop.flip { grid-template-columns: minmax(220px, 320px) minmax(0, 580px); }
.stop.flip .phone { order: -1; }
.stop::before {
  content: ""; position: absolute; left: 0; top: clamp(56px, 9.5vw, 118px);
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--canopy); border: 4px solid var(--amber);
}
.km { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 6px; }
.stop h2 { font: 400 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--serif); margin: 0 0 16px; letter-spacing: -.015em; }
.stop p { color: var(--sage); max-width: 34em; margin: 0 0 14px; }
.stop ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 34em; }
.stop li { padding-left: 26px; position: relative; }
.stop li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.phone {
  border-radius: 34px; overflow: hidden; border: 8px solid #0d1f1a;
  box-shadow: 0 30px 60px -20px #000c, 0 0 0 1px var(--contour);
  transform: rotate(var(--tilt, 0deg));
}
.stop:nth-of-type(odd) .phone { --tilt: 2deg; }
.stop:nth-of-type(even) .phone { --tilt: -2deg; }

.link-demo {
  display: inline-block; margin-top: 10px; padding: 10px 16px; border-radius: 12px;
  background: var(--pine); color: var(--amber); font-weight: 700; word-break: break-all;
}

/* ── Summit / footer ─────────────────────────────────── */
.summit {
  position: relative; text-align: center;
  padding: clamp(64px, 10vw, 120px) var(--gutter) 40px;
  background: linear-gradient(var(--canopy), var(--pine));
}
.summit img.mascot { width: min(300px, 70vw); margin: 0 auto 10px; }
.summit h2 { font: 400 clamp(2rem, 5vw, 3.6rem)/1.08 var(--serif); margin: 0 0 14px; }
.summit p { color: var(--sage); margin: 0 auto 28px; max-width: 32em; }
.summit .stores { justify-content: center; }
footer { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 36px var(--gutter) 48px; color: var(--muted); font-size: .9rem; background: var(--pine); }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .stop, .stop.flip { grid-template-columns: 1fr; padding-left: 40px; }
  .stop.flip .phone { order: 0; }
  .phone { max-width: 260px; }
  .split { position: relative; right: auto; bottom: auto; margin-top: 22px; width: fit-content; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Showcase: one feature every 3 s, same world as the hero ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.showcase {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 48px;
  background: var(--pine);
  border-block: 1px solid var(--contour);
}
.showcase svg.topo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.slides { position: relative; display: grid; max-width: 1120px; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 470px) 1fr;
  gap: clamp(20px, 5vw, 64px); align-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .25s, transform .5s ease .25s; }
.slide h3 { font: 400 clamp(2rem, 4.6vw, 3.4rem)/1.08 var(--serif); letter-spacing: -.015em; margin: 0 0 16px; }
.slide p { color: var(--sage); font-size: 1.12rem; margin: 0; max-width: 32em; }
.scene { width: 100%; height: auto; overflow: visible; }
.scene .ghost { fill: none; stroke: var(--amber); stroke-opacity: .2; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.scene .walked { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.scene .dotted { fill: none; stroke: var(--sage); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.slide.is-on .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.scene .pill rect { fill: var(--amber); }
.scene .pill text { fill: var(--canopy); font: 700 15px var(--sans); text-anchor: middle; }
.scene .pill.dark rect { fill: var(--canopy); stroke: var(--contour); }
.scene .pill.dark text { fill: var(--mist); }
.scene .pill.stop rect { fill: var(--stop); }
.scene .pill.stop text { fill: #fff; }
.scene .me { fill: #2196f3; stroke: #fff; stroke-width: 3; }
.scene .guide { fill: var(--amber); stroke: #fff; stroke-width: 3; }
.scene .pulse { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.scene .link { stroke: var(--sage); stroke-width: 2; stroke-dasharray: 6 8; }
.dots { position: relative; margin-top: 32px; display: flex; gap: 10px; }
.dots button { width: 46px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.dots i { display: block; height: 4px; border-radius: 2px; background: var(--contour); position: relative; overflow: hidden; }
.dots [aria-selected="true"] i { background: color-mix(in srgb, var(--amber) 35%, var(--contour)); }
.dots .run i::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform-origin: left; animation: fill 3s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) { .slide { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-on { transition: none; } .slide.is-on .draw, .scene .pulse { animation: none; stroke-dashoffset: 0; } }
.store.soon { opacity: .6; cursor: default; border-style: dashed; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.link-row .link-demo { margin-top: 0; text-decoration: none; border: 1px solid var(--contour); }
.link-row .link-demo:hover { border-color: var(--amber); text-decoration: underline; }
.copy-link { font: 700 .95rem var(--sans); padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--amber); background: transparent; color: var(--amber); cursor: pointer; }
.copy-link.done { background: var(--amber); color: var(--canopy); }
