/* Dino landing page. Colours are the app's Theme tokens (light and dark), so
   the site and the app feel like the same place. */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ground: #F8F5EC;
  --ground-deep: #EFEADC;
  --card: #FFFFFF;
  --card-sunken: #F6F3EA;
  --ink: #1E2A23;
  --ink-soft: #5B675F;
  --line: rgba(30, 42, 35, 0.09);
  --accent: #3B7F5E;
  --accent-soft: #CFE7D7;
  --accent-mist: #E5F2E8;
  --primary: #2F6E4F;
  --on-primary: #FFFFFF;
  --sun: #F6C744;
  --sun-deep: #9C6F06;
  --sun-soft: #FCEFC4;
  --lavender-soft: #ECE7FB;
  --sky-soft: #E2F0FB;
  --peach-soft: #FDEADF;
  --rose-soft: #FBE6EE;
  --shadow: rgba(30, 42, 35, 0.10);
  --shadow-strong: rgba(30, 42, 35, 0.16);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-card: 22px;
  --radius-control: 16px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131B17;
    --ground-deep: #1D2822;
    --card: #202B25;
    --card-sunken: #27342D;
    --ink: #EDF2EC;
    --ink-soft: #A7B3AB;
    --line: rgba(237, 242, 236, 0.09);
    --accent: #8FD3AF;
    --accent-soft: #2C4738;
    --accent-mist: #1F3128;
    --primary: #8FD3AF;
    --on-primary: #10201A;
    --sun: #E8B93A;
    --sun-deep: #F3CF6A;
    --sun-soft: #3C3420;
    --lavender-soft: #2E2A40;
    --sky-soft: #1E3040;
    --peach-soft: #3D2C24;
    --rose-soft: #3B2630;
    --shadow: rgba(0, 0, 0, 0.30);
    --shadow-strong: rgba(0, 0, 0, 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--card); padding: 12px 16px; border-radius: 12px; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: 36em; }
.fine { font-size: 14px; color: var(--ink-soft); }
.center { text-align: center; }
.accent { color: var(--accent); }

