/* Step Tracker website — styles.
   Plain CSS, no build step. Animations respect "Reduce Motion" (see the bottom of the file). */

:root {
  --accent: #4F46E5;
  --accent-deep: #3730A3;
  --ink: #16161A;
  --sec: rgba(22, 22, 26, .64);
  --ter: rgba(22, 22, 26, .42);
  --bg: #FBFBFD;
  --card: #fff;
  --soft: linear-gradient(135deg, #EEECFE, #F6EEFD);
  --radius: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 10px 30px rgba(20, 20, 30, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.display { font-weight: 800; letter-spacing: -.035em; line-height: 1.03; margin: 0; }
.h1 { font-size: clamp(44px, 5.4vw, 78px); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); }
.h3 { font-size: clamp(30px, 3.4vw, 48px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--sec); margin: 0; }
.gradient-text {
  background: linear-gradient(100deg, var(--ink) 0%, var(--ink) 40%, var(--accent) 50%, var(--ink) 60%, var(--ink) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s var(--ease) 1.6s infinite;
}
@keyframes sheen { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0 0; } }

/* numbers inside the device mockups */
.big { font-weight: 800; letter-spacing: -1px; }
.cap { font-size: 12px; font-weight: 600; color: var(--ter); letter-spacing: .3px; text-transform: uppercase; }
.lbl { font-size: 13px; font-weight: 600; color: var(--sec); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s; }
.nav.scrolled { background: rgba(251, 251, 253, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 rgba(0, 0, 0, .08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.links { display: flex; gap: 34px; }
.links a { font-size: 15px; font-weight: 600; color: rgba(22, 22, 26, .72); position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.links a:hover, .links a[aria-current="page"] { color: var(--accent); }
.links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); margin: 4px 0; transition: transform .35s var(--ease), opacity .2s; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- App Store badge ---------- */
.badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 13px; padding: 10px 20px 10px 15px;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}
.badge small { display: block; font-size: 11px; font-weight: 500; line-height: 1.1; }
.badge b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.badge:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.badge:hover::after { transform: translateX(120%); }
.badge.small { padding: 7px 14px 7px 11px; border-radius: 11px; }
.badge.small b { font-size: 17px; }
.badge.small small { font-size: 9.5px; }
.ghost { font-size: 16px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.ghost i { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.ghost:hover i { transform: translateY(3px); }

.checks { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: rgba(22, 22, 26, .72); }
.check svg { flex-shrink: 0; }

/* ---------- background blobs ---------- */
.blobs { position: absolute; inset: -160px 0 -200px; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); }
.blob.b1 { width: 760px; height: 760px; right: -120px; top: -120px; background: radial-gradient(circle, rgba(129, 120, 255, .32), transparent 65%); animation: drift1 22s ease-in-out infinite; }
.blob.b2 { width: 560px; height: 560px; right: -160px; top: 360px; background: radial-gradient(circle, rgba(232, 170, 255, .34), transparent 65%); animation: drift2 26s ease-in-out infinite; }
.blob.b3 { width: 520px; height: 520px; left: -240px; top: 200px; background: radial-gradient(circle, rgba(160, 190, 255, .24), transparent 65%); animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes drift2 { 50% { transform: translate(-40px, -50px) scale(1.06); } }
@keyframes drift3 { 50% { transform: translate(50px, 30px) scale(1.1); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 60px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; }
.hero h1 { margin-top: 18px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px); animation: wordIn 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero .lead { margin-top: 24px; max-width: 540px; }
.hero .cta { display: flex; align-items: center; gap: 34px; margin-top: 34px; }
.hero .checks { margin-top: 30px; }
.load-in { opacity: 0; transform: translateY(18px); animation: loadIn 1s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

.stage { position: relative; height: 700px; perspective: 1400px; }
.stage .tilt { position: absolute; left: 50%; top: 0; width: 320px; margin-left: -160px; transform-style: preserve-3d; will-change: transform; }
.phone { position: relative; border-radius: 54px; background: #0d0d10; padding: 11px; box-shadow: inset 0 0 0 1.5px #2b2b33, 0 50px 90px rgba(40, 30, 120, .25), 0 12px 28px rgba(20, 20, 40, .12); }
.phone img { width: 100%; border-radius: 44px; }
.phone .island { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 31%; height: 30px; border-radius: 20px; background: #000; z-index: 2; }
.phone .time { position: absolute; left: 13%; top: 27px; font-size: 14px; font-weight: 700; z-index: 2; color: var(--ink); }
.phone.dark .time { color: #fff; }
.hero-phone { opacity: 0; transform: translateY(60px) scale(.94); animation: phoneIn 1.4s var(--ease) .35s forwards; }
@keyframes phoneIn { to { opacity: 1; transform: none; } }

.floaty { position: absolute; z-index: 3; opacity: 0; animation: popIn .9s var(--spring) forwards, bob 6s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + 1s); }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.glass { background: rgba(255, 255, 255, .74); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 14px 34px rgba(20, 20, 40, .14); border-radius: 20px; padding: 12px 16px; }
.chip-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.chip-row strong { display: block; font-size: 19px; font-weight: 800; }
.chip-row span { display: block; font-size: 13px; font-weight: 600; color: var(--sec); }
.medal { border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2)); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; }
.medal::after { content: ""; width: 62%; height: 62%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); }
.medal.shine { position: relative; overflow: hidden; }
.medal.shine::before { content: ""; position: absolute; inset: -20%; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); transform: translateX(-100%); animation: medalShine 4s var(--ease) 2.5s infinite; }
@keyframes medalShine { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }

/* Live Activity */
.la { width: 330px; border-radius: 26px; padding: 14px 16px; background: rgba(28, 28, 34, .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; box-shadow: 0 22px 44px rgba(20, 20, 40, .28); }
.la-top { display: flex; align-items: center; gap: 12px; }
.la-icon { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; flex-shrink: 0; }
.la-label { font-size: 13px; font-weight: 600; opacity: .65; }
.la-steps { font-size: 22px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.la-steps small { font-size: 14px; font-weight: 600; opacity: .7; }
.la-time { margin-left: auto; text-align: right; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.la-time small { display: block; font-size: 12px; font-weight: 600; opacity: .6; }
.la-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin-top: 12px; overflow: hidden; }
.la-bar { height: 100%; width: 46%; border-radius: 3px; background: linear-gradient(90deg, #8B85FF, #C4C0FF); transition: width 1s var(--ease); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #8B85FF; display: inline-block; margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

/* ---------- privacy band ---------- */
.band { background: var(--soft); border-radius: 32px; padding: 44px 52px; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 36px; margin-top: 30px; }
.band h2 { font-size: 36px; }
.band h3 { margin: 0; font-size: 18px; font-weight: 800; }
.band p { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--sec); }

/* ---------- sections ---------- */
section { position: relative; }
.center { text-align: center; }
.section-head { margin-top: 140px; }
.section-head .h2 { margin-top: 14px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-top: 100px; }
.feature.flip .visual { order: 2; }
.feature .h3 { margin-top: 12px; }
.feature .lead { margin-top: 18px; font-size: 19px; }
.feature .checks { flex-direction: column; margin-top: 26px; }
.visual { position: relative; height: 700px; display: flex; align-items: center; justify-content: center; }
.visual::before { content: ""; position: absolute; inset: 40px 20px; border-radius: 48px; background: linear-gradient(160deg, #EEECFE, #F7EFFD); transform: scale(var(--bg-scale, .92)); transition: transform 1.4s var(--ease); }
.visual.in::before { --bg-scale: 1; }
.visual .phone { width: 300px; }
.visual .parallax { position: relative; will-change: transform; }
.visual .floaty { animation-play-state: paused; }
.visual.in .floaty { animation-play-state: running; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.scale { transform: translateY(40px) scale(.94); }
.reveal.scale.in { transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.stagger.in > *:nth-child(5) { transition-delay: .32s; }
.stagger.in > *:nth-child(6) { transition-delay: .40s; }

/* ---------- widgets (dark) ---------- */
.dark-band { margin-top: 140px; background: #0E0D1A; color: #fff; padding: 110px 0 120px; overflow: hidden; position: relative; }
.dark-band .glow { position: absolute; left: 50%; top: -220px; width: 900px; height: 620px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(129, 120, 255, .38), transparent 65%); animation: glowPulse 8s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .65; transform: scale(1.08); } }
.widgets-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.dark-band .eyebrow { color: #A5A0FF; }
.dark-band .lead { color: rgba(255, 255, 255, .7); margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags span { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); transition: background .25s, transform .3s var(--spring); }
.tags span:hover { background: rgba(165, 160, 255, .25); transform: translateY(-2px); }
.devices { display: flex; gap: 36px; justify-content: flex-end; align-items: flex-start; }
.devices > :last-child { margin-top: 60px; }
.wpop { opacity: 0; transform: scale(.82) translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--spring); }
.in .wpop { opacity: 1; transform: none; }
.gbar { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--spring); }
.in .gbar { transform: scaleY(1); }

/* ---------- iPhone Duo ---------- */
.duo-frame { position: relative; border-radius: 34px; background: #0d0d10; padding: 10px; box-shadow: 0 40px 80px rgba(40, 30, 120, .22); }
.duo-frame img { width: 380px; border-radius: 26px; }
.duo-hinge { transform: perspective(1400px) rotateX(var(--fold, 0deg)); transform-origin: center bottom; transition: transform 1.6s var(--ease); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 80px; margin-top: 140px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .3s; }
details:hover { box-shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 16px 36px rgba(20, 20, 30, .09); }
summary { list-style: none; cursor: pointer; padding: 22px 26px; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary .pm { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2.2px; border-radius: 2px; background: var(--accent); transition: transform .4s var(--ease); }
summary .pm::after { transform: rotate(90deg); }
details[open] summary .pm::after { transform: rotate(0deg); }
details .answer { padding: 0 26px 22px; font-size: 16px; line-height: 1.6; color: var(--sec); }
details .answer p { margin: 0; }

/* ---------- final CTA ---------- */
.final { margin-top: 140px; border-radius: 40px; overflow: hidden; position: relative; color: #fff; padding: 80px 72px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, #4F46E5, #7C3AED, #C026D3, #7C3AED, #4F46E5); background-size: 300% 300%; animation: flow 14s ease-in-out infinite; }
@keyframes flow { 50% { background-position: 100% 50%; } }
.final::before { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.final .h2 { font-size: clamp(36px, 4.4vw, 60px); }
.final p { font-size: 20px; opacity: .85; margin: 18px 0 32px; }
.final .mascot { position: relative; width: 230px; animation: bob 5s ease-in-out infinite; }
.sparkle { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }

/* ---------- footer ---------- */
footer { margin-top: 60px; border-top: .5px solid rgba(0, 0, 0, .07); }
.foot { display: flex; justify-content: space-between; align-items: center; padding: 48px 0 56px; gap: 20px; flex-wrap: wrap; }
.foot .brand { font-size: 15px; }
.foot .brand img { width: 30px; height: 30px; border-radius: 8px; }
.foot .copy { font-size: 14px; color: var(--ter); font-weight: 500; margin-left: 10px; }
.foot nav { display: flex; gap: 28px; }
.foot nav a { font-size: 14px; font-weight: 600; color: rgba(22, 22, 26, .7); }
.foot nav a:hover { color: var(--accent); }

/* ---------- legal + support pages ---------- */
.page-head { position: relative; padding: 72px 0 40px; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head .lead { margin-top: 14px; max-width: 640px; }
.updated { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ter); }
.legal-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 80px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc .cap { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ter); padding: 0 12px 8px; }
.toc a { display: block; font-size: 14px; font-weight: 600; color: rgba(22, 22, 26, .6); padding: 7px 12px; border-radius: 9px; transition: background .25s, color .25s; }
.toc a.on, .toc a:hover { background: rgba(79, 70, 229, .1); color: var(--accent); }
.legal h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 44px 0 10px; scroll-margin-top: 100px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: rgba(22, 22, 26, .72); margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal b { color: var(--ink); }
.legal a, .mail { color: var(--accent); font-weight: 700; }
.summary { border-radius: 24px; background: var(--soft); padding: 28px 30px; scroll-margin-top: 100px; }
.summary h2 { margin: 0; font-size: 22px; }
.summary > p { margin-top: 8px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 22px; }
.tick { display: flex; gap: 12px; align-items: flex-start; }
.tick strong { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.tick span { display: block; font-size: 14px; line-height: 1.5; color: var(--sec); margin-top: 2px; }
.help-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 1; }
.help { background: var(--card); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); transition: transform .4s var(--spring), box-shadow .3s; }
.help:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 18px 40px rgba(20, 20, 30, .1); }
.help .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.help h3 { font-size: 19px; font-weight: 800; margin: 14px 0 4px; }
.help p { font-size: 15px; line-height: 1.5; color: var(--sec); margin: 0; }
.help .act { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--accent); }
.help .btn { display: inline-flex; margin-top: 16px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; padding: 11px 18px; border-radius: 12px; transition: transform .3s var(--spring), box-shadow .3s; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.help .btn:hover { transform: translateY(-2px); }
.help small { display: block; margin-top: 10px; font-size: 13px; color: var(--ter); }
.group { display: grid; grid-template-columns: 260px 1fr; gap: 60px; margin-top: 44px; }
.group h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.include { margin-top: 90px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); padding: 32px 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.include h3 { margin: 0; font-size: 20px; font-weight: 800; }
.include p { margin: 6px 0 0; font-size: 15px; color: var(--sec); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills span { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(22, 22, 26, .05); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .links, .nav .badge { display: none; }
  .menu-btn { display: block; }
  .menu-open .links { display: flex; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(20px); box-shadow: 0 20px 50px rgba(20, 20, 40, .16); animation: popIn .4s var(--spring); }
  .menu-open .links a { padding: 14px 16px; font-size: 17px; }
  .menu-open .links a::after { display: none; }
  .hero { padding-top: 30px; text-align: center; }
  .hero-grid, .feature, .widgets-grid, .faq-grid, .legal-grid, .group { grid-template-columns: 1fr; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { justify-content: center; flex-direction: column; gap: 14px; }
  .hero .checks { justify-content: center; }
  .stage { height: 660px; margin-top: 20px; }
  .stage .f-streak { display: none; }
  .stage .tilt { width: 270px; margin-left: -135px; }
  .stage .f-streak { left: 0 !important; top: 60px !important; }
  .stage .f-medal { right: 0 !important; left: auto !important; top: 180px !important; }
  .stage .f-pace { display: none; }
  .stage .f-la { left: 50% !important; margin-left: -160px; top: 420px !important; }
  .la { width: 320px; }
  .band { grid-template-columns: 1fr; padding: 30px 26px; gap: 18px; }
  .band h2 { font-size: 28px; }
  .feature { margin-top: 70px; gap: 24px; }
  .feature.flip .visual { order: 0; }
  .visual { height: 560px; }
  .visual .phone { width: 250px; }
  .visual .floaty { display: none; }
  .devices { justify-content: center; flex-wrap: wrap; }
  .devices > :first-child { display: none; }
  .devices > :last-child { margin-top: 20px; }
  .faq-grid { gap: 24px; margin-top: 90px; }
  .final { flex-direction: column; text-align: center; padding: 48px 26px 0; }
  .final .mascot { width: 170px; margin-top: 20px; }
  .toc { display: none; }
  .ticks, .help-cards { grid-template-columns: 1fr; }
  .group { gap: 14px; }
  .include { flex-direction: column; align-items: flex-start; }
  .duo-frame img { width: 300px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .stage .tilt { width: 240px; margin-left: -120px; }
  .stage { height: 600px; }
  .stage .f-la { margin-left: -150px; }
  .la { width: 300px; }
  .section-head { margin-top: 90px; }
  .dark-band { margin-top: 90px; padding: 70px 0; }
  .final { margin-top: 90px; }
}

/* ---------- Reduce Motion: show everything, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal, .stagger > *, .wpop, .hero h1 .w, .load-in, .hero-phone, .floaty { opacity: 1 !important; transform: none !important; filter: none !important; }
  .gbar { transform: none !important; }
  .gradient-text { animation: none; color: var(--ink); background: none; }
}
@media (max-width: 700px) { .hide-sm { display: none; } }
#widgets .h2 { font-size: clamp(32px, 3.6vw, 50px); }
@media (max-width: 980px) { .section-head br { display: none; } }
.chip-row strong span { display: inline; font-size: inherit; color: inherit; font-weight: inherit; }
.floaty img { max-width: none; }
.la-icon img { width: 100%; height: 100%; }

/* ---------- inside the app (Settings opens pages with ?app=1) ---------- */
.in-app .nav, .in-app footer, .in-app .hide-in-app, .in-app .page-head .eyebrow, .in-app .blobs { display: none; }
.in-app .page-head { padding: 20px 0 8px; }
.in-app .page-head .h1 { font-size: 34px !important; margin-top: 0 !important; }
.in-app main { padding-bottom: calc(env(safe-area-inset-bottom) + 120px); }
.in-app .help-cards { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .in-app .help-cards { grid-template-columns: 1fr; } }
.in-app .legal h2:first-child { margin-top: 24px; }
@media (prefers-color-scheme: dark) {
  .in-app {
    color-scheme: dark;
    --accent: #8B8CFF;
    --ink: #F5F5F7;
    --sec: rgba(245, 245, 247, .68);
    --ter: rgba(245, 245, 247, .45);
    --bg: #000;
    --card: #1C1C1E;
    --soft: linear-gradient(135deg, #1E1B3A, #2A1B36);
    --shadow: 0 0 0 .5px rgba(255, 255, 255, .08);
  }
  .in-app body { background: var(--bg); color: var(--ink); }
  .in-app .legal p, .in-app .legal li { color: var(--sec); }
  .in-app .blob { opacity: .45; }
  .in-app .pills span { background: rgba(255, 255, 255, .08); }
  .in-app .help .btn { box-shadow: none; }
}
