/* ==========================================================================
   NEVER MISS A LEAD — DESIGN SYSTEM TOKENS & STYLES
   Static, zero-external-requests, production-quality contractor demo
   ========================================================================== */

:root {
  /* Core Palette */
  --navy-950: #070d18;
  --navy-900: #0f172a;
  --navy-850: #131e33;
  --navy-800: #1e293b;
  --navy-700: #334155;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-subtle: #f1f5f9;
  --color-surface-card: #ffffff;

  --color-primary: #0284c7;
  --color-primary-hover: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-primary-dark: #075985;

  --color-blue: #2563eb;
  --color-blue-light: #eff6ff;

  --color-emerald: #059669;
  --color-emerald-light: #ecfdf5;
  --color-emerald-border: #a7f3d0;

  --color-rose: #e11d48;
  --color-rose-light: #fff1f2;

  --color-amber: #d97706;
  --color-amber-light: #fffbeb;

  --color-text-main: #0f172a;
  --color-text-muted: #334155;
  --color-text-subtle: #64748b;
  --color-text-inverse: #f8fafc;
  --color-text-inverse-muted: #cbd5e1;

  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;
  --color-border-dark: #27354a;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 70px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Accessibility: Focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Sticky Compliance Bar */
.top-notice-bar {
  background: var(--navy-950);
  border-bottom: 1px solid var(--navy-800);
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.top-notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-tag.simulation {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pill-tag.security {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-800);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-icon-wrapper svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.main-nav {
  display: none;
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 6px 2px;
}

.nav-link:hover {
  color: #38bdf8;
}

.header-cta-btn {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

/* Section Common Structure */
.section {
  padding: 70px 0;
  position: relative;
}

.section-dark {
  background: var(--navy-900);
  color: var(--color-text-inverse);
  border-bottom: 1px solid var(--navy-800);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-badge.blue {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.section-badge.dark-blue {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.section-badge.emerald {
  background: var(--color-emerald-light);
  color: var(--color-emerald);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-subtle);
  line-height: 1.6;
}

.section-dark .section-desc {
  color: var(--color-text-inverse-muted);
}

/* ==========================================================================
   SCREEN 1: THE PROBLEM (Hero & Leak Analysis)
   ========================================================================== */

.hero-section {
  background: radial-gradient(circle at 50% 0%, var(--navy-850) 0%, var(--navy-900) 100%);
  color: var(--color-text-inverse);
  padding: 60px 0 80px 0;
  border-bottom: 1px solid var(--navy-800);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

.problem-stat-headline {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: #ffffff;
}

.highlight-rose {
  color: #fb7185;
  text-decoration: underline;
  text-decoration-color: rgba(244, 63, 94, 0.4);
  text-underline-offset: 6px;
}

.highlight-cyan {
  color: #38bdf8;
}

.source-attribution {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 24px;
  font-style: italic;
}

.ad-cost-leak-banner {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px auto;
  max-width: 720px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fecdd3;
  line-height: 1.5;
}

.ad-cost-leak-banner strong {
  color: #ffffff;
  font-weight: 800;
}

/* Comparison Cards: The Leak vs The Fix */
.leak-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
  text-align: left;
}

@media (min-width: 768px) {
  .leak-comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.leak-card {
  background: var(--navy-850);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.leak-card.bad {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.06) 0%, var(--navy-850) 100%);
}

.leak-card.good {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--navy-850) 100%);
}

.card-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  width: fit-content;
}

.leak-card.bad .card-header-badge {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.leak-card.good .card-header-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.leak-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.leak-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.leak-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.leak-step-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.leak-outcome-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
}

.leak-card.bad .leak-outcome-box {
  background: rgba(225, 29, 72, 0.12);
  color: #fecdd3;
  border-left: 3px solid #f43f5e;
}

.leak-card.good .leak-outcome-box {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border-left: 3px solid #10b981;
}

/* Quick Jump Pill Navigation */
.hero-jump-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.jump-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.jump-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   REAL vs SIMULATED NOTICE SECTION
   Clear, plain-English distinction. Standing rule from prompt.
   ========================================================================== */

.transparency-section {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 44px 0;
}

.transparency-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .transparency-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.transparency-card {
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
}

.transparency-card.real {
  border-left: 4px solid var(--color-emerald);
}

.transparency-card.simulated {
  border-left: 4px solid var(--color-primary);
}

.transparency-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.transparency-title.real {
  color: var(--color-emerald);
}

.transparency-title.simulated {
  color: var(--color-primary);
}

.transparency-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.transparency-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.transparency-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.never-box {
  margin-top: 20px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #9f1239;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   SCREEN 2: LIVE DEMO — MISSED-CALL TEXT-BACK
   ========================================================================== */

.demo-screen-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .demo-screen-container {
    grid-template-columns: 380px 1fr;
  }
}

/* Phone Bezel Mockup */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-device {
  width: 100%;
  max-width: 360px;
  background: #000000;
  border: 10px solid #1e293b;
  border-radius: 42px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 620px;
}

/* Dynamic Notch / Island */
.phone-notch {
  width: 120px;
  height: 24px;
  background: #000000;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #111827;
  border-radius: 50%;
  border: 1px solid #1f2937;
}

.notch-speaker {
  width: 40px;
  height: 3px;
  background: #1f2937;
  border-radius: 2px;
}

/* Phone Status Bar */
.phone-status-bar {
  background: #ffffff;
  padding: 4px 18px 2px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Call Alert Banner inside Phone */
.phone-call-alert {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
}

.phone-call-alert.missed {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

.phone-call-alert.ringing {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  animation: callPulse 1.2s infinite ease-in-out;
}

@keyframes callPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.call-alert-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.call-icon-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
}

.phone-call-alert.missed .call-icon-dot {
  background: #f43f5e;
  color: #ffffff;
}

.phone-call-alert.ringing .call-icon-dot {
  background: #10b981;
  color: #ffffff;
}

.call-text-main {
  font-weight: 700;
  line-height: 1.2;
}

.call-text-sub {
  font-size: 0.6875rem;
  color: #64748b;
}

.phone-call-alert.missed .call-text-sub {
  color: #e11d48;
}

/* SMS Thread Inside Phone */
.phone-messages-area {
  flex-grow: 1;
  background: #ffffff;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sms-timestamp-divider {
  text-align: center;
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 600;
  margin: 4px 0;
  text-transform: uppercase;
}

.sms-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 0.875rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  animation: messageSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sms-bubble.incoming {
  align-self: flex-start;
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 18px 18px 18px 4px;
}

.sms-bubble.outgoing {
  align-self: flex-end;
  background: #2563eb;
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
}

.sms-bubble-meta {
  font-size: 0.625rem;
  color: #64748b;
  margin-top: 4px;
  text-align: right;
}

.sms-bubble.outgoing .sms-bubble-meta {
  color: rgba(255, 255, 255, 0.8);
}

/* Typing Indicator Animation */
.typing-indicator-bubble {
  align-self: flex-start;
  background: #f1f5f9;
  padding: 10px 16px;
  border-radius: 18px 18px 18px 4px;
  display: none;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); background: #2563eb; }
}

/* Quick Replies Bar in Phone */
.phone-quick-replies {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-reply-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quick-reply-pill:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* Phone Input Bar */
.phone-input-bar {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input-field {
  flex-grow: 1;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
}

.phone-send-btn {
  width: 32px;
  height: 32px;
  background: #2563eb;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.phone-send-btn:hover {
  background: #1d4ed8;
}

/* Demo Controls & Narrative (Right of Phone) */
.demo-controls-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.demo-trigger-action-box {
  background: #f0fdf4;
  border: 2px dashed #86efac;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.btn-simulate-call {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
}

.btn-simulate-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-simulate-call:active {
  transform: translateY(0);
}

.demo-reset-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  cursor: pointer;
  text-decoration: underline;
}

.simulation-event-tracker {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.tracker-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 12px;
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
}

.tracker-step.active {
  color: #0f172a;
  font-weight: 600;
}

.tracker-step.completed {
  color: var(--color-emerald);
}

.tracker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.tracker-step.active .tracker-dot {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.tracker-step.completed .tracker-dot {
  background: var(--color-emerald);
}

/* Commented Integration Box */
.integration-code-box {
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-md);
  padding: 18px;
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-x: auto;
}

.code-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.code-comment {
  color: #64748b;
}

.code-keyword {
  color: #38bdf8;
}

.code-string {
  color: #34d399;
}

/* ==========================================================================
   SCREEN 3: LIVE DEMO — INSTANT LEAD REPLY
   ========================================================================== */

.lead-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .lead-demo-grid {
    grid-template-columns: 420px 1fr;
  }
}

.contractor-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.form-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.form-brand-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-main);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
  outline: none;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.form-checkbox-label input {
  margin-top: 3px;
}

.btn-submit-lead {
  width: 100%;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-lead:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* Results: AI Message & Google Sheet */
.lead-results-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* AI Reply Card */
.ai-reply-preview-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.ai-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-blue);
}

.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-emerald-light);
  color: var(--color-emerald);
  border: 1px solid var(--color-emerald-border);
}

