/* ── Landing Page Styles ─────────────────────────────────────────── */

:root {
  --primary: #e8503a;
  --primary-dark: #d03a25;
  --primary-light: #fef0ee;
  --primary-glow: rgba(232,80,58,0.25);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #faf8f6;
  --bg-subtle: #f3f0ed;
  --border: #e8e2dc;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem; color: var(--text-dark);
}
.nav-brand svg { width: 32px; height: 32px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text-dark); }

.nav-cta {
  display: inline-flex; align-items: center; padding: 0.5rem 1.2rem;
  background: var(--primary); color: #fff !important; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem; transition: background 0.15s;
}
.nav-cta:hover { background: var(--primary-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text-dark); max-width: 720px; margin: 0 auto;
}

.hero h1 .accent { color: var(--primary); }

.hero-sub {
  max-width: 620px; margin: 1.25rem auto 0;
  font-size: 1.15rem; color: var(--text-muted); line-height: 1.7;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; background: var(--primary); color: #fff;
  border-radius: 999px; font-size: 1.05rem; font-weight: 700;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.hero-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; background: var(--bg-white); color: var(--text-dark);
  border-radius: 999px; font-size: 1.05rem; font-weight: 700;
  border: 1px solid var(--border); transition: all 0.15s;
}
.hero-cta-secondary:hover { border-color: var(--primary); color: var(--primary); }

.hero-social-proof {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin-top: 2rem; font-size: 0.9rem; color: var(--text-muted);
}
.hero-avatars { display: flex; }
.hero-avatars span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 700; font-size: 0.75rem; border: 2px solid #fff;
  margin-left: -8px;
}
.hero-avatars span:first-child { margin-left: 0; }

/* ── Section shared ─────────────────────────────────────────────── */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-light); }

.section-title {
  text-align: center; font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800; margin-bottom: 0.6rem;
}
.section-desc {
  text-align: center; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 3rem; font-size: 1.05rem;
}

/* ── How It Works ───────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Voice Wall Demo ────────────────────────────────────────────── */

.demo-wall-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 2rem;
}

.demo-card {
  padding: 1.5rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s;
}
.demo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.demo-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.demo-card-name { font-weight: 700; font-size: 0.95rem; }
.demo-card-stars { color: var(--primary); font-size: 0.95rem; letter-spacing: 1px; }

.demo-card-quote {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.65;
  font-style: italic; margin-bottom: 0.75rem;
}
.demo-card-quote::before { content: "\201C"; }
.demo-card-quote::after { content: "\201D"; }

.demo-card-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-light); font-weight: 600;
}
.demo-card-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
}

/* ── Audio Player in Demo Cards ──────────────────────────────────── */

.demo-card-player {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; margin-bottom: 0.75rem;
  background: var(--bg-light); border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.play-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 2px 8px var(--primary-glow);
}
.play-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

.waveform-bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--border); overflow: hidden; position: relative;
}
.waveform-progress {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.1s linear;
}

.play-duration {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  min-width: 32px; text-align: right; font-variant-numeric: tabular-nums;
}

/* ── Reply section inside demo cards ────────────────────────────── */

.demo-card-reply {
  margin-bottom: 0.75rem; padding: 0.6rem 0.75rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
}

.reply-label {
  font-size: 0.75rem; font-weight: 700; color: #16a34a;
  margin-bottom: 0.4rem;
}

.reply-player {
  background: transparent; border: none; padding: 0;
  margin: 0;
}

.play-btn-reply {
  width: 28px; height: 28px; min-width: 28px;
  background: #16a34a;
  box-shadow: 0 2px 6px rgba(22,163,74,0.25);
}
.play-btn-reply:hover { background: #15803d; }

/* ── Negative / mixed review cards ──────────────────────────────── */

.demo-card-negative { border-left: 3px solid #f87171; }
.demo-card-mixed { border-left: 3px solid #fbbf24; }

.stars-low { color: #f87171; }
.stars-mid { color: #f59e0b; }

.demo-cta-wrap { text-align: center; margin-top: 2.5rem; }
.demo-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.8rem; background: var(--primary); color: #fff;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  transition: background 0.15s; box-shadow: 0 4px 14px var(--primary-glow);
}
.demo-cta:hover { background: var(--primary-dark); }

/* ── Features ───────────────────────────────────────────────────── */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card {
  padding: 1.75rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-light); color: var(--primary);
  font-size: 1.3rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Pricing ────────────────────────────────────────────────────── */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.pricing-card {
  padding: 2rem; background: var(--bg-white);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
  position: relative;
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.25rem 1rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
}
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.pricing-features { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-features li {
  padding: 0.45rem 0; font-size: 0.92rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.5rem;
}
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }

.pricing-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; transition: background 0.15s, transform 0.15s;
  border: none; cursor: pointer;
}
.pricing-btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.pricing-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pricing-btn-secondary { background: var(--bg-subtle); color: var(--text-dark); border: 1px solid var(--border); }
.pricing-btn-secondary:hover { background: var(--border); }

/* ── Final CTA ──────────────────────────────────────────────────── */

.final-cta {
  padding: 5rem 0; text-align: center;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
}
.final-cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 0.75rem; }
.final-cta p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 2rem; font-size: 1.05rem; }
.final-cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2.5rem; background: var(--primary); color: #fff;
  border-radius: 999px; font-size: 1.1rem; font-weight: 700;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(232,80,58,0.4);
}
.final-cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Footer ─────────────────────────────────────────────────────── */

.footer { padding: 2.5rem 0; border-top: 1px solid var(--border); text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; color: var(--text-dark); margin-bottom: 0.5rem;
}
.footer-brand svg { width: 24px; height: 24px; }
.footer-copy { font-size: 0.85rem; color: var(--text-light); }

/* ── Mobile nav toggle ──────────────────────────────────────────── */

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-dark); }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .steps, .features-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .demo-wall-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-sub { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .steps, .features-grid, .pricing-grid, .demo-wall-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { order: -1; }
}
