/* ==========================================================================
   NARRAZEN CONSUMER LANDING PAGE STYLES
   Quiet, restrained, editorial aesthetic.
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  font-size: 16px;
  color-scheme: light dark;
}

#demo,
.demo-viewport,
section[id] {
  scroll-margin-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-med), color var(--transition-med);
  overflow-x: hidden;
}

/* Typographic Hierarchy */
h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-feature-settings: "liga", "clig", "dlig", "kern";
  letter-spacing: -0.015em;
  font-weight: 400;
}

p {
  text-wrap: pretty;
}

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

/* --------------------------------------------------------------------------
   SITE HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--player-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-med);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--border-focus);
}

/* Primary and Secondary CTA Buttons */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--obsidian);
  color: #FAF9F6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(20, 20, 19, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

[data-theme="dark"] .btn-cta-primary {
  background: #FAF9F6;
  color: var(--obsidian);
}

.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 20, 19, 0.22);
}

.btn-cta-primary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-cta-secondary:hover {
  background: rgba(20, 20, 19, 0.04);
  border-color: var(--text-muted);
}

[data-theme="dark"] .btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-cta-secondary:focus-visible {
  outline: 2px solid var(--border-focus);
}

/* --------------------------------------------------------------------------
   SECTION 1 — HERO
   -------------------------------------------------------------------------- */
.hero-section {
  padding-block: 72px 48px;
  text-align: center;
}

.hero-headline {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
  text-wrap: balance;
}

.hero-headline em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-subheadline {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Hero Article Mockup Container */
.demo-viewport {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  max-width: 860px;
  margin-inline: auto;
  text-align: start;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.demo-viewport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-article-title {
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.25;
}

.demo-article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
}

.demo-article-prose {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.72;
  color: var(--text);
}

.demo-article-prose p {
  margin-bottom: 20px;
}

.demo-article-prose p:last-child {
  margin-bottom: 0;
}

.demo-viewport-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.demo-helper-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--terracotta);
  font-weight: 500;
}

@media (max-width: 768px) {
  .demo-viewport-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .demo-helper-hint {
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   SECTION 3 — SELECTION READING DEMO
   -------------------------------------------------------------------------- */
.selection-demo-section {
  padding-block: 80px;
}

.section-lead {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 44px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 40px);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.selection-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 760px;
  margin-inline: auto;
  box-shadow: var(--shadow-subtle);
}

.selection-prose {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
}

.selection-target-text {
  border-radius: 3px;
  padding: 1px 0;
}

/* Disable conflicting native browser selection highlight inside Precision Selection demo */
.selection-prose::selection,
.selection-prose *::selection {
  background: transparent;
  color: inherit;
}

.selection-prose::-moz-selection,
.selection-prose *::-moz-selection {
  background: transparent;
  color: inherit;
}

.selection-prose .narrazen-word {
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

.selection-prose .narrazen-word:hover {
  background-color: rgba(247, 228, 154, 0.28);
}

.selection-prose .narrazen-word.in-selection {
  background-color: rgba(247, 228, 154, 0.45);
  border-radius: 3px;
}

[data-theme="dark"] .selection-prose .narrazen-word:hover {
  background-color: rgba(247, 228, 154, 0.14);
}

[data-theme="dark"] .selection-prose .narrazen-word.in-selection {
  background-color: rgba(247, 228, 154, 0.22);
}

#voicePreviewQuote {
  user-select: none;
  -webkit-user-select: none;
}

#voicePreviewQuote .narrazen-word {
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

#voicePreviewQuote .narrazen-word:hover {
  background-color: rgba(247, 228, 154, 0.3);
}

[data-theme="dark"] #voicePreviewQuote .narrazen-word:hover {
  background-color: rgba(247, 228, 154, 0.16);
}

.selection-card-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   SECTION 4 — PRIVACY
   -------------------------------------------------------------------------- */
.privacy-section {
  padding-block: 80px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.privacy-proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-proof-item {
  display: flex;
  gap: 14px;
}

.privacy-proof-bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--terracotta-subtle);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.privacy-proof-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.privacy-proof-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Simple Local Flow Diagram */
.privacy-flow-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-flow-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.privacy-flow-step span.tag {
  font-size: 11.5px;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.privacy-flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   SECTION 5 — UNLIMITED LISTENING
   -------------------------------------------------------------------------- */
.unlimited-section {
  padding-block: 88px;
  text-align: center;
}

.unlimited-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 680px;
  margin-inline: auto;
  box-shadow: var(--shadow-subtle);
}

.unlimited-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--terracotta-subtle);
  color: var(--terracotta);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.unlimited-headline {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 16px;
  color: var(--text);
}

.unlimited-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   SECTION 6 — COMPACT VOICE PREVIEW
   -------------------------------------------------------------------------- */
.voices-section {
  padding-block: 80px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.voice-selector-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.voice-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.voice-pill-btn:hover {
  border-color: var(--text-muted);
}

.voice-pill-btn.is-active {
  background: var(--obsidian);
  color: #FAF9F6;
  border-color: var(--obsidian);
}

[data-theme="dark"] .voice-pill-btn.is-active {
  background: #FAF9F6;
  color: var(--obsidian);
  border-color: #FAF9F6;
}

.voice-pill-btn:focus-visible {
  outline: 2px solid var(--border-focus);
}

.voice-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  max-width: 720px;
  margin-inline: auto;
  box-shadow: var(--shadow-subtle);
}

