/* ==========================================================================
   Vocelle — shared stylesheet
   Monochrome by default, one meaningful accent (voice-blue, voice-only).
   System font stack. Zero JavaScript. See BRAND.md for the rules this
   file is built against.
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-fill: rgba(10, 10, 11, 0.05);
  --surface-fill-strong: rgba(10, 10, 11, 0.08);

  --ink: #0A0A0B;
  --ink-secondary: rgba(10, 10, 11, 0.64);
  --ink-tertiary: rgba(10, 10, 11, 0.44);
  --ink-disabled: rgba(10, 10, 11, 0.28);

  --hairline: rgba(10, 10, 11, 0.1);
  --hairline-strong: rgba(10, 10, 11, 0.16);

  /* Voice-blue: used ONLY for live/voice-meaningful elements — see BRAND.md §3 */
  --accent: #6B9EFF;
  --accent-text-on: #0A0A0B; /* fixed dark text on accent fill, both modes */

  /* Waveform mark gradient — mark only, never chrome */
  --wave-light: #8CD9FF;
  --wave-blue: #598CFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.32, 0.72, 0.35, 1);
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0B;
    --surface: #0A0A0B;
    --surface-fill: rgba(245, 246, 248, 0.06);
    --surface-fill-strong: rgba(245, 246, 248, 0.1);

    --ink: #F5F6F8;
    --ink-secondary: rgba(245, 246, 248, 0.64);
    --ink-tertiary: rgba(245, 246, 248, 0.44);
    --ink-disabled: rgba(245, 246, 248, 0.28);

    --hairline: rgba(245, 246, 248, 0.12);
    --hairline-strong: rgba(245, 246, 248, 0.18);
  }
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro",
    "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500; /* medium body */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- Typography --------------------------------------------------------*/
h1, h2, h3, h4 {
  font-weight: 600; /* semibold */
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { color: var(--ink); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-secondary);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-tertiary);
  text-transform: none;
}

.text-secondary { color: var(--ink-secondary); }
.text-tertiary { color: var(--ink-tertiary); }

.measure { max-width: 68ch; }

/* ---- Layout ------------------------------------------------------------*/
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }

.hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin-block: clamp(32px, 6vw, 64px);
}

/* ---- Header / nav --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  color: var(--ink);
}

.wordmark { font-weight: 600; letter-spacing: -0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.nav-toggle-label {
  display: none;
}

/* Small-viewport nav: links collapse to a simple wrapped row (no JS menu) */
@media (max-width: 760px) {
  .site-header .container { flex-wrap: wrap; padding-block: 12px; }
  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding-top: 10px;
    border-top: 1px solid var(--hairline);
    margin-top: 10px;
  }
}

/* ---- Waveform mark (logo) -------------------------------------------- */
.mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  flex-shrink: 0;
}

.mark-bar {
  width: 3px;
  border-radius: 2px;
  background-size: 500% 100%;
  background-image: linear-gradient(90deg, var(--wave-light) 0%, var(--wave-blue) 50%, var(--wave-light) 100%);
}

.mark-bar:nth-child(1) { height: 34%; background-position-x: 0%; }
.mark-bar:nth-child(2) { height: 62%; background-position-x: 25%; }
.mark-bar:nth-child(3) { height: 100%; background-position-x: 50%; }
.mark-bar:nth-child(4) { height: 62%; background-position-x: 75%; }
.mark-bar:nth-child(5) { height: 34%; background-position-x: 100%; }

/* ---- Buttons ------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), opacity 200ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: scale(0.985); }

/* Primary CTA — leads to the voice experience (download). The one sanctioned
   accent use for chrome, per BRAND.md's "link that leads to the voice
   experience" allowance. */
.btn-primary {
  background: var(--accent);
  color: var(--accent-text-on);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000 6%); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-secondary:hover { background: var(--surface-fill); }

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding-inline: 10px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* ---- Hero ---------------------------------------------------------------*/
.hero {
  padding-block: clamp(56px, 10vw, 110px) clamp(40px, 7vw, 72px);
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero h1 { text-wrap: balance; }

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

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-tertiary);
}

/* ---- Live waveform (hero) ---------------------------------------------- */
.waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 96px;
  margin-block: 8px;
}

