/* ==========================================================================
   Mira — Landing page
   Calm, premium, accessibility-first.
   ========================================================================== */

:root {
  /* Surface & ink */
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);

  --dark: #000000;
  --dark-2: #111113;
  --dark-3: #1c1c1e;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;

  /* Brand */
  /* One restrained accent; everything else is ink, grey and white */
  --accent: #2f5fd0;
  --accent-on-dark: #8fb0ff;
  --accent-soft: rgba(47, 95, 208, 0.16);
  --grad: linear-gradient(180deg, #1d1d1f 15%, #86868b 100%);
  --grad-dark: linear-gradient(180deg, #ffffff 15%, #8e8e93 100%);
  --orb: radial-gradient(circle at 32% 28%, #8e8e93 0%, #2c2c2e 48%, #000 100%);
  --orb-dark: radial-gradient(circle at 32% 28%, #ffffff 0%, #c7c7cc 45%, #636366 100%);

  /* Speaker colours (AA+ on white) */
  --who-a: #a8431b;
  --who-b: #515154;
  --who-c: #2e6b52;
  --who-m: #2f5fd0;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, serif;

  /* Rhythm */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
mark { background: none; color: inherit; }
::selection { background: rgba(47, 95, 208, 0.2); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-size: 17px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 18px; display: inline-block;
}
.eyebrow--light { color: var(--accent-on-dark); }

.h2 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.h4 {
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.muted { color: var(--ink-3); }
.dark .muted { color: var(--on-dark-2); }
.lede {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 640px;
  margin: 22px auto 0;
  letter-spacing: -0.005em;
}
.dark .lede { color: var(--on-dark-2); }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dark .grad { background-image: var(--grad-dark); }

.section-head {
  text-align: center;
  max-width: 980px;
  margin: 0 auto clamp(56px, 8vw, 96px);
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: 999px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease), color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.45); }
.btn--dark:hover { background: #000; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }
.btn--ghost { background: rgba(0,0,0,0.05); color: var(--ink); }
.btn--ghost:hover { background: rgba(0,0,0,0.08); }
.btn--ghost.is-speaking { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #f0f0f2; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,.35);
  flex: none;
}
.brand__orb--sm { width: 16px; height: 16px; display: inline-block; }
.brand__word { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
/* Nav adapts when it floats over a dark section */
.nav.is-dark.is-scrolled { background: rgba(0, 0, 0, 0.68); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav.is-dark .brand__word { color: var(--on-dark); }
.nav.is-dark .brand__orb { background: var(--orb-dark); }
.nav.is-dark .nav__links a { color: var(--on-dark-2); }
.nav.is-dark .nav__links a:hover { color: #fff; }
.nav.is-dark .btn--dark { background: #fff; color: #000; }
.nav .brand__word, .nav__links a, .nav .btn--dark { transition: color .4s var(--ease), background-color .4s var(--ease); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; height: 68px;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-size: 16px; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- Aurora ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 22s var(--ease-io) infinite alternate;
}
.aurora__blob--a { width: 46vw; height: 46vw; left: -8vw; top: 6vh; background: radial-gradient(circle, rgba(190,196,210,.55), transparent 65%); }
.aurora__blob--b { width: 40vw; height: 40vw; right: -6vw; top: 0; background: radial-gradient(circle, rgba(176,190,220,.5), transparent 65%); animation-delay: -6s; }
.aurora__blob--c { width: 50vw; height: 50vw; left: 25vw; top: 30vh; background: radial-gradient(circle, rgba(205,205,215,.45), transparent 65%); animation-delay: -12s; }
.aurora--soft .aurora__blob { opacity: .4; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(4vw,-3vh,0) scale(1.08); }
  100% { transform: translate3d(-3vw,4vh,0) scale(.95); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(130px, 18vh, 190px) var(--gutter) clamp(80px, 12vw, 160px);
  text-align: center;
  isolation: isolate;
}
.hero__copy { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }
.hero__title {
  font-size: clamp(58px, 10.5vw, 136px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.hero__lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 720px;
  margin: 30px auto 0;
  letter-spacing: -0.012em;
}
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* ---------- Device ---------- */
.device-wrap {
  position: relative; z-index: 1;
  width: min(1040px, 100%);
  margin: clamp(64px, 9vw, 110px) auto 0;
  perspective: 2000px;
}
.device {
  position: relative;
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: clamp(28px, 4vw, 48px);
  background: linear-gradient(145deg, #2a2a2e, #0c0c0d 40%, #1a1a1c);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.18),
    0 50px 100px -30px rgba(0, 0, 0, .28),
    0 30px 60px -30px rgba(0,0,0,.5);
  transform: rotateX(var(--tilt, 14deg)) scale(var(--dscale, .94));
  transform-origin: 50% 0%;
  transition: transform .1s linear;
}
.device__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: clamp(18px, 2.8vw, 34px);
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
  display: flex; flex-direction: column;
  text-align: left;
}
.device-shadow {
  position: absolute; left: 10%; right: 10%; bottom: -40px; height: 60px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.22), transparent 70%);
  filter: blur(20px); z-index: -1;
}

.app-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(12px, 1.4vw, 16px);
}
.app-bar__left { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; }
.app-bar__title { font-weight: 700; letter-spacing: -0.01em; }
.app-bar__right { justify-self: end; }
.chip {
  padding: 5px 12px; border-radius: 999px; background: var(--bg-alt);
  font-weight: 600; color: var(--ink-2); font-size: .9em;
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #ff3b30;
  box-shadow: 0 0 0 0 rgba(255,59,48,.5);
  animation: pulse 1.6s var(--ease) infinite;
}
.live-dot.is-speak { background: var(--accent); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,48,.45); }
  100% { box-shadow: 0 0 0 10px rgba(255,59,48,0); }
}

.convo {
  flex: 1; overflow: hidden;
  padding: clamp(16px, 3vw, 34px) clamp(18px, 3.6vw, 44px) 10px;
  display: flex; flex-direction: column; gap: clamp(12px, 2vw, 22px);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 100%);
  justify-content: flex-end;
}
.line { animation: lineIn .6s var(--ease) both; }
.line__who {
  display: block; font-size: clamp(11px, 1.25vw, 15px); font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 4px;
}
.line__text {
  font-size: clamp(18px, 2.9vw, 36px);
  line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
.line__text .w { opacity: 0; display: inline-block; transform: translateY(6px); filter: blur(4px); animation: wordIn .45s var(--ease) forwards; }
.line--them .line__who { color: var(--who-a); }
.line--me { align-self: flex-end; text-align: right; max-width: 82%; }
.line--me .line__who { color: var(--who-b); }
.line--me .line__text {
  display: inline-block; text-align: left;
  background: var(--bg-alt);
  padding: .45em .7em; border-radius: .7em .7em .2em .7em;
  font-size: clamp(16px, 2.4vw, 30px);
}
.line--me .caret { display: inline-block; width: 2px; height: 1em; background: var(--who-b); vertical-align: -0.12em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.line--mira {
  align-self: stretch;
  border-radius: clamp(14px, 2vw, 22px);
  padding: clamp(12px, 1.8vw, 20px) clamp(14px, 2vw, 24px);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(0, 0, 0, .25);
  position: relative;
}
.line--mira::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: var(--accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.line--mira .line__who { color: var(--who-m); display: flex; align-items: center; gap: 8px; }
.line--mira .line__text { font-size: clamp(16px, 2.3vw, 28px); }
@keyframes lineIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.convo.is-fading { transition: opacity .7s var(--ease); opacity: 0; }

.app-dock {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(10px, 1.8vw, 20px) clamp(18px, 3vw, 32px) clamp(14px, 2.2vw, 26px);
}
.wave { display: flex; align-items: center; gap: clamp(2px, .4vw, 4px); height: clamp(24px, 4vw, 44px); flex: 1; max-width: 46%; }
.wave i {
  flex: 1; max-width: 6px; height: 18%; border-radius: 4px;
  background: var(--ink);
  transition: height .18s var(--ease);
}
.wave i:nth-child(odd) { background-position: 30% 0; }
.wave i:nth-child(3n) { background-position: 70% 0; }
.dock-btns { display: flex; align-items: center; gap: clamp(8px, 1.4vw, 16px); }
.dock-btn {
  width: clamp(36px, 5.2vw, 56px); height: clamp(36px, 5.2vw, 56px); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-alt); color: var(--ink-2);
}
.dock-btn svg { width: 45%; height: 45%; }
.dock-btn--main {
  width: clamp(48px, 7.4vw, 80px); height: clamp(48px, 7.4vw, 80px);
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
}

/* ---------- Statement ---------- */
.statement { position: relative; height: 260vh; }
.statement__sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  padding: 0 var(--gutter);
}
.statement__text {
  max-width: 1100px;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.12; letter-spacing: -0.035em; font-weight: 700;
  text-align: center;
}
.statement__text .sw { color: rgba(29,29,31,.14); transition: color .35s var(--ease); }
.statement__text .sw.is-lit { color: var(--ink); }


/* ---------- Story ---------- */
.story { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 140px); }
.story__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px);
}
.step {
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .6s var(--ease);
}
.step.is-active { opacity: 1; }
.step__num {
  font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3);
  margin-bottom: 18px;
}
.step p { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink-2); margin-top: 18px; max-width: 520px; }
.step__visual-mobile { display: none; }

