:root,
html[data-theme='light'] {
  color-scheme: light;
  --bg: #f3ddd0;
  --bg-deep: #e8cbb8;
  --bg-hi: #f7e6d8;
  --panel: rgba(255, 247, 240, 0.78);
  --panel-strong: #f7e4d6;
  --surface: rgba(255, 255, 255, 0.58);
  --line: rgba(154, 74, 58, 0.16);
  --line-strong: rgba(154, 74, 58, 0.28);
  --text: #3a241c;
  --muted: #7a4e40;
  --soft: #a36b58;
  --coral: #c45c4e;
  --salmon: #e07a5f;
  --peach: #f0a07a;
  --cream: #fff6ee;
  --rust: #9c3d2e;
  --amber: #c48a3a;
  --sage: #6f8a68;
  --on-accent: #fff6ee;
  --glow-a: rgba(232, 130, 96, 0.42);
  --glow-b: rgba(196, 92, 78, 0.2);
  --glow-c: rgba(212, 160, 86, 0.16);
  --shadow: rgba(92, 36, 24, 0.14);
  --wash: rgba(196, 92, 78, 0.12);
  --bubble: #fff8f2;
  --bubble-user: #f3d0c4;
  --ok: #3f6b3a;
  --nav: rgba(243, 221, 208, 0.78);
  --hero-scrim:
    linear-gradient(105deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 44%, transparent 72%),
    linear-gradient(180deg, transparent 40%, var(--bg) 92%);
}

html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #1a100e;
  --bg-deep: #120c0a;
  --bg-hi: #2a1814;
  --panel: rgba(42, 24, 20, 0.82);
  --panel-strong: #2a1a16;
  --surface: rgba(255, 232, 214, 0.07);
  --line: rgba(246, 214, 196, 0.16);
  --line-strong: rgba(246, 214, 196, 0.28);
  --text: #f6e8dc;
  --muted: #c9a89a;
  --soft: #a07a6c;
  --coral: #e07a5f;
  --salmon: #e8a07a;
  --peach: #f0b496;
  --cream: #2a1a16;
  --rust: #f0a07a;
  --amber: #e0b46a;
  --sage: #8faf88;
  --on-accent: #1a100e;
  --glow-a: rgba(196, 92, 78, 0.38);
  --glow-b: rgba(224, 122, 95, 0.18);
  --glow-c: rgba(212, 160, 86, 0.1);
  --shadow: rgba(0, 0, 0, 0.42);
  --wash: rgba(224, 122, 95, 0.14);
  --bubble: #2a1a16;
  --bubble-user: #3a241c;
  --ok: #8faf88;
  --nav: rgba(26, 16, 14, 0.78);
  --hero-scrim:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 38%, color-mix(in srgb, var(--bg) 40%, transparent) 68%, transparent 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 42%, transparent), transparent 48%, var(--bg) 96%);
  --hero-photo-filter: brightness(0.46) contrast(1.08) saturate(0.68);
  --hero-photo-opacity: 0.58;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(110% 80% at 8% -10%, var(--glow-a), transparent 48%),
    radial-gradient(90% 70% at 100% 0%, var(--glow-b), transparent 46%),
    radial-gradient(120% 80% at 50% 110%, var(--glow-c), transparent 50%),
    linear-gradient(180deg, var(--bg-hi), var(--bg) 58%, var(--bg-deep));
  min-height: 100dvh;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
.btn {
  font: inherit;
}

h1,
h2,
h3,
.display {
  font-family: Newsreader, "Iowan Old Style", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--on-accent);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 42rem;
}

.muted {
  color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 0 auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  display: none;
}

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

.icon-btn,
.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg,
.menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.menu-btn {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
}

.btn-primary {
  background: var(--coral);
  color: var(--on-accent);
  box-shadow: 0 10px 24px var(--wash);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface);
}

.btn-lg {
  min-height: 52px;
  padding: 0 22px;
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/room.jpg') center 30% / cover no-repeat;
  filter: var(--hero-photo-filter, none);
  opacity: var(--hero-photo-opacity, 1);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-scrim);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.1rem, 7vw, 5.6rem);
  font-variation-settings: "opsz" 72;
  max-width: 11ch;
}