/* Buttons: at least 48 pt tall, like every tap target in the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font: 600 17px/1 var(--display);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow-strong); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), 0 4px 12px var(--shadow); }
.btn-small { min-height: 48px; padding: 0 18px; font-size: 16px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 22px/1 var(--display); min-height: 48px; }
.brand img { border-radius: 11px; box-shadow: 0 2px 8px var(--shadow); }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font: 500 16px/1 var(--display); padding: 16px 12px; border-radius: 12px; }
.nav-links a:hover { color: var(--ink); background: var(--card-sunken); }
.nav .btn-small { margin-left: auto; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav .btn-small { margin-left: 8px; }
}

/* Hero */
.hero { padding: 40px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 80% 30%, var(--accent-mist), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, var(--sun-soft), transparent 70%);
  z-index: -1; pointer-events: none;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.headline .w {
  display: inline-block;
  opacity: 0; transform: translateY(0.4em);
  animation: word-in .6s cubic-bezier(.2,.8,.2,1) forwards;
}
.headline .w:nth-child(1) { animation-delay: .05s; } .headline .w:nth-child(2) { animation-delay: .12s; }
.headline .w:nth-child(3) { animation-delay: .19s; } .headline .w:nth-child(4) { animation-delay: .26s; }
.headline .w:nth-child(5) { animation-delay: .33s; } .headline .w:nth-child(6) { animation-delay: .40s; }
.headline .w:nth-child(7) { animation-delay: .47s; } .headline .w:nth-child(8) { animation-delay: .54s; }
.headline .w:nth-child(9) { animation-delay: .61s; } .headline .w:nth-child(10) { animation-delay: .68s; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero-copy .lead, .hero-copy .cta-row, .hero-copy .fine, .hero-copy .eyebrow { animation: fade-up .7s .5s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy .eyebrow { animation-delay: 0s; }
.hero-copy .cta-row { animation-delay: .7s; }
.hero-copy .fine { animation-delay: .85s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }

/* The demo stage: a phone card with Dino standing on the floor beside it. */
/* Dino stands on the same floor as the phone, just to its left, leaning in
   a little. Nothing is absolutely placed, so they can't cover each other. */
.hero-stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 24px;
  animation: fade-up .8s .3s cubic-bezier(.2,.8,.2,1) both;
}
.phone {
  position: relative; z-index: 2;
  flex: 0 1 350px; min-width: 0;
  background: var(--card);
  border-radius: 32px;
  padding: 22px 18px 20px;
  box-shadow: 0 24px 60px var(--shadow-strong), inset 0 0 0 1px var(--line);
}
.phone-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.phone-kicker { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.phone-title { font: 700 24px/1.1 var(--display); margin: 0; }
.coins { display: flex; align-items: center; gap: 4px; background: var(--sun-soft); color: var(--sun-deep); padding: 6px 12px; border-radius: 999px; font: 600 16px/1 var(--display); }
.coins b { min-width: 2ch; text-align: right; }
.coins.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

.tasks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.tasks li {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 12px;
  background: var(--card-sunken);
  border-radius: var(--radius-control);
  font-size: 16px;
  transition: background .3s ease;
}
.tick {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 22%, transparent);
  position: relative; transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.tick::after {
  content: ""; position: absolute; left: 9px; top: 5px; width: 7px; height: 13px;
  border: solid var(--on-primary); border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0); transform-origin: center;
  transition: transform .25s .05s cubic-bezier(.3,1.6,.5,1);
}
.t-emoji { font-size: 20px; }
.t-name { flex: 1; transition: color .3s ease; }
.xp {
  font: 600 13px/1 var(--display); color: var(--accent);
  background: var(--accent-mist); padding: 5px 8px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.tasks li.done { background: var(--accent-mist); }
.tasks li.done .tick { background: var(--primary); box-shadow: none; animation: pop .35s ease; }
.tasks li.done .tick::after { transform: rotate(45deg) scale(1); }
.tasks li.done .t-name { color: var(--ink-soft); }
.tasks li.done .xp { opacity: 1; transform: none; }
@keyframes pop { 50% { transform: scale(1.2); } }

.level-row { display: flex; justify-content: space-between; font: 600 15px/1 var(--display); margin-bottom: 8px; }
.level-hint { color: var(--ink-soft); font-weight: 500; }
.bar { height: 14px; border-radius: 999px; background: var(--card-sunken); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar-fill {
  height: 100%; width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--sun));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

/* Dino. He never floats: no idle motion at all. He stands on a floor line
   with a contact shadow and only hops when something happens. The PNGs are
   trimmed, so the bottom edge of each drawing is where his feet are. */
.dino-spot {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: default;
  -webkit-tap-highlight-color: transparent;
}
button.dino-spot { cursor: pointer; }
.dino { position: relative; display: block; transform-origin: 50% 100%; }
.dino .pose { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: auto; max-width: none; }
.dino .pose-rest { position: relative; left: auto; transform: none; }
.dino .pose-cheer { opacity: 0; }
.dino.cheering .pose-rest { opacity: 0; }
.dino.cheering .pose-cheer { opacity: 1; }
.ground-shadow {
  display: block;
  width: 70%; height: 14px; margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--shadow-strong), transparent);
  transform-origin: center;
}
.dino.hop { animation: hop .62s cubic-bezier(.3,.7,.4,1); }
.dino.hop + .ground-shadow { animation: shadow-hop .62s cubic-bezier(.3,.7,.4,1); }
@keyframes hop {
  0%   { transform: translateY(0) scale(1, 1); }
  13%  { transform: translateY(0) scale(1.07, .9); }
  42%  { transform: translateY(-18%) scale(.96, 1.05); }
  70%  { transform: translateY(0) scale(1.05, .94); }
  86%  { transform: translateY(0) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes shadow-hop { 42% { transform: scaleX(.62); opacity: .45; } }

.hero-dino { position: relative; flex: none; order: -1; margin-right: -34px; }
.hero-dino .pose-rest { width: 190px; }
.hero-dino .pose-cheer { width: 160px; }
@media (min-width: 960px) {
  .phone { flex-basis: 320px; }
  .hero-dino { margin-right: -36px; }
  .hero-dino .pose-rest { width: 150px; }
  .hero-dino .pose-cheer { width: 126px; }
}
.floor {
  position: absolute; left: -8px; right: -8px; bottom: 6px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
@media (max-width: 560px) {
  .hero-stage { flex-direction: column; align-items: center; }
  .phone { flex: none; width: 100%; }
  .hero-dino { order: 0; margin: 16px 0 0; }
  .hero-dino .pose-rest { width: 150px; }
  .hero-dino .pose-cheer { width: 126px; }
}

/* Star and confetti bits for a done task. They may float; Dino may not. */
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: visible; }
.spark {
  position: absolute; font-size: 20px; line-height: 1;
  animation: spark 1s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--r)); }
}
.toast {
  position: absolute; z-index: 5; left: 50%; top: -18px;
  transform: translate(-50%, -10px) scale(.9); opacity: 0;
  background: var(--ink); color: var(--ground);
  font: 600 17px/1 var(--display); padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 10px 30px var(--shadow-strong);
  transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.5,.5,1);
  white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* Marquee of what's inside. */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 16px 0; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font: 500 17px/1 var(--display); white-space: nowrap;
  padding: 12px 18px; border-radius: 999px; background: var(--card-sunken);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-tint { background: var(--ground-deep); }
