:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #4b5563;
  --ink-faint: #9ca3af;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #0a0a0a;
  --accent-dark: #0a0a0a;
  --accent-grad: #0a0a0a;
  --success: #16a34a;

  --bg-light: #ffffff;
  --surface-light: #ffffff;
  --ink-dark: #0a0a0a;
  --ink-medium: #4b5563;
  --line-light: rgba(15, 23, 42, 0.08);
  --shadow-light: 0 1px 2px rgba(15, 23, 42, 0.04);

  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --max-width: 1120px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

.container {
  width: min(var(--max-width), calc(100% - 3rem));
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  margin: 0;
  font-family: inherit;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.0625rem; }

p { color: var(--ink-soft); }
a { color: inherit; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ink-faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f2937;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-sm {
  min-height: 36px;
  padding: 0 0.9rem;
  font-size: 0.825rem;
}

/* Nav */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-copy span {
  font-size: 0.7rem;
  color: var(--ink-faint);
  font-weight: 500;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.topnav a:hover {
  color: var(--ink);
}

.topnav a.btn {
  color: #ffffff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.2s;
}

/* Hero */
.hero {
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-stacked {
  position: relative;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 1.25rem auto 0;
  max-width: 580px;
  line-height: 1.55;
}

.hero-credibility {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-top: 0.85rem;
}

.hero-qualifier {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

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

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-soft {
  background: var(--bg-soft);
}

.section-heading {
  text-align: center;
  margin: 0 auto 3.5rem;
  max-width: 640px;
}

.section-heading p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 540px;
  margin: 0.85rem auto 0;
}

/* Demo player */
.vf-player {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2.5rem auto 0;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.vf-player audio { display: none; }

.vf-player-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
}

.vf-player-titles { flex: 1; min-width: 0; }

.vf-player-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.35rem;
}

.vf-player-title {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vf-player-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.voice-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
}

/* Waveform */
.vf-waveform {
  position: relative;
  height: 72px;
  margin: 0.5rem 1.75rem;
  cursor: pointer;
  border-radius: 4px;
  --progress: 0%;
}

.vf-waveform:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.vf-waveform-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.22;
  pointer-events: none;
  filter: grayscale(1);
}

.vf-waveform-progress {
  position: absolute;
  inset: 0;
  background: var(--ink);
  -webkit-mask: var(--waveform-mask, none) center / 100% 100% no-repeat;
  mask: var(--waveform-mask, none) center / 100% 100% no-repeat;
  clip-path: inset(0 calc(100% - var(--progress)) 0 0);
  transition: clip-path 0.05s linear;
  pointer-events: none;
}

.vf-waveform-playhead {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  left: var(--progress);
  background: var(--ink);
  border-radius: 1px;
  transform: translateX(-1px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.vf-player.is-active-clip .vf-waveform-playhead {
  opacity: 1;
}

/* Controls */
.vf-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 1.75rem 1rem;
}

.vf-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.vf-play-btn:hover { background: #1f2937; }

.vf-play-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.vf-play-icon, .vf-pause-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.vf-play-icon { margin-left: 2px; }
.vf-pause-icon { display: none; }

.vf-play-btn.is-playing .vf-play-icon { display: none; }
.vf-play-btn.is-playing .vf-pause-icon { display: block; margin-left: 0; }

.vf-time {
  font-family: inherit;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.vf-time-sep {
  margin: 0 0.35rem;
  color: var(--ink-faint);
}

/* Body — transcript + insight */
.vf-player-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
}

.vf-transcript, .vf-insight { min-width: 0; }

.vf-transcript blockquote {
  margin: 0.4rem 0 0;
  font-size: 0.825rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.vf-transcript .quote-response,
.quote-response {
  color: var(--ink) !important;
  font-weight: 500;
  margin-top: 0.6rem !important;
  font-style: normal !important;
}

.vf-insight p {
  margin: 0.4rem 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tag-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tag-row li {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

/* Demo nav tabs */
.demo-nav-sleek {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.demo-link {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.825rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.demo-link:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.demo-link.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.demo-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Problem */
.problem-stark {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.stark-item {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}

.stark-item:hover {
  border-color: var(--line-strong);
}

.stark-stat {
  display: block;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}

.stark-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.stark-item p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

/* Steps */
.steps-minimal {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.step-item:first-child {
  border-top: none;
  padding-top: 0;
}

.step-num {
  flex-shrink: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-faint);
  min-width: 2.5rem;
  padding-top: 0.15rem;
}

.step-content {
  padding-top: 0;
}

.step-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--ink-soft);
  font-size: 0.925rem;
  margin: 0;
  line-height: 1.55;
}

/* Report */
.report-showcase {
  max-width: 760px;
  margin: 0 auto;
}

.report-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.04);
}

.browser-chrome { display: none; }

.report-frame {
  position: relative;
  padding: 1.25rem;
}

.report-page {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.report-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.callout-line {
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: var(--ink);
  flex-shrink: 0;
}

.callout-label {
  font-size: 0.825rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Booking */
.booking-minimal {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.booking-minimal p {
  color: var(--ink-soft);
}

.scheduler-card-minimal {
  margin: 1.75rem 0;
}

.scheduler-card-minimal .btn {
  font-size: 0.95rem;
  padding: 0 2rem;
}

#scheduler-status {
  font-size: 0.825rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  font-style: normal;
}

.form-fallback-label {
  font-size: 0.825rem;
  color: var(--ink-faint);
  margin-bottom: 0;
}

.form-fallback-label a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.form-fallback-label a:hover {
  text-decoration-color: var(--ink);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}

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

.footer-inner > p {
  color: var(--ink-faint);
  font-size: 0.825rem;
  max-width: 400px;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.825rem;
  transition: color 0.15s;
}

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

.footer-links a.btn {
  color: #ffffff;
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-loaded .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js-loaded .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .menu-toggle {
    display: flex;
  }

  .topnav {
    display: none;
  }

  .topnav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .problem-stark {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .vf-player-head {
    flex-wrap: wrap;
    padding: 1.25rem 1.25rem 0.75rem;
  }

  .vf-waveform {
    height: 56px;
    margin: 0.5rem 1.25rem;
  }

  .vf-controls {
    padding: 0.5rem 1.25rem 1rem;
  }

  .vf-player-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
  }

  .hero {
    padding: 5.5rem 0 2.5rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Section-light compatibility (used by other pages) */
.section-light {
  background: var(--bg);
  color: var(--ink);
}

.section-light h2 {
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--ink);
  letter-spacing: -0.025em;
}

.section-light .eyebrow {
  display: inline-block;
  background: transparent;
  color: var(--ink-soft);
  padding: 0;
  border-radius: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  -webkit-text-fill-color: var(--ink-soft);
}

.section-light .section-heading p,
.section-light p {
  color: var(--ink-soft);
}
