:root {
  color-scheme: light dark;

  --paper: #f2faf5;
  --paper-deep: #dcf0e4;
  --surface: #ffffff;
  --ink: #102818;
  --muted: #456b57;
  --border: #c7e3d4;
  --divider: #dcefe4;
  --link: #12704a;
  --link-hover: #0b5537;
  --focus: #12704a;

  --amber: #ffa01c;
  --orange: #f76b15;
  --green: #208858;
  --on-fill: #102818;

  --bezel: #102818;
  --night: #0b2418;
  --night-ink: #e8f5ec;
  --night-muted: #a9c7b6;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --btn-bg: var(--amber);
  --btn-fg: var(--on-fill);
  --btn-edge: #c47600;
  --btn-radius: 16px;
  --btn-depth: 4px;
  --btn-speed: 100ms;

  --sticker-fg: #102818;
  --sticker-green: #cdeedd;
  --sticker-amber: #ffe3b0;
  --sticker-pink: #ffd6e2;
  --sticker-lilac: #e5dcff;

  --shadow-sm: 0 1px 2px rgba(16, 40, 24, 0.06), 0 2px 8px rgba(16, 40, 24, 0.05);
  --shadow-md: 0 2px 6px rgba(16, 40, 24, 0.06), 0 12px 32px rgba(16, 40, 24, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --measure: 68ch;
  --shell: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.44rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.65rem + 2.75vw, 4rem);

  --display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1712;
    --paper-deep: #081109;
    --surface: #14231b;
    --ink: #e8f5ec;
    --muted: #a3bfb0;
    --border: #23392d;
    --divider: #1b2e23;
    --link: #5fd39b;
    --link-hover: #8fe5ba;
    --focus: #8fe5ba;

    --amber: #ffb851;
    --orange: #ff8a45;
    --green: #4cc48c;
    --on-fill: #08130c;

    --bezel: #030a06;
    --night: #040d08;

    --btn-edge: #b5701a;

    --sticker-fg: #e8f5ec;
    --sticker-green: #1f4a35;
    --sticker-amber: #5a3f12;
    --sticker-pink: #5a2338;
    --sticker-lilac: #3a2f63;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: optional;
  src: url('/assets/fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
}

h2 {
  font-size: var(--step-2);
  margin-top: 2.25em;
}

h3 {
  font-size: var(--step-1);
  margin-top: 1.75em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 58ch;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--focus);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus-visible {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--divider);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 10%, transparent);
}

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  box-shadow: 0 var(--btn-depth) 0 var(--btn-edge);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease-spring),
    visibility 0s linear 0.25s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.25s ease,
    transform 0.3s var(--ease-spring),
    visibility 0s;
}

.to-top span {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  margin-top: 0.3rem;
  border-top: 4px solid var(--btn-fg);
  border-left: 4px solid var(--btn-fg);
  border-radius: 2px;
  rotate: 45deg;
}

.to-top.is-visible:active {
  transform: translateY(var(--btn-depth));
  box-shadow: 0 0 0 var(--btn-edge);
  transition: none;
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 900;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: auto;
}

.brand-name {
  white-space: nowrap;
}

.sr-only {
  font-family: var(--body);
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 30rem) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    border: 0;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-weight: 600;
  font-size: var(--step--1);
}

.site-nav a {
  text-decoration: none;
}

.site-nav .nav-anchor:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-0);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn,
.store-btn,
.store-escape-close,
button[type='submit'] {
  box-shadow: 0 var(--btn-depth) 0 var(--btn-edge);
  transition: transform var(--btn-speed) ease-out;
}

@media (hover: hover) {
  .btn:hover,
  .store-btn:hover,
  .store-escape-close:hover,
  button[type='submit']:hover {
    transform: translateY(-2px);
  }
}

.btn:hover,
.store-btn:hover {
  color: var(--btn-fg);
  text-decoration: none;
}

