/* Puzmora — editorial, bright, playful. Built around the four game tiles. */
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("fonts/PlusJakartaSans-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #f6f3ec;
  --paper-2: #efebe2;
  --ink: #12132a;
  --ink-2: #3f4160;
  --muted: #6b6d86;
  --line: rgb(18 19 42 / .1);
  --violet: #5b3fd9;
  --orange: #ff6b3d;
  --purple: #7c3aed;
  --cyan: #0ea5e9;
  --pink: #e5326b;
  --green: #10a36b;
  --t-number: linear-gradient(140deg, #ffc061 0%, #ff6b3d 100%);
  --t-memory: linear-gradient(140deg, #c3a8ff 0%, #7c3aed 100%);
  --t-math: linear-gradient(140deg, #5eead4 0%, #0ea5e9 100%);
  --t-odd: linear-gradient(140deg, #ff9ccd 0%, #e5326b 100%);
  --t-direction: linear-gradient(140deg, #7ef0b5 0%, #10a36b 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchored sections clear the fixed header. */
[id] { scroll-margin-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
/* Keep true proportions when width is constrained. */
img { height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 10px; }
.wrap { width: min(76rem, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 1rem; z-index: 50; padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { left: 1rem; }
/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.scrolled { background: rgb(246 243 236 / .82); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; }
.brand img { width: 2.3rem; height: 2.3rem; border-radius: .7rem; box-shadow: 0 4px 14px -4px rgb(18 19 42 / .3); }
.nav { display: flex; align-items: center; gap: 2rem; font-weight: 700; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; }
.nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; transition: transform .3s var(--spring), background .3s; }
.pill:hover { transform: translateY(-2px); background: var(--violet); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .75rem; min-height: 3.6rem; padding: .75rem 1.5rem .75rem 1.15rem; border-radius: 1.1rem; text-decoration: none; font-weight: 800; transition: transform .35s var(--spring), box-shadow .35s var(--ease), background .3s; }
.btn svg { width: 1.6rem; height: 1.6rem; flex: none; }
.btn small { display: block; font-size: .72rem; font-weight: 700; opacity: .7; line-height: 1.1; }
.btn span { line-height: 1.15; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -14px rgb(18 19 42 / .8); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -14px rgb(18 19 42 / .9); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 10px 26px -16px rgb(18 19 42 / .5); }
.btn-light:hover { transform: translateY(-3px); }
.btn[aria-disabled="true"] { cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 7rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker i { display: inline-grid; grid-template-columns: repeat(2, .5rem); gap: .15rem; }
.kicker i b { width: .5rem; height: .5rem; border-radius: .14rem; }
.display { margin-top: 1.4rem; font-size: clamp(2.7rem, 6vw, 5.4rem); font-weight: 800; line-height: .94; letter-spacing: -.055em; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; }
.display em { font-style: normal; color: var(--violet); }
.hero-copy .lead { margin-top: 1.6rem; max-width: 30rem; color: var(--ink-2); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero-copy .actions { margin-top: 2.2rem; }
.hero-copy .fine { margin-top: 1rem; color: var(--muted); font-size: .92rem; }

/* Tile mosaic + phone */
.stage { position: relative; aspect-ratio: 1 / 1.25; width: 100%; max-width: 30rem; margin-left: auto; }
/* Four tiles orbit the phone, one at each corner. */
.mosaic { position: absolute; inset: 0; }
.mosaic .tile { position: absolute; width: 34%; aspect-ratio: 1; }
.mosaic .tile { transform: rotate(var(--rr, 0deg)); }
.mosaic .n { left: 0; top: 6%; --rr: -12deg; }
.mosaic .m { right: 0; top: 0; --rr: 10deg; }
.mosaic .q { left: 2%; bottom: 8%; --rr: 8deg; }
.mosaic .o { right: 2%; bottom: 2%; --rr: -7deg; }
.tile { border-radius: 28%; display: grid; place-items: center; color: #fff; box-shadow: 0 30px 50px -28px rgb(18 19 42 / .55), inset 0 2px 0 rgb(255 255 255 / .35); will-change: transform; }
.tile svg { width: 42%; height: 42%; }
.tile.n { background: var(--t-number); }
.tile.m { background: var(--t-memory); }
.tile.q { background: var(--t-math); }
.tile.o { background: var(--t-odd); }
/* Device mockups are pre-rendered images (frame + real screen). */
.phone { position: relative; margin: 0; }
.phone .device { position: relative; display: block; isolation: isolate; }
.phone img { width: 100%; }
/* Soft floor shadow (no filters: avoids Safari painting a tinted layer). */
.phone .device::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; bottom: -3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgb(18 19 42 / .38), transparent); }
.stage .phone { position: absolute; width: 46%; left: 21%; top: 7%; transform: rotate(5deg); z-index: 1; }

/* ---------- Marquee: the five skills in display type ---------- */
.marquee { overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; animation: marquee 48s linear infinite; }
.word { font-size: clamp(3rem, 8vw, 7rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; white-space: nowrap; color: var(--ink); }
.word.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.sep { flex: none; width: clamp(1.6rem, 3vw, 2.6rem); aspect-ratio: 1; border-radius: 30%; transform: rotate(-12deg); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.eyebrow { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.h2 { margin-top: .9rem; font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; max-width: 16ch; }
.sub { margin-top: 1.2rem; max-width: 36rem; color: var(--ink-2); font-size: 1.15rem; }

/* Games */
.games { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.game { grid-column: span 2; position: relative; min-height: 19rem; padding: 1.8rem; border-radius: 2rem; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform .5s var(--spring); }
.game:nth-child(4), .game:nth-child(5) { grid-column: span 3; }
.game:hover { transform: translateY(-8px) rotate(-.6deg); }
.game .glyph { position: absolute; top: 1.5rem; right: 1.5rem; width: 5.5rem; height: 5.5rem; opacity: .95; transition: transform .6s var(--spring); }
.game:hover .glyph { transform: rotate(-10deg) scale(1.08); }
.game .num { position: absolute; top: 1.6rem; left: 1.8rem; font-weight: 800; font-size: .9rem; letter-spacing: .1em; opacity: .85; }
.game h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.game p { margin-top: .5rem; opacity: .92; max-width: 22rem; }
.game.n { background: var(--t-number); }
.game.m { background: var(--t-memory); }
.game.q { background: var(--t-math); }
.game.o { background: var(--t-odd); }
.game.d { background: var(--t-direction); }

/* Try it — dark band */
.dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dark .eyebrow { color: #ffb547; }
.dark .sub { color: #b7b9cf; }
.dark::before { content: ""; position: absolute; width: 50rem; height: 50rem; right: -18rem; top: -18rem; border-radius: 50%; background: radial-gradient(closest-side, rgb(91 63 217 / .45), transparent); pointer-events: none; }
.try-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.board { position: relative; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 2.2rem; background: #1b1d38; box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset, 0 40px 80px -40px #000; }
.board-head { display: flex; align-items: center; gap: .9rem; }
.board-head i { width: 3.1rem; height: 3.1rem; border-radius: 1rem; background: var(--t-number); display: grid; place-items: center; }
.board-head i svg { width: 1.6rem; height: 1.6rem; color: #fff; }
.board-head strong { display: block; font-size: 1.2rem; }
.board-head span { color: #a3a6c2; font-size: .92rem; }
.seq { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 1.6rem; padding: 0; }
.seq li { min-width: 3.8rem; height: 4.2rem; padding: 0 .8rem; display: grid; place-items: center; border-radius: 1.15rem; background: rgb(255 255 255 / .07); box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset; font-size: 1.6rem; font-weight: 800; }
.seq li.gap { background: var(--t-number); box-shadow: 0 14px 30px -12px rgb(255 107 61 / .8); animation: breathe 1.8s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.06); } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.opt { height: 4.4rem; border: 0; border-radius: 1.3rem; background: rgb(255 255 255 / .07); box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset; color: #fff; font: 800 1.6rem var(--font); cursor: pointer; transition: transform .3s var(--spring), background .25s; }
.opt:hover { background: rgb(255 255 255 / .13); transform: translateY(-2px); }
.opt:active { transform: scale(.95); }
.opt.right { background: linear-gradient(135deg, #34d399, #14b8a6); color: #052a20; transform: scale(1.04); }
.opt.wrong { background: rgb(251 113 133 / .18); box-shadow: 0 0 0 1.5px #fb7185 inset; color: #fda4af; animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.say { min-height: 3.2em; margin-top: 1.2rem; text-align: center; color: #c9cbe0; font-weight: 700; }
.burst { position: absolute; inset: 0; pointer-events: none; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3.5rem; }
.stat { padding: 1.8rem; border-radius: 1.8rem; background: #fff; box-shadow: 0 1px 0 var(--line); }
.stat b { display: block; font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; margin-top: .6rem; color: var(--ink-2); font-weight: 700; }

/* Features with icons */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.1rem; }
.feature { padding: 1.8rem; border-radius: 1.8rem; background: #fff; box-shadow: 0 1px 0 var(--line); }
.feature i { width: 3.1rem; height: 3.1rem; border-radius: 1rem; display: grid; place-items: center; color: #fff; }
.feature i svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { margin-top: 1.2rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.feature p { margin-top: .4rem; color: var(--ink-2); }

/* Screens */
/* Desktop: five devices in one even row that fits the page. */
.screens { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); align-items: start; }
.screens figcaption { margin-top: 1.4rem; text-align: center; font-weight: 800; color: var(--ink-2); font-size: .95rem; }

/* Final CTA */
.cta { position: relative; overflow: hidden; border-radius: 2.6rem; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); background: var(--ink); color: #fff; text-align: center; }
.cta .h2 { margin-inline: auto; color: #fff; }
.cta .sub { margin-inline: auto; color: #c4c6dc; }
.cta .actions { justify-content: center; margin-top: 2.2rem; }
.cta .float { position: absolute; width: 7rem; height: 7rem; border-radius: 28%; opacity: .9; }
.cta .f1 { background: var(--t-number); left: -2rem; top: 2rem; transform: rotate(-14deg); }
.cta .f2 { background: var(--t-memory); right: -1.5rem; top: 3rem; transform: rotate(12deg); width: 5.5rem; height: 5.5rem; }
.cta .f3 { background: var(--t-math); left: 8%; bottom: -2.5rem; transform: rotate(10deg); width: 5rem; height: 5rem; }
.cta .f4 { background: var(--t-odd); right: 9%; bottom: -2rem; transform: rotate(-8deg); }

/* Footer */
.footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer nav { display: flex; gap: 1.6rem; font-weight: 700; }
.footer nav a { text-decoration: none; color: var(--ink-2); }
.footer nav a:hover { color: var(--violet); }

/* Policy page */
.policy-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(2.5rem, 6vw, 6rem); padding: 8rem 0 4rem; }
.policy { min-width: 0; }
/* Sticky contents list, aligned with the logo. */
.toc { position: sticky; top: 7rem; align-self: start; padding-top: .6rem; }
.toc p { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 1rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-weight: 700; font-size: .95rem; text-decoration: none; transition: color .2s, border-color .2s; }
.toc li a:hover, .toc li a.active { color: var(--violet); border-left-color: var(--violet); }
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); padding-top: 6.5rem; }
  .toc { display: none; }
}
.policy h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.policy .updated { margin-top: .8rem; color: var(--muted); font-weight: 700; }
.policy .summary { margin-top: 2rem; padding: 1.5rem 1.7rem; border-radius: 1.6rem; background: #fff; box-shadow: 0 1px 0 var(--line); }
.policy h2 { margin-top: 2.6rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.policy p, .policy li { color: var(--ink-2); }
.policy p { margin-top: .8rem; }
.policy ul { padding-left: 1.2rem; }
.policy li { margin-top: .5rem; }
.policy a { color: var(--violet); }

/* ---------- Motion ---------- */
/* Everything is visible by default; JS opts elements into reveal motion. */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .display .line > span { transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js.ready .display .line > span { transform: none; }
.js .hero-copy .lead, .js .hero-copy .actions, .js .hero-copy .fine, .js .kicker { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js.ready .hero-copy .lead, .js.ready .hero-copy .actions, .js.ready .hero-copy .fine, .js.ready .kicker { opacity: 1; transform: none; }
.js .tile { opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) rotate(var(--fr, 0)) scale(.4); transition: opacity .6s var(--ease), transform 1.1s var(--spring); transition-delay: var(--d, 0s); }
.js.ready .tile { opacity: 1; transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--rr, 0deg)); }
.js.ready .tile.settled { transition: transform .9s var(--ease); }
.js .stage .phone { opacity: 0; transform: translate3d(0, 120px, 0) rotate(5deg); transition: opacity .9s var(--ease) .75s, transform 1.3s var(--spring) .75s; }
.js.ready .stage .phone { opacity: 1; transform: translate3d(var(--qx, 0), var(--qy, 0), 0) rotate(5deg); }
.js.ready .stage .phone.settled { transition: transform .9s var(--ease); }
.game, .stat, .feature { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .display .line > span, .js .tile, .js .stage .phone,
  .js .hero-copy .lead, .js .hero-copy .actions, .js .hero-copy .fine, .js .kicker { opacity: 1 !important; transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .game, .game:nth-child(4), .game:nth-child(5) { grid-column: span 1; }
  .game:nth-child(5) { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .wrap { width: min(40rem, 100% - 2.25rem); }
  .nav a:not(.pill) { display: none; }
  .hero { padding-top: 6rem; min-height: auto; }
  .hero-grid, .try-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 26rem; margin: 1rem auto 0; }
  .games { grid-template-columns: 1fr; }
  .game, .game:nth-child(5) { grid-column: auto; min-height: 15rem; }
  .features { grid-template-columns: 1fr; }
}

/* Official store badges (unmodified artwork, sized to match visually). */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.badges a { display: inline-block; border-radius: 10px; transition: transform .35s var(--spring), opacity .3s; }
.badges a:hover { transform: translateY(-3px); }
.badges .apple img { height: 3.4rem; width: auto; }
/* Google's PNG includes built-in padding; offset it so both badges align. */
.badges .play img { height: 5rem; width: auto; margin: -.8rem -.75rem; }
.soon { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .9rem; padding: .3rem .75rem; border-radius: 999px; background: rgb(91 63 217 / .1); color: var(--violet); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.soon::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--violet); }
.cta .soon { background: rgb(255 255 255 / .12); color: #fff; }
.cta .soon::before { background: #ffb547; }
.cta .badges { justify-content: center; margin-top: 2rem; }

/* Platform switch */
.platforms { margin-top: 3.5rem; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: .35rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgb(18 19 42 / .5); }
.switch button { position: relative; z-index: 1; min-width: 7.5rem; padding: .7rem 1.4rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 800; cursor: pointer; transition: color .35s var(--ease); }
.switch button[aria-selected="true"] { color: #fff; }
.switch-thumb { position: absolute; top: .35rem; bottom: .35rem; left: .35rem; width: calc(50% - .35rem); border-radius: 999px; background: var(--ink); transition: transform .5s var(--spring); }
.switch.right .switch-thumb { transform: translateX(100%); }
.screens.enter .phone { animation: rise .7s var(--ease) both; }
.screens.enter .phone:nth-child(2) { animation-delay: .05s; } .screens.enter .phone:nth-child(3) { animation-delay: .1s; }
.screens.enter .phone:nth-child(4) { animation-delay: .15s; } .screens.enter .phone:nth-child(5) { animation-delay: .2s; }
.screens.enter .phone:nth-child(6) { animation-delay: .25s; } .screens.enter .phone:nth-child(7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

/* The platform switch clears the header on anchor jumps. */
#screens { scroll-margin-top: 7rem; }

/* The closing call-to-action sits close to the footer. */
#get { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Phones and small tablets: full-bleed swipe row, no visible container. */
@media (max-width: 900px) {
  .screens { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50vw); padding: 0 1.25rem 2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .screens::-webkit-scrollbar { display: none; }
  .screens .phone { flex: 0 0 min(15rem, 62vw); scroll-snap-align: center; }
}
