/* ============================
   CSS CUSTOM PROPERTIES
============================ */
:root {
  /* Dark backgrounds */
  --bg: #080705;
  --surface: #111009;
  --surface-2: #1C1915;

  /* Beige accent palette */
  --beige: #C9A87C;
  --beige-light: #DFC49A;
  --beige-pale: #EED8BA;

  /* Cream section backgrounds */
  --cream: #F4EDE0;
  --cream-2: #EBE3D3;

  /* Ink (for light/cream sections) */
  --ink: #1A1410;
  --ink-muted: #5A5048;
  --ink-faint: #8A7F70;

  /* Text (for dark sections) */
  --text-primary: #F4EDE0;
  --text-muted: #8A7D6A;

  /* Utility */
  --success: #4CAF8A;
  --border: rgba(244,237,224,0.08);
  --border-light: rgba(26,20,16,0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
}

/* ============================
   RESET & BASE
============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ============================
   TYPOGRAPHY
============================ */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
p { color: var(--text-muted); }

/* ============================
   UTILITY
============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Section tags */
.section-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--beige);
  background: rgba(201,168,124,0.12);
  border: 1px solid rgba(201,168,124,0.28);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 16px;
}
.section-tag-dark {
  color: #7A5C2A;
  background: rgba(122,92,42,0.1);
  border-color: rgba(122,92,42,0.22);
}
.section-title { margin-bottom: 16px; color: var(--text-primary); }
.section-title-dark { color: var(--ink); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; }
.section-subtitle-dark { color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-beige {
  background: linear-gradient(135deg, var(--beige), var(--beige-light));
  color: #1A1008;
}
.btn-beige:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,124,0.38); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(244,237,224,0.28);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--text-primary); background: rgba(244,237,224,0.05); }
.btn-outline-dark {
  background: transparent;
  border: 2px solid rgba(26,20,16,0.3);
  color: var(--ink);
}
.btn-outline-dark:hover { border-color: var(--ink); background: rgba(26,20,16,0.05); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: #2C2420; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,0.4); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* Scroll animation */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================
   NAV
============================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
#nav.scrolled {
  background: rgba(8,7,5,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary); flex-shrink: 0;
}
.nav-logo-dot { color: var(--beige); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(244,237,224,0.06); }
.nav-cta { flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(8,7,5,0.97); backdrop-filter: blur(20px);
  padding: 24px; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border); z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.1rem; font-weight: 500; color: var(--text-muted);
  padding: 12px 16px; border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover { color: var(--text-primary); background: rgba(244,237,224,0.06); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================
   HERO
============================ */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-height); position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(201,168,124,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(201,168,124,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 85%, rgba(17,16,9,0.9) 0%, var(--bg) 100%);
  animation: heroPulse 10s ease-in-out infinite alternate;
}
@keyframes heroPulse { 0% { opacity: 0.8; } 100% { opacity: 1; } }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,237,224,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,237,224,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--beige); margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--beige); border-radius: 2px;
}
.hero-headline { margin-bottom: 24px; color: var(--text-primary); line-height: 1.08; }
.hero-headline em { font-style: italic; color: var(--beige); }
.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 500px; margin-bottom: 36px; line-height: 1.75;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 24px;
}
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row span::before { content: '✓'; color: var(--success); font-weight: 700; }
.industry-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.industry-tag {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  background: rgba(244,237,224,0.06); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px;
  transition: border-color var(--transition), color var(--transition);
}
.industry-tag:hover { border-color: rgba(201,168,124,0.4); color: var(--beige); }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 280px;
  background: var(--surface);
  border-radius: 36px;
  border: 1.5px solid rgba(244,237,224,0.1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(244,237,224,0.08);
  overflow: hidden; position: relative;
}
.phone-notch {
  height: 28px; background: var(--bg);
  display: flex; justify-content: center; align-items: center;
}
.phone-notch-bar {
  width: 80px; height: 6px; border-radius: 3px;
  background: rgba(244,237,224,0.12);
}
.phone-header {
  background: var(--surface-2); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--beige), var(--beige-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #1A1008; flex-shrink: 0;
}
.phone-caller-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.phone-caller-sub { font-size: 0.7rem; color: var(--success); display: flex; align-items: center; gap: 4px; }
.phone-caller-sub::before { content: '●'; font-size: 0.5rem; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 0.78rem; line-height: 1.5; color: var(--text-primary);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.bubble.show { opacity: 1; transform: translateY(0); }
.bubble-in { background: var(--surface-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble-out { background: var(--beige); color: #1A1008; border-bottom-right-radius: 4px; align-self: flex-end; }
.lead-badge {
  align-self: center;
  background: linear-gradient(135deg, rgba(76,175,138,0.2), rgba(76,175,138,0.1));
  border: 1px solid rgba(76,175,138,0.4);
  border-radius: 100px; padding: 8px 16px;
  font-size: 0.72rem; font-weight: 600; color: var(--success);
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lead-badge.show { opacity: 1; transform: scale(1); }

/* ============================
   SOCIAL PROOF BAR
============================ */
#social-proof {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0; overflow: hidden;
}
.ticker-wrap { overflow: hidden; }
.ticker-track {
  display: flex; gap: 0;
  animation: ticker 38s linear infinite;
  width: max-content;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 48px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; border-right: 1px solid var(--border);
}
.ticker-item .stat { color: var(--text-primary); font-weight: 600; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================
   PAIN POINTS (CREAM SECTION)
============================ */
#pain-points {
  padding: 100px 0;
  background: var(--cream);
}
.pain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px;
}
.pain-card {
  background: #fff;
  border: 1px solid rgba(26,20,16,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pain-card:hover {
  border-color: rgba(201,168,124,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(201,168,124,0.1);
}
.pain-icon { font-size: 2.2rem; margin-bottom: 20px; display: block; color: var(--beige); }
.pain-stat {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--beige);
  margin-bottom: 8px;
}
.pain-card h3 { margin-bottom: 12px; font-size: 1.1rem; color: var(--ink); }
.pain-card p { font-size: 0.9rem; line-height: 1.75; color: var(--ink-muted); }

/* ============================
   HOW IT WORKS (DARK)
============================ */
#how-it-works { padding: 100px 0; background: var(--surface); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative; margin-top: 64px;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 32px;
  left: calc(12.5% + 32px); right: calc(12.5% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--beige) 0%, var(--beige-light) 50%, var(--beige) 100%);
  z-index: 0;
}
.step { padding: 0 20px 40px; position: relative; text-align: center; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--beige);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 1.4rem;
  position: relative; z-index: 1;
  transition: background var(--transition), box-shadow var(--transition);
}
.step:hover .step-number {
  background: #1a1610;
  box-shadow: 0 0 24px rgba(201,168,124,0.35);
}
.step h3 { margin-bottom: 10px; font-size: 1rem; color: var(--text-primary); }
.step p { font-size: 0.875rem; }

/* ============================
   VIDEO DEMO (DARK)
============================ */
#video-demo { padding: 100px 0; background: var(--bg); }
.video-wrapper {
  margin-top: 48px; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/9; max-width: 900px;
  margin-left: auto; margin-right: auto;
  background: #080604; border: 1px solid var(--border); cursor: pointer;
}
.video-thumbnail {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #141209 0%, #080705 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
}
.video-play-btn {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--beige), var(--beige-light));
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: playPulse 2.5s ease-in-out infinite;
}
.video-play-btn:hover { transform: scale(1.1); }
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,124,0.4); }
  50% { box-shadow: 0 0 0 22px rgba(201,168,124,0); }
}
.video-label { font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.video-waveform {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 0 40px 16px; opacity: 0.4; transition: opacity 0.3s;
}
.video-wrapper.playing .video-waveform { opacity: 0.85; }
.waveform-bar {
  width: 4px; border-radius: 2px; background: var(--beige);
  animation: waveAnim var(--d, 0.8s) ease-in-out infinite alternate;
  animation-play-state: paused; height: var(--h, 20px);
}
.video-wrapper.playing .waveform-bar { animation-play-state: running; }
@keyframes waveAnim {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}
.audio-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--beige); width: 0%; transition: width 0.5s linear; z-index: 2;
}
.video-play-btn .icon-pause { display: none; }
.video-wrapper.playing .video-play-btn .icon-play { display: none; }
.video-wrapper.playing .video-play-btn .icon-pause { display: block; }
.video-wrapper.playing .video-play-btn { animation: none; }
.demo-calls-grid {
  max-width: 900px; margin: 48px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.demo-calls-grid .video-wrapper {
  margin: 0; max-width: none; aspect-ratio: 3 / 2;
}
.demo-industry-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(201,168,124,0.12); color: var(--beige);
  border: 1px solid rgba(201,168,124,0.28); border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 4px 12px;
}
@media (max-width: 600px) {
  .demo-calls-grid { grid-template-columns: 1fr; }
}
.video-demo-card {
  max-width: 900px; margin: 24px auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.video-demo-card p { color: var(--text-primary); font-weight: 500; margin: 0; }
.video-demo-card span { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 4px; }

/* Demo tabs */
.demo-tabs { display: flex; gap: 8px; max-width: 900px; margin: 48px auto 0; }
.demo-tab {
  padding: 10px 22px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); transition: var(--transition);
}
.demo-tab.active { background: var(--beige); border-color: var(--beige); color: #1A1008; }
.demo-panel { display: none; }
.demo-panel.active { display: block; }

/* Dashboard mockup */
.dashboard-mock {
  max-width: 900px; margin: 16px auto 0;
  background: #F7F4EE; border: 1px solid #E0D9CE;
  border-radius: var(--radius-lg); overflow: hidden;
  font-family: 'DM Sans', sans-serif; position: relative;
}
.dash-header {
  padding: 20px 24px 8px; border-bottom: 1px solid #E0D9CE;
  background: #F7F4EE; display: flex; align-items: flex-end; justify-content: space-between;
}
.dash-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8A7D68; margin-bottom: 4px;
}
.dash-title { font-size: 1.3rem; font-weight: 700; color: #1A1410; font-family: 'Playfair Display', serif; }
.dash-total-badge {
  background: #EAE3D8; color: #5A5048;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 4px;
}
.dash-col-heads {
  display: grid; grid-template-columns: 2fr 1.2fr 1.4fr 1.1fr 1.4fr 40px;
  padding: 8px 16px; gap: 8px;
}
.dash-col-head {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8A7D68;
}
.dash-row {
  display: grid; grid-template-columns: 2fr 1.2fr 1.4fr 1.1fr 1.4fr 40px;
  padding: 14px 16px; gap: 8px; align-items: center;
  border-top: 1px solid #E8E3D8; cursor: pointer;
  transition: background 0.15s ease;
}
.dash-row:hover { background: #EEE8DD; }
.dash-cell { font-size: 0.82rem; color: #5A5048; }
.dash-caller-name { font-size: 0.875rem; font-weight: 600; color: #1A1410; display: flex; align-items: center; gap: 6px; }
.dash-caller-phone { font-size: 0.75rem; color: #8A7D68; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.dash-icon { color: #8A7D68; flex-shrink: 0; }
.ctype-lead {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #4CAF8A; color: #2E8A62; background: transparent;
}
.ctype-customer {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #C9A87C; color: #8A6A2A; background: transparent;
}
.ctype-vendor {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #C8C4BC; color: #6A6058; background: transparent;
}
.ctype-spam {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #D46040; color: #A03820; background: transparent;
}
.dstatus-reviewed {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #4CAF8A; color: #2E8A62; background: transparent;
}
.dstatus-pending {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #C8C4BC; color: #8A8078; background: transparent;
}
.dash-delete { color: #C8C0B4; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; }
.dash-footer-bar {
  padding: 10px 20px; border-top: 1px solid #E0D9CE;
  font-size: 0.75rem; color: #8A7D68;
  display: flex; justify-content: flex-end; background: #F7F4EE;
}

/* Slideout */
.dash-slideout-overlay {
  position: absolute; inset: 0;
  background: rgba(8,7,5,0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  border-radius: var(--radius-lg); z-index: 10;
}
.dash-slideout-overlay.open { opacity: 1; pointer-events: auto; }
.dash-slideout {
  position: absolute; top: 0; right: 0; bottom: 0; width: 340px;
  background: #fff; border-left: 1px solid #E0D9CE;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 11; overflow-y: auto; display: flex; flex-direction: column;
}
.dash-slideout.open { transform: translateX(0); }
.slideout-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #EAE3D8;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.slideout-title { font-size: 1rem; font-weight: 700; color: #1A1410; font-family: 'Playfair Display', serif; }
.slideout-close {
  background: none; border: none; cursor: pointer; color: #8A7D68;
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.slideout-close:hover { background: #F0EAE0; color: #1A1410; }
.slideout-section { padding: 16px 20px; border-bottom: 1px solid #F0EAE0; }
.slideout-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 700; color: #5A5048; margin-bottom: 12px;
}
.slideout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.slideout-field-label { font-size: 0.68rem; color: #8A7D68; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.slideout-field-val { font-size: 0.82rem; color: #1A1410; font-weight: 500; }
.slideout-field-val.long { font-size: 0.78rem; line-height: 1.55; }
.score-banner {
  background: #F0F9F4; border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.score-badge-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #4CAF8A; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 800; color: #fff; letter-spacing: 0.04em;
}
.score-val { font-size: 1rem; font-weight: 700; color: #1A1410; }
.score-desc { font-size: 0.78rem; color: #5A5048; margin-top: 2px; }
.slideout-rerun {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: #8A7D68; cursor: pointer;
  background: none; border: none; flex-shrink: 0;
}
.slideout-full-row { grid-column: 1 / -1; }
.slideout-message-box {
  background: #F7F4EE; border-radius: 8px; padding: 12px 14px;
  font-size: 0.82rem; color: #1A1410; line-height: 1.6; font-style: italic;
  border-left: 3px solid #C9A87C; margin-bottom: 4px;
}
.slideout-kv-row { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; align-items: start; }
.slideout-kv-label { font-size: 0.68rem; color: #8A7D68; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.slideout-kv-val { font-size: 0.82rem; color: #1A1410; font-weight: 500; line-height: 1.5; }
.sentiment-badge { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }
.sentiment-neutral { background: #EEF0F2; color: #5A6070; }
.sentiment-positive { background: #EAF6EF; color: #2E8A62; }
.sentiment-distressed { background: #FEF0EC; color: #A03820; }
.recording-player {
  display: flex; align-items: center; gap: 10px;
  background: #F0EAE0; border-radius: 100px; padding: 10px 16px; margin-top: 4px;
}
.rec-play-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1A1410; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  position: relative;
  transition: background 0.15s, transform 0.15s;
}
.rec-play-btn:hover { background: #3A2E26; transform: scale(1.08); }
.rec-time { font-size: 0.75rem; color: #5A5048; white-space: nowrap; }
.rec-bar { flex: 1; height: 4px; background: #D8D0C4; border-radius: 2px; position: relative; }
.rec-bar-fill { height: 100%; width: 0%; background: #1A1410; border-radius: 2px; }
.rec-vol { color: #8A7D68; flex-shrink: 0; }
.rec-demo-badge {
  margin-left: auto;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #7A5C2A;
  background: #F5EDD8;
  border: 1px solid #E0CC9E;
  border-radius: 100px;
  padding: 1px 7px;
}

/* Recording locked popover */
#rec-popover {
  position: fixed;
  z-index: 9999;
  width: 268px;
  background: #FFFDF9;
  border: 1px solid #E5DDD2;
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 8px 32px rgba(26,20,16,0.13), 0 2px 8px rgba(26,20,16,0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.15s, transform 0.15s;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
#rec-popover.rec-popover-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#rec-popover[hidden] { display: none !important; }
.rec-popover-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: #8A7D68; line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.rec-popover-close:hover { color: #1A1410; background: #F0EAE0; }
.rec-popover-lock {
  width: 34px; height: 34px;
  background: #F0EAE0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #7A5C2A;
  flex-shrink: 0;
}
.rec-popover-title {
  font-size: 0.88rem; font-weight: 700; color: #1A1410;
  line-height: 1.35; margin: 0;
}
.rec-popover-body {
  font-size: 0.78rem; color: #5A5048; line-height: 1.55; margin: 0;
}
.rec-popover-cta {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.8rem; font-weight: 600;
  color: #fff;
  background: #1A1410;
  border-radius: 100px;
  padding: 7px 16px;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s;
}
.rec-popover-cta:hover { background: #3A2E26; }
/* Arrow pointing down toward button */
#rec-popover::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 28px;
  width: 12px; height: 12px;
  background: #FFFDF9;
  border-right: 1px solid #E5DDD2;
  border-bottom: 1px solid #E5DDD2;
  transform: rotate(45deg);
}
/* Arrow flipped when popover appears below the button */
#rec-popover.rec-popover-below::after {
  bottom: auto;
  top: -7px;
  border-right: none; border-bottom: none;
  border-left: 1px solid #E5DDD2;
  border-top: 1px solid #E5DDD2;
}
.transcript-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; color: #5A5048; padding: 0; gap: 8px;
}
.transcript-toggle-label { display: flex; align-items: center; gap: 7px; }
.transcript-show { font-size: 0.75rem; color: #8A7D68; font-weight: 600; }
.transcript-show::after { content: 'Show'; }
.transcript-toggle.open .transcript-show::after { content: 'Hide'; }
.transcript-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.transcript-toggle.open + .transcript-body { max-height: 500px; }
.transcript-line { font-size: 0.78rem; color: #3A3028; line-height: 1.6; margin-top: 10px; }
.transcript-line strong { color: #1A1410; }
.notes-empty { font-size: 0.8rem; color: #8A7D68; font-style: italic; }

/* ============================
   ROI CALCULATOR (CREAM)
============================ */
#roi-calculator { padding: 100px 0; background: var(--cream); }
.calc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 56px; align-items: start;
}
.calc-inputs { display: flex; flex-direction: column; gap: 32px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 500; font-size: 0.95rem; color: var(--ink);
}
.calc-value { font-weight: 700; color: #7A5C2A; font-size: 1rem; }
input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; background: #DDD5C8; border-radius: 3px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--beige); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(201,168,124,0.45); cursor: pointer; transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--beige); border: 2px solid #fff; cursor: pointer;
}
.range-limits { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-faint); margin-top: 6px; }
.calc-results { display: flex; flex-direction: column; gap: 16px; }
.result-card {
  background: #fff; border: 1px solid rgba(26,20,16,0.1);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.result-label { font-size: 0.9rem; color: var(--ink-muted); }
.result-value { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.result-card.highlight {
  background: linear-gradient(135deg, rgba(201,168,124,0.12), rgba(201,168,124,0.06));
  border-color: rgba(201,168,124,0.4);
}
.result-card.highlight .result-value { font-size: 1.6rem; color: #7A5C2A; }
.result-card.negative .result-value { color: #B03020; }
.calc-note {
  font-size: 0.85rem; color: var(--ink-faint); font-style: italic;
  padding: 12px 0; border-top: 1px solid var(--border-light);
}

/* ============================
   FEATURES GRID (DARK)
============================ */
#features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(201,168,124,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.feature-card.featured-feature {
  border-color: rgba(201,168,124,0.3);
  background: linear-gradient(160deg, rgba(201,168,124,0.06) 0%, var(--surface) 70%);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 16px; display: block; color: var(--beige); }
.feature-card h3 { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-primary); }
.feature-card p { font-size: 0.85rem; line-height: 1.7; }

/* ============================
   FAQ (CREAM)
============================ */
#faq { padding: 100px 0; background: var(--cream); }
.faq-list { max-width: 800px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid rgba(26,20,16,0.1);
  border-radius: var(--radius); overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(201,168,124,0.5); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--ink);
  background: none; text-align: left; cursor: pointer; gap: 16px;
  transition: color var(--transition);
}
.faq-item.open .faq-question { color: #7A5C2A; }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: rgba(26,20,16,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.faq-item.open .faq-icon { background: rgba(201,168,124,0.2); transform: rotate(45deg); }
.faq-icon svg { width: 14px; height: 14px; stroke: var(--ink-muted); }
.faq-item.open .faq-icon svg { stroke: #7A5C2A; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 220px; padding: 0 24px 22px; }
.faq-answer p { font-size: 0.95rem; line-height: 1.75; color: var(--ink-muted); }

/* ============================
   FINAL CTA (BEIGE GRADIENT)
============================ */
#book-demo {
  padding: 120px 0;
  background: linear-gradient(135deg, #C9A87C 0%, #DFC49A 50%, #A8844A 100%);
  position: relative;
  overflow: hidden;
}
#book-demo::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231A1008' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#book-demo .container { position: relative; z-index: 1; }
.book-demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.book-demo-copy {
  color: #1A1008;
  padding: 18px 0;
}
#book-demo h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem); color: #1A1008; margin-bottom: 12px;
}
#book-demo .subtitle {
  font-size: 1.15rem; color: rgba(26,16,8,0.62);
  margin-bottom: 28px; font-style: italic; max-width: 540px;
}
.book-demo-points {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.book-demo-point {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(26,16,8,0.12);
  color: #1A1008;
  border-radius: 100px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.demo-form-card {
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(26,16,8,0.12);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 28px 60px rgba(26,16,8,0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.form-status {
  min-height: 24px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5A5048;
}
.form-status.is-success { color: #2E8A62; }
.form-status.is-error { color: #A03820; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field-full { grid-column: 1 / -1; }
.form-field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,16,8,0.72);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(26,16,8,0.14);
  background: rgba(255,255,255,0.82);
  color: #1A1410;
  padding: 14px 16px;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(26,16,8,0.38);
  box-shadow: 0 0 0 4px rgba(26,16,8,0.08);
}
.form-field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}
.form-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: rgba(26,16,8,0.55);
}
#book-demo .cta-note {
  margin-top: 20px; font-size: 0.875rem; color: rgba(26,16,8,0.5);
}

/* ============================
   FOOTER
============================ */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 52px 0 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-brand {}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em;
}
.footer-logo-dot { color: var(--beige); }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 4px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-powered {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-powered a {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); transition: color var(--transition);
}
.footer-powered a:hover { color: var(--beige); }
.footer-powered img { height: 22px; width: auto; opacity: 0.75; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px 40px; gap: 48px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 240px; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .video-demo-card { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .demo-tabs { flex-wrap: wrap; }
  .book-demo-grid { grid-template-columns: 1fr; }
  .book-demo-copy { padding: 0; }
  .demo-form-card { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step { text-align: left; display: grid; grid-template-columns: 64px 1fr; align-items: start; gap: 16px; padding: 0 0 32px; }
  .step-number { margin: 0; }
  .step h3, .step p { grid-column: 2; margin-top: 0; }
  #book-demo { padding: 96px 0; }
}
