/* Mymo — shared styles for the marketing site (mymoapp.com).
   Static, no build step. Brand palette is taken from the app icon waveform:
   teal #03eae4 → purple #a042e8 → magenta #f10381 → orange #fcb300.
   Theming: dark by default, light via :root[data-theme="light"]. The active
   theme is set on <html> by an inline script (saved choice or system pref). */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090d;
  --bg-soft: #0e1017;
  --card: #14161f;
  --card-border: #20232f;
  --card-hover: #2c3142;
  --fg: #f5f6f9;
  --muted: #a3a9b6;
  --muted-dim: #868d9c;       /* AA on both --bg and the lighter --card surface */
  --link: #14d6d0;            /* teal, readable on dark */
  --positive: #18a86a;
  --negative: #cd5b73;
  --nav-bg: rgba(8, 9, 13, 0.72);
  --shadow: 0 30px 80px rgba(0,0,0,.55);
  --glow-opacity: .28;
  --device-border: #a3abc2;
  --device-shadow: var(--shadow), 0 0 0 1px rgba(225,235,255,.38),
    0 0 18px 3px rgba(175,190,255,.24),
    -20px 10px 44px 6px rgba(3,234,228,.32),
    24px -8px 60px 8px rgba(160,66,232,.40),
    inset 0 0 0 2px rgba(255,255,255,.05);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-soft: #eef1f6;
  --card: #ffffff;
  --card-border: #e3e7ef;
  --card-hover: #cfd6e4;
  --fg: #11131a;
  --muted: #545b6b;
  --muted-dim: #626a79;       /* AA on --bg, --bg-soft and --card */
  --link: #08716d;
  --positive: #087842;
  --negative: #ad3550;
  --grad-text: linear-gradient(100deg, #08716d, #8130be);
  --grad-headline: linear-gradient(100deg, #08716d, #8130be 38%, #bd0065 58%, #8130be 78%, #08716d);
  --nav-bg: rgba(247, 248, 251, 0.8);
  --shadow: 0 24px 60px rgba(20,30,60,.16);
  --glow-opacity: .18;
  --device-border: var(--card-border);
  --device-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.05);
}

/* brand colors (theme-independent) */
:root {
  --accent: #5b56d9;
  --teal: #03eae4;
  --purple: #a042e8;
  --magenta: #f10381;
  --orange: #fcb300;
  --radius: 18px;
  --maxw: 1200px;
  --grad: linear-gradient(100deg, var(--teal), var(--purple) 42%, var(--magenta) 72%, var(--orange));
  /* Calmer 2-tone gradient for the headline (less color variation than --grad) */
  --grad-text: linear-gradient(100deg, var(--teal), var(--purple));
  --grad-headline: linear-gradient(100deg, var(--teal), var(--purple) 38%, var(--magenta) 58%, var(--purple) 78%, var(--teal));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Offset in-page anchor jumps so targets clear the sticky nav (~64px) */
:target, section[id], [id].anchor-offset { scroll-margin-top: 80px; }

/* Visible keyboard focus on the dark and light themes (mouse clicks unaffected) */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Screen-reader-only text: conveys meaning that's otherwise carried by a bare
   glyph/color (e.g. ✓/✗ in the comparison table) without showing on screen. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The skip target is focused programmatically; don't ring the whole <main>. */
main[tabindex="-1"]:focus { outline: none; }

/* Skip link — hidden until focused, then pinned top-left over the nav */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--fg); color: var(--bg); font-weight: 600;
  padding: 10px 16px; border-radius: 10px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
  overflow-x: hidden; /* guard against any horizontal scroll on small screens */
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Inside running text, underline links so they aren't distinguished by color alone (WCAG 1.4.1) */
p a, .doc a, .callout a { text-decoration: underline; }
p a.btn { text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(150%) blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); text-decoration: none; }
@media (max-width: 620px) { .nav-links a.hide-sm { display: none; } }

/* language switch */
.lang-switch {
  font-weight: 600; font-size: 13px; letter-spacing: .03em;
  border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 9px;
  color: var(--muted); line-height: 1;
}
.lang-switch:hover { color: var(--fg); border-color: var(--card-hover); text-decoration: none; }

/* theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--card-border);
  color: var(--fg); cursor: pointer; padding: 0;
  transition: border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--card-hover); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
:root[data-theme="light"] .theme-toggle .sun  { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--fg); color: var(--bg); font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent;
  transition: transform .12s ease, opacity .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--card-border); }
.btn.disabled { opacity: .55; cursor: default; }
.btn.disabled:hover { transform: none; }

/* ---------- Hero ---------- */
header.hero { position: relative; overflow: hidden; padding: 84px 0 56px; text-align: center; }
header.hero .wrap { position: relative; z-index: 1; }
header.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 960px; max-width: 140%; height: 620px; pointer-events: none; z-index: 0;
  opacity: var(--glow-opacity); filter: blur(26px);
  background:
    radial-gradient(42% 55% at 38% 30%, rgba(3,234,228,.30), transparent 72%),
    radial-gradient(46% 55% at 62% 28%, rgba(160,66,232,.28), transparent 74%),
    radial-gradient(42% 50% at 78% 42%, rgba(241,3,129,.24), transparent 74%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--card-border); background: var(--card);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
h1 {
  font-size: clamp(30px, 7vw, 68px); line-height: 1.05; margin: 0 0 20px;
  letter-spacing: -0.03em; font-weight: 800; overflow-wrap: break-word;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { color: var(--muted); font-size: clamp(18px, 2.3vw, 22px); max-width: 640px; margin: 0 auto 34px; }
.hero-note { color: var(--muted-dim); font-size: 14px; margin-top: 20px; }

/* ---------- Sections ---------- */
section { padding: 28px 0; }
.section-title { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 36px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 26px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
/* Soft glow that tracks the cursor (coords set by effects.js) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--purple) 24%, transparent), transparent 60%);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: var(--card-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px; background: var(--bg-soft); border: 1px solid var(--card-border);
}

/* Flat line icons (inline SVG, currentColor) tinted with the brand waveform colors. */
.fi { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.tone-teal    { --tone: var(--teal); }
.tone-purple  { --tone: var(--purple); }
.tone-magenta { --tone: var(--magenta); }
.tone-orange  { --tone: var(--orange); }
:root[data-theme="light"] .tone-teal    { --tone: #088f8b; }
:root[data-theme="light"] .tone-purple  { --tone: #8a2fd0; }
:root[data-theme="light"] .tone-magenta { --tone: #c8036b; }
:root[data-theme="light"] .tone-orange  { --tone: #b87a00; }
.fi[class*="tone-"] { color: var(--tone); }
.card .ico[class*="tone-"], .use-ico[class*="tone-"] {
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--tone) 32%, var(--card-border));
}
.card .ico .fi { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Privacy band ---------- */
.band {
  background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 24px;
  padding: 44px; margin: 28px 0; position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background: var(--grad);
}
.band > * { position: relative; }
.pills { margin-top: 18px; }
.pill {
  display: inline-block; background: var(--card); border: 1px solid var(--card-border);
  color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px; margin: 6px 8px 0 0;
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.plan { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px; }
.plan.feature { border-color: color-mix(in srgb, var(--purple) 55%, var(--card-border)); }
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan .per { color: var(--muted-dim); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { color: var(--muted); font-size: 15px; padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--link); font-weight: 700; }

/* ---------- Document pages (privacy / terms / support) ---------- */
.doc { padding-top: 48px; padding-bottom: 88px; } /* keep .wrap's side padding */
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 24px 0 6px; color: var(--fg); opacity: .85; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted-dim); font-size: 14px; margin-bottom: 8px; }
.doc hr { border: none; border-top: 1px solid var(--card-border); margin: 40px 0; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--card-border); border-left: 3px solid var(--teal);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}

/* FAQ */
details.faq {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 4px 20px; margin: 12px 0;
}
details.faq summary {
  cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; color: var(--fg);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--card-border); margin-top: 40px;
  padding: 40px 0 64px; color: var(--muted-dim); font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
footer.site .brand { font-size: 16px; }

/* ============================================================
   "Wow" layer — animated hero waveform, scroll reveals and
   device mockups. All motion respects prefers-reduced-motion
   (see the guard at the bottom).
   ============================================================ */

/* Animated brand waveform (built by effects.js). Full-bleed: it breaks out of
   the centered column to span the whole viewport for a larger hero presence. */
.wave {
  display: flex; align-items: flex-end; justify-content: center; gap: 18px;
  height: 240px; margin: 64px 0 0; padding: 0 8px;
  width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%);
  overflow: hidden; /* on narrow screens, show the centered bars and clip the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave span {
  flex: 0 0 11px; width: 11px; border-radius: 999px; background: var(--c, var(--teal));
  opacity: .82; transform: scaleY(.4); transform-origin: bottom;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}
@keyframes wavePulse { from { transform: scaleY(.32); } to { transform: scaleY(1); } }

/* Gradient headline — gentle shimmer that flows across the words */
.grad-text { background-size: 100% auto; }
h1 .grad-text {
  background-image: var(--grad-headline);
  background-size: 220% auto;
  animation: gradFlow 7s linear infinite;
}
@keyframes gradFlow { to { background-position: 220% center; } }

/* Slowly drifting hero glow */
header.hero::before { animation: glowDrift 16s ease-in-out infinite alternate; }
@keyframes glowDrift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(20px) scale(1.07); }
}

/* Scroll reveals.
   The hidden (opacity:0) state is gated behind html.js so that without
   JavaScript — crawlers, Reader mode, JS disabled, or a failed effects.js —
   the content renders fully visible instead of staying blank. The .in rules
   are scoped to html.js too so they keep winning over the hidden state. */
.reveal {
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
}
html.js .reveal-stagger > * { opacity: 0; transform: translateY(28px); }
html.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }

/* Modern iPhone mockup with a Dynamic Island (not a notch) */
.device {
  position: relative; margin: 0 auto; width: 100%; max-width: 300px;
  aspect-ratio: 9 / 19.5; background: #050505; border-radius: 46px; padding: 9px;
  border: 1px solid var(--device-border);
  box-shadow: var(--device-shadow);
}
.device::before { /* Dynamic Island */
  content: ""; position: absolute; top: 2.4%; left: 50%; transform: translateX(-50%);
  width: 30%; height: 2.4%; min-height: 12px; background: #000; border-radius: 999px; z-index: 3;
}
.device .screen {
  /* Explicit insets keep the screen inside the aspect-ratio frame in Safari. */
  position: absolute; inset: 9px; border-radius: 38px; overflow: hidden;
  background: #0b0d14; color: #eef0f6; text-align: left;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Landing components (split hero, stats, steps,
   platform reach, simulated app screens, comparison, flow,
   use cases). All reuse the shared design tokens.
   ============================================================ */

/* ---- Split hero ---- */
header.hero { text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-copy .lead { margin-left: 0; margin-right: 0; }
.hero-visual { display: flex; justify-content: center; perspective: 1200px; }
.hero-visual .device { max-width: 290px; }

/* Glowing halo behind the hero device */
.tilt { position: relative; width: 100%; max-width: 290px; transform-style: preserve-3d; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tilt::before {
  content: ""; position: absolute; inset: -14% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 50% at 40% 32%, rgba(3,234,228,.30), transparent 70%),
    radial-gradient(52% 52% at 64% 30%, rgba(160,66,232,.30), transparent 72%),
    radial-gradient(50% 50% at 56% 70%, rgba(241,3,129,.22), transparent 72%);
  filter: blur(34px); opacity: var(--glow-opacity);
  animation: haloPulse 7s ease-in-out infinite alternate;
}
.hero-visual .device { animation: deviceFloat 6.5s ease-in-out infinite; will-change: transform; }
@keyframes deviceFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes haloPulse { from { opacity: calc(var(--glow-opacity) * .7); transform: scale(.97); } to { opacity: var(--glow-opacity); transform: scale(1.05); } }

/* ---- Waitlist form ---- */

/* ---- Stats band ---- */
.statband { padding: 6px 0 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px 14px; text-align: center; }
.stat-num {
  font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, #08716d, #8130be); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Platform reach ---- */
.reach { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.reach-item { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--card-border); border-radius: 999px; padding: 11px 18px; font-size: 15px; color: var(--fg); }

/* ---- Showcase shots ---- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.shot { text-align: center; }
.shot .device { margin: 0 auto 18px; }
.shot h3 { margin: 0 0 6px; font-size: 18px; }
.shot p { margin: 0 auto; color: var(--muted); font-size: 15px; max-width: 30ch; }

/* ---- Native app reconstruction (light appearance, matching the iPhone captures) ---- */
.demo { width: 100%; max-width: 320px; }
.demo .tilt, .hero-visual .device { max-width: 320px; }
.hero-visual .device { animation: none; }
.device .screen { background: #fff; color: #101013; container-type: inline-size; }
.app {
  position: absolute; inset: 0; overflow: hidden; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 4.1cqw; line-height: 1.36; letter-spacing: -.015em;
  background: #fff; color: #101013; text-align: left;
}
.app-ready, .app-recording { background: #f2f1f7; }
.app-icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; vertical-align: -.12em; }
.app-status { position: absolute; top: 2.6%; left: 9%; right: 7%; display: flex; justify-content: space-between; align-items: center; font-size: 3.6cqw; font-weight: 650; }
.app-status-icons { display: flex; gap: .35em; align-items: center; }
.app-status-icons .app-icon { width: .95em; height: .95em; }
.app-batt { width: 1.7em; height: .8em; border: 1px solid #b6b6bb; border-radius: 3px; position: relative; margin-left: .1em; }
.app-batt::after { content: ""; position: absolute; inset: 1px; right: 3px; border-radius: 1px; background: #161619; }
.app-nav { position: absolute; top: 7.2%; left: 4%; right: 4%; display: flex; justify-content: space-between; align-items: center; height: 9cqw; }
.app-glass { background: rgba(255,255,255,.78); border: 1px solid rgba(150,150,165,.17); box-shadow: 0 1px 4px rgba(0,0,0,.04), inset 0 1px 2px #fff; backdrop-filter: blur(12px); }
.app-back { display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; font-size: 6.5cqw; }
.app-select { border-radius: 99px; padding: 2cqw 3.5cqw; font-size: 3.8cqw; }
.app-library { position: absolute; inset: 14.5% 4% 0; }
.app h3 { margin: 0 0 2cqw; font-size: 6.9cqw; line-height: 1.13; font-weight: 750; letter-spacing: -.025em; }
.app-library h3 { font-size: 8.5cqw; }
.app-search { display: flex; align-items: center; gap: 2cqw; padding: 2.4cqw 3cqw; border-radius: 5cqw; color: #85858d; background: #e6e5ec; margin: 0 0 7cqw; }
.app-search .app-icon { color: #151519; font-size: 4.5cqw; }
.app-memos { border-radius: 6cqw; background: #fff; padding: 1.5cqw 4cqw; }
.app-memo { padding: 3cqw 0; border-bottom: 1px solid #ededf0; }
.app-memo:last-child { border-bottom: 0; }
.app-memo strong { display: block; font-size: 4.15cqw; line-height: 1.3; font-weight: 560; }
.app-memo > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9d9da4; margin-top: .5cqw; font-size: 3.1cqw; }
.app-memo i { font-style: normal; color: #5fa7d2; }
.app-memo:nth-child(4) i { color: #6bb4a3; }
.app-recording .app-memos { opacity: .68; }
.app-idle-controls, .app-record-controls { position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(transparent, rgba(242,241,247,.92) 72%); }
.app-idle-controls { height: 21%; display: flex; justify-content: center; align-items: center; }
.app-record-button { position: relative; width: 21.5cqw; height: 21.5cqw; border: 2px solid transparent; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#fff,#f8f7fd) padding-box, conic-gradient(#ee3373,#ff8c33,#33ccc7,#9959f2,#ee3373) border-box; font-size: 10cqw; }
.app-record-button::before { content: ""; position: absolute; inset: -3cqw; z-index: -1; border-radius: 50%; background: conic-gradient(#ee3373,#ff8c33,#33ccc7,#9959f2,#ee3373); filter: blur(4cqw); opacity: .65; animation: app-aura 6s linear infinite; }
.app-idle-controls { isolation: isolate; }
/* Native proportions on a 400pt canvas: timer 90pt, side buttons 56pt,
   side centers ±94pt. The spectrum and timer share the same baseline. */
.app-record-controls { --record-center: 18.25cqw; }
.app-record-row { position: absolute; bottom: calc(var(--record-center) - 11.25cqw); left: 0; right: 0; height: 22.5cqw; display: flex; align-items: center; justify-content: center; gap: 5.25cqw; }
.app-record-row .app-round { width: 14cqw; height: 14cqw; flex: 0 0 14cqw; }
.app-round { width: 12.5cqw; height: 12.5cqw; border-radius: 50%; display: grid; place-items: center; font-size: 6.5cqw; }
.app-timer { width: 22.5cqw; height: 22.5cqw; flex: 0 0 22.5cqw; border-radius: 50%; display: grid; place-items: center; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 5cqw; font-weight: 700; font-variant-numeric: tabular-nums; }
.app-camera { position: absolute; bottom: calc(var(--record-center) + 15.5cqw); left: calc(50% - 7cqw); width: 14cqw; height: 14cqw; border-radius: 50%; display: grid; place-items: center; font-size: 6.75cqw; z-index: 1; }
.app-equalizer { position: absolute; bottom: calc(var(--record-center) - 17cqw); left: 5%; right: 5%; height: 34cqw; display: flex; align-items: center; justify-content: center; gap: 1.4545cqw; filter: drop-shadow(0 0 5px rgba(160,66,232,.22)); }
.app-equalizer span { width: 2.2727cqw; flex-shrink: 0; height: var(--bar); border-radius: 99px; background: var(--color); box-shadow: 0 0 7px var(--color); transform-origin: center; animation: app-level .8s ease-in-out infinite alternate; animation-delay: var(--delay); }
.app-detail { position: absolute; inset: 15% 4.5% 14%; overflow: hidden; }
.app-meta { color: #929298; display: flex; justify-content: space-between; gap: 1cqw; align-items: center; font-size: 2.8cqw; line-height: 1.5; margin: 2.5cqw 0 5cqw; white-space: nowrap; }
.app-meta > span { display: flex; align-items: center; gap: .6cqw; }
.app-meta .app-icon { color: #b8b8be; }
.app .app-transcript p { margin: 0 0 3cqw; font-size: 4.25cqw; line-height: 1.5; color: #17171a; max-width: none; }
.app-summary, .app-todos { padding: 3cqw; border-radius: 4cqw; border: 1px solid #e4e4e8; background: #f3f3f6; margin-bottom: 4.5cqw; }
.app-section-label { color: #929298; font-size: 3cqw; margin-bottom: 1.5cqw; }
.app-summary-line { display: flex; align-items: center; gap: 2cqw; font-size: 4cqw; line-height: 1.32; }
.app-summary-line strong { font-weight: 600; }
.app-down { color: #a7a7ae; font-size: 5cqw; margin-left: auto; }
.app-keypoints { padding: 2.5cqw 0 0 4cqw; margin: 2.5cqw 0 0; border-top: 1px solid #e4e4e8; }
.app-keypoints li { padding-left: .5cqw; margin: 1.5cqw 0; font-size: 3.6cqw; }
.app-todos-title { display: flex; align-items: center; gap: 2cqw; color: #86868d; font-size: 3.7cqw; margin-bottom: 2cqw; }
.app-todos-title strong { color: #17171a; font-weight: 500; }
.app-task { display: flex; align-items: center; gap: 2cqw; font-size: 3.6cqw; margin: 1.8cqw 0; }
.app-check { flex: 0 0 auto; width: 3.7cqw; height: 3.7cqw; border: 1px solid #9c9ca3; border-radius: 50%; }
.app-reminders { display: inline-flex; align-items: center; gap: 2cqw; margin-top: 1cqw; border-radius: 99px; padding: 1.3cqw 2.5cqw; font-size: 3.2cqw; font-weight: 550; }
.app-toolbar { position: absolute; bottom: 5%; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 4cqw; }
.app-toolbar::before { content: ""; position: absolute; inset: -6cqw -5cqw -12cqw; z-index: -1; background: linear-gradient(transparent,#fff 35%); }
.app-toolbar { isolation: isolate; }
/* Native capsule: four 50pt targets separated by 4pt, without outer padding. */
.app-toolgroup { flex: 0 0 auto; border-radius: 99px; height: 12.5cqw; display: grid; grid-template-columns: repeat(4, 12.5cqw); gap: 1cqw; place-items: center; font-size: 6.5cqw; }
/* Match native title3 symbols, accounting for padding inside SVG view boxes. */
.app-toolgroup .app-icon { stroke-width: 2; }
.app-reminders .app-icon { font-size: 4cqw; }
.app-more { color: #929298; }
.app-cycle { position: absolute; inset: 0; }
.app-cycle .app { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.app-cycle:not(.js) .app:last-child, .app-cycle.js .app.is-active { opacity: 1; visibility: visible; }
.app-cycle .app:not(.is-active) * { animation-play-state: paused; }
.app-cycle .app.is-active .app-record-row { animation: app-controls-in .4s ease both; }
.app-cycle .app.is-active .app-camera { animation: app-camera-in .4s ease both; }
.demo.is-paused .app-equalizer span, .demo.is-paused .app-record-button::before, .demo.is-offscreen .app *, .demo.is-offscreen .app *::before { animation-play-state: paused !important; }
.app-cycle .app.is-active .app-summary, .app-cycle .app.is-active .app-todos { animation: app-card-in .45s ease both; }
.app-cycle .app.is-active .app-todos { animation-delay: .2s; }
@keyframes app-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes app-aura { to { transform: rotate(360deg); } }
@keyframes app-level { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes app-controls-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes app-camera-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- Comparison table ---- */
.compare { overflow-x: auto; }
.compare-table {
  width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
}
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--card-border); font-size: 15px; }
.compare-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-dim); background: var(--bg-soft); }
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table td:first-child, .compare-table th:first-child { color: var(--fg); font-weight: 500; }
.compare-table .col-mymo { background: rgba(160,66,232,.06); }
.compare-table th.col-mymo { color: var(--fg); font-weight: 700; }
.compare-table .yes, .compare-table .no { color: var(--positive); font-weight: 700; }
.compare-table .bad { color: var(--negative); font-weight: 600; }

/* ---- Privacy data-flow ---- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.flow-node { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; padding: 9px 13px; font-size: 14px; font-weight: 600; }
.flow-node .fi { color: var(--link); }
.flow-stay { border-color: rgba(3,234,228,.45); }
.flow-arrow { color: var(--muted-dim); }
.flow-cloud { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-dim); font-size: 14px; margin-left: 4px; }

/* ---- Use cases ---- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.use-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.use-ico .fi { width: 20px; height: 20px; }
.premium-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); background: color-mix(in srgb, var(--purple) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
}
.use h3 { margin: 12px 0 6px; font-size: 17px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 38px; }
  header.hero { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { order: 2; }
}
@media (max-width: 820px) {
  .shots {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -24px; padding: 8px 24px 12px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 min(78%, 300px); scroll-snap-align: center; }
  .shot .device { max-width: 240px; }
  .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  /* Stacked cards: center the icon and the title above the text */
  .step-num, .card .ico, .use-ico { margin-left: auto; margin-right: auto; }
  .step h3, .card h3, .use h3 { text-align: center; }
  .use-ico { display: grid; }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .uses { grid-template-columns: 1fr; }
  .compare-table { min-width: 0; }
  .compare-table th, .compare-table td { padding: 11px 9px; font-size: 13px; }
  .compare-table thead th { font-size: 11px; letter-spacing: .02em; }
  .wave { height: 150px; margin-top: 40px; }
  .band { padding: 28px 20px; }
  .flow { gap: 6px; }
  .flow-node { padding: 7px 10px; font-size: 13px; }
}

/* Infinite decorative animations stop while their section is offscreen (effects.js). */
.motion-paused, .motion-paused *, .motion-paused::before, .motion-paused *::before {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave span { animation: none !important; transform: scaleY(.8) !important; }
  .grad-text { animation: none !important; }
  header.hero::before { animation: none !important; }
  .app *, .app *::before { animation: none !important; }
  .app-cycle .app { transition: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  h1 .grad-text { animation: none !important; }
  .hero-visual .device { animation: none !important; }
  .tilt::before { animation: none !important; }
  .tilt { transform: none !important; }
}
