/* ==================================================================
   Mandra Voice — warm editorial design system
   Cream/neutral surfaces, calm green accent, serif + sans pairing
   (Fraunces headlines, Figtree body), product shown in window/device
   mockups. Quiet-luxury, editorial restraint. Variable-driven.
   ================================================================== */

:root {
  /* warm surfaces */
  --bg: #f6f1e7;
  --bg-2: #efe7d7;
  --surface: #fffdf7;
  --surface-2: #f3ecdd;

  /* warm ink + text */
  --ink: #1d1b15;
  --ink-soft: #3a362c;
  --muted: #6f6a5b;
  --faint: #a39d8b;

  /* lines */
  --border: rgba(29, 27, 21, 0.10);
  --border-strong: rgba(29, 27, 21, 0.16);

  /* calm green accent ("calm vitality") */
  --green: #1f6b46;
  --green-deep: #154a31;
  --green-soft: rgba(31, 107, 70, 0.10);
  --pulse: #57b487;

  /* warm secondary accents */
  --clay: #c07a44;
  --sand: #e8dcc1;
  --rec: #cf5b3f;
  --read: #b06a32;

  --radius-2xl: 30px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-btn: 14px;

  --shadow-sm: 0 1px 2px rgba(40, 32, 14, 0.05), 0 10px 26px -16px rgba(40, 32, 14, 0.16);
  --shadow-md: 0 2px 8px rgba(40, 32, 14, 0.06), 0 28px 60px -28px rgba(40, 32, 14, 0.20);
  --shadow-lg: 0 44px 100px -48px rgba(40, 30, 12, 0.34);

  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(54rem 40rem at 6% -8%, rgba(232, 220, 193, 0.7), transparent 60%),
    radial-gradient(48rem 38rem at 98% -4%, rgba(87, 180, 135, 0.16), transparent 58%),
    radial-gradient(40rem 36rem at 84% 18%, rgba(192, 122, 68, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: rgba(31, 107, 70, 0.18); color: var(--ink); }

/* subtle paper grain for the editorial feel */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 40vw;
  height: 40vw;
  min-width: 360px;
  min-height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-one {
  top: -8%; left: -10%;
  background: radial-gradient(circle, rgba(232, 220, 193, 0.8), transparent 68%);
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient-two {
  right: -12%; bottom: 6%;
  background: radial-gradient(circle, rgba(87, 180, 135, 0.28), transparent 68%);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 16px auto 0;
  padding: 9px 9px 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px) saturate(1.3);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em;
}

.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: #fff; font-weight: 700;
  background: linear-gradient(150deg, var(--green), var(--green-deep));
  box-shadow: 0 6px 16px -6px rgba(21, 74, 49, 0.7);
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
}

.nav-links a { padding: 9px 14px; border-radius: 999px; transition: color 160ms ease, background 160ms ease; }
.nav-links a:hover { color: var(--ink); background: rgba(29, 27, 21, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-signin {
  padding: 9px 12px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 0.93rem;
  transition: color 160ms ease, background 160ms ease;
}
.nav-signin:hover { color: var(--ink); background: rgba(29, 27, 21, 0.05); }

.nav-cta {
  display: inline-flex; align-items: center; min-height: 42px;
  padding: 0 18px; border-radius: var(--radius-btn);
  color: #fff; background: var(--green);
  font-weight: 600; font-size: 0.92rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--green-deep); box-shadow: 0 12px 26px -12px rgba(21, 74, 49, 0.7); }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--rec); box-shadow: 0 0 0 5px rgba(207, 91, 63, 0.16);
}
.dot-green {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--pulse); box-shadow: 0 0 0 5px rgba(87, 180, 135, 0.18);
}

body.is-recording-demo .transcription-demo .live-dot,
body.is-recording .floating-listen-bar .live-dot,
body.is-reading-aloud .live-dot { animation: live-pulse 900ms ease-in-out infinite; }