.wave-bar {
  width: 6px;
  border-radius: 4px;
  background-size: 1500% 100%;
  background-image: linear-gradient(90deg,
    var(--wave-light) 0%, var(--wave-blue) 50%, var(--wave-light) 100%);
  transform-origin: bottom center;
  animation-name: wave-pulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Bell-curve base heights, center-weighted, symmetric — never a linear ramp */
.wave-bar:nth-child(1)  { height: 14px; background-position-x: 0%;      animation-duration: 2.6s; animation-delay: 0.00s; }
.wave-bar:nth-child(2)  { height: 20px; background-position-x: 7.14%;   animation-duration: 2.1s; animation-delay: -0.35s; }
.wave-bar:nth-child(3)  { height: 28px; background-position-x: 14.28%;  animation-duration: 2.5s; animation-delay: -0.70s; }
.wave-bar:nth-child(4)  { height: 38px; background-position-x: 21.43%;  animation-duration: 2.0s; animation-delay: -1.05s; }
.wave-bar:nth-child(5)  { height: 50px; background-position-x: 28.57%;  animation-duration: 2.4s; animation-delay: -1.40s; }
.wave-bar:nth-child(6)  { height: 62px; background-position-x: 35.71%;  animation-duration: 2.2s; animation-delay: -1.75s; }
.wave-bar:nth-child(7)  { height: 74px; background-position-x: 42.86%;  animation-duration: 2.6s; animation-delay: -2.10s; }
.wave-bar:nth-child(8)  { height: 84px; background-position-x: 50%;     animation-duration: 2.3s; animation-delay: -2.45s; }
.wave-bar:nth-child(9)  { height: 74px; background-position-x: 57.14%;  animation-duration: 2.6s; animation-delay: -0.20s; }
.wave-bar:nth-child(10) { height: 62px; background-position-x: 64.29%;  animation-duration: 2.2s; animation-delay: -0.55s; }
.wave-bar:nth-child(11) { height: 50px; background-position-x: 71.43%;  animation-duration: 2.4s; animation-delay: -0.90s; }
.wave-bar:nth-child(12) { height: 38px; background-position-x: 78.57%;  animation-duration: 2.0s; animation-delay: -1.25s; }
.wave-bar:nth-child(13) { height: 28px; background-position-x: 85.71%;  animation-duration: 2.5s; animation-delay: -1.60s; }
.wave-bar:nth-child(14) { height: 20px; background-position-x: 92.86%;  animation-duration: 2.1s; animation-delay: -1.95s; }
.wave-bar:nth-child(15) { height: 14px; background-position-x: 100%;    animation-duration: 2.6s; animation-delay: -2.30s; }

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.82); }
  50% { transform: scaleY(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar { animation: none; transform: scaleY(1); }
}

/* ---- Pillars / feature grid -------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-secondary); }

.pillar-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

/* ---- Feature list rows (features.html deep dive) ---------------------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-block: 36px;
  border-top: 1px solid var(--hairline);
}
.feature-row:first-of-type { border-top: none; }

.feature-row h3 { margin-bottom: 8px; }

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.detail-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-secondary);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-tertiary);
}

/* ---- Honesty table ------------------------------------------------------*/
.honesty-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface-fill);
}

.honesty-line {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 46ch;
  margin-bottom: 28px;
}

.table-wrap { width: 100%; overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

td { color: var(--ink-secondary); }

table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 12px;
  color: var(--ink);
}

.table-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

/* ---- Pricing ------------------------------------------------------------*/
.price-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-fill);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.price-card.is-featured {
  border-color: var(--accent);
}

.price-tier { font-size: 0.85rem; color: var(--ink-tertiary); font-weight: 600; letter-spacing: 0.02em; }
.price-amount { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.02em; }
.price-amount small { font-size: 0.95rem; font-weight: 500; color: var(--ink-tertiary); }
.price-sub { color: var(--ink-secondary); font-size: 0.92rem; }

.price-features {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.price-features li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-secondary);
  font-size: 0.94rem;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ink-tertiary);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-text-on);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* ---- FAQ (native <details>, zero JS) ----------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink-tertiary);
  flex-shrink: 0;
  transition: transform 200ms var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  padding-bottom: 22px;
  color: var(--ink-secondary);
  max-width: 68ch;
}

/* ---- Placeholder frame (for later screenshot replacement) ------------- */
.placeholder-frame {
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg,
      var(--surface-fill) 0px, var(--surface-fill) 10px,
      transparent 10px, transparent 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  aspect-ratio: 16 / 10;
  color: var(--ink-tertiary);
  font-size: 0.85rem;
  font-weight: 500;
}
.placeholder-frame span {
  max-width: 32ch;
}

/* ---- Callout / note boxes ----------------------------------------------*/
.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink-tertiary);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  background: var(--surface-fill);
  color: var(--ink-secondary);
  font-size: 0.95rem;
}
.callout strong { color: var(--ink); }

/* ---- Legal / long-form content -----------------------------------------*/
.legal h2 { margin-top: 40px; margin-bottom: 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: var(--ink-secondary); margin-bottom: 14px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal .updated { color: var(--ink-tertiary); font-size: 0.9rem; margin-bottom: 32px; }

/* ---- Final CTA band -----------------------------------------------------*/
.cta-band {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
  background: var(--surface-fill);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- Footer ---------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 40px;
  margin-top: clamp(48px, 8vw, 96px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}
.footer-links a:hover { color: var(--ink); }

.footer-fine {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--ink-tertiary);
}

/* ---- Utility ------------------------------------------------------------*/
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; gap: 20px; }
}
