:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --sidebar: #f4f0e8;
  --border: #ebe5d9;
  --ink: #1d1c1a;
  --muted: #6b665c;
  --accent: #2f6b47;
  --accent-soft: #cfe3d3;
  --hero: #1d1c1a;
  --hero-ink: #f3f1ec;
  --hero-muted: #c9c3b6;
  --cursor: #6dbb88;
  --shadow: 0 1px 2px rgb(29 28 26 / 0.05), 0 18px 50px -20px rgb(29 28 26 / 0.25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --paper: #1c1b19;
    --sidebar: #232220;
    --border: #3a3833;
    --ink: #f3f1ec;
    --muted: #a8a397;
    --accent: #6dbb88;
    --accent-soft: #24452f;
    --hero: #0f0f0e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 50px -20px rgb(0 0 0 / 0.7);
  }
}

*, *::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: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }

h1, h2 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 em, h2 em { color: var(--accent); }

h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); background: var(--accent); color: #fff; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.small { padding: 8px 16px; font-size: 0.9rem; }
.button.large { padding: 16px 28px; font-size: 1.05rem; }

.text-link { color: var(--muted); font-weight: 500; text-decoration: none; }
.text-link:hover { color: var(--ink); }

.meta { margin: 18px 0 0; color: var(--muted); font-size: 0.85rem; }

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* Hero */

.hero { padding: clamp(56px, 10vw, 110px) 0 40px; text-align: center; }
.hero h1 { font-size: clamp(3rem, 9vw, 6.4rem); }
.hero h1 em { font-style: italic; }

.lede {
  max-width: 36rem;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
}

/* Demo */

.demo-section { padding: 24px 0 72px; }

.demo {
  max-width: 760px;
  margin-inline: auto;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.demo-tabs button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.demo-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.window {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  background: var(--sidebar);
  border-bottom: 1px solid var(--border);
}
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.window-bar p { flex: 1; margin: 0 0 0 -50px; text-align: center; color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.window-head { padding: 12px 22px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }

.window-body { padding: 20px 22px 90px; font-size: 1rem; line-height: 1.65; }
.window-body p { display: inline; margin: 0; white-space: pre-wrap; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--cursor);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.pill {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--hero);
  color: var(--hero-ink);
  font-size: 0.82rem;
  font-weight: 500;
  transform: translateX(-50%);
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 0.5);
  transition: opacity 200ms ease, transform 200ms ease;
}
.pill[data-state="idle"] { opacity: 0.55; }

.pill-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.pill-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--hero-ink); transition: height 150ms ease; }
.pill[data-state="listening"] .pill-bars i { animation: talk 700ms ease-in-out infinite alternate; }
.pill[data-state="listening"] .pill-bars i:nth-child(2) { animation-delay: -250ms; }
.pill[data-state="listening"] .pill-bars i:nth-child(3) { animation-delay: -500ms; }
.pill[data-state="listening"] .pill-bars i:nth-child(4) { animation-delay: -120ms; }
.pill[data-state="listening"] .pill-bars i:nth-child(5) { animation-delay: -380ms; }
.pill[data-state="thinking"] .pill-bars i { animation: think 900ms ease-in-out infinite; background: var(--hero-muted); }
.pill[data-state="thinking"] .pill-bars i:nth-child(2) { animation-delay: 120ms; }
.pill[data-state="thinking"] .pill-bars i:nth-child(3) { animation-delay: 240ms; }
.pill[data-state="thinking"] .pill-bars i:nth-child(4) { animation-delay: 360ms; }
.pill[data-state="thinking"] .pill-bars i:nth-child(5) { animation-delay: 480ms; }
.pill[data-state="pasted"] .pill-bars i { background: var(--cursor); height: 4px; }

@keyframes talk { from { height: 4px; } to { height: 18px; } }
@keyframes think { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.key {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  width: 132px;
  height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-bottom-width: 4px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 80ms ease, border-color 120ms ease;
}
.key-glyph { color: var(--ink); font-size: 1.4rem; line-height: 1; }
.key.down { transform: translateY(3px); border-bottom-width: 1px; margin-bottom: 3px; border-color: var(--accent); }

.said { min-width: 0; }
.said-label { margin: 0; color: var(--muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.spoken { min-height: 3.2em; margin: 4px 0 0; color: var(--muted); font-family: var(--serif); font-size: 1.05rem; font-style: italic; }

.demo-hint { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; }

/* Steps */

.steps, .features, .privacy, .download, .faq { padding: 72px 0; }

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.steps li { padding-top: 22px; border-top: 1px solid var(--border); }
.steps li p { margin: 8px 0 0; color: var(--muted); }

.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.aside { max-width: 44rem; margin: 36px 0 0; color: var(--muted); font-size: 0.95rem; }

/* Features */

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

.grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--paper);
}
.grid article p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
.grid strong { color: var(--ink); font-weight: 600; }

/* Privacy */

.privacy-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 22px;
  background: var(--hero);
  color: var(--hero-ink);
}
.privacy-card .eyebrow, .privacy-card h2 em { color: var(--cursor); }
.privacy-card p { color: var(--hero-muted); }
.privacy-card h2 + p { margin-top: 24px; }

.checks { margin: 0; padding: 0; list-style: none; align-self: center; }
.checks li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid rgb(243 241 236 / 0.12);
  color: var(--hero-muted);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--cursor);
}
.checks strong { color: var(--hero-ink); font-weight: 600; }

/* Download */

.download { text-align: center; }
.download h2 { margin-bottom: 36px; }

.install {
  max-width: 36rem;
  margin: 48px auto 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
  text-align: left;
}
.install li {
  position: relative;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  counter-increment: step;
}
.install li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.install strong { color: var(--ink); font-weight: 600; }
.install a { color: var(--accent); }

/* FAQ */

.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }

.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 200ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { margin: 0 0 20px; color: var(--muted); }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
.site-footer > a:last-child { text-decoration: none; }
.site-footer > a:last-child:hover { color: var(--ink); }

/* Small screens */

@media (max-width: 820px) {
  .site-header nav { display: none; }
  .steps ol, .grid { grid-template-columns: 1fr; }
  .privacy-card, .faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 520px) {
  .demo-controls { flex-direction: column; align-items: stretch; }
  .key { width: 100%; height: 64px; }
  .window { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Not released yet: a store badge that isn't a link. */
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 22px 10px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  line-height: 1.15;
  text-align: left;
}
.store-small { font-size: 0.72rem; opacity: 0.75; }
.store-big { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.large { padding: 12px 28px 13px; }
.store-badge.large .store-big { font-size: 1.35rem; }