.section-head { max-width: 680px; margin-bottom: 40px; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--card); border-radius: var(--radius-card); padding: 26px 24px 22px;
  box-shadow: 0 6px 20px var(--shadow), inset 0 0 0 1px var(--line);
}
.js .card[data-reveal].in { transition: opacity .7s, transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .3s; transition-delay: calc(var(--d, 0) * 80ms), 0s, 0s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px var(--shadow-strong), inset 0 0 0 1px var(--line); }
.card-icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  font-size: 30px; background: var(--tint); margin-bottom: 16px;
}
.card:hover .card-icon { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.card p { color: var(--ink-soft); margin: 0; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-flip > :first-child { order: 0; }
}
.split-copy .btn { margin-top: 12px; }

/* Tiny steps demo */
.breakdown {
  position: relative; min-height: 380px;
  background: var(--card); border-radius: 28px; padding: 24px 24px 160px;
  box-shadow: 0 16px 40px var(--shadow), inset 0 0 0 1px var(--line);
}
.big-task {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 18px; border-radius: 18px;
  background: var(--peach-soft); font: 600 21px/1.2 var(--display);
  transition: transform .4s cubic-bezier(.3,1.4,.5,1), background .4s ease;
}
.breakdown.split-up .big-task { transform: scale(.94); background: var(--card-sunken); }
.steps { list-style: none; margin: 14px 0 0; padding: 0 0 0 22px; display: grid; gap: 8px; border-left: 2px dashed var(--line); margin-left: 22px; }
.steps li {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 14px; border-radius: 14px;
  background: var(--accent-mist); font-weight: 500;
  transition: opacity .45s ease, transform .5s cubic-bezier(.3,1.5,.5,1);
  transition-delay: calc(var(--i) * 140ms + 150ms);
}
.js .steps li { opacity: 0; transform: translateX(-18px) scale(.96); }
.js .breakdown.split-up .steps li { opacity: 1; transform: none; }
.step-tick { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 50%, transparent); flex: none; position: relative; transition: background .3s; }
.steps li.done .step-tick { background: var(--primary); box-shadow: none; }
.steps li.done .step-tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--on-primary); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.side-dino { right: 22px; bottom: 14px; }
/* A soft floor line where the card's Dino stands. */
.breakdown::after, .focus-card::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.side-dino .pose-rest { width: 132px; }
.side-dino .pose-cheer { width: 104px; }

/* Focus demo */
.focus-card {
  position: relative; background: var(--card); border-radius: 28px;
  padding: 32px 24px 24px; text-align: center;
  box-shadow: 0 16px 40px var(--shadow), inset 0 0 0 1px var(--line);
}
.ring { position: relative; width: min(240px, 70vw); margin: 0 auto 20px; }
.ring svg { width: 100%; height: auto; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 14; }
.ring-track { stroke: var(--card-sunken); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear; }
.ring-time { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-time b { font: 700 46px/1 var(--display); font-variant-numeric: tabular-nums; }
.ring-time span { color: var(--ink-soft); font: 500 16px/1.4 var(--display); }
.sounds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 150px; }
.chip { font: 500 15px/1 var(--display); padding: 12px 14px; border-radius: 999px; background: var(--card-sunken); color: var(--ink-soft); transition: background .3s, color .3s; }
.chip.is-on { background: var(--accent-soft); color: var(--ink); }
.focus-dino { left: 50%; bottom: 14px; transform: translateX(-50%); }
.focus-dino .pose-rest { width: 160px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; flex: none; }

/* Momentum */
.momentum { text-align: center; }
.momentum .lead { margin-inline: auto; }
.week { display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px); margin: 36px 0 18px; }
.day { display: grid; justify-items: center; gap: 8px; font: 500 14px/1 var(--display); color: var(--ink-soft); }
.dot {
  width: clamp(36px, 9vw, 56px); aspect-ratio: 1; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
  transition: background .4s ease, transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .4s;
}
.week.go .day:not(.is-rest) .dot { background: var(--accent); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); transform: scale(1.06); }
.week.go .day.is-rest .dot { background: var(--card); }
.week .day:nth-child(1) .dot { transition-delay: .1s; } .week .day:nth-child(2) .dot { transition-delay: .25s; }
.week .day:nth-child(3) .dot { transition-delay: .4s; } .week .day:nth-child(4) .dot { transition-delay: .55s; }
.week .day:nth-child(5) .dot { transition-delay: .7s; } .week .day:nth-child(6) .dot { transition-delay: .85s; }
.week .day:nth-child(7) .dot { transition-delay: 1s; }
.week-note { font-size: 18px; }

