/* BetterVoice landing page, using the Open Analytics design language. */
:root {
  --ink: #292929;
  --background: #f6f6f6;
  --card: #ffffff;
  --muted-foreground: #6d6d6d;
  --primary: #f5c400;
  --primary-dark: #c69d00;
  --ring: #e1b000;
  --border: color-mix(in srgb, var(--ink) 12%, transparent);
  --radius: 0.625rem;
  --shadow-resting: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-floating: 0 1px 2px rgba(0, 0, 0, 0.08), 0 18px 50px rgba(0, 0, 0, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.page-frame { width: min(100% - 32px, 1216px); margin-inline: auto; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 72px;
  padding: 12px 16px 0;
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1024px);
  height: 52px;
  margin-inline: auto;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 700ms cubic-bezier(.32,.72,0,1);
  pointer-events: auto;
}
[data-header][data-scrolled] .header-inner {
  width: min(100%, 760px);
  height: 48px;
  background: rgba(217, 217, 217, .68);
  border-color: rgba(143, 143, 143, .32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(0,0,0,.1);
  backdrop-filter: blur(18px) saturate(125%);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
nav, .footer-links { display: flex; align-items: center; gap: 20px; color: var(--muted-foreground); font-size: .9rem; }
nav a { display: inline-flex; align-items: center; gap: 6px; }
.icon { width: 16px; height: 16px; fill: currentColor; }
nav a, .footer-links a { transition: color .16s ease; }
nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--ink); }

main { padding-bottom: 160px; background: var(--background); }
.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; min-height: 720px; padding-top: 128px; padding-bottom: 92px; }
.eyebrow { margin: 0 0 16px; color: var(--muted-foreground); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.1rem); text-wrap: balance; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 3.6rem); text-wrap: balance; }
h3 { margin-bottom: 10px; font-size: 1.25rem; }
.hero-lede { max-width: 510px; margin-bottom: 30px; color: var(--muted-foreground); font-size: 1.15rem; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid var(--primary); border-radius: 999px; background: var(--primary); color: #171717; font-size: .94rem; font-weight: 500; box-shadow: var(--shadow-resting); transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { background: var(--primary-dark); box-shadow: var(--shadow-floating); transform: translateY(-1px); }
.button-small { min-height: 36px; padding: 0 15px; font-size: .82rem; }
.button-quiet { border-color: var(--border); background: rgba(255,255,255,.7); color: var(--ink); }
.button-quiet:hover { background: #fff; }
.proof-line { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted-foreground); font-size: .85rem; }
.hero-shot { margin: 0; }
.shot-frame { padding: 13px; border-radius: 30px; background: #fff; box-shadow: var(--shadow-floating); }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 20px; }
figcaption { margin: 14px 4px 0; color: var(--muted-foreground); font-size: .8rem; }
.demo-section { padding-top: 24px; padding-bottom: 104px; }
.demo-heading { max-width: 620px; margin: 0 auto 28px; text-align: center; }
.demo-heading .eyebrow { margin-bottom: 12px; }
.demo-heading h2 { margin-bottom: 0; }
.x-embed { display: flex; justify-content: center; width: min(100%, 1100px); min-height: 200px; margin-inline: auto; }
.twitter-tweet { width: 100% !important; max-width: 1100px !important; margin: 0 auto !important; }

.section, .steps-section { padding-top: 104px; padding-bottom: 104px; }
.section-heading { max-width: 620px; margin-bottom: 44px; }
.section-heading > p:last-child, .context-copy > p:not(.eyebrow), .closing p { color: var(--muted-foreground); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plate { background: var(--card); border-radius: 24px; box-shadow: var(--shadow-resting); }
.feature-card { min-height: 250px; padding: 28px; }
.feature-card p { margin-bottom: 0; color: var(--muted-foreground); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 26px; border-radius: 14px; background: #fff4c7; color: #9b7800; font-size: 1.8rem; line-height: 1; }

.context-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-bottom: 32px; padding-top: 104px; padding-bottom: 104px; }
.context-copy { max-width: 500px; }
.context-copy p:last-of-type { margin-bottom: 22px; }
.text-link { color: #806300; font-size: .92rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.signal-panel { display: grid; gap: 12px; padding: 12px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-resting); }
.signal-row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 16px; min-height: 74px; padding: 0 18px; border-radius: 16px; background: var(--background); }
.signal-label { color: var(--muted-foreground); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.signal-value { font-size: .95rem; }
.signal-state { color: #267a59; font-size: .8rem; font-weight: 500; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.step { padding-top: 18px; border-top: 1px solid var(--border); }
.step-number { display: block; margin-bottom: 28px; color: #806300; font: 500 .78rem/1 Geist Mono, ui-monospace, monospace; }
.step p { margin-bottom: 0; color: var(--muted-foreground); }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 0; padding: 48px 52px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-resting); }
.closing h2 { margin-bottom: 12px; }
.closing p { max-width: 580px; margin-bottom: 0; }
.site-footer { padding: 32px 16px; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, 1216px); margin-inline: auto; color: var(--muted-foreground); font-size: .82rem; }
.footer-inner p { margin: 0; }

.reveal { opacity: 0; translate: 0 14px; transition: opacity .7s ease-out, translate .7s ease-out; transition-delay: var(--reveal-delay, 0s); }
.reveal.is-inview { opacity: 1; translate: 0 0; }
@media (max-width: 860px) {
  .hero, .context-section { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero-shot { max-width: 720px; }
  .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .closing, .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .page-frame { width: min(100% - 24px, 1216px); }
  .site-header { padding-inline: 8px; }
  nav a:not(.button) { display: none; }
  .header-inner { padding-inline: 10px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero, .section, .context-section, .steps-section { padding-top: 76px; padding-bottom: 76px; }
  .hero { padding-top: 126px; }
  main { padding-bottom: 104px; }
  .closing { padding: 30px 24px; }
  .signal-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 14px; }
  .signal-value { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .header-inner, .button { transition: none; }
}