.btn:active,
.store-btn:active,
.store-escape-close:active,
button[type='submit']:active {
  transform: translateY(var(--btn-depth));
  box-shadow: 0 0 0 var(--btn-edge);
  transition: none;
}

.btn-sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: var(--step--1);
}

.nav-telegram {
  gap: 0.45rem;
}

.nav-telegram svg {
  flex: none;
}

.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--sticker-green);
  color: var(--sticker-fg);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step--1);
  line-height: 1.2;
  transform: rotate(-2deg);
}

@media (max-width: 48rem) {
  .site-nav .nav-anchor {
    display: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  min-width: 32px;
  justify-content: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

a.lang-opt:hover {
  color: var(--ink);
  background: var(--paper-deep);
  text-decoration: none;
}

.lang-opt[aria-current='true'] {
  background: var(--ink);
  color: var(--paper);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 30rem) {
  .lang-opt {
    padding: 0 0.4rem;
    gap: 0.2rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 24rem) {
  .header-inner {
    gap: 0.5rem;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .brand img {
    width: 30px;
  }

  .lang-flag {
    display: none;
  }

  .site-nav .btn-sm {
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }
}

main {
  flex: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 1.9rem);
  margin-block: 1rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card > :last-child {
  margin-bottom: 0;
}

.mail {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 800;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li + li {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--divider);
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.link-list span {
  display: block;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.15rem;
}

.link-list.plain li + li {
  border-top: 0;
  margin-top: 0.4rem;
  padding-top: 0;
}

.site-footer {
  background: var(--paper-deep);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  font-size: var(--step--1);
  color: var(--muted);
}

.footer-inner > :last-child {
  margin-bottom: 0;
}

.footer-slogan {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-note {
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  @view-transition {
    navigation: none;
  }
}
.cta {
  margin-top: 2rem;
}

.cta-soon {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row + .cta-soon {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.8rem;
  border-radius: var(--btn-radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-0);
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.store-btn.is-soon,
.store-btn.is-soon:hover,
.store-btn.is-soon:active {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  border: 2px dashed var(--border);
  cursor: default;
  transform: none;
}

.store-btn[hidden] {
  display: none;
}

.cta-row:has(.store-badge) {
  flex-wrap: nowrap;
}

@media (max-width: 340px) {
  .cta-row:has(.store-badge) {
    flex-wrap: wrap;
  }
}

.store-badge {
  position: relative;
  overflow: hidden;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  justify-content: flex-start;
  text-align: left;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 200ms ease-out,
    box-shadow 200ms ease-out;
}

.store-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgb(255 255 255 / 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.store-badge--ios {
  background: linear-gradient(160deg, #1fb5ff 0%, #0a84ff 55%, #0a5cff 100%);
  color: #fff;
}

.store-badge--play {
  background: #fff;
  border-color: #dadce0;
  color: #202124;
}

.store-badge--ios:hover,
.store-badge--ios:focus-visible {
  color: #fff;
}

.store-badge--play:hover,
.store-badge--play:focus-visible {
  color: #202124;
}

@media (hover: hover) {
  .store-badge:hover {
    transform: translate3d(0, -3px, 0);
  }

  .store-badge--ios:hover {
    box-shadow: 0 12px 26px rgb(10 132 255 / 0.45);
  }

  .store-badge--play:hover {
    box-shadow:
      -6px 10px 22px rgb(66 133 244 / 0.28),
      6px 10px 22px rgb(52 168 83 / 0.28),
      0 14px 24px rgb(234 67 53 / 0.18);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .store-badge:hover::after {
    transform: translateX(120%);
    transition: transform 650ms ease-out;
  }

  .store-badge:hover .store-badge-icon {
    animation: store-badge-hop 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes store-badge-hop {
  0% {
    transform: translateY(0) rotate(0);
  }
  40% {
    transform: translateY(-5px) rotate(-10deg);
  }
  70% {
    transform: translateY(1px) rotate(4deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-badge {
    transition: none;
  }

  .store-badge:hover {
    transform: none;
  }
}

.store-badge:active {
  transform: translate3d(0, 1px, 0);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.12);
}

.store-badge-icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}

.store-badge-kicker {
  font-family: var(--body, inherit);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.store-badge-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.02rem, 4.4vw, 1.25rem);
  letter-spacing: -0.01em;
}

.store-escape {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgb(0 0 0 / 0.55);
}

.store-escape[hidden] {
  display: none;
}

.store-escape-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  max-width: 24rem;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}

.store-escape-card h2 {
  font-family: var(--display);
  font-size: var(--step-1);
  margin: 0;
}

.store-escape-card ol {
  margin: 0.9rem 0 1.2rem;
  padding-left: 1.4rem;
}

.store-escape-card li {
  margin-top: 0.35rem;
}

.store-escape-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  border-radius: var(--btn-radius);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  cursor: pointer;
}
:root {
  interpolate-size: allow-keywords;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.eyebrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  border: 7px solid var(--bezel);
  border-radius: 40px;
  overflow: hidden;
  background: var(--bezel);
  box-shadow:
    0 0 0 1px var(--border),
    var(--shadow-md);
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}

.band {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  scroll-margin-top: 72px;
}

.band-alt {
  background: var(--paper-deep);
}

.band h2 {
  margin-top: 0;
  font-size: var(--step-3);
}

.band p {
  max-width: 52ch;
}

.faq-inner[id],
.cta-inner[id] {
  scroll-margin-top: 72px;
}

.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto 0;
  height: 90%;
  overflow: hidden;
  background: radial-gradient(
    120% 70% at 50% 0,
    color-mix(in srgb, var(--amber) 14%, var(--paper-deep)),
    var(--paper) 72%
  );
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform {
  margin: 0;
  padding: 0.25rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step--1);
  color: var(--muted);
}

.mascot-wrap {
  position: relative;
  width: min(62vw, 250px);
  margin: 1.2rem auto 0;
}

.mascot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  rotate: calc(var(--lean, 0) * 1deg);
  transition: rotate 0.25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.mascot:hover img {
  filter: drop-shadow(
    0 10px 18px color-mix(in srgb, var(--orange) 35%, transparent)
  );
}

.mascot img {
  width: 100%;
  height: auto;
  animation: bob 4s ease-in-out infinite alternate;
}

.mascot.is-wag img {
  animation: wag 0.7s var(--ease-spring);
}

.mascot-sm {
  width: 130px;
  margin: 0 auto 0.5rem;
}

.bubble {
  position: absolute;
  z-index: 2;
  right: -14%;
  top: 0;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 20px 20px 20px 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.95rem;
  white-space: nowrap;
  rotate: 6deg;
}

.mascot-sm .bubble {
  right: -70%;
}

.bubble.is-pop {
  animation: bubble-pop 0.45s var(--ease-spring);
}

@keyframes bob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@keyframes wag {
  0% {
    transform: rotate(0) scale(1);
  }

  25% {
    transform: rotate(-9deg) scale(1.08);
  }

  50% {
    transform: rotate(8deg) scale(1.05);
  }

  75% {
    transform: rotate(-5deg) scale(1.02);
  }

  100% {
    transform: rotate(0) scale(1);
  }
}

@keyframes bubble-pop {
  from {
    scale: 0.6;
  }

  to {
    scale: 1;
  }
}

.paw-pop {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 1.3rem;
  height: 1.3rem;
  margin: -0.65rem 0 0 -0.65rem;
  fill: var(--orange);
  pointer-events: none;
  animation: paw-burst 0.9s var(--ease-out) forwards;
}

@keyframes paw-burst {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.4);
  }

  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin)) scale(1.1);
  }
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: var(--step-4);
  font-weight: 900;
  line-height: 1.06;
}

.hero h1 em {
  font-style: normal;
  color: var(--link);
}

.hero .lede {
  margin: 1rem auto 0;
  max-width: 34ch;
  font-size: var(--step-0);
  font-weight: 600;
}

.cta {
  margin-top: 0.75rem;
}

.cta-row {
  justify-content: center;
}

.cta-row .store-btn {
  width: 100%;
  max-width: 360px;
}

.cta-row .store-badge {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  max-width: 210px;
}

.cta-soon {
  text-align: center;
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  perspective: 1100px;
}

.phone-hero {
  transform: perspective(1100px) rotateY(-16deg) rotateX(4deg) rotate(2deg);
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -10px;
  }
}

.hero-chips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  animation:
    chip-out 0.95s var(--ease-spring) var(--delay, 0.5s) both,
    chip-float 5s ease-in-out calc(var(--delay, 0.5s) + 1s) infinite alternate;
}

.hero-chip svg {
  flex: none;
  width: 2rem;
  height: 2rem;
  padding: 0.42rem;
  border-radius: 50%;
  background: var(--sticker-green);
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hc-1 {
  --fx: 7rem;
  --fy: 6rem;
  --delay: 0.5s;
  left: -9%;
  top: 13%;
  rotate: -4deg;
}

.hc-2 {
  --fx: 7rem;
  --fy: -4rem;
  --delay: 0.8s;
  left: -8%;
  bottom: 12%;
  rotate: -2deg;
}

.hc-2 svg {
  background: var(--sticker-amber);
  stroke: var(--orange);
}

.hc-3 {
  --fx: -7rem;
  --fy: 1rem;
  --delay: 1.05s;
  right: -11%;
  top: 41%;
  rotate: 3deg;
}

.hc-3 svg {
  background: var(--sticker-pink);
  stroke: #c0396b;
}

@keyframes chip-out {
  from {
    translate: var(--fx) var(--fy);
    scale: 0.25;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  75% {
    scale: 1.12;
  }

  to {
    translate: 0 0;
    scale: 1;
    opacity: 1;
  }
}

@keyframes chip-float {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 59.99rem) {
  .hero-chip {
    font-size: 0.74rem;
  }

  .hc-1 {
    left: -3%;
    top: 8%;
  }

  .hc-2 {
    left: -2%;
    bottom: 14%;
  }

  .hc-3 {
    right: -3%;
    top: 36%;
  }
}

@supports (animation-timeline: view()) {
  @media (max-width: 59.99rem) {
    .hero-chip {
      animation:
        chip-out linear both,
        chip-float 5s ease-in-out infinite alternate;
      animation-timeline: view(), auto;
      animation-range:
        entry 0% entry 85%,
        normal;
    }
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.chips .sticker {
  transition: transform 0.25s var(--ease-spring);
}

.chips .sticker:nth-child(4n + 2) {
  background: var(--sticker-amber);
  rotate: 1.5deg;
}

.chips .sticker:nth-child(4n + 3) {
  background: var(--sticker-pink);
  rotate: -1deg;
}

.chips .sticker:nth-child(4n + 4) {
  background: var(--sticker-lilac);
  rotate: 2deg;
}

.story {
  position: relative;
  overflow: clip;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.story-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.story-bg i {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.story-bg i:nth-child(1) {
  background: color-mix(in srgb, var(--sticker-green) 45%, var(--paper));
}

.story-bg i:nth-child(2) {
  background: color-mix(in srgb, var(--sticker-amber) 45%, var(--paper));
}

.story-bg i:nth-child(3) {
  background: color-mix(in srgb, var(--sticker-pink) 45%, var(--paper));
}

.story-bg i:nth-child(4) {
  background: color-mix(in srgb, var(--sticker-lilac) 45%, var(--paper));
}

.story:not([data-step]) .story-bg i:nth-child(1),
.story[data-step='0'] .story-bg i:nth-child(1),
.story[data-step='1'] .story-bg i:nth-child(2),
.story[data-step='2'] .story-bg i:nth-child(3),
.story[data-step='3'] .story-bg i:nth-child(4) {
  opacity: 1;
}

.story-grid {
  position: relative;
}

.story-chapters {
  position: relative;
}

.chapter {
  position: relative;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.chapter + .chapter {
  border-top: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
}

.chapter h2 {
  margin-top: 0;
  font-size: var(--step-3);
}

.chapter .phone,
.chapter .figure-number {
  margin: 1.75rem auto 0;
}

.rail,
.story-stage {
  display: none;
}

.figure-number {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.9rem 1.5rem 0.9rem 1.25rem;
  border-radius: 1.75rem;
  background: var(--sticker-amber);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--orange) 55%, transparent);
  color: var(--sticker-fg);
  rotate: -3deg;
}

.figure-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
}

.figure-label {
  max-width: 11ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--step-0);
  line-height: 1.2;
  text-align: left;
}

.note {
  margin-top: 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-figure {
  position: relative;
  display: flex;
  justify-content: center;
}

.demo {
  width: min(100%, 400px);
}

.demo-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  color: var(--muted);
}

.demo-card {
  position: relative;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.demo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 800;
  cursor: pointer;
}

.demo-track {
  position: relative;
  flex: none;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: var(--border);
  transition: background-color 0.25s ease;
}

.demo-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.25);
  transition: transform 0.35s var(--ease-spring);
}

.demo-input:checked + .demo-switch .demo-track {
  background: var(--green);
}

.demo-input:checked + .demo-switch .demo-thumb {
  transform: translateX(24px);
}

.demo-input:focus-visible + .demo-switch .demo-track {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.demo-map {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.75rem;
}

.dm-ground {
  fill: var(--paper-deep);
}

.dm-park {
  fill: var(--sticker-green);
}

.dm-road {
  stroke: var(--surface);
  stroke-width: 10;
}

.dm-road-thin {
  stroke-width: 5;
}

.dm-friend circle {
  fill: var(--sticker-pink);
  stroke: var(--surface);
  stroke-width: 3;
  transition: stroke 0.3s ease;
}

.dm-friend use {
  fill: #c0396b;
}

.dm-f1 {
  transform: translate(56px, 40px);
}

.dm-f2 {
  transform: translate(246px, 64px);
}

.dm-f3 {
  transform: translate(120px, 172px);
}

.dm-link {
  stroke: var(--green);
  stroke-width: 3;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dm-you {
  transform: translate(150px, 105px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dm-you-dot {
  fill: var(--orange);
  stroke: var(--surface);
  stroke-width: 3;
}

.dm-you use {
  fill: #fff;
}

.dm-pulse {
  fill: var(--orange);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.dm-pulse-2 {
  animation-delay: 1s;
}

.demo-input:checked ~ .demo-map .dm-you,
.demo-input:checked ~ .demo-map .dm-link {
  opacity: 1;
}

.demo-input:checked ~ .demo-map .dm-pulse {
  animation: pulse 2s ease-out infinite;
}

.demo-input:checked ~ .demo-map .dm-pulse-2 {
  animation-delay: 1s;
}

.demo-input:checked ~ .demo-map .dm-friend circle {
  stroke: var(--green);
}

@keyframes pulse {
  from {
    transform: scale(0.8);
    opacity: 0.5;
  }

  to {
    transform: scale(3);
    opacity: 0;
  }
}

.demo-state {
  min-height: 3.4em;
  margin: 0.75rem 0 0;
  font-weight: 700;
}

.when-on,
.demo-input:checked ~ .demo-state .when-off {
  display: none;
}

.demo-input:checked ~ .demo-state .when-on {
  display: inline;
}

.band-earn {
  background: var(--night);
  color: var(--night-ink);
  overflow: clip;
}

.band-earn::before,
.band-earn::after {
  content: '';
  position: absolute;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
}

.band-earn::before {
  left: -10rem;
  top: -8rem;
  background: var(--green);
}

.band-earn::after {
  right: -10rem;
  bottom: -10rem;
  background: var(--orange);
}

.earn-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.band-earn .eyebrow {
  color: var(--amber);
}

.band-earn .lede {
  max-width: 54ch;
  color: var(--night-muted);
}

.earn-bar {
  width: min(100%, 520px);
  height: 22px;
  margin: 2rem 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}

.earn-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transform: scaleX(var(--earn, 1));
  transform-origin: left;
  transition: transform 0.6s var(--ease-spring);
}

.earn-actions {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: -0.5rem 0 0.75rem;
}

.earn-btn {
  position: relative;
  min-height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--btn-radius);
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 800;
  cursor: pointer;
}

.earn-walk {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.earn-buy {
  background: transparent;
  color: var(--night-ink);
  box-shadow:
    inset 0 0 0 2px rgb(255 255 255 / 0.35),
    0 var(--btn-depth) 0 rgb(255 255 255 / 0.18);
}

.earn-buy.is-no {
  animation: earn-no 0.45s ease;
}

.is-game .earn-actions {
  display: flex;
}

.earn-note {
  display: none;
  min-height: 3em;
  margin: 0.25rem 0 1.5rem;
  max-width: 46ch;
  font-weight: 700;
  color: var(--night-ink);
}

.is-game .earn-note {
  display: block;
}

@keyframes earn-no {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-8px);
  }

  40%,
  80% {
    transform: translateX(8px);
  }
}

.earn-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.earn-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 6.5rem;
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
}

.earn-medal {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #ffd98a,
    var(--amber) 55%,
    #c47600
  );
  box-shadow: 0 6px 0 #7a4a00;
  color: var(--night);
  transition:
    transform 0.3s var(--ease-spring),
    opacity 0.4s ease,
    scale 0.4s var(--ease-spring);
}

.earn-medal.is-locked {
  filter: grayscale(1);
  opacity: 0.4;
  scale: 0.9;
}

.earn-medal svg {
  width: 58%;
  height: 58%;
  fill: currentColor;
}

.center-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center-inner .lede {
  max-width: 54ch;
}

.pillars {
  display: grid;
  gap: 1rem;
  width: 100%;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.pillar {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
}

.pillar::before {
  content: '';
  display: block;
  width: 44px;
  height: 14px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--sticker-green);
  transition: width 0.35s var(--ease-spring);
}

.pillar:nth-child(5n + 2)::before {
  background: var(--sticker-amber);
}

.pillar:nth-child(5n + 3)::before {
  background: var(--sticker-pink);
}

.pillar:nth-child(5n + 4)::before {
  background: var(--sticker-lilac);
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.band-plus .note {
  max-width: 60ch;
  margin-top: 2rem;
}

.faq-inner {
  max-width: 46rem;
}

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  flex: none;
  width: 1rem;
  height: 1rem;
  background:
    linear-gradient(var(--green), var(--green)) center / 100% 3px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 3px 100% no-repeat;
  transition: rotate 0.3s var(--ease-spring);
}

.faq-item[open] summary::after {
  rotate: 135deg;
}

.faq-item p {
  margin: 0;
  max-width: none;
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
}

@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.35s var(--ease-out),
      content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(1.75rem, 4.5vw, 3rem);
  text-align: center;
}

.cta-inner .lede {
  max-width: 44ch;
  margin-bottom: 0.6em;
}

.cta-inner h2 {
  margin-bottom: 0.25em;
}

.band-end {
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.trail {
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  height: 3rem;
  pointer-events: none;
}

.trail svg {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--green);
  opacity: 0;
  animation: trail-step 4s ease-in-out infinite;
}

.trail svg:nth-child(1) {
  left: 12%;
  top: 1.2rem;
  rotate: 70deg;
}

.trail svg:nth-child(2) {
  left: 28%;
  top: 0.2rem;
  rotate: 80deg;
  animation-delay: 0.5s;
}

.trail svg:nth-child(3) {
  left: 44%;
  top: 1.4rem;
  rotate: 90deg;
  animation-delay: 1s;
}

.trail svg:nth-child(4) {
  left: 60%;
  top: 0.2rem;
  rotate: 100deg;
  animation-delay: 1.5s;
}

.trail svg:nth-child(5) {
  left: 76%;
  top: 1.2rem;
  rotate: 110deg;
  animation-delay: 2s;
}

@keyframes trail-step {
  0%,
  100% {
    opacity: 0;
  }

  25%,
  55% {
    opacity: 0.4;
  }
}

.community-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  width: 100%;
  max-width: 40rem;
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

.community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--paper-deep);
  color: var(--link);
}