.story__stage { position: relative; }
.stage {
  position: sticky; top: calc(50vh - min(34vw, 300px));
  aspect-ratio: 1 / 1.05; max-height: 640px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 90% at 20% 0%, #ffffff 0%, transparent 60%),
              radial-gradient(120% 90% at 100% 100%, #ececf0 0%, transparent 60%),
              var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.stage__layer {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: clamp(24px, 4vw, 48px);
  opacity: 0; transform: scale(.96) translateY(16px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.stage__layer.is-active { opacity: 1; transform: none; }

/* Visual: listen */
.sv-listen { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.sv-bars { display: flex; align-items: center; gap: 5px; height: 90px; margin-bottom: 8px; }
.sv-bars i {
  flex: 1; border-radius: 6px; background: var(--ink);
  animation: bar 1.3s var(--ease-io) infinite alternate;
}
.sv-bars i:nth-child(2n) { animation-delay: -.3s; background-position: 25% 0; }
.sv-bars i:nth-child(3n) { animation-delay: -.7s; background-position: 55% 0; }
.sv-bars i:nth-child(5n) { animation-delay: -1s; background-position: 85% 0; }
.sv-bars i:nth-child(7n) { animation-delay: -.5s; }
@keyframes bar { from { height: 14%; } to { height: 100%; } }
.sv-caption {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em;
  background: #fff; padding: 20px 24px; border-radius: 22px;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.25);
}
.sv-caption mark { background: linear-gradient(transparent 60%, var(--accent-soft) 60%); }
.sv-caption--b { margin-left: 12%; }
.who {
  display: block; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px;
}
.who--a { color: var(--who-a); } .who--b { color: var(--who-b); }
.who--c { color: var(--who-c); } .who--m { color: var(--who-m); }

/* Visual: ask */
.sv-ask { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.bubble {
  font-size: clamp(19px, 2vw, 26px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em;
  padding: 18px 22px; border-radius: 24px; max-width: 90%;
}
.bubble--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 8px; }
.bubble--mira { background: #fff; border-bottom-left-radius: 8px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.mira-tag { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--who-m); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.note-card {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px; padding: 18px 22px; border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 19px;
}
.note-card__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.note-card strong { font-size: 22px; letter-spacing: -0.015em; }
.note-card span:last-child { color: var(--ink-2); }

/* Visual: speak */
.sv-speak { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.sv-rings { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.sv-rings span {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,0,0,.14);
  animation: ring 2.4s var(--ease) infinite;
}
.sv-rings span:nth-child(2) { animation-delay: .8s; }
.sv-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.sv-core {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); box-shadow: 0 20px 40px -14px rgba(0,0,0,.45);
}
.sv-said { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; max-width: 440px; letter-spacing: -0.01em; }
.phrases { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 460px; }
.phrases span {
  padding: 12px 18px; border-radius: 999px; background: #fff; font-size: 17px; font-weight: 600;
  box-shadow: 0 0 0 1px var(--line), 0 8px 20px -14px rgba(0,0,0,.3);
}

/* ---------- Dark sections ---------- */
.dark { background: var(--dark); color: var(--on-dark); }

/* ---------- Try ---------- */
.try { padding: clamp(100px, 14vw, 180px) 0; position: relative; overflow: hidden; }
.try::before {
  content: ""; position: absolute; left: 50%; top: -20%; width: 120vw; height: 70vh; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.07), transparent 60%);
  pointer-events: none;
}
.try__grid {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px;
}
.panel {
  background: var(--dark-2);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 22px;
  min-height: 460px;
}
.panel__head { display: flex; flex-direction: column; gap: 4px; }
.panel__title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.panel__hint { color: var(--on-dark-2); font-size: 17px; }
.panel__foot { margin-top: auto; display: flex; justify-content: center; }

.captions {
  flex: 1; min-height: 200px;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.18; font-weight: 700; letter-spacing: -0.025em;
  display: flex; align-items: flex-end; overflow: hidden;
}
.captions__placeholder { color: rgba(245,245,247,.28); }
.captions .interim { color: rgba(245,245,247,.5); }

.mic {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; color: #000; display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.mic:hover { transform: scale(1.05); }
.mic__ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid transparent; }
.mic[aria-pressed="true"] { background: #ff3b30; color: #fff; }
.mic[aria-pressed="true"] .mic__ring { border-color: rgba(255,59,48,.6); animation: ring 1.8s var(--ease) infinite; }

.say {
  width: 100%; flex: 1; resize: none;
  background: var(--dark-3); color: var(--on-dark);
  border: 0; border-radius: 22px; padding: 20px 22px;
  font: inherit; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.say:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }
.pace { display: flex; align-items: center; gap: 16px; color: var(--on-dark-2); font-size: 17px; }
.pace output { min-width: 70px; text-align: right; color: var(--on-dark); font-weight: 600; }

/* Range inputs */
input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--p, 50%), rgba(127,127,127,.3) var(--p, 50%) 100%);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.06);
}
input[type="range"]::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* ---------- Features / bento ---------- */
.features { padding: clamp(100px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); }
.bento {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0,0,0,.25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0,0,0,.3); }
.tile p { color: var(--ink-3); margin-top: 10px; font-size: 18px; }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 28px;
  background: var(--ink);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.45);
}

