/* ==========================================================================
   Universal Booking Agent (UBA) Standalone Design System & CSS Stylesheet
   ========================================================================== */

/* 1. Brand Tokens & CSS Variables */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors */
  --bg-primary: #f8fafc;        /* slate-50 */
  --bg-secondary: #ffffff;      /* white */
  --bg-tertiary: #f1f5f9;       /* slate-100 */
  --text-primary: #0f172a;     /* slate-900 */
  --text-muted: #475569;       /* slate-600 */
  --text-light: #94a3b8;       /* slate-400 */
  
  --brand-color: #3b82f6;      /* blue-500 */
  --brand-hover: #1d4ed8;      /* blue-700 */
  --brand-soft: rgba(59, 130, 246, 0.08);
  
  --purple-color: #8b5cf6;     /* purple-500 */
  --purple-soft: rgba(139, 92, 246, 0.08);
  
  --green-color: #10b981;      /* emerald-500 */
  --green-soft: rgba(16, 185, 129, 0.08);

  --amber-color: #f59e0b;      /* amber-500 */
  --amber-soft: rgba(245, 158, 11, 0.08);

  --red-color: #ef4444;        /* red-500 */
  --red-soft: rgba(239, 68, 68, 0.08);

  --teal-color: #14b8a6;       /* teal-500 */
  --teal-soft: rgba(20, 184, 166, 0.08);

  --border-color: #e2e8f0;     /* slate-200 */
  --border-focus: #3b82f6;     /* blue-500 */

  /* Radius & Shadows */
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-brand: 0 10px 15px -3px rgba(59, 130, 246, 0.25);

  /* Font Scaling */
  --font-base-scale: 1;
  --font-size-xs: calc(0.75rem * var(--font-base-scale));
  --font-size-sm: calc(0.875rem * var(--font-base-scale));
  --font-size-base: calc(1rem * var(--font-base-scale));
  --font-size-lg: calc(1.125rem * var(--font-base-scale));
  --font-size-xl: calc(1.25rem * var(--font-base-scale));
  --font-size-2xl: calc(1.5rem * var(--font-base-scale));
  --font-size-3xl: calc(1.875rem * var(--font-base-scale));
  --font-size-4xl: calc(2.25rem * var(--font-base-scale));
  --font-size-display: calc(3rem * var(--font-base-scale));

  /* Accessibility Defaults */
  --line-height-base: 1.5;
  --letter-spacing-base: normal;
  --word-spacing-base: normal;
}

/* 2. Global Accessibility Overrides */

/* Text Sizes */
html.normal-text { --font-base-scale: 1.0; }
html.large-text { --font-base-scale: 1.2; }
html.xl-text { --font-base-scale: 1.4; }

/* Dyslexic-Friendly Typography Override */
html.dyslexic-mode {
  --font-body: 'Comic Sans MS', 'Arial', sans-serif;
  --font-heading: 'Comic Sans MS', 'Arial', sans-serif;
  --line-height-base: 1.8;
  --letter-spacing-base: 0.12em;
  --word-spacing-base: 0.16em;
}

/* High Contrast Mode Override */
html.high-contrast-mode {
  --bg-primary: #000000 !important;
  --bg-secondary: #000000 !important;
  --bg-tertiary: #121212 !important;
  --text-primary: #ffffff !important;
  --text-muted: #ffff00 !important; /* Yellow for readable links/text */
  --text-light: #ffffff !important;
  
  --brand-color: #ffff00 !important;
  --brand-hover: #ffffff !important;
  --brand-soft: #000000 !important;
  
  --purple-color: #ffff00 !important;
  --green-color: #ffffff !important;
  --amber-color: #ffff00 !important;
  --red-color: #ffffff !important;
  
  --border-color: #ffffff !important;
  --border-focus: #ffff00 !important;
  
  --shadow-sm: none !important;
  --shadow-md: none !important;
  --shadow-lg: none !important;
  --shadow-brand: none !important;
  
  background: #000000 !important;
}