.voice-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.voice-preview-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.voice-preview-trait {
  font-size: 13px;
  color: var(--text-muted);
}

.voice-preview-quote {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.68;
  color: var(--text);
  margin-bottom: 24px;
}

.voice-preview-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   OUTCOME-DRIVEN FEATURES
   -------------------------------------------------------------------------- */
.features-section {
  padding-block: 88px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--terracotta-subtle);
  color: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-title {
  font-size: 21px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   INTERACTIVE DUO (VOICES + SELECTION)
   -------------------------------------------------------------------------- */
.interactive-duo-stack {
  display: flex;
  flex-direction: column;
  gap: 52px;
  max-width: 760px;
  margin-inline: auto;
  margin-top: 40px;
}

.interactive-block {
  display: flex;
  flex-direction: column;
}

.interactive-block-header {
  text-align: center;
  margin-bottom: 20px;
}

.interactive-block-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.interactive-block-title {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   SECTION 8 — CONSUMER FAQ
   -------------------------------------------------------------------------- */
.faq-section {
  padding-block: 80px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--text-muted);
}

.faq-summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

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

.faq-summary:focus-visible {
  outline: 2px solid var(--border-focus);
}

.faq-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SECTION 9 — FINAL CTA & FOOTER
   -------------------------------------------------------------------------- */
.cta-section {
  padding-block: 96px 80px;
  text-align: center;
}

.cta-headline {
  font-size: clamp(32px, 4.5vw, 50px);
  margin-bottom: 16px;
  color: var(--text);
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

/* --------------------------------------------------------------------------
   HERO EYEBROW & MICROCOPY
   -------------------------------------------------------------------------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  background: var(--terracotta-subtle);
  border: 1px solid rgba(200, 109, 81, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero-sub-purchase {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 10px;
}

.cta-microcopy {
  font-size: 12px;
  color: var(--text-muted);
}

.pricing-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-cta-ghost:hover {
  color: var(--text);
}

.btn-cta-large {
  font-size: 15px;
  padding: 12px 32px;
}

/* --------------------------------------------------------------------------
   SECTION 9 — DEDICATED PURCHASE SECTION
   -------------------------------------------------------------------------- */
.pricing-section {
  padding-block: 88px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  max-width: 580px;
  margin-inline: auto;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.pricing-amount {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 64px);
  color: var(--text);
  line-height: 1;
  margin-block: 16px 6px;
}

.pricing-type {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding-inline: 12px;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}

.pricing-check {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 14px;
}

.pricing-microcopy {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.voice-post-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   LEGAL PAGES & COMMERCE STATUS
   -------------------------------------------------------------------------- */
.legal-page-container {
  max-width: 760px;
  margin-inline: auto;
  padding-block: 64px 80px;
}

.legal-title {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 12px;
  color: var(--text);
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-prose h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-prose p,
.legal-prose ul {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 18px;
}

.legal-prose ul {
  padding-left: 24px;
}

.legal-prose li {
  margin-bottom: 8px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 540px;
  margin: 64px auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.status-title {
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 14px;
  color: var(--text);
}

.status-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.status-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.status-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   HOW IT WORKS (3-STEP GRID)
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding-block: 80px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin-inline: auto;
  margin-top: 40px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-subtle);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta-subtle);
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-title {
  font-size: 19px;
  color: var(--text);
}

.step-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   COMPETITOR COMPARISON (TABLE & FIT CARDS)
   -------------------------------------------------------------------------- */
.comp-section {
  padding-block: 80px;
}

.comp-table-wrap {
  width: 100%;
  max-width: 860px;
  margin: 36px auto 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.comp-table th,
.comp-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.comp-table th:first-child {
  width: 28%;
}

.comp-table th.col-narrazen,
.comp-table td.col-narrazen {
  color: var(--text);
  font-weight: 500;
}

.comp-table th.col-narrazen {
  color: var(--terracotta);
  font-weight: 700;
}

.comp-table td.col-speechify {
  color: var(--text-muted);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table tr:hover td {
  background: rgba(20, 20, 19, 0.015);
}

[data-theme="dark"] .comp-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comp-cta-wrap {
  text-align: center;
  margin-top: 24px;
}

/* Better Fit Grid (Side-by-side comparison page) */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 40px auto 0;
}

.fit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-subtle);
}

.fit-card.is-narrazen {
  border-color: var(--terracotta);
}

.fit-card-title {
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--text);
}

.fit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}

.fit-item-bullet {
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

.sources-note {
  max-width: 860px;
  margin: 18px auto 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sources-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sources-note a:hover {
  color: var(--text);
}

.disclaimer-box {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .demo-viewport {
    padding: 24px 20px;
  }
  .selection-card {
    padding: 24px 20px;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pricing-card {
    padding: 32px 20px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .comp-table th,
  .comp-table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