.community-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.community-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
}

.community-body {
  margin: 0.2rem 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

.community-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--btn-radius);
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.community-join:hover {
  color: var(--paper);
  background: var(--ink);
}

@media (max-width: 34rem) {
  .community-card {
    flex-direction: column;
    text-align: center;
  }

  .community-text {
    flex-basis: auto;
  }
}

@media (min-width: 40rem) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars .pillar:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (hover: hover) {
  .pillar:hover {
    translate: 0 -6px;
    rotate: -0.6deg;
    box-shadow: var(--shadow-md);
  }

  .pillar:hover::before {
    width: 88px;
  }

  .chips .sticker:hover {
    transform: translateY(-3px) scale(1.06);
  }

  .earn-badge:hover .earn-medal {
    transform: translateY(-6px) rotate(-8deg) scale(1.08);
  }
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    justify-items: stretch;
    align-items: center;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero .lede {
    margin-inline: 0;
  }

  .hero .cta-row {
    justify-content: flex-start;
  }

  .hero .cta-soon {
    text-align: left;
  }

  .mascot-wrap {
    margin-inline: 0;
    width: 220px;
  }

  .mascot-sm {
    margin-inline: auto;
    width: 150px;
  }

  .hero-stage {
    justify-self: center;
  }

  .phone {
    max-width: 300px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars .pillar:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .fx-on .story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .fx-on .story-chapters {
    padding-left: 4.2rem;
  }

  .fx-on .chapter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88svh;
    border-top: 0;
  }

  .fx-on .chapter .phone,
  .fx-on .chapter .figure-number {
    display: none;
  }

  .fx-on .chapter::before {
    content: '';
    position: absolute;
    left: -3.65rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: -0.55rem;
    border: 4px solid var(--border);
    border-radius: 50%;
    background: var(--paper);
    transition:
      transform 0.4s var(--ease-spring),
      background-color 0.3s ease,
      border-color 0.3s ease;
  }

  .fx-on .chapter.is-active::before {
    transform: scale(1.5);
    border-color: var(--green);
    background: var(--amber);
  }

  .fx-on .chapter.is-active .eyebrow {
    color: var(--link);
  }

  .fx-on .chapter.is-active .sticker {
    animation: sticker-hop 0.6s var(--ease-spring) both;
  }

  .fx-on .chapter.is-active .sticker:nth-child(2) {
    animation-delay: 0.08s;
  }

  .fx-on .chapter.is-active .sticker:nth-child(3) {
    animation-delay: 0.16s;
  }

  .fx-on .chapter.is-active .sticker:nth-child(4) {
    animation-delay: 0.24s;
  }

  .fx-on .rail {
    position: absolute;
    z-index: 2;
    display: block;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
  }

  .rail-line {
    position: absolute;
    left: 1.05rem;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
  }

  .rail-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(var(--green), var(--amber));
    transform-origin: top;
    transform: scaleY(var(--p, 0));
  }

  .rail-dog {
    position: sticky;
    top: calc(50svh - 1.6rem);
    display: block;
    width: 3.2rem;
    height: 3.2rem;
    margin-left: -0.15rem;
    filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.2));
  }

  .rail-dog img {
    width: 100%;
    height: auto;
    animation: trot 0.7s ease-in-out infinite alternate;
  }

  .fx-on .story-stage {
    position: sticky;
    top: 5.5rem;
    display: grid;
    place-items: center;
    align-self: start;
    height: calc(100svh - 7rem);
  }

  .stage-orb {
    position: absolute;
    width: min(36rem, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgb(255 255 255 / 0.6),
      transparent 68%
    );
    animation: orb-drift 12s ease-in-out infinite alternate;
  }

  .phone-story {
    width: min(300px, calc((100svh - 10rem) * 0.4615));
    max-width: none;
    rotate: -2deg;
    transition: rotate 0.8s var(--ease-spring);
  }

  .story[data-step='1'] .phone-story,
  .story[data-step='3'] .phone-story {
    rotate: 2.5deg;
  }

  .screens {
    position: relative;
    aspect-ratio: 720 / 1560;
  }

  .screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    scale: 0.94;
    transition:
      opacity 0.5s ease,
      scale 0.7s var(--ease-out);
  }

  .story:not([data-step]) .screen-0,
  .story[data-step='0'] .screen-0,
  .story[data-step='1'] .screen-1,
  .story[data-step='2'] .screen-2,
  .story[data-step='3'] .screen-3 {
    opacity: 1;
    scale: 1;
  }

  .stage-four {
    position: absolute;
    left: -12%;
    bottom: 8%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 19rem;
    margin: 0;
    padding: 0.8rem 1.25rem 0.8rem 1rem;
    border-radius: 1.75rem;
    background: var(--sticker-amber);
    box-shadow:
      0 5px 0 color-mix(in srgb, var(--orange) 55%, transparent),
      var(--shadow-md);
    color: var(--sticker-fg);
    opacity: 0;
    scale: 0.4;
    rotate: -6deg;
    transition:
      opacity 0.4s ease,
      scale 0.6s var(--ease-spring);
  }

  .stage-four span {
    font-family: var(--display);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
  }

  .stage-four em {
    max-width: 15ch;
    font-family: var(--display);
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
  }

  .story[data-step='1'] .stage-four {
    opacity: 1;
    scale: 1;
  }
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(3rem, 2rem, 0) scale(1.15);
  }
}