html.high-contrast-mode .pricing-card.highlighted,
html.high-contrast-mode .calc-result-card.highlighted,
html.high-contrast-mode .lead-capture-box,
html.high-contrast-mode .niche-card {
  background: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast-mode .plan-features li.disabled {
  opacity: 0.5 !important;
  text-decoration: line-through !important;
  color: #ffffff !important;
}

/* 3. Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height-base);
  letter-spacing: var(--letter-spacing-base);
  word-spacing: var(--word-spacing-base);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Accessibility Focus Ring styling */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.text-center { text-align: center; }
.ml-auto { margin-left: auto; }
.hidden { display: none !important; }

/* Colors utilities */
.text-brand { color: var(--brand-color); }
.text-purple { color: var(--purple-color); }
.text-green { color: var(--green-color); }
.text-amber { color: var(--amber-color); }
.text-red { color: var(--red-color); }
.text-teal { color: var(--teal-color); }
.text-white { color: #ffffff !important; }
.text-yellow { color: #facc15 !important; } /* Tailwind yellow-400 */

.bg-blue-soft { background-color: var(--brand-soft); }
.bg-purple-soft { background-color: var(--purple-soft); }
.bg-green-soft { background-color: var(--green-soft); }
.bg-amber-soft { background-color: var(--amber-soft); }
.bg-red-soft { background-color: var(--red-soft); }
.bg-teal-soft { background-color: var(--teal-soft); }

.text-muted { color: var(--text-muted); }
.text-xs { font-size: var(--font-size-xs); }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: var(--font-size-lg);
}

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

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--bg-tertiary);
}

.shadow-brand {
  box-shadow: var(--shadow-brand);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  display: inline-block;
  vertical-align: middle;
}
.icon-right {
  margin-left: 0.5rem;
}

/* Accessibility Panel */
.accessibility-bar {
  background-color: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  font-size: var(--font-size-sm);
}

.accessibility-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.accessibility-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.accessibility-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

.a11y-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--text-primary);
}
.a11y-btn:hover {
  background-color: var(--bg-tertiary);
}

.a11y-btn.active {
  background-color: var(--brand-color);
  color: #ffffff;
  border-color: var(--brand-color);
}

.language-selector {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  background: var(--bg-secondary);
  border: none;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-btn.active {
  background: var(--brand-color);
  color: #ffffff;
}

/* Header & Navigation */
.main-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.logo-icon-wrapper {
  background: linear-gradient(135deg, var(--brand-color), var(--purple-color));
  color: #ffffff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 1.5rem;
  height: 1.5rem;
}

.logo-sub {
  font-weight: 400;
}

.main-nav {
  display: none; /* Hidden on mobile */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  font-size: var(--font-size-sm);
}
.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: none; /* Hidden on mobile */
  gap: 0.75rem;
}

.mobile-menu-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 105px; /* Offset from header */
  left: 0;
  width: 100%;
  height: calc(100vh - 105px);
  background: var(--bg-secondary);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-top: 1px solid var(--border-color);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-content {
  padding: 2rem 1.5rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-links a {
  font-size: var(--font-size-xl);
  font-weight: 600;
  display: block;
}

.drawer-links .divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem 0;
}

.drawer-btn {
  width: 100%;
}

/* 4. Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 2rem 0;
  overflow: hidden;
}

.hero-bg-gradients {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.gradient-sphere {
  position: absolute;
  border-radius: var(--radius-full);
  filter: blur(100px);
  opacity: 0.15;
}

.sphere-1 {
  background-color: var(--brand-color);
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.sphere-2 {
  background-color: var(--purple-color);
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
}

.badge {
  background-color: var(--brand-soft);
  color: var(--brand-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
}

.badge-purple {
  background-color: var(--purple-soft);
  color: var(--purple-color);
}

.text-display {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.text-lead {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
}

.hero-ctas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-microcopy {
  font-size: var(--font-size-xs);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-header {
  background: var(--bg-tertiary);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 0.35rem;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-light);
  border-radius: var(--radius-full);
}

.mockup-content {
  padding: 1.5rem;
  background: var(--bg-primary);
}

.mockup-booking-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mockup-card-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.mockup-avatar-placeholder {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--brand-color), var(--purple-color));
  border-radius: var(--radius-full);
}

.mockup-step-pills {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.step-pill {
  font-size: var(--font-size-xs);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.step-pill.active {
  background-color: var(--brand-color);
  color: #ffffff;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.mockup-item.active {
  border-color: var(--brand-color);
  background-color: var(--brand-soft);
}

.circle-select {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
}
.mockup-item.active .circle-select {
  border-color: var(--brand-color);
  background-color: var(--brand-color);
}

.mockup-price {
  margin-left: auto;
  font-weight: 700;
}

/* Social Proof Grid */
.hero-social-proof {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.social-proof-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.brand-logo-mock {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-base);
  opacity: 0.5;
}

/* 5. Features Section */
.features-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.section-header {
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.text-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  margin-bottom: 1rem;
}

.text-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
}

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

.feature-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* 6. AI Avatar Section */
.avatar-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
  overflow: hidden;
}

.avatar-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.avatar-sphere-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-sphere {
  width: 180px;
  height: 180px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  animation: floatAvatar 6s ease-in-out infinite;
  z-index: 2;
}