/* ---------------- buttons ---------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button.primary {
  color: #fff; background: var(--green);
  box-shadow: 0 16px 30px -16px rgba(21, 74, 49, 0.7);
}
.button.primary:hover { transform: translateY(-2px); background: var(--green-deep); box-shadow: 0 22px 40px -18px rgba(21, 74, 49, 0.75); }
.button.ghost {
  color: var(--ink); border-color: var(--border-strong);
  background: rgba(255, 253, 247, 0.7);
}
.button.ghost:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-sm); }
.button.on-dark {
  color: #fff; border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
.button.on-dark:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------------- headings ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  color: var(--green); font-weight: 700;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
}

.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.center p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

.section-heading h2,
.compare-copy h2,
.final-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 em, h2 em, .final-card em { font-style: italic; color: var(--green); }

.section-heading p:not(.eyebrow) {
  max-width: 640px; margin: 16px 0 0;
  color: var(--muted); font-size: 1.08rem; line-height: 1.6;
}

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 88px);
}

.hero-copy { display: grid; gap: 22px; align-content: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  margin: 0; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink-soft); font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  max-width: 14ch; margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  line-height: 1.0; letter-spacing: -0.015em;
}

.hero-text {
  max-width: 33rem; margin: 0;
  color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hero-platforms { margin: 4px 0 0; color: var(--faint); font-size: 0.9rem; font-weight: 500; }

/* hero: flowing "rambling speech" text on a curve + AI edit toasts */
.hero { position: relative; }
.hero-copy, .hero-visual { position: relative; z-index: 1; }