.hero .lede {
  margin-top: 22px;
  font-size: 1.22rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.92rem;
}

.device {
  width: min(390px, 100%);
  margin-inline: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 28px 70px var(--shadow),
    inset 0 1px rgba(255, 255, 255, 0.55);
  padding: 22px 18px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 560px;
}

.device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.device-top img {
  width: 18px;
  height: 18px;
}

.presence {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px 8px 8px;
}

.presence h2 {
  font-size: 1.7rem;
  margin-top: 8px;
}

.presence p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.orb {
  position: relative;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--coral) 40%, transparent);
  box-shadow: 0 0 40px var(--glow-a);
  animation: breathe 4.6s ease-in-out infinite;
}

.orb-face {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a1814;
  box-shadow: 0 16px 40px var(--shadow);
}

.device-status {
  text-align: center;
  padding: 8px 0 14px;
}

.device-status strong {
  display: block;
  font-size: 0.95rem;
}

.device-status small {
  color: var(--muted);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.device-bar .add,
.device-bar .mic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  color: var(--text);
}

.device-bar .mic {
  margin-left: auto;
  background: var(--coral);
  color: var(--on-accent);
}

.device-bar .add svg,
.device-bar .mic svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.device-bar span {
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .copy {
  order: 2;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 16ch;
}

.copy .lede {
  margin-top: 16px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.step b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wash);
  color: var(--coral);
  font-size: 0.85rem;
}

.step p strong {
  display: block;
  font-size: 1rem;
}

.step p span {
  color: var(--muted);
  font-size: 0.94rem;
}

.fine {
  margin-top: 20px;
  color: var(--soft);
  font-size: 0.9rem;
  max-width: 40rem;
}

/* transcript */
.transcript {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
  padding: 22px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.transcript header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.play-demo {
  border: 0;
  background: none;
  color: var(--coral);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.bubble {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bubble);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
}

.bubble.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bubble.you {
  align-self: flex-end;
  background: var(--bubble-user);
}

.bubble .who {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.bubble.status {
  align-self: center;
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  font-size: 0.9rem;
}

.phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--coral);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: 0.25s ease;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.cards.pair {
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px var(--shadow);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.voice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.voice-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.say-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.say {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  color: inherit;
}

.say strong {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.say small {
  color: var(--muted);
}

.say:hover {
  border-color: var(--coral);
}

/* download */
.download {
  text-align: center;
}

.download h2 {
  max-width: none;
  margin-inline: auto;
}

.download .lede {
  margin: 16px auto 0;
}

.dl-main {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.platforms {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  min-height: 118px;
}

.platform strong {
  font-size: 1.05rem;
}

.platform small {
  color: var(--muted);
}

.platform:hover {
  border-color: var(--coral);
}

/* footer */
.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: Newsreader, Georgia, serif;
  font-size: 1.2rem;
}

.footer-brand img {
  width: 20px;
  height: 20px;
}

/* mobile nav */
.nav-links.open {
  display: flex;
}

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .split.reverse,
  .work-grid,
  .cards,
  .say-grid {
    grid-template-columns: 1fr;
  }

  .platforms {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .copy {
    order: -1;
  }

  .cards.pair {
    grid-template-columns: 1fr;
  }

  .transcript {
    min-height: 280px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .menu-btn {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 48px var(--shadow);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav-cta {
    display: block;
  }

  .nav-cta a {
    font-weight: 700;
    color: var(--coral);
    border-bottom: 0;
  }

  .nav-actions .btn {
    display: none;
  }

  section {
    padding: 64px 0;
  }

  html[data-theme='dark'] {
    --hero-photo-filter: brightness(0.36) contrast(1.06) saturate(0.6);
    --hero-photo-opacity: 0.38;
    --hero-scrim: linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, transparent), color-mix(in srgb, var(--bg) 76%, transparent) 48%, var(--bg) 100%);
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-grid {
    width: min(100% - 28px, 1120px);
  }

  .device {
    min-height: 500px;
  }

  .nav-inner {
    width: min(100% - 20px, 1240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-ring { animation: none; }
  .bubble.show { transition: none; }
}
