/* truespoken.app — one stylesheet, no build step, no scripts. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #1b1a1f;
  --muted: #5f5d66;
  --line: #e4e1da;
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eceafd;
  --warn: #b45309;
  --good: #047857;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 18 30 / 6%), 0 8px 24px rgb(20 18 30 / 6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111015;
    --surface: #1a1920;
    --surface-2: #22212a;
    --ink: #f1f0f5;
    --muted: #a3a1ad;
    --line: #2e2c37;
    --accent: #9b94ff;
    --accent-ink: #14121c;
    --accent-soft: #25224a;
    --warn: #f59e0b;
    --good: #34d399;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
}

.narrow { max-width: 720px; }

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg { width: 26px; height: 26px; flex: none; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

@media (max-width: 520px) {
  .nav .hide-small { display: none; }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { filter: brightness(1.06); }
.button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Hero */

.hero { padding: 72px 0 56px; }

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

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

.fineprint { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font: 600 0.85em/1.6 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-align: center;
}

/* The hero's picture: the recording panel, then the text it produced. */

.demo {
  display: grid;
  gap: 16px;
}

.panel {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #16151b;
  color: #f1f0f5;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a5f;
  box-shadow: 0 0 0 4px rgb(255 90 95 / 22%);
}

.bars { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.bars i { display: block; width: 3px; border-radius: 2px; background: #b9b4ff; height: 30%; }
.bars i:nth-child(2) { height: 70%; }
.bars i:nth-child(3) { height: 100%; }
.bars i:nth-child(4) { height: 55%; }
.bars i:nth-child(5) { height: 85%; }
.bars i:nth-child(6) { height: 40%; }
.bars i:nth-child(7) { height: 65%; }
.bars i:nth-child(8) { height: 25%; }

@media (prefers-reduced-motion: no-preference) {
  .bars i { animation: talk 1.1s ease-in-out infinite alternate; }
  .bars i:nth-child(odd) { animation-delay: -0.4s; }
  .bars i:nth-child(3n) { animation-delay: -0.7s; }
}

@keyframes talk {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.said { color: var(--muted); font-style: italic; }

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.typed { font-size: 1.05rem; margin: 0; }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
}

/* Sections */

section { padding: 64px 0; }
section.alt { background: var(--surface-2); border-block: 1px solid var(--line); }

.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature { padding: 22px; }
.feature p { color: var(--muted); margin: 0; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg { width: 20px; height: 20px; }

.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li { counter-increment: step; padding: 22px; }
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.steps p { color: var(--muted); margin: 0; }

.styles-table { display: grid; gap: 12px; }
.styles-table .card p { margin: 0; }

/* Pricing */

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.plan { display: flex; flex-direction: column; padding: 26px; }
.plan.featured { border: 2px solid var(--accent); }
.price { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 2px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding: 0; margin: 16px 0 24px; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--good);
  border-bottom: 2px solid var(--good);
  transform: rotate(-45deg);
}
.plan .button { margin-top: auto; }

.notice {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
}

/* Waitlist form */

.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; max-width: 520px; }

.waitlist input[type="email"] {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

/* A honeypot: people never see it, bots fill it. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { display: none; margin: 10px 0 0; font-size: 0.95rem; }
.form-note:target { display: block; }
.form-note.error { color: var(--warn); }

/* Prose pages */

.prose { padding: 56px 0 72px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose li { margin-bottom: 0.4em; }
.prose .updated { color: var(--muted); }

/* FAQ */

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--muted); }

.center { text-align: center; }
.center .actions { justify-content: center; }
.center .lede { margin-inline: auto; }
section.flush-top { padding-top: 0; }
.button.disabled { opacity: 0.55; cursor: default; filter: none; }
.hero .wrap.center { display: block; }