.hero-stream {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none; opacity: 0.4;
  -webkit-mask-image: radial-gradient(135% 95% at 72% 38%, #000 36%, transparent 82%);
  mask-image: radial-gradient(135% 95% at 72% 38%, #000 36%, transparent 82%);
}
.hero-stream svg { display: block; width: 100%; height: 100%; }
.stream-text { font-family: var(--serif); font-size: 27px; fill: var(--green); }

.edit-toasts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.edit-toast {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
  font-size: 0.82rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  opacity: 0; transform: translateY(10px) scale(0.95);
  animation: toastPop 8.4s ease-in-out infinite;
}
.edit-toast::before { content: "✦"; color: var(--green); font-size: 0.85em; }
.edit-toast s { color: var(--rec); text-decoration: line-through; }
.edit-toast.e1 { top: 3%; left: -2%; animation-delay: 0.5s; }
.edit-toast.e2 { top: 46%; right: -3%; animation-delay: 3.3s; }
.edit-toast.e3 { bottom: 1%; left: 14%; animation-delay: 5.9s; }

@keyframes toastPop {
  0%, 5%    { opacity: 0; transform: translateY(10px) scale(0.95); }
  11%, 30%  { opacity: 1; transform: translateY(0) scale(1); }
  37%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .edit-toast { opacity: 1; transform: none; animation: none; }
  .edit-toast.e2 { display: none; }
}

/* ---------------- window mockup (Mac frame) ---------------- */
.window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.window-bar .tl { width: 11px; height: 11px; border-radius: 50%; background: #e0a07a; }
.window-bar .tl:nth-child(2) { background: #e6cf86; }
.window-bar .tl:nth-child(3) { background: #8fc79a; }
.window-bar em {
  margin-left: 8px; font-style: normal;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
}
.window-bar kbd {
  margin-left: auto; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
}

.window-body { padding: 22px; display: grid; gap: 12px; }

.ba-row {
  display: grid; gap: 7px;
  padding: 15px 17px; border-radius: var(--radius-md);
  background: var(--surface-2);
}
.ba-row p { margin: 0; line-height: 1.5; color: var(--ink-soft); }
.ba-row.out { background: var(--green-soft); border: 1px solid rgba(31, 107, 70, 0.18); }
.ba-row.out p { color: var(--green-deep); font-weight: 500; }

.ba-tag, .ghost-line, .workflow-kicker {
  color: var(--faint); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.ba-tag.green { color: var(--green); }

.ba-arrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
}
.ba-arrow span { height: 1px; width: 40px; background: var(--border-strong); }

/* hero floating mini-pill */
.hero-visual { position: relative; }
.hero-mini {
  position: absolute; right: 18px; bottom: -16px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-md); backdrop-filter: blur(8px);
}
.mini-mic {
  width: 14px; height: 20px; border-radius: 8px;
  background: linear-gradient(160deg, var(--green), var(--pulse));
}
.mini-label { color: var(--muted); font-size: 0.84rem; font-weight: 600; }

.mini-wave { display: flex; gap: 4px; align-items: center; }
.mini-wave i {
  display: block; width: 4px; height: 18px; border-radius: 999px;
  background: var(--green);
  animation: waveform-rise 1.1s ease-in-out infinite;
}
.mini-wave i:nth-child(2) { animation-delay: 120ms; }
.mini-wave i:nth-child(3) { animation-delay: 220ms; }
.mini-wave i:nth-child(4) { animation-delay: 320ms; }
.mini-wave i:nth-child(5) { animation-delay: 420ms; }
.mini-wave i:nth-child(6) { animation-delay: 520ms; }

/* ---------------- floating listen bar ---------------- */
.floating-listen-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--ink); background: rgba(255, 253, 247, 0.86);
  box-shadow: var(--shadow-md); transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(1.3);
  font-size: 0.9rem; font-weight: 500;
}
body.is-recording .floating-listen-bar { border-color: transparent; color: #fff; background: var(--green); }
body.is-reading-aloud .floating-listen-bar { border-color: transparent; color: #fff; background: var(--read); }

/* ---------------- logo marquee ---------------- */
.logo-marquee {
  display: grid; justify-items: center; gap: 18px;
  width: 100%; padding: clamp(26px, 4vw, 44px) 0; overflow: hidden;
}
.logo-marquee-lead {
  margin: 0; color: var(--faint);
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em;
}
.marquee {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span {
  flex: 0 0 auto; padding: 11px 20px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink-soft);
  font-weight: 600; white-space: nowrap;
}
.marquee-track .app-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px 8px 9px; }

/* real brand app-icon tiles: white glyph (SVG mask) on a brand-colored tile */
.app-ico {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--ico-bg, #777);
  font-style: normal;
}
.app-ico::before {
  content: ""; width: 62%; height: 62%; background: #fff;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico-gmail    { --ico-bg: #ea4335; --ico: url("icons/gmail.svg"); }
.ico-slack    { --ico-bg: #4a154b; --ico: url("icons/slack.svg"); }
.ico-notion   { --ico-bg: #121212; --ico: url("icons/notion.svg"); }
.ico-code     { --ico-bg: #1f74c4; --ico: url("icons/code.svg"); }
.ico-docs     { --ico-bg: #1a73e8; --ico: url("icons/docs.svg"); }
.ico-linear   { --ico-bg: #5e6ad2; --ico: url("icons/linear.svg"); }
.ico-messages { --ico-bg: #2bb741; --ico: url("icons/messages.svg"); }
.ico-gpt      { --ico-bg: #0f9d77; --ico: url("icons/gpt.svg"); }
.ico-figma    { --ico-bg: #d1492b; --ico: url("icons/figma.svg"); }
.ico-obsidian { --ico-bg: #6b4fbb; --ico: url("icons/obsidian.svg"); }
.ico-discord  { --ico-bg: #5865f2; --ico: url("icons/discord.svg"); }
.ico-whatsapp { --ico-bg: #25d366; --ico: url("icons/whatsapp.svg"); }

/* "adapts to every app" showcase */
.adapts { padding: clamp(56px, 7vw, 96px) 0; }
.said-once {
  display: grid; gap: 8px; max-width: 760px; margin: 0 auto 26px;
  padding: 22px 26px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.said-tag {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.said-once p {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.35; color: var(--ink);
}

.adapts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.app-out {
  display: grid; gap: 14px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.app-out header { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.app-out header span { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.app-out > p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.app-out p.chat {
  padding: 12px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--green-soft); color: var(--green-deep); font-weight: 500;
}
.app-out pre {
  margin: 0; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  background: #1d1b15; color: #cfe7d6;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86rem; line-height: 1.6;
}
.app-out ul.doc { display: grid; gap: 7px; margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
@media (max-width: 720px) { .adapts-grid { grid-template-columns: 1fr; } }

/* ---------------- speed comparison ---------------- */
.compare {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.compare-copy h2 { margin: 0 0 16px; }
.compare-copy p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.compare-bars {
  display: grid; gap: 24px; padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.bar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.bar-head span { color: var(--muted); font-weight: 600; }
.bar-head strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.bar { height: 14px; border-radius: 999px; overflow: hidden; background: rgba(29, 27, 21, 0.08); }
.fill { display: block; width: var(--w); height: 100%; border-radius: inherit; transform-origin: left; animation: grow-width 1100ms 200ms ease both; }
.fill.keys { background: var(--sand); }
.fill.voice { background: linear-gradient(90deg, var(--green), var(--pulse)); }

/* ---------------- feature blocks ---------------- */
.feature-block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature-block + .feature-block { margin-top: clamp(40px, 6vw, 88px); }
.feature-block.reverse .feature-block-visual { order: -1; }
.feature-block-copy h3 {
  margin: 0 0 14px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.01em;
}
.feature-block-copy > p { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.6; }
.feature-block-copy .check-list { margin: 20px 0 0; }

.check-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.check-list li { display: flex; align-items: center; gap: 11px; }
.check-list li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231f6b46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* dictionary / language mock body */
.window-body.lang-body { gap: 14px; }
.lang-mock-head { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink-soft); }
.lang-mock-head strong { color: var(--green); }
.lang-mock-chips { display: flex; gap: 8px; }
.lang-mock-chips span {
  display: grid; place-items: center; min-width: 38px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 0.82rem;
}
.lang-mock-chips span.on { border-color: transparent; color: #fff; background: var(--green); }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cloud span {
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--ink-soft); font-weight: 600; font-size: 0.88rem;
}

/* read aloud card */
.readout-card {
  display: grid; gap: 22px; padding: 28px;
  border-radius: var(--radius-xl); color: #f6f1e7;
  background:
    radial-gradient(22rem 16rem at 100% 0%, rgba(87, 180, 135, 0.42), transparent 60%),
    linear-gradient(150deg, #20271d, #2c3a2a);
  box-shadow: var(--shadow-md);
}
.readout-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.readout-card-header strong { font-weight: 600; }
.readout-card > p { margin: 0; color: rgba(246, 241, 231, 0.85); font-size: 1.14rem; line-height: 1.6; }
.readout-controls { display: flex; align-items: center; gap: 18px; }
.readout-controls button {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff; font-size: 1rem;
  background: linear-gradient(150deg, var(--green), var(--pulse));
  box-shadow: 0 10px 26px -10px rgba(31, 107, 70, 0.7);
}
.readout-card .mini-wave i { background: var(--pulse); height: 26px; width: 6px; }

/* ---------------- live demo ---------------- */
.demo-window-body { padding: 18px; background: var(--surface); }
.live-demo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr); gap: 18px; align-items: stretch; }

.demo-frame-shell {
  overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background:
    radial-gradient(28rem 18rem at 10% 0%, rgba(87, 180, 135, 0.16), transparent 60%),
    var(--surface-2);
}
.transcription-demo { display: flex; flex-direction: column; height: 100%; min-height: 520px; padding: 18px; }
.demo-window-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 50px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255, 253, 247, 0.7);
}
.demo-window-controls { display: flex; gap: 7px; }
.demo-window-controls span { width: 10px; height: 10px; border-radius: 50%; background: #e0a07a; }
.demo-window-controls span:nth-child(2) { background: #e6cf86; }
.demo-window-controls span:nth-child(3) { background: #8fc79a; }
.demo-window-title { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }

.language-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.language-pill {
  min-height: 38px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font: inherit; font-size: 0.86rem; font-weight: 600;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.language-pill:hover { color: var(--ink); border-color: var(--border-strong); }
.language-pill.active { border-color: transparent; color: #fff; background: var(--green); }

.mode-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mode-pill {
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--muted); font-weight: 600;
}
.mode-pill strong { font-size: 0.82rem; font-weight: 700; }
.mode-pill.dictate-mode { color: var(--green-deep); background: var(--green-soft); }
.mode-pill.read-mode { color: var(--read); background: rgba(176, 106, 50, 0.10); }
body.is-recording-demo .mode-pill.dictate-mode { color: #fff; background: var(--green); }
body.is-reading-aloud .mode-pill.read-mode { color: #fff; background: var(--read); }

.transcription-screen {
  flex: 1; display: flex; flex-direction: column; gap: 16px;
  min-height: 260px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
}
.transcript-panel { flex: 1; }
.structured-output { color: var(--ink-soft); }
.structured-output p, .structured-output ul { margin: 0; }
.structured-output p + p, .structured-output p + ul, .structured-output ul + p { margin-top: 12px; }
.structured-output ul { display: grid; gap: 8px; padding-left: 1.2em; }
.structured-output strong { color: var(--green); font-weight: 700; }
.transcription-screen .structured-output { font-size: 1.35rem; line-height: 1.5; font-weight: 500; }
.transcription-screen .structured-output ul { font-size: 1.12rem; }

.read-aloud-sample {
  user-select: text; padding: 16px;
  border: 1px dashed rgba(176, 106, 50, 0.4); border-radius: var(--radius-md);
  color: var(--ink-soft); background: rgba(176, 106, 50, 0.07);
}
.read-aloud-sample p:last-child { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.read-aloud-sample ::selection { background: rgba(176, 106, 50, 0.3); }

.transcription-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 253, 247, 0.7);
}
.transcription-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-record-button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  color: #fff; background: var(--ink); font: inherit; font-weight: 600;
  transition: transform 160ms ease, background 160ms ease;
}
.demo-record-button:hover { transform: translateY(-1px); }
.demo-record-button.active, body.is-recording-demo .demo-record-button:not(.read-aloud-button) { color: #fff; background: var(--green); }
.read-aloud-button { color: #6a3f18; background: rgba(176, 106, 50, 0.16); }
.read-aloud-button.active, body.is-reading-aloud .read-aloud-button { color: #fff; background: var(--read); }
.record-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.transcription-footer > span { color: var(--muted); font-size: 0.86rem; font-weight: 600; }

.demo-notes { display: grid; gap: 18px; }
.demo-notes article {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.demo-notes h3 { margin: 4px 0; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.demo-notes p { margin: 0; color: var(--muted); line-height: 1.55; }
.demo-notes .button { margin-top: 12px; }

/* ---------------- device ecosystem ---------------- */
.devices-stage {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(0px, 2vw, 24px); padding-top: 10px;
}
.device-desktop { width: min(720px, 100%); }
.device-phone {
  position: relative; flex: 0 0 auto;
  width: 210px; margin-left: -56px; margin-bottom: 8px;
  padding: 10px; border-radius: 40px;
  background: #1d1b15; box-shadow: var(--shadow-lg);
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); z-index: 2;
}
.phone-screen {
  display: grid; gap: 12px; justify-items: center;
  padding: 34px 18px 24px; border-radius: 32px;
  background: var(--surface); min-height: 360px; text-align: center;
}
.phone-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  font-weight: 600; font-size: 0.82rem; color: var(--ink-soft);
}
.phone-orb {
  display: grid; place-items: center; width: 78px; height: 78px; margin-top: 8px;
  border-radius: 50%; background: radial-gradient(circle, rgba(31, 107, 70, 0.16), transparent 70%);
}
.phone-orb span {
  width: 38px; height: 50px; border-radius: 20px;
  background: linear-gradient(160deg, var(--green), var(--pulse));
  box-shadow: 0 0 40px rgba(31, 107, 70, 0.4);
}
.phone-wave i { height: 22px; }
.phone-text { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.phone-out {
  margin: 0; padding: 12px 14px; border-radius: var(--radius-md);
  background: var(--green-soft); color: var(--green-deep); font-weight: 500; font-size: 0.92rem; line-height: 1.45;
}

/* ---------------- by the numbers ---------------- */
.metrics-band {
  margin: clamp(48px, 6vw, 80px) 0; padding: clamp(40px, 5vw, 64px) 0;
  background:
    radial-gradient(40rem 26rem at 12% 0%, rgba(232, 220, 193, 0.85), transparent 60%),
    radial-gradient(38rem 26rem at 92% 100%, rgba(87, 180, 135, 0.2), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.metrics-band-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 4vw, 40px); text-align: center; }
.metric-stat { display: grid; gap: 6px; }
.metric-stat strong {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.01em; color: var(--green-deep);
}
.metric-stat span { color: var(--muted); font-weight: 500; font-size: 0.96rem; }

/* ---------------- wall of love ---------------- */
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wall-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 26px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.wall-lg { grid-column: span 2; }
.wall-card blockquote { margin: 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.55; }
.wall-lg blockquote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.3; }
.wall-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.wall-card figcaption > span:last-child { display: grid; }
.wall-card figcaption strong { font-weight: 700; }
.wall-card figcaption small { color: var(--muted); }
.wall-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--sand), var(--pulse)); }
.wall-card.is-placeholder { border-style: dashed; background: rgba(255, 253, 247, 0.55); }
.ph-tag {
  position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.wall-note { margin: 18px 0 0; text-align: center; color: var(--faint); font-size: 0.9rem; }

/* ---------------- pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: rgba(31, 107, 70, 0.4);
  background: linear-gradient(170deg, rgba(87, 180, 135, 0.10), var(--surface) 60%);
  box-shadow: var(--shadow-lg); transform: translateY(-14px);
}
.price-card h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.popular {
  position: absolute; top: 18px; right: 18px; padding: 7px 12px; border-radius: 999px;
  color: #fff; background: var(--green); font-size: 0.74rem; font-weight: 700;
}
.price { margin: 18px 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.01em; }
.price span { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
.custom-price { font-size: 2.6rem; }
.price-sub { margin: -2px 0 12px; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.price-card > p { color: var(--muted); line-height: 1.55; }
.price-card ul { display: grid; gap: 12px; margin: 22px 0 auto; padding: 0; list-style: none; }
.price-card li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); }
.price-card li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231f6b46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price-card .button { margin-top: 26px; width: 100%; }

/* ---------------- faq ---------------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details {
  padding: 0 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 70px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.06rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-weight: 600;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { max-width: 800px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }

/* ---------------- final CTA ---------------- */
.final-card {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(44px, 7vw, 88px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-2xl); color: #f6f1e7;
  background:
    radial-gradient(30rem 22rem at 84% 12%, rgba(87, 180, 135, 0.4), transparent 60%),
    radial-gradient(26rem 20rem at 8% 92%, rgba(192, 122, 68, 0.26), transparent 60%),
    linear-gradient(150deg, #1c2018, #203020 70%);
  box-shadow: var(--shadow-lg);
}
.final-card .eyebrow { color: var(--pulse); }
.final-card h2 { max-width: 18ch; color: #f9f5ec; font-size: clamp(2.4rem, 5vw, 4rem); }
.final-card em { color: var(--pulse); }
.final-card p:not(.eyebrow) { max-width: 36rem; margin: 0; color: rgba(246, 241, 231, 0.82); font-size: 1.1rem; }
.final-card .hero-actions { justify-content: center; margin-top: 10px; }
.final-fine { color: rgba(246, 241, 231, 0.6) !important; font-size: 0.9rem; }

/* ---------------- footer ---------------- */
.site-footer {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; align-items: start;
  width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto;
  padding: 56px 0 44px; color: var(--muted); font-size: 0.94rem;
}
.site-footer div { display: grid; gap: 10px; align-content: start; }
.site-footer strong { color: var(--ink); font-size: 1rem; }
.site-footer a:hover { color: var(--ink); }
.footer-bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border);
}

/* ---------------- section spacing ---------------- */
.compare, .feature-blocks, .live-demo, .devices, .wall, .pricing, .faq, .final-cta {
  padding: clamp(56px, 7vw, 96px) 0;
}

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- AI polishing state ---------------- */
body.is-polishing .transcription-screen { border-color: rgba(31, 107, 70, 0.4); transition: border-color 300ms ease; }
body.is-polishing #liveTranscriptText::after {
  content: "|"; margin-left: 2px; color: var(--green); font-weight: 300; animation: ai-cursor 700ms ease-in-out infinite;
}

/* ---------------- keyframes ---------------- */
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw,4vh,0) scale(1.1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(207,91,63,0.18); transform: scale(1); } 50% { box-shadow: 0 0 0 9px rgba(207,91,63,0.1); transform: scale(1.1); } }
@keyframes grow-width { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes waveform-rise { 0%,100% { transform: scaleY(0.4); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes ai-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero, .compare, .live-demo-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card.featured { transform: none; }
}

@media (max-width: 900px) {
  .feature-block, .feature-block.reverse { grid-template-columns: 1fr; }
  .feature-block.reverse .feature-block-visual { order: 0; }
  .devices-stage { flex-direction: column; align-items: center; gap: 22px; }
  .device-phone { margin-left: 0; }
  .device-desktop { width: 100%; }
}

@media (max-width: 640px) {
  .section-shell, .site-header, .site-footer { width: min(100% - 28px, var(--max-width)); }
  .brand span:last-child { display: none; }
  .nav-signin { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1 1 auto; }
  .metrics-band-inner { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .wall-grid, .pricing-grid, .mode-strip { grid-template-columns: 1fr; }
  .wall-lg { grid-column: auto; }
  .demo-window-topbar, .transcription-footer { flex-direction: column; align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .hero-mini { right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
