:root {
    --canvas: #f5f3ef; --surface: #fefdfb; --stroke: #e4e1db;
    --ink: #181715; --muted: #6b6963; --accent: #705aa6; --lavender: #eceaf9;
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, monospace;
    color-scheme: light dark;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --canvas: #1a1918; --surface: #262523; --stroke: #3d3d3d;
      --ink: #efeeec; --muted: #9e9e9e; --accent: #c7b5fa; --lavender: #3d3552;
    }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; background: var(--canvas); color: var(--ink);
    font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
  .brand { display: flex; align-items: center; gap: 10px; font: 600 24px/1 var(--serif); text-decoration: none; }
  .brand svg { width: 22px; height: 22px; fill: var(--ink); }
  nav .links { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
  nav .links a { text-decoration: none; }
  nav .links a:hover { color: var(--ink); }

  .hero { padding: 64px 0 40px; text-align: center; }
  h1 { font: 500 clamp(40px, 7vw, 72px)/1.05 var(--serif); letter-spacing: -0.02em; margin: 0 0 20px; }
  .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
  .button {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
    background: var(--ink); color: var(--canvas); font-weight: 600; font-size: 16px; text-decoration: none;
  }
  .button:hover { opacity: 0.88; }
  .button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--stroke); }
  .button svg { width: 17px; height: 17px; fill: currentColor; }
  .brew {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--stroke); font: 14px var(--mono); max-width: 100%;
  }
  .brew code { overflow-x: auto; white-space: nowrap; }
  .copy {
    border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
    background: var(--lavender); color: var(--ink); font: 600 13px var(--sans);
  }
  .fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

  .shot { margin: 48px auto 0; max-width: 1000px; }
  .shot picture img, .shot img {
    width: 100%; height: auto; display: block; border-radius: 14px;
    border: 1px solid var(--stroke); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.35);
  }

  section { padding: 72px 0; }
  h2 { font: 500 clamp(30px, 4vw, 42px)/1.15 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; }
  .intro { color: var(--muted); max-width: 620px; margin: 0 0 36px; }
  .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 26px; }
  .card h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 8px; }
  .card p { margin: 0; color: var(--muted); font-size: 16px; }
  .card .icon {
    width: 38px; height: 38px; border-radius: 10px; background: var(--lavender);
    display: grid; place-items: center; margin-bottom: 16px;
  }
  .card .icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  kbd {
    font: 600 13px var(--sans); padding: 2px 7px; border-radius: 6px;
    background: var(--canvas); border: 1px solid var(--stroke); color: var(--ink);
  }

  .split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
  .split ul { list-style: none; padding: 0; margin: 0; }
  .split li { padding: 12px 0; border-top: 1px solid var(--stroke); color: var(--muted); }
  .split li strong { color: var(--ink); font-weight: 600; }

  .install { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 40px; }
  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 8px; }
  .steps h3 { font: 600 17px var(--sans); margin: 0 0 10px; }
  pre {
    margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--canvas);
    border: 1px solid var(--stroke); font: 14px/1.6 var(--mono); overflow-x: auto;
  }
  .steps p { color: var(--muted); font-size: 15px; margin: 12px 0 0; }

  footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

  @media (max-width: 820px) {
    .grid, .split, .steps { grid-template-columns: 1fr; }
    .split { gap: 28px; }
    .install { padding: 26px 20px; }
    nav .links { gap: 16px; }
    .hero { padding-top: 36px; }
    section { padding: 52px 0; }
  }
  @media (max-width: 480px) {
    .brew { font-size: 12px; }
  }
  /* On a phone the links go on a row of their own under the name, rather than away. */
  @media (max-width: 600px) {
    .wrap > nav { flex-wrap: wrap; row-gap: 12px; padding-bottom: 12px; }
    .wrap > nav .links { width: 100%; gap: 14px; font-size: 14px; overflow-x: auto; white-space: nowrap; align-items: center; justify-content: space-between; }
    .wrap > nav .links .pill-link { padding: 0; border: 0; background: none; }
  }

