/* Landing page (index.html). No script: the 3D motion is CSS scroll-driven animation, so
   browsers without it (Firefox today) and reduced-motion visitors get the same page, still. */

@font-face { font-family: "Rubik"; font-weight: 400; font-display: swap; src: url("/fonts/rubik-400.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url("/fonts/rubik-700.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url("/fonts/rubik-800.woff2") format("woff2"); }

:root {
  --bg: #FAF6F2; --surface: #FFFFFF; --muted-fill: #F3EBE5; --text: #1C1B1A; --muted: #67625C;
  --primary: #A3322A; --primary-soft: #F8E3E0; --success: #25603F; --success-soft: #E5F4EA;
  --warning: #835C13; --warning-soft: #FBF2DE; --info: #1F6F6B; --info-soft: #E3F1EF;
  --highlight: #6842A6; --highlight-soft: #F0EAFE; --star: #E8A23A; --dark: #1C1B1A;
  --shadow: 0 30px 60px -30px rgba(58, 31, 28, 0.45), 0 12px 24px -12px rgba(58, 31, 28, 0.2);
  --gutter: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Rubik", system-ui, sans-serif; line-height: 1.5; overflow-x: clip; }
img { display: block; max-width: 100%; }
/* 3D tilts and glows may stick out past the screen edge; clip them here so a phone never pans sideways
   (overflow-x on body alone does not stop mobile browsers). clip, unlike hidden, keeps sticky working. */
main { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(40px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 60px); }
h3 { font-size: 22px; }
p { margin: 0; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary); }
.eyebrow.gold { color: var(--star); }
.lead { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 0 14px 30px -14px rgba(163, 50, 42, 0.8); transition: transform 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: var(--muted-fill); color: var(--text); box-shadow: none; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top)); background: rgba(250, 246, 242, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 22px; text-decoration: none; margin-right: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 700; text-decoration: none; }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* ---------- phone mockup (sizes in em; the phone sets the base size) ---------- */
.phone { --w: clamp(250px, 27vw, 340px); width: var(--w); height: calc(var(--w) * 2.04); font-size: calc(var(--w) / 24);
  padding: 0.9em; border-radius: 4.2em; background: var(--dark); box-shadow: var(--shadow), inset 0 0 0 2px #3a3633; }
.screen { position: relative; height: 100%; border-radius: 3.4em; background: var(--bg); overflow: hidden; }
.notch { position: absolute; top: 0.8em; left: 50%; width: 7.5em; height: 2.1em; margin-left: -3.75em; border-radius: 2em; background: var(--dark); }
.status { height: 3.7em; display: flex; justify-content: space-between; align-items: center; padding: 0.4em 2.2em 0; font-size: 0.95em; font-weight: 700; }
.bars-icon { width: 2.2em; height: 0.9em; border-radius: 0.3em; background: var(--text); }
/* Discover, as in the app: search bar, filter and bell buttons, category chips with icons,
   "For you", photo-tile cards (add button on the photo, price in brick, rating and shop), full-width tab bar. */
.search-row { display: flex; gap: 0.5em; padding: 0.3em 1.1em 0.2em; }
.search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.5em; height: 3.2em; padding: 0 0.8em 0 1em; border-radius: 1.1em; background: var(--muted-fill); color: var(--placeholder, #8F8A84); font-size: 0.92em; white-space: nowrap; overflow: hidden; }
.search-field svg { width: 1.35em; height: 1.35em; flex: none; color: var(--muted); }
.search-field span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { flex: none; width: 3em; height: 3em; border-radius: 1em; background: var(--muted-fill); color: var(--text); display: grid; place-items: center; }
.icon-btn.primary { background: var(--primary); color: #fff; }
.icon-btn svg { width: 1.4em; height: 1.4em; }
.chips { display: flex; gap: 0.5em; padding: 0.75em 1.1em 0.2em; overflow: hidden; }
.chip { display: flex; align-items: center; gap: 0.35em; padding: 0.6em 0.9em; border-radius: 1em; background: var(--muted-fill); font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.chip svg { width: 1.2em; height: 1.2em; }
.chip.on { background: var(--primary); color: #fff; }
.feed-title { margin: 0.7em 1.1em 0.55em; font-size: 1.2em; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95em 0.55em; padding: 0 1.1em; }
.pcard { display: flex; flex-direction: column; min-width: 0; }
.ph { position: relative; }
.pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1.5em; background: var(--muted-fill); }
.add { position: absolute; top: 0.5em; right: 0.5em; width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.add svg { width: 1.3em; height: 1.3em; }
.pcard b { margin: 0.5em 0.15em 0; font-size: 0.92em; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .price { margin: 0.05em 0.15em 0; color: var(--primary); font-weight: 700; white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 0.25em; margin: 0.1em 0.15em 0; font-size: 0.78em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.meta i { font-style: normal; color: var(--star); }
.meta em { font-style: normal; font-weight: 400; color: var(--muted); }
.meta span { min-width: 0; margin-left: 0.2em; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 0.2em; padding: 0.5em 0.5em 1.5em; background: var(--surface);
  box-shadow: 0 -0.5em 1.5em -1em rgba(58, 31, 28, 0.35); }
.tab { flex: 1; height: 4em; border-radius: 1.1em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15em;
  color: var(--muted); font-size: 0.8em; font-weight: 700; }
.tab svg { width: 1.7em; height: 1.7em; }
.tab.on { background: var(--text); color: #fff; }

/* Order details, as in the app: back header, order number with the status badge,
   "Order tracking" card with check dots and Yalidine's number, then the product and the total. */
.back { display: flex; align-items: center; gap: 0.7em; padding: 0.1em 1.1em 0.6em; font-size: 1.25em; font-weight: 700; }
.back span { flex: 1; text-align: center; }
.back i { width: 2em; height: 2em; border-radius: 50%; background: var(--muted-fill); display: grid; place-items: center; font-style: normal; font-size: 1.1em; }
.back i.spacer { background: none; }
.o-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0 1.2em 0.9em; }
.o-head b, .o-head small { display: block; white-space: nowrap; }
.o-head small { color: var(--muted); font-size: 0.82em; }
.o-card { margin: 0 1em 0.8em; padding: 1em; border-radius: 1.4em; background: var(--surface); box-shadow: 0 0.6em 1.4em -0.9em rgba(58, 31, 28, 0.45); }
.card-title { display: block; margin-bottom: 0.6em; font-size: 1.1em; }
.o-prod { display: flex; gap: 0.9em; align-items: center; }
.o-prod img { width: 4.2em; height: 4.2em; border-radius: 1em; object-fit: cover; }
.o-prod b, .o-prod small { display: block; }
.o-prod small { color: var(--muted); font-size: 0.9em; }
.o-total { display: flex; justify-content: space-between; align-items: center; }
.o-total span { color: var(--muted); }
.o-total b { font-size: 1.25em; }
.status-chip { position: relative; flex: none; width: 6.6em; height: 1.9em; }
.st { position: absolute; right: 0; top: 0; padding: 0.3em 0.75em; border-radius: 2em; font-size: 0.85em; font-weight: 700; white-space: nowrap; }
.st0 { background: var(--warning-soft); color: var(--warning); }
.st1 { background: var(--info-soft); color: var(--info); }
.st2 { background: var(--highlight-soft); color: var(--highlight); }
.st3 { background: var(--success-soft); color: var(--success); }
.st0, .st1, .st2 { opacity: 0; }  /* without motion the order shows as delivered */
.timeline { position: relative; display: flex; flex-direction: column; padding-left: 2.4em; }
.line, .line-fill { position: absolute; left: 0.72em; top: 1.5em; width: 0.16em; height: 9em; background: #E4D9CF; }
.line-fill { background: var(--success); transform-origin: top; }
.tl-step { position: relative; height: 3em; display: flex; align-items: center; font-weight: 500; }
.dot { position: absolute; left: -2.4em; top: 50%; width: 1.6em; height: 1.6em; margin-top: -0.8em; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 0.14em #E4D9CF; }
.dot.on { display: grid; place-items: center; background: var(--success); box-shadow: none; }
.dot.on::after { content: "✓"; color: #fff; font-size: 0.85em; font-weight: 700; font-style: normal; }
.carrier { display: flex; align-items: center; gap: 0.5em; margin-top: 0.4em; padding-top: 0.7em; border-top: 1px solid #E4D9CF; color: var(--muted); font-size: 0.85em; }
.carrier svg { width: 1.4em; height: 1.4em; color: var(--info); flex: none; }

/* ---------- hero ---------- */
.hero-stage { display: grid; gap: 48px; align-items: center; padding: 40px var(--gutter) 64px; max-width: 1240px; margin: 0 auto; }
.hero-visual { position: relative; display: grid; place-items: center; perspective: 1600px; padding: 20px 0 40px; }
.hero-phone { transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(6deg); }
.float { position: absolute; z-index: 2; }
.f1 { left: -40px; top: 60%; }
.f2 { right: -30px; top: 40%; }
.f3 { right: 6%; top: 8%; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; max-width: 270px; }
.toast b, .toast small { display: block; }
.toast small { color: var(--muted); font-size: 13px; }
.toast-icon { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.toast-icon.info { background: var(--info-soft); color: var(--info); }
.toast-icon svg { width: 24px; height: 24px; }
.stars { color: var(--star); font-size: 15px; letter-spacing: 1px; }
.toast .verified { color: var(--success); font-weight: 700; }
.tag { padding: 10px 18px; border-radius: 999px; background: var(--text); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow); }
@media (max-width: 559px) {
  /* on a phone the floating cards would cover the screen mockup: keep one small review card on the edge */
  .f1, .f3 { display: none; } .f2 { right: -4px; top: auto; bottom: 4%; }
  .toast { padding: 10px 12px; font-size: 13px; max-width: 200px; } .toast small { font-size: 12px; }
}
@media (min-width: 900px) {
  .hero { height: 190vh; }
  .hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; grid-template-columns: 1.05fr 1fr; padding-top: 70px; padding-bottom: 40px; }
}

/* ---------- sections ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 72px var(--gutter); }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cards3 { display: grid; gap: 18px; margin-top: 44px; perspective: 1400px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 30px; border-radius: 28px; background: var(--surface); box-shadow: 0 20px 40px -30px rgba(58, 31, 28, 0.5); }
.feature p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.f-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.f-icon svg { width: 28px; height: 28px; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.perks li { padding: 10px 18px; border-radius: 999px; background: var(--muted-fill); font-weight: 700; font-size: 15px; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* journey */
.journey-stage { display: grid; gap: 40px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.step { padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 16px 34px -28px rgba(58, 31, 28, 0.6); }
.step b { display: block; font-size: 20px; }
.step span { color: var(--muted); }
.journey-visual { display: grid; place-items: center; perspective: 1600px; }
.journey-phone { transform: rotateY(14deg) rotateX(4deg); }

/* search */
.search-demo { padding: 26px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.search-big { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 20px; border-radius: 30px; background: var(--muted-fill); font-size: 19px; font-weight: 700; }
.search-big > svg { width: 24px; height: 24px; color: var(--muted); flex: none; }
.typed { flex: 1; white-space: nowrap; overflow: hidden; }
.cam-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.cam-btn svg { width: 22px; height: 22px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.langs span { padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 15px; }

/* ---------- sellers (dark) ---------- */
.sellers { color: #fff; background: radial-gradient(1000px 700px at 80% 10%, #3a1f1c 0%, rgba(58, 31, 28, 0) 70%), var(--dark); border-radius: 40px 40px 0 0; }
.sellers .lead, .sellers .tile p { color: rgba(255, 255, 255, 0.72); }
.dash-wrap { perspective: 1600px; }
.dash { --ry-from: -38deg; --ry: -8deg; position: relative; display: grid; gap: 14px; grid-template-columns: 1.5fr 1fr; color: var(--text);
  transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(6deg); }
.rev, .side { border-radius: 24px; background: var(--surface); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.7); }
.rev { grid-row: span 2; display: flex; flex-direction: column; padding: 24px; }
.rev-label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rev-value { margin-top: 6px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.trend { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 700; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: auto; padding-top: 24px; }
.chart i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--primary-soft); transform-origin: bottom; }
.chart i.hot { background: var(--primary); }
.chart i:nth-child(1) { --h: 38%; --i: 0; } .chart i:nth-child(2) { --h: 55%; --i: 1; } .chart i:nth-child(3) { --h: 46%; --i: 2; }
.chart i:nth-child(4) { --h: 70%; --i: 3; } .chart i:nth-child(5) { --h: 62%; --i: 4; } .chart i:nth-child(6) { --h: 84%; --i: 5; }
.chart i:nth-child(7) { --h: 100%; --i: 6; }
.side { display: flex; flex-direction: column; gap: 10px; padding: 18px; font-size: 14px; }
.side b { font-size: 16px; }
.side span { display: flex; align-items: center; gap: 10px; }
.side img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.side small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.side.alert { border-left: 5px solid var(--primary); }
@media (max-width: 559px) {
  .dash { grid-template-columns: 1fr; --ry-from: -14deg; --ry: -3deg; }
  .rev { grid-row: auto; }
  .side.best { display: none; }
  .results { font-size: 13px; gap: 8px; }
  .search-demo { padding: 18px; }
}
.tiles { display: grid; gap: 14px; perspective: 1400px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tile p { margin-top: 8px; }
.founders { display: grid; gap: 40px; align-items: center; justify-items: center; text-align: center; padding-bottom: 96px; }
@media (min-width: 900px) { .founders { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.coin-wrap { position: relative; width: 240px; height: 240px; perspective: 1200px; }
.coin-wrap::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(207, 81, 41, 0.45) 0%, rgba(207, 81, 41, 0) 60%); }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: 92px; font-weight: 800; letter-spacing: -0.04em;
  background: radial-gradient(circle at 35% 30%, #d4584c 0%, #a3322a 55%, #7d241e 100%); box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.16), inset 0 -10px 0 9px rgba(0, 0, 0, 0.12), 0 30px 50px -20px rgba(0, 0, 0, 0.7);
  transform: rotateY(-12deg) rotateX(6deg); }
.face small { font-size: 0.6em; margin-top: 0.3em; }

/* final */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 96px var(--gutter); }
.final img { margin-bottom: 18px; }
.final .btn { margin-top: 30px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 24px var(--gutter); padding-bottom: max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid #E4D9CF; color: var(--muted); font-size: 14px; }
.footer a { color: var(--muted); }

/* ---------- motion ---------- */
@keyframes bob { 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: no-preference) {
  .float-in { animation: bob 6s ease-in-out infinite; }
  .f2 .float-in { animation-delay: -2s; } .f3 .float-in { animation-delay: -4s; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* reveal on enter: content rises out of depth */
    @keyframes rise { from { opacity: 0; transform: translateY(60px) translateZ(-160px) rotateX(18deg); } to { opacity: 1; transform: none; } }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 30%; }

    /* sellers dashboard flattens, bars grow, coin tilts in */
    @keyframes dash-in { from { transform: rotateY(var(--ry-from)) rotateX(24deg) translateZ(-200px); opacity: 0.2; } to { transform: rotateY(var(--ry)) rotateX(6deg); opacity: 1; } }
    .dash { animation: dash-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes grow { from { transform: scaleY(0); } }
    .chart i { animation: grow linear both; animation-timeline: view(); animation-range: entry calc(30% + var(--i) * 8%) cover calc(35% + var(--i) * 4%); }
    /* one gentle turn that never goes edge-on, eased, over most of the section's entry */
    @keyframes coin-in { from { transform: rotateY(-55deg) rotateX(18deg) scale(0.7); opacity: 0; } to { transform: rotateY(-12deg) rotateX(6deg); opacity: 1; } }
    .coin { animation: coin-in both; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); animation-timeline: view(); animation-range: entry 10% cover 55%; }

    @media (min-width: 900px) {
      /* hero: the tilted phone turns toward you, the cards drift away in depth */
      .hero { view-timeline: --hero block; }
      @keyframes hero-phone { to { transform: rotateY(0deg) rotateX(0deg) translateZ(80px) scale(1.04); } }
      .hero-phone { animation: hero-phone linear both; animation-timeline: --hero; animation-range: contain 0% contain 100%; }
      @keyframes drift-l { to { transform: translate3d(-120px, -60px, 160px) rotateY(18deg); opacity: 0; } }
      @keyframes drift-r { to { transform: translate3d(120px, 60px, 160px) rotateY(-18deg); opacity: 0; } }
      .f1 { animation: drift-l linear both; animation-timeline: --hero; animation-range: contain 10% contain 90%; }
      .f2, .f3 { animation: drift-r linear both; animation-timeline: --hero; animation-range: contain 10% contain 90%; }
      @keyframes copy-out { to { transform: translateY(-40px); opacity: 0.15; } }
      .hero-copy { animation: copy-out linear both; animation-timeline: --hero; animation-range: contain 55% contain 100%; }

      /* journey: the phone stays, the order moves on with the scroll */
      .journey { height: 420vh; view-timeline: --journey block; }
      .journey-stage { position: sticky; top: 0; height: 100vh; height: 100svh; grid-template-columns: 1fr 1fr; }
      .steps { position: relative; display: block; height: 150px; }
      .step { position: absolute; inset: 0 0 auto; }
      .step, .st, .d1, .d2, .d3, .line-fill, .journey-phone { animation-timeline: --journey; animation-range: contain 0% contain 100%; animation-timing-function: linear; animation-fill-mode: both; }
      @keyframes s0 { 0%, 20% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s1 { 0%, 21% { opacity: 0; transform: translateY(24px); } 27%, 45% { opacity: 1; transform: none; } 51%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s2 { 0%, 46% { opacity: 0; transform: translateY(24px); } 52%, 70% { opacity: 1; transform: none; } 76%, 100% { opacity: 0; transform: translateY(-24px); } }
      @keyframes s3 { 0%, 71% { opacity: 0; transform: translateY(24px); } 77%, 100% { opacity: 1; transform: none; } }
      .step.s0, .st0 { animation-name: s0; } .step.s1, .st1 { animation-name: s1; }
      .step.s2, .st2 { animation-name: s2; } .step.s3, .st3 { animation-name: s3; }
      @keyframes on1 { 0%, 23% { transform: scale(0); } 27%, 100% { transform: scale(1); } }
      @keyframes on2 { 0%, 48% { transform: scale(0); } 52%, 100% { transform: scale(1); } }
      @keyframes on3 { 0%, 73% { transform: scale(0); } 77%, 100% { transform: scale(1); } }
      .d1 { animation-name: on1; } .d2 { animation-name: on2; } .d3 { animation-name: on3; }
      @keyframes fill { 0%, 21% { transform: scaleY(0); } 26%, 46% { transform: scaleY(0.333); } 51%, 71% { transform: scaleY(0.667); } 76%, 100% { transform: scaleY(1); } }
      .line-fill { animation-name: fill; }
      @keyframes journey-phone { from { transform: rotateY(24deg) rotateX(8deg); } to { transform: rotateY(-10deg) rotateX(2deg); } }
      .journey-phone { animation-name: journey-phone; }
    }
  }
}

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