@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #111;
  --surface-2: #151515;
  --line: #242424;
  --text: #f4f4f4;
  --muted: #8e8e93;
  --faint: #58585d;
  --accent: #23d5b5;
  --max: 800px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

a[href],
button:not(:disabled) {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.shell,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.shell { padding: 24px 0 112px; }

.intro {
  margin-bottom: 52px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

h1,
h2,
h3,
p { margin: 0; }

h1,
h2,
h3,
strong,
b { font-weight: 500; }

h1 {
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.intro .brand-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 1rem;
}

.download-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.download-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-count {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.media-placeholder {
  display: grid;
  min-height: 238px;
  place-items: center;
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.media-preview {
  display: block;
  max-width: calc(100% - 32px);
  object-fit: contain;
}

.media-preview-menu { height: 117px; }
.media-preview-limits { height: 130px; }

.section { margin-top: 94px; }

.section-heading { max-width: 560px; }

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.voices h2,
.how-section h2 { font-size: 20px; }

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

.steps article {
  min-height: 160px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease;
}

.steps article:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

.steps article > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 30px;
  border-radius: 50%;
  background: #f3f3f3;
  color: #111;
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: 0 7px 22px rgba(255, 255, 255, 0.12);
}

h3 { font-size: 0.98rem; letter-spacing: -0.01em; }

.steps p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.how-section .eyebrow { font-size: 0.875rem; }

.provider-tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
}

.provider-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.provider-tab:hover,
.provider-tab:focus-visible { color: var(--text); }

.provider-tab.is-active {
  background: #f3f3f3;
  color: #111;
}

.voice-panel[hidden] { display: none; }

.voice-panels {
  overflow: hidden;
  will-change: height;
}

.voice-panel { padding-top: 12px; }

.voice-list {
  display: grid;
  gap: 10px;
}

.voice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 14px 16px 14px 20px;
  border-radius: 14px;
  background: var(--surface);
}

.voice-row strong { font-size: 0.95rem; }
.voice-actions { display: flex; gap: 8px; }

.voice-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #202022;
  color: #d7d7d9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.voice-button-content {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.voice-status {
  display: inline-flex;
  align-items: center;
}

.voice-label {
  display: inline-flex;
  white-space: nowrap;
}

.voice-spinner {
  display: none;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: voice-spinner 700ms linear infinite;
}

.voice-button.is-waiting .voice-spinner { display: inline-block; }

@keyframes voice-spinner {
  to { transform: rotate(360deg); }
}

.voice-visualizer {
  display: none;
  width: 24px;
  height: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--accent);
}

.voice-button.is-playing .voice-visualizer { display: inline-flex; }

.voice-meter-bar {
  width: 3px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleY(0.28);
  transform-origin: center;
  will-change: transform;
}

.voice-button:hover,
.voice-button:focus-visible,
.voice-button.is-waiting,
.voice-button.is-playing { background: #303034; color: #fff; }

footer {
  padding: 0 0 42px;
  color: var(--faint);
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 8px; }
.menu-mark { width: 27px; height: 18px; opacity: 0.55; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; transition: color 160ms ease; }
footer a:hover, footer a:focus-visible { color: var(--text); }

.text-page { width: min(calc(100% - 40px), 680px); margin: 0 auto; padding: 96px 0 128px; }
.back-link { display: inline-flex; margin-bottom: 62px; color: var(--muted); font-size: 0.875rem; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: var(--text); }
.text-page header { margin-bottom: 48px; }
.text-page header p { margin-top: 10px; color: var(--muted); }
.text-page section { padding: 26px 0; }
.text-page section h2 { font-size: 1.05rem; letter-spacing: -0.015em; }
.text-page section p, .text-page li { margin-top: 12px; color: #a3a3a8; font-size: 0.95rem; }
.text-page ul { margin: 12px 0 0; padding-left: 20px; }
.text-page .note { padding: 20px; border-radius: 14px; background: var(--surface); }
.text-page .note a { color: var(--text); text-underline-offset: 3px; }

.faq-section > .eyebrow { margin-bottom: 8px; }
.faq-section > h2 { font-size: 1.45rem; }
.faq-list {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 16px;
}
.faq-list article {
  padding: 22px;
  background: var(--surface);
}
.faq-list h3 { font-size: 1rem; }
.faq-list article p { margin-top: 8px; }

@media (max-width: 720px) {
  .shell { padding-top: 12px; }
  .topbar { align-items: flex-start; }
  .download-button { min-height: 38px; padding-inline: 14px; }
  .showcase { grid-template-columns: 1fr; }
  .media-placeholder { min-height: 230px; }
  .steps { grid-template-columns: 1fr; }
  .steps article { min-height: auto; }
  .steps article > span { margin-bottom: 24px; }
  .voice-row { align-items: flex-start; flex-direction: column; }
  .voice-actions { width: 100%; }
  .voice-button { flex: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .voice-spinner { animation: none; }
}
