/* Marketing site styles.
   The colour tokens are copied from the app's .voicestats-theme scope in
   client/main.css so the two properties read as one product. The marketing
   site follows the visitor's system preference rather than offering a toggle;
   the app owns that setting for signed-in users. */

:root {
  --radius: 0.875rem;
  --background: oklch(0.98 0.005 250);
  --foreground: oklch(0.2 0.02 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.62 0.2 45);
  --primary-foreground: oklch(0.99 0.005 250);
  --secondary: oklch(0.95 0.008 250);
  --muted: oklch(0.96 0.006 250);
  --muted-foreground: oklch(0.5 0.02 250);
  --border: oklch(0.9 0.008 250);
  --success: oklch(0.58 0.15 150);
  --shadow: 0 1px 2px oklch(0.2 0.02 250 / 6%), 0 8px 24px oklch(0.2 0.02 250 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.16 0.02 250);
    --foreground: oklch(0.98 0.005 250);
    --card: oklch(0.22 0.025 250);
    --primary: oklch(0.72 0.19 45);
    --primary-foreground: oklch(0.15 0.02 250);
    --secondary: oklch(0.28 0.03 250);
    --muted: oklch(0.26 0.025 250);
    --muted-foreground: oklch(0.72 0.02 250);
    --border: oklch(0.32 0.03 250);
    --success: oklch(0.72 0.18 150);
    --shadow: 0 1px 2px oklch(0 0 0 / 30%), 0 8px 24px oklch(0 0 0 / 30%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Momo Trust Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* In-page section links. Hidden on small screens, where there is no room for
   them beside the brand and the sign-in button — the same sections are a
   thumb-scroll away, and squeezing them in wraps both neighbours onto two
   lines. */
.nav-secondary {
  display: none;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: 0.625rem;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--secondary);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--secondary);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  border-radius: 0.625rem;
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  padding: 2.5rem 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--muted-foreground);
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Transcript demo */

.demo {
  max-width: 30rem;
  margin: 2rem auto 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}

.demo-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.25rem;
}

.demo-line + .demo-line {
  border-top: 1px solid var(--border);
}

.demo-said {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-said::before {
  content: '“';
}

.demo-said::after {
  content: '”';
}

.demo-stat {
  flex: none;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

/* Sections */

.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 38rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.625rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted-foreground);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
}

.card h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.75rem;
  border-radius: 0.625rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* Pricing */

.plan {
  max-width: 26rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow);
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.plan-head h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.plan-period {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.plan-tagline {
  margin: 0.25rem 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.checklist {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.check {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.1875rem;
  color: var(--success);
}

.plan-fine {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-align: center;
}

/* FAQ */

.faq {
  max-width: 42rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 0 1.125rem;
}

.faq summary {
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted-foreground);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: '−';
}

.faq p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* Larger screens.
   Everything above is the phone layout; these are the widths where there is
   room for more. Kept at the end of the file so they override the base rules
   regardless of where those appear. */

@media (min-width: 30rem) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.25rem;
  }

  .site-header .wrap {
    gap: 1rem;
    height: 3.75rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-secondary {
    display: inline-flex;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .demo {
    margin: 3rem auto 0;
  }

  .demo-said {
    font-size: 0.9375rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-head {
    margin: 0 auto 2.5rem;
  }

  .plan {
    padding: 1.75rem;
  }

  .site-footer .wrap {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