@keyframes sticker-hop {
  from {
    translate: 0 12px;
  }

  to {
    translate: 0 0;
  }
}

@keyframes trot {
  from {
    rotate: -6deg;
  }

  to {
    rotate: 6deg;
  }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }

  @keyframes reveal {
    from {
      transform: translateY(28px);
    }

    to {
      transform: none;
    }
  }

  .pillar {
    animation: pillar-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  .pillar:nth-child(2) {
    animation-range: entry 4% entry 59%;
  }

  .pillar:nth-child(3) {
    animation-range: entry 8% entry 63%;
  }

  .pillar:nth-child(4) {
    animation-range: entry 12% entry 67%;
  }

  .pillar:nth-child(5) {
    animation-range: entry 16% entry 71%;
  }

  @keyframes pillar-rise {
    from {
      transform: translateY(32px) scale(0.96);
    }

    to {
      transform: none;
    }
  }
}

@media (max-width: 39.99rem) {
  .pillars {
    display: flex;
    gap: 0.75rem;
    width: calc(100% + var(--gutter) * 2);
    max-width: none;
    min-width: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.25rem var(--gutter) 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .pillars::-webkit-scrollbar {
    display: none;
  }

  .pillars:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: -3px;
    border-radius: var(--radius-lg);
  }

  .pillars .pillar {
    flex: 0 0 82%;
    scroll-snap-align: start;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot img,
  .hero-chip,
  .phone-hero,
  .rail-dog img,
  .stage-orb,
  .trail svg,
  .reveal,
  .earn-buy.is-no,
  .pillar {
    animation: none;
  }
}