.ai-message-bubble-display {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.9375rem;
  color: #1e293b;
  line-height: 1.5;
  min-height: 90px;
  transition: all 0.3s ease;
}

/* Google Sheets Mockup */
.sheets-mockup-wrapper {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sheets-header-bar {
  background: #0f9d58;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
}

.sheets-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheets-tabs-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  padding: 0 8px;
}

.sheet-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.sheet-tab-btn.active {
  background: #ffffff;
  color: #0f9d58;
  border-bottom: 2px solid #0f9d58;
}

.sheets-table-responsive {
  overflow-x: auto;
  max-height: 240px;
}

.sheets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.sheets-table th {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.sheets-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  color: #1e293b;
  white-space: nowrap;
}

.sheets-table tr.new-lead-row {
  background: #ecfdf5;
  animation: rowHighlight 2s ease-out;
}

@keyframes rowHighlight {
  0% { background: #6ee7b7; }
  100% { background: #ecfdf5; }
}

.table-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.table-badge.responded {
  background: #d1fae5;
  color: #065f46;
}

.table-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   SCREEN 4: FOLLOW-UP TIMELINE + DASHBOARD + PILOT OFFER
   ========================================================================== */

/* Timeline Sequence */
.timeline-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.timeline-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .timeline-steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeline-step-item {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-day-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  width: fit-content;
}

.timeline-step-item:nth-child(1) .step-day-pill { background: #dbeafe; color: #1e40af; }
.timeline-step-item:nth-child(2) .step-day-pill { background: #e0e7ff; color: #3730a3; }
.timeline-step-item:nth-child(3) .step-day-pill { background: #fef3c7; color: #92400e; }
.timeline-step-item:nth-child(4) .step-day-pill { background: #f1f5f9; color: #475569; }

.step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.step-message-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

.step-stop-rule {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 600;
}

/* Stop Triggers Banner */
.sequence-rules-bar {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: #475569;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* Owner Dashboard Mock */
.owner-dashboard-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.dashboard-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-title-group h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.dashboard-sample-watermark {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* KPI Tiles Grid */
.kpi-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .kpi-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-tile {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-main);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--color-emerald);
  font-weight: 600;
  margin-top: 4px;
}

/* Dashboard Filter & Leads Table */
.dashboard-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.dashboard-leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.dashboard-leads-table th {
  background: #f8fafc;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-leads-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-main);
}

/* ==========================================================================
   PILOT OFFER & EXACT PRICING (SCREEN 4 CONTINUED)
   ========================================================================== */

.pricing-section-container {
  margin-top: 20px;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 840px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md), 0 0 20px rgba(2, 132, 199, 0.12);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.tier-name {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.tier-scope {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
  margin-bottom: 18px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.tier-price {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
}

.tier-period {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

.tier-terms {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-emerald);
  background: var(--color-emerald-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  width: fit-content;
}

.tier-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.tier-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.tier-features-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-select-tier {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.btn-select-tier:hover {
  background: var(--navy-900);
  color: #ffffff;
  border-color: var(--navy-900);
}

.pricing-card.featured .btn-select-tier {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.pricing-card.featured .btn-select-tier:hover {
  background: var(--color-primary-hover);
}

/* Post-Pilot Retainer Callout */
.retainer-note-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.retainer-price-highlight {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* What We Need / What It Does Not Do */
.scope-boundaries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .scope-boundaries-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.boundary-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.boundary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.boundary-title.red { color: #e11d48; }
.boundary-title.green { color: #059669; }

.boundary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.boundary-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.boundary-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Call-to-Action Hero Box */
.final-cta-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-850));
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-xl);
  padding: 44px 28px;
  text-align: center;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
}

.final-cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.final-cta-sub {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 28px auto;
}

.cta-action-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-primary-large {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary-large:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary-large {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-secondary-large:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Automation Download Callout */
.download-automation-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--navy-800);
  font-size: 0.8125rem;
  color: #94a3b8;
}

.download-link {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   MODAL & INTERACTIVE TOASTS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalScale 0.2s ease-out;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
}

/* Toast alert */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  animation: toastSlideUp 0.3s ease-out;
}

.toast-notification.show {
  display: flex;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 48px 0 32px 0;
  border-top: 1px solid var(--navy-800);
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-nav-col h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: #38bdf8;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid var(--navy-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