.tile--size { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.size-demo {
  background: var(--bg-alt); border-radius: 24px; padding: 28px;
  min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.tile .size-demo__text { color: var(--ink); margin: 0; }
.size-demo__text { font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; transition: font-size .25s var(--ease); }
.size-demo__ctrl { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-weight: 700; }
.a-sm { font-size: 15px; } .a-lg { font-size: 26px; }

.tile--voice { display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  }
.voices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.voices li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px; background: var(--bg-alt);
  font-size: 19px; font-weight: 600;
  transition: background .3s, box-shadow .3s;
}
.voices li em { font-style: normal; color: var(--ink-3); font-weight: 500; margin-left: auto; font-size: 16px; }
.voices li.is-on { background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 12px 24px -14px rgba(0,0,0,.3); }
.voice-dot { width: 12px; height: 12px; border-radius: 50%; background: #c7c7cc; transition: background .3s; }
.voices li.is-on .voice-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.dark-tile { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.dark-tile p { color: var(--on-dark-2); }
.tile--onebutton { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; min-height: 280px; }
.one-btn { position: relative; width: 190px; height: 190px; display: grid; place-items: center; margin-right: 20px; }
.one-btn__halo {
  position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); filter: blur(24px); opacity: .6;
  animation: breathe 4s var(--ease-io) infinite alternate;
}
.one-btn__core {
  position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a2a2e, #0c0c0d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 40px -10px rgba(0,0,0,.6);
}
@keyframes breathe { from { transform: scale(.85); opacity: .45; } to { transform: scale(1.08); opacity: .8; } }

/* ---------- Moments ---------- */
.moments { padding: clamp(80px, 12vw, 160px) 0; }
.tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  width: fit-content; max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto 48px; padding: 6px; border-radius: 999px; background: var(--bg-alt);
}
.tab {
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 17px; font-weight: 600; color: var(--ink-2);
  transition: background .35s var(--ease), color .35s, box-shadow .35s;
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); }
.moment-panels { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.moment {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  background: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(0,0,0,.3);
  animation: lineIn .6s var(--ease);
}
.moment__text p { color: var(--ink-3); margin-top: 16px; font-size: clamp(19px, 1.6vw, 21px); max-width: 460px; }
.moment__card {
  background: var(--bg-alt); border-radius: 28px; padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 22px;
}
.mc-line { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.mc-line--mira { padding: 16px 20px; background: #fff; border-radius: 18px; font-size: clamp(19px, 2vw, 24px); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Principles ---------- */
.principles { padding: clamp(60px, 8vw, 100px) 0 clamp(100px, 14vw, 180px); }
.principles__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.principle { text-align: center; padding: 32px 24px; border-top: 1px solid var(--line); }
.principle__big {
  display: block; font-size: clamp(80px, 11vw, 150px); line-height: 1; font-weight: 800; letter-spacing: -0.06em;
  margin-bottom: 18px;
}
.principle p { color: var(--ink-2); font-size: 20px; max-width: 300px; margin: 0 auto; }

/* ---------- Privacy ---------- */
.privacy { padding: clamp(110px, 15vw, 200px) var(--gutter); text-align: center; }
.privacy__inner { max-width: calc(var(--maxw) - 80px); margin: 0 auto; }
.shield { display: grid; place-items: center; margin-bottom: 40px; filter: drop-shadow(0 20px 40px rgba(255,255,255,.1)); }
.privacy__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 88px); text-align: left;
}
.pp { padding: 32px; border-radius: var(--radius-lg); background: var(--dark-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pp h3 { font-size: 23px; letter-spacing: -0.015em; }
.pp p { color: var(--on-dark-2); margin-top: 10px; font-size: 18px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 16vw, 210px) var(--gutter); text-align: center; }
.cta__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.cta__orb {
  display: block; width: 88px; height: 88px; margin: 0 auto 36px; border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.cta__title { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.waitlist {
  display: flex; gap: 10px; max-width: 560px; margin: 44px auto 0; padding: 8px;
  background: rgba(255,255,255,.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-radius: 999px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.18);
}
.waitlist input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px;
  font: inherit; font-size: 19px; color: var(--ink);
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist input:focus-visible { outline: none; }
.waitlist:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 30px 60px -30px rgba(0,0,0,.18); }
.form-msg { min-height: 28px; margin-top: 18px; font-size: 18px; font-weight: 600; }
.form-msg.is-ok { color: var(--who-c); }
.form-msg.is-err { color: #b91c1c; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); padding: 72px var(--gutter) 36px; font-size: 16px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer__brand p { color: var(--ink-3); margin-top: 12px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 48px; }
.footer__cols h4 { font-size: 15px; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--ink-3); padding: 5px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__base {
  max-width: var(--maxw); margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 15px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
.device-wrap.reveal { transform: translateY(80px); }
.device-wrap.reveal.is-in { transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--tall { grid-row: auto; }
  .tile--size { grid-template-columns: 1fr; }
  .try__grid { grid-template-columns: 1fr; }
  .privacy__points { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  /* Story: stack, show visual inline per step */
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: auto; opacity: 1; padding: 24px 0 56px; }
  .step__visual-mobile {
    display: block; position: relative; margin-top: 32px;
    aspect-ratio: 1 / 1.05; border-radius: var(--radius-lg); overflow: hidden;
    background: radial-gradient(120% 90% at 20% 0%, #ffffff 0%, transparent 60%),
                radial-gradient(120% 90% at 100% 100%, #ececf0 0%, transparent 60%), var(--bg-alt);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .step__visual-mobile .stage__layer { opacity: 1; transform: none; padding: 22px; }

  .moment { grid-template-columns: 1fr; }
  .principles__grid { grid-template-columns: 1fr; }
  .tile--onebutton { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .one-btn { margin: 0; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .hero__ctas .btn { width: 100%; }
  .waitlist { flex-direction: column; border-radius: 28px; padding: 10px; }
  .waitlist input { min-height: 56px; text-align: center; }
  .tabs { border-radius: 26px; }
  .tab { flex: 1 1 40%; padding: 0 12px; font-size: 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .statement { height: 220vh; }
  .device { transform: none !important; }
  .app-bar__right { visibility: hidden; }
  .panel { min-height: 380px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .device { transform: none; }
  .statement { height: auto; }
  .statement__sticky { position: static; height: auto; padding: 120px var(--gutter); }
  .statement__text .sw { color: var(--ink); }
}

/* ---------- App links (sign in / get started) ---------- */
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__signin { font-size: 16px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__signin:hover { color: var(--ink); }
.nav.is-dark .nav__signin { color: rgba(255,255,255,.8); }
.nav.is-dark .nav__signin:hover { color: #fff; }
.cta .waitlist { width: fit-content; justify-content: center; }
.cta .waitlist .btn { white-space: nowrap; }
@media (max-width: 520px) { .cta .waitlist { width: auto; } }

/* ---------- Natural voices ---------- */
.tile--voice { gap: 22px; }
.voices { gap: 8px; }
.voices li {
  padding: 11px 16px; border-radius: 16px; font-size: 17px; cursor: pointer;
  min-height: 48px;
}
.voices li:hover { background: #ececf0; }
.voices li.is-on:hover { background: #fff; }
.voices li em { font-size: 15px; }
.voices li:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.voices li.is-loading .voice-dot { animation: voicePulse .9s ease-in-out infinite; }
.voices li.is-playing .voice-dot { animation: voicePulse .5s ease-in-out infinite alternate; }
@keyframes voicePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45); } }

.voice-pick {
  flex: 1; min-width: 0; height: 44px; padding: 0 40px 0 16px; border: 0; border-radius: 14px;
  background: var(--dark-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23f5f5f7' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--on-dark); font: inherit; font-size: 17px; font-weight: 600;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.voice-pick:focus-visible { outline: 3px solid var(--accent-on-dark); outline-offset: 2px; }
.voice-pick option { color: #000; background: #fff; }
.pace label { min-width: 44px; }

.btn--ghost.is-loading { background: rgba(0,0,0,0.08); }
.btn.is-loading svg, .btn--light.is-speaking svg { animation: voicePulse .9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .voices li .voice-dot, .btn svg { animation: none !important; }
}

/* ---------- Spoken punctuation tile ---------- */
.spoken { justify-content: center; }
.spoken__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.spoken__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 17px;
}
.spoken__list span { color: var(--ink-3); font-style: italic; }
.spoken__list b { font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