/* Text pages: FAQ, support, privacy, imprint. */
.page { max-width: 760px; padding: 40px 0 72px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.page .lede { margin: 0 0 40px; text-align: left; }
.page h2 { font-size: 26px; margin: 44px 0 10px; }
.page h3 { font: 600 17px/1.4 var(--sans); margin: 26px 0 6px; }
.page p, .page li { color: var(--muted); }
.page p strong, .page li strong { color: var(--ink); }
.page ul { padding-left: 20px; }
.page a { color: var(--accent); }
details { background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 16px; }
details > div p { margin: 0 0 10px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Home page: the case for Speaku. */
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.stat b { display: block; font: 500 34px/1.1 var(--serif); letter-spacing: -0.01em; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 15px; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; opacity: 0.85; }

.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.steps3 { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps3 li { position: relative; padding: 0 0 26px 52px; color: var(--muted); }
.steps3 li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lavender); color: var(--accent); font-weight: 700;
}
.steps3 li strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

.demo {
  position: relative; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,0.4); overflow: hidden;
}
.demo .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--stroke); }
.demo .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--stroke); }
.demo .fields { padding: 10px 22px; border-bottom: 1px solid var(--stroke); font-size: 14px; color: var(--muted); }
.demo .fields div { padding: 5px 0; }
.demo .body { padding: 22px; min-height: 190px; font-size: 16px; white-space: pre-line; }
.demo .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pill {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  background: #1f1d24; color: #f2f0f7; font: 600 14px var(--sans); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}
.pill .wave { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.pill .wave i { width: 3px; height: 10px; border-radius: 2px; background: #c7b5fa; animation: wave 0.9s ease-in-out infinite; }
.pill .wave i:nth-child(2) { animation-delay: 0.1s } .pill .wave i:nth-child(3) { animation-delay: 0.2s }
.pill .wave i:nth-child(4) { animation-delay: 0.3s } .pill .wave i:nth-child(5) { animation-delay: 0.4s }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.pill .spin { width: 14px; height: 14px; border: 2px solid #c7b5fa; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pill .tag { font-size: 12px; color: #c7b5fa; }
.pill.hidden { opacity: 0; }

.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.ba .card p { font-size: 17px; color: var(--ink); }
.ba .card.raw p { color: var(--muted); font-style: italic; }
.ba .arrow { align-self: center; color: var(--accent); font-size: 26px; }
.label { font: 600 12px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checks li strong { color: var(--ink); }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--stroke); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font: 600 13px var(--sans); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.compare td:first-child { color: var(--muted); }
.compare .yes { color: var(--ink); font-weight: 600; }

.cta { text-align: center; padding: 64px 28px; border-radius: 22px; background: var(--lavender); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 560px; }

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .ba { grid-template-columns: 1fr; }
  .ba .arrow { transform: rotate(90deg); justify-self: center; }
  .checks { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill .wave i, .pill .spin, .demo .caret { animation: none; }
}

/* On a phone the comparison is one card per question, not a squeezed grid. */
@media (max-width: 820px) {
  table.compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  table.compare { background: none; border: 0; border-radius: 0; }
  .compare tr { background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; margin-bottom: 10px; padding: 12px 16px; }
  .compare td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
  .compare td.what { color: var(--ink); font-weight: 600; padding-bottom: 8px; }
  .compare td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .compare td[data-label] { text-align: right; }
}

/* Sub pages: a smaller header, sections that follow it closely. */
.hero.sub { padding: 48px 0 8px; }
.hero.sub h1 { font-size: clamp(36px, 5.5vw, 56px); }
.hero.sub .lede { margin-bottom: 0; }
section.first { padding-top: 40px; }
nav .links a[aria-current] { color: var(--ink); }
nav .links .pill-link { color: var(--ink); font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); }
.split.flip > :first-child { order: 2; }
.shot.side { margin: 0; }
.split h2 + p { color: var(--muted); margin: 0 0 8px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card a.more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.platform h3 { font-size: 22px; }
.platform .icon svg { fill: var(--accent); stroke: none; }
.platform ol { color: var(--muted); padding-left: 20px; margin: 16px 0 22px; font-size: 15px; }
.platform ol li { margin-bottom: 6px; }
@media (max-width: 820px) { .split.flip > :first-child { order: 0; } .grid.two { grid-template-columns: 1fr; } }

/* The playback demo: a meeting transcript that follows along word by word. */
.player { background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px; padding: 22px 26px 26px; box-shadow: 0 24px 60px -34px rgba(0,0,0,0.4); }
.player .top { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--stroke); }
.player .play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--canvas); cursor: pointer; display: grid; place-items: center; flex: none; }
.player .play svg { width: 16px; height: 16px; fill: currentColor; }
.player .title { font-weight: 600; }
.player .clock { margin-left: auto; font: 14px var(--mono); color: var(--muted); }
.player .turn { margin-top: 16px; }
.player .who { font: 600 14px var(--sans); color: var(--accent); }
.player .who span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.player p { margin: 4px 0 0; font-size: 17px; line-height: 1.7; }
.player .w { cursor: pointer; border-radius: 4px; padding: 1px 0; transition: background 0.12s, color 0.12s; }
.player .w:hover { text-decoration: underline; text-decoration-color: var(--stroke); }
.player .w.now { background: var(--lavender); box-shadow: 0 0 0 3px var(--lavender); }
.player.playing .w.ahead { color: var(--muted); }
.player .hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Home: what each half of Speaku does, at a glance. */
.card.feature { padding: 30px; }
.card.feature h3 { font-size: 22px; }
.card.feature > p { color: var(--ink); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { color: var(--muted); font-size: 15px; padding-left: 14px; border-left: 2px solid var(--lavender); }
.facts li strong { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }
