/* zephvox website. The Breeze tokens of the app (web/DESIGN.md): light by default, dark when chosen. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f2f7fb;
  --surface: #ffffff;
  --ink: #1c2b3a;
  --muted: #5a6b7d;
  --border: #dae5ef;
  --sky: #3a78ae;
  --sky-ink: #336c9e;
  --on-sky: #ffffff;
  --alert: #cf7652;
  --alert-ink: #b4532f;
  --mint: #5faea6;
  --mint-ink: #2f7f77;
  --success-ink: #2d7a5b;
  --sky-a: #e1edf8;
  --sky-b: #f2f7fb;
  --wind: #3a78ae;
  --code-bg: #eaf1f7;
  --shadow: 0 1px 2px rgb(28 43 58 / 0.05), 0 18px 40px -20px rgb(58 120 174 / 0.35);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1721;
  --surface: #15212e;
  --ink: #e2ebf4;
  --muted: #92a3b5;
  --border: #24364a;
  --sky: #7eb4e2;
  --sky-ink: #7eb4e2;
  --on-sky: #0e1721;
  --alert: #eb9c7c;
  --alert-ink: #eb9c7c;
  --mint: #86cfc6;
  --mint-ink: #86cfc6;
  --success-ink: #74c49f;
  --sky-a: #13212f;
  --sky-b: #0e1721;
  --wind: #7eb4e2;
  --code-bg: #0b121a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -20px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--sky-ink);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
code,
kbd,
pre {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}
.skip:focus {
  top: 12px;
}

/* ---- header ---------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--sky);
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-actions {
  display: flex;
  gap: 8px;
}
.moon {
  display: none;
}
:root[data-theme="dark"] .sun {
  display: none;
}
:root[data-theme="dark"] .moon {
  display: block;
}
@media (max-width: 760px) {
  .nav a:not(.keep) {
    display: none;
  }
}

/* ---- hero ------------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b));
  padding-block: clamp(48px, 8vw, 96px) clamp(16px, 3vw, 32px);
  isolation: isolate;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-copy {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 300;
}
.hero h1 em {
  font-style: italic;
}
.lede {
  margin-top: 20px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
}
.cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--sky);
}
.btn.primary {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--on-sky);
  box-shadow: var(--shadow);
}
.btn.primary:hover {
  filter: brightness(1.06);
}
.fine {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.wind-toggle {
  margin-top: 22px;
  font-size: 0.92rem;
  font-weight: 700;
  height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
}
.wind-toggle[aria-pressed="true"] {
  background: var(--alert);
  border-color: var(--alert);
  color: #fff;
}
.window {
  margin: clamp(32px, 5vw, 56px) auto 0;
  max-width: 980px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.window img {
  width: 100%;
  height: auto;
}

/* ---- sections -------------------------------------------------------------------------- */
section {
  padding-block: clamp(56px, 8vw, 96px);
}
section.tight-top {
  padding-top: 0;
}
section.tinted {
  background: color-mix(in srgb, var(--sky) 5%, var(--bg));
}
#how {
  padding-top: clamp(40px, 6vw, 72px);
}
.section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 26px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sky) 14%, transparent);
  color: var(--sky-ink);
  font-weight: 800;
}
.steps h3 {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}
.steps p {
  color: var(--muted);
}
.steps kbd,
.kbd {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.82em;
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 28px 32px;
}
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start; /* the row stretches the card; extra height must not open up under the title */
  gap: 0 16px;
}
.feature .badge {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sky) 13%, transparent);
  color: var(--sky-ink);
}
.feature h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.35;
  margin-top: 0;
  text-wrap: pretty;
}
.feature p {
  grid-column: 2;
  margin-top: 6px;
  color: var(--muted);
}

/* the sounds demo */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.word {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
}
.ipa {
  color: var(--muted);
  font-size: 1rem;
  font-family: "Noto Sans", system-ui, sans-serif;
  margin-left: 8px;
}
.tiles-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
}
.tiles-row .eyebrow {
  font-size: 0.7rem;
}
.tiles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tile {
  min-width: 44px;
  height: 40px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 1.1rem;
}
.tile.good {
  border-color: var(--success-ink);
  color: var(--success-ink);
  font-weight: 700;
}
.tile.bad {
  border-color: var(--alert);
  background: color-mix(in srgb, var(--alert) 12%, transparent);
  color: var(--alert-ink);
  font-weight: 700;
}
.tip {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sky) 9%, transparent);
  font-size: 0.97rem;
}
.demo-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-top: 10px;
}
.demo-copy p {
  margin-top: 14px;
  color: var(--muted);
}

/* install guide */
[hidden] {
  display: none !important;
}
:not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  font-size: 0.88em;
}
.choose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.choice h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 400;
}
.choice h3 .icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--sky-ink);
}
.choice p {
  color: var(--muted);
}
.choice ul {
  margin: 4px 0 8px;
  padding-left: 20px;
  color: var(--muted);
}
.choice .btn {
  margin-top: auto;
}
.pill {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sky) 15%, transparent);
  color: var(--sky-ink);
  font-size: 0.78rem;
  font-weight: 800;
}
.os-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.os-bar .tabs {
  margin-top: 0;
}
.guide {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
.guide-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}
.guide-lede {
  margin-top: 8px;
  color: var(--muted);
  max-width: 62ch;
}
.install-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: i;
}
.install-steps > li {
  position: relative;
  padding-left: 52px;
  min-width: 0;
}
.install-steps > li::before {
  counter-increment: i;
  content: counter(i);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sky) 14%, transparent);
  color: var(--sky-ink);
  font-weight: 800;
}
.install-steps h4 {
  margin: 4px 0 6px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.1rem;
}
.install-steps p {
  color: var(--muted);
}
.install-steps p + p,
.install-steps .code + p {
  margin-top: 10px;
}
.aside {
  font-size: 0.95rem;
}
.checks {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.checks li + li {
  margin-top: 4px;
}
.more {
  margin-top: 14px;
}
.more summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 700;
  color: var(--sky-ink);
}
.table-wrap {
  margin-top: 10px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
tbody tr + tr td {
  border-top: 1px solid var(--border);
}
td {
  color: var(--muted);
}
td:first-child {
  white-space: nowrap;
  color: var(--ink);
}
.needs {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.needs h4 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  margin-top: 6px;
}
.tab {
  height: 34px;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}
.code {
  position: relative;
  margin-top: 10px;
  border-radius: 16px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}
.code pre {
  margin: 0;
  padding: 42px 18px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--ink);
}
.copy {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 32px;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.copy .icon {
  width: 16px;
  height: 16px;
}
.copy[data-done="true"] {
  color: var(--success-ink);
  border-color: var(--success-ink);
}
.guide .note {
  margin-top: 28px;
}
.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--sky) 55%, var(--border));
  background: color-mix(in srgb, var(--sky) 6%, transparent);
  font-size: 0.97rem;
}
.reqs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.reqs li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
}
.reqs b {
  color: var(--ink);
}
.reqs .icon {
  width: 20px;
  height: 20px;
  color: var(--mint-ink);
  margin-top: 3px;
}

/* privacy + faq */
.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.privacy .card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.privacy .card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.faq {
  max-width: 760px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.split .section-head {
  position: sticky;
  top: 96px;
  margin-bottom: 0;
}
.split .faq {
  max-width: none;
}
.split .section-head .fine {
  margin-top: 18px;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary .lead {
  flex: none;
  color: var(--sky-ink);
}
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-child {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 700;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .steps,
  .demo,
  .choose,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split .section-head {
    position: static;
    margin-bottom: clamp(20px, 4vw, 32px);
  }
}
@media (max-width: 520px) {
  .install-steps > li {
    padding-left: 0;
    padding-top: 46px;
  }
  .install-steps > li::before {
    top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