.avatar-svg {
  width: 100%;
  height: 100%;
}

.speech-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.wave {
  position: absolute;
  border: 2px solid var(--brand-color);
  border-radius: var(--radius-full);
  opacity: 0;
}

.speech-waves.talking .wave-1 { animation: waveOut 2s linear infinite; }
.speech-waves.talking .wave-2 { animation: waveOut 2s linear infinite 0.5s; }
.speech-waves.talking .wave-3 { animation: waveOut 2s linear infinite 1s; }
.speech-waves.talking .wave-4 { animation: waveOut 2s linear infinite 1.5s; }

@keyframes waveOut {
  0% {
    width: 180px;
    height: 180px;
    opacity: 0.6;
  }
  100% {
    width: 280px;
    height: 280px;
    opacity: 0;
  }
}

@keyframes floatAvatar {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.avatar-status-pill {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green-color);
  border-radius: var(--radius-full);
}
.status-dot.talking {
  background-color: var(--brand-color);
}

.animate-pulse {
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Chat bubble styling inside avatar demo */
.avatar-demo-chat {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
}

.demo-chat-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 1rem;
}

.chat-bubble {
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.avatar-bubble {
  background-color: var(--bg-tertiary);
  border-bottom-left-radius: 0;
  border: 1px solid var(--border-color);
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-opt-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.chat-opt-btn:hover {
  background-color: var(--brand-soft);
  border-color: var(--brand-color);
  color: var(--brand-color);
}

/* 7. Target Niches Section */
.niches-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.niches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.niche-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.niche-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.niche-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.niche-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.niche-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.niche-description {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* 8. Interactive ROI Calculator */
.calculator-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.calculator-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.calc-inputs {
  flex: 1;
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-input-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-input-labels label {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.calc-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--brand-color);
  background-color: var(--brand-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--brand-color);
  cursor: pointer;
  transition: transform 0.1s ease;
  box-shadow: var(--shadow-sm);
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.calc-result-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.calc-result-card.highlighted {
  background: linear-gradient(135deg, var(--brand-color), var(--purple-color));
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-brand);
}

.result-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-result-card.highlighted .result-label {
  color: rgba(255, 255, 255, 0.8);
}

.result-number {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.result-unit {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* 9. Live Demo Simulator */
.demo-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.demo-simulator-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.simulator-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.simulator-sidebar-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.simulator-steps {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.sim-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sim-step-indicator.active {
  color: var(--brand-color);
  border-color: var(--brand-color);
  background-color: var(--brand-soft);
}

.step-num {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
}

.sim-step-indicator.active .step-num {
  background-color: var(--brand-color);
  color: #ffffff;
}

.simulator-phone {
  display: flex;
  justify-content: center;
}

.phone-screen {
  background-color: var(--bg-secondary);
  border: 8px solid var(--text-primary);
  border-radius: 2rem;
  width: 100%;
  max-width: 340px;
  height: 480px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1rem 0.75rem 1rem;
}

.phone-brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-base);
  text-align: center;
  margin-bottom: 0.5rem;
}

.phone-progress-bar {
  background-color: var(--bg-tertiary);
  height: 4px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  background-color: var(--brand-color);
  height: 100%;
  transition: width 0.3s ease;
}

.phone-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background-color: var(--bg-primary);
}

.sim-step-content {
  display: none;
}
.sim-step-content.active {
  display: block;
}

.sim-content-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sim-service-item {
  background-color: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-service-item:hover {
  border-color: var(--brand-color);
}

.sim-service-item.selected {
  border-color: var(--brand-color);
  background-color: var(--brand-soft);
}

.sim-price {
  font-weight: 700;
  font-size: var(--font-size-base);
}

/* Calendar grid mock */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cal-day {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.cal-day.day-past {
  opacity: 0.4;
  cursor: not-allowed;
}

.cal-day.selected {
  background-color: var(--brand-color);
  color: #ffffff;
  border-color: var(--brand-color);
}

.sim-slots-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.sim-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.sim-slot {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

.sim-slot.selected {
  background-color: var(--brand-color);
  color: #ffffff;
  border-color: var(--brand-color);
}

/* Success details screen */
.success-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--green-soft);
  color: var(--green-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.success-svg {
  width: 2rem;
  height: 2rem;
}

.success-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.receipt-card {
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
}

.receipt-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.75rem 0;
}

.phone-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  align-items: center;
}

/* 10. Pricing Section */
.pricing-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.pricing-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.highlighted {
  background: linear-gradient(135deg, var(--brand-color), var(--purple-color));
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
  z-index: 2;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f59e0b; /* amber */
  color: #ffffff;
  padding: 0.25rem 1rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.pricing-card.highlighted .plan-name {
  color: #ffffff;
}

.plan-desc {
  font-size: var(--font-size-sm);
  margin-bottom: 2rem;
}
.pricing-card.highlighted .plan-desc {
  color: rgba(255,255,255,0.8);
}

.plan-price {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  color: var(--text-primary);
}

.currency {
  font-size: var(--font-size-2xl);
  font-weight: 600;
}

.period {
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-left: 0.25rem;
}

.pricing-card.highlighted .period {
  color: rgba(255,255,255,0.8);
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.plan-features li::before {
  content: "✓";
  color: var(--green-color);
  font-weight: 900;
}
.pricing-card.highlighted .plan-features li::before {
  color: #ffff00;
}

.plan-features li.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}
.plan-features li.disabled::before {
  content: "✗";
  color: var(--red-color);
}
.pricing-card.highlighted .plan-features li.disabled::before {
  color: #ffffff;
}

.pricing-cta {
  font-size: var(--font-size-sm);
}

/* 11. FAQ Accordions */
.faq-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.25s ease;
  color: var(--text-light);
  flex-shrink: 0;
}

.faq-question-btn[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-color);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.5rem;
}

.faq-answer-panel p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* 12. Lead Capture Section */
.lead-capture-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.lead-capture-box {
  background: linear-gradient(135deg, var(--text-primary), #1e293b);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
}

.lead-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--text-light);
  background-color: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}
.form-group input:focus {
  border-color: var(--brand-color);
}

.lead-success-feedback {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1.5px solid var(--green-color);
  color: #ffffff;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  text-align: center;
}

/* 13. Footer */
.product-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  color: var(--text-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-slogan {
  font-size: var(--font-size-sm);
  max-width: 300px;
}

.footer-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--brand-color);
}

.footer-info-col {
  font-size: var(--font-size-sm);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: var(--text-light);
  transition: color 0.2s ease;
}
.footer-socials a:hover {
  color: var(--text-primary);
}

/* Scroll Animations */
.animate-scroll {
  opacity: 0.9;
  transform: translateY(0);
}

/* ==========================================================================
   14. Media Queries (Mobile First Layout)
   ========================================================================== */

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

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

  .niches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-ctas {
    flex-direction: row;
  }

  .accessibility-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .main-nav {
    display: block;
  }

  .nav-actions {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .social-proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .calculator-box {
    grid-template-columns: 1fr 1fr;
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

  .simulator-layout {
    grid-template-columns: 240px 1fr;
  }

  .simulator-steps {
    flex-direction: column;
    overflow-x: visible;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr;
  }

  .footer-bottom-flex {
    flex-direction: row;
  }
}

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

  .niches-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .text-display {
    font-size: var(--font-size-display);
  }

  .hero-section {
    padding: 6rem 0 3rem 0;
  }
  
  .lead-capture-box {
    padding: 4rem 3rem;
  }
}

/* ==========================================================================
   15. Demo Selection Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-headline {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-subtitle {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.modal-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 480px) {
  .modal-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.modal-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-item-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.modal-item-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.modal-item-actions {
  display: flex;
  gap: 0.5rem;
}

/* High Contrast Override for Modals */
html.high-contrast-mode .modal-container {
  background-color: #000000 !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

html.high-contrast-mode .modal-item {
  background-color: #000000 !important;
  border: 1.5px solid #ffffff !important;
  color: #ffffff !important;
}

/* ==========================================================================
   16. Cookie Consent Banner Styles
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: -250px; /* Hidden offscreen by default */
  left: 0;
  width: 100%;
  background-color: #0f172a; /* Slate 900 */
  color: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 1.25rem 1.5rem;
  transition: bottom 0.4s ease;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    gap: 2rem;
  }
}

.cookie-text {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .cookie-text {
    text-align: left;
  }
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* High Contrast Override for Cookie Banner */
html.high-contrast-mode .cookie-banner {
  background-color: #000000 !important;
  border-top: 2px solid #ffffff !important;
  color: #ffffff !important;
}

.btn-cookie-reject {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cookie-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* Footer Link Buttons Styling */
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-links button:hover {
  color: var(--brand-color);
}

/* Scrollable Modal Body */
.modal-body-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* Legal text styling within modal */
.modal-body-scroll h3 {
  font-size: var(--font-size-md);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.modal-body-scroll p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.modal-body-scroll ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.modal-body-scroll li {
  margin-bottom: 0.5rem;
}

/* High Contrast Override for Cookie Reject Button */
html.high-contrast-mode .btn-cookie-reject {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}
html.high-contrast-mode .btn-cookie-reject:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}