/* Adventure map */
.map { position: relative; aspect-ratio: 1000 / 360; margin: 8px auto 40px; max-width: 1000px; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trail-base { fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1 20; }
.trail { fill: none; stroke: var(--sun); stroke-width: 10; stroke-linecap: round; }
.stops { position: absolute; inset: 0; }
.stop { position: absolute; transform: translate(-50%, -50%); }
.stop-icon {
  display: grid; place-items: center;
  width: clamp(40px, 6vw, 58px); aspect-ratio: 1; border-radius: 50%;
  font-size: clamp(20px, 3vw, 28px);
  background: var(--card); box-shadow: 0 6px 16px var(--shadow), inset 0 0 0 2px var(--line);
  transition: transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .4s;
  filter: grayscale(.7); opacity: .75;
}
.stop.reached .stop-icon { filter: none; opacity: 1; transform: scale(1.08); box-shadow: 0 8px 20px var(--shadow), inset 0 0 0 3px var(--sun); }
.stop-name { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font: 600 13px/1 var(--display); color: var(--ink-soft); background: var(--ground); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.map-dino { transform: translate(-50%, calc(-100% + 5px)); transition: left .5s cubic-bezier(.4,0,.2,1), top .5s cubic-bezier(.4,0,.2,1); z-index: 4; pointer-events: none; }
.map-dino .pose-rest { width: clamp(64px, 9vw, 96px); }
.map-dino .ground-shadow { height: 10px; margin-top: -5px; }
.finds { display: grid; gap: 12px; }
@media (min-width: 760px) { .finds { grid-template-columns: repeat(3, 1fr); } }
.find { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.find > span { font-size: 32px; }
.find p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.find b { display: block; color: var(--ink); font: 600 17px/1.3 var(--display); }

/* Privacy */
.privacy { display: grid; gap: 20px; align-items: center; }
@media (min-width: 760px) { .privacy { grid-template-columns: auto 1fr; gap: 40px; } }
.privacy-icon { width: 110px; height: 110px; border-radius: 32px; display: grid; place-items: center; font-size: 54px; background: var(--card); box-shadow: 0 10px 30px var(--shadow); }
.privacy.in .privacy-icon { animation: lock .9s .3s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes lock { 0% { transform: scale(.6) rotate(-12deg); } 100% { transform: none; } }

/* Pricing */
.plans { display: grid; gap: 16px; max-width: 720px; margin: 0 auto 20px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  position: relative; text-align: center;
  background: var(--card); border-radius: var(--radius-card); padding: 30px 24px 24px;
  box-shadow: 0 8px 24px var(--shadow), inset 0 0 0 1px var(--line);
}
.plan-best { box-shadow: 0 12px 30px var(--shadow-strong), inset 0 0 0 3px var(--accent); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sun); color: #3A2A00; font: 600 14px/1 var(--display); padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font: 600 18px/1 var(--display); color: var(--ink-soft); }
.plan-price { font: 700 48px/1.1 var(--display); margin: 8px 0 6px; }
.plan-price span { font-size: 18px; font-weight: 500; color: var(--ink-soft); }
.plan-note { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Final call */
.final { text-align: center; padding-top: 40px; }
.final-inner { display: grid; justify-items: center; }
.final .lead { margin-inline: auto; }
.final .btn { margin-top: 12px; }
.final-dino { position: relative; margin-bottom: 18px; }
.final-dino .pose-rest { width: 150px; }

/* Footer, where Dino has a nap. */
.footer { background: var(--ground-deep); padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 8px; }
.sleepy { width: 150px; margin-bottom: 4px; }
.footer-line { font: 600 19px/1.3 var(--display); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-soft); text-decoration: none; font: 500 16px/1 var(--display); border-radius: 12px; }
.footer-links a:hover { color: var(--ink); background: var(--card-sunken); }

/* Calmer for anyone who asks their device for less motion: everything
   shows in its finished state and nothing loops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .headline .w { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee-track span:nth-child(n+11) { display: none; }
}
