/* ============================================
   AI Custom Bot — Brand Design System
   Extracted from aicustombot.net + logo assets
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  /* Primary Colors */
  --brand-orange: #EA580C;
  --brand-orange-deep: #C2410C;
  --brand-amber: #D97706;
  --brand-orange-light: #FFF7ED;
  --brand-orange-glow: rgba(234, 88, 12, 0.15);
  --brand-orange-hover: rgba(234, 88, 12, 0.08);

  /* Neutral / Slate Palette */
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 4px 14px rgba(234, 88, 12, 0.25);
  --shadow-card-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --max-width: 1280px;
  --container-padding: var(--space-6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--slate-600);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--slate-900);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--space-4);
}

strong {
  font-weight: 700;
  color: var(--slate-900);
}

/* --- Page Hero --- */
.page-hero {
  padding: 12rem 0 6rem;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--slate-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-300);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Sections --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: box-shadow var(--transition-base);
}

.header:hover {
  box-shadow: var(--shadow-sm);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.5px;
}

.logo-hights {
  letter-spacing: -0.5px;
}

.header-logo .logo-highlight,
.footer-logo .logo-highlight {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-nav a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
  padding: var(--space-2) 0;
}

.header-nav a.active {
  color: var(--brand-orange);
  font-weight: 700;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-amber));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.header-nav a.active::after {
  width: 100%;
}

.header-nav a:hover {
  color: var(--brand-orange);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-cta {
  margin-left: var(--space-4);
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25), 0 10px 20px rgba(234, 88, 12, 0.2), 0 0 0 0 rgba(234, 88, 12, 0.4);
  }

  70% {
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25), 0 10px 20px rgba(234, 88, 12, 0.2), 0 0 0 12px rgba(234, 88, 12, 0);
  }

  100% {
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25), 0 10px 20px rgba(234, 88, 12, 0.2), 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

.header-cta .btn-primary {
  padding: 10px 24px;
  font-weight: 700;
  animation: pulse-orange 3s infinite;
}

.header-cta .btn-primary:hover {
  animation: none;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4), 0 4px 10px rgba(234, 88, 12, 0.2);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-900);
  margin: 5px 0;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

/* Primary — Orange Gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(234, 88, 12, 0.25), 0 10px 20px rgba(234, 88, 12, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.4), 0 4px 10px rgba(234, 88, 12, 0.2);
}

.btn-primary:hover::after {
  left: 120%;
  transition: left 0.6s ease;
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.3);
}

/* Secondary — Dark Slate */
.btn-secondary {
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Outline — Bordered */
.btn-outline {
  background: var(--white);
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Button Sizes */
.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--font-size-xs);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  /* account for fixed header */
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 60%, var(--slate-50) 100%);
  overflow: hidden;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-20) var(--container-padding);
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--slate-900);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--slate-500);
  max-width: 620px;
  margin: 0 auto var(--space-10);
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-24) 0;
}

.section-gray {
  background: var(--slate-50);
}

.section-dark {
  background: var(--slate-900);
  color: var(--slate-300);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: var(--slate-400);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--slate-500);
  line-height: 1.65;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-amber));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(234, 88, 12, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.card-text {
  color: var(--slate-600);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

/* Pricing Preview Features */
.pricing-preview-features {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-preview-features li {
  font-size: var(--font-size-sm);
  color: var(--slate-600);
  padding-left: var(--space-6);
  position: relative;
}

.pricing-preview-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-amber));
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(234, 88, 12, 0.15);
}

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

.feature-text {
  color: var(--slate-600);
  font-size: var(--font-size-base);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.feature-card a {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-base), color var(--transition-base);
}

.feature-card a:hover {
  color: var(--brand-orange-deep);
  gap: var(--space-2);
}

/* ============================================
   TIMELINE (How It Works)
   ============================================ */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-orange), var(--brand-amber), transparent);
}

.timeline-item {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-xl);
  box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.15), var(--shadow-md);
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-top: var(--space-3);
  flex: 1;
}

.timeline-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-2);
}

.timeline-text {
  color: var(--slate-400);
  font-size: var(--font-size-base);
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--slate-900) 100%);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--font-size-4xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.cta-text {
  font-size: var(--font-size-lg);
  color: var(--slate-400);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cta-buttons .btn-outline {
  border-color: var(--slate-600);
  color: var(--slate-300);
  background: transparent;
}

.cta-buttons .btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--white);
  background: rgba(234, 88, 12, 0.1);
}

/* ============================================
   PRICING TABLES & PAGE
   ============================================ */
.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-12);
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
  /* Ensure it doesn't squish on mobile */
}

.pricing-table th {
  background: var(--slate-50);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  border-bottom: 1px solid var(--slate-200);
  font-weight: 700;
}

.pricing-table td {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
  transition: background var(--transition-fast);
  color: var(--slate-600);
}

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

.pricing-table tr:hover td {
  background: var(--slate-50);
  color: var(--slate-900);
}

.pricing-table td strong {
  color: var(--slate-900);
  font-weight: 700;
  display: block;
  font-size: var(--font-size-lg);
}

/* Highlight Row (Recommended) */
.table-row-highlight td {
  background: var(--brand-orange-light);
  border-bottom-color: rgba(234, 88, 12, 0.1);
}

.table-row-highlight:hover td {
  background: #FFF1E0;
  /* Slightly darker orange light */
}

.table-row-highlight td:first-child {
  position: relative;
}

.table-row-highlight td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand-orange);
}

/* Part Badge */
.pricing-part-badge {
  display: inline-block;
  background: var(--slate-900);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
}

/* Pricing Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  line-height: 1;
}

.badge-popular {
  background: var(--brand-orange);
  color: var(--white);
  box-shadow: 0 2px 5px rgba(234, 88, 12, 0.3);
}

.badge-value {
  background: var(--brand-amber);
  color: var(--slate-900);
}

/* Pricing Amounts */
.price-amount {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--slate-900);
  display: block;
  line-height: 1.2;
}

.price-monthly {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--brand-orange-deep);
}

.text-sm {
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.text-slate-500 {
  color: var(--slate-500);
}

/* Policy & Warranty Boxes */
.policy-box,
.warranty-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-8);
  margin-top: var(--space-8);
  border-left: 4px solid var(--slate-400);
}

.policy-box-title,
.warranty-box-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--slate-800);
}

.warranty-box {
  border-left-color: var(--brand-orange);
  background: var(--white);
}

.policy-box p,
.warranty-box ul li {
  font-size: var(--font-size-sm);
  color: var(--slate-600);
  margin-bottom: var(--space-2);
}

.warranty-box ul {
  list-style: disc;
  padding-left: var(--space-6);
}

/* Pricing Preview Cards (Solutions Page) */
.pricing-preview-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pricing-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(234, 88, 12, 0.2);
}

.pricing-preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-amber));
}

.pricing-preview-badge {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.pricing-preview-title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: var(--space-3);
}

.pricing-preview-desc {
  color: var(--slate-500);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.pricing-preview-price {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.pricing-preview-price span {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--slate-400);
}

.pricing-preview-features {
  margin-bottom: var(--space-8);
  border-top: 1px solid var(--slate-100);
  padding-top: var(--space-6);
}

.pricing-preview-features li {
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--slate-600);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.pricing-preview-features li::before {
  content: '✓';
  color: var(--brand-orange);
  font-weight: 800;
  width: auto;
  height: auto;
  background: none;
  position: static;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-900);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--slate-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: -0.5px;
}

.footer-description {
  color: var(--slate-400);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.footer-heading {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.legal-heading {
  color: var(--brand-orange);
  font-size: var(--font-size-base);
  text-shadow: 0 0 10px rgba(234, 88, 12, 0.3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

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

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

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--slate-500);
}

.footer-email a {
  font-size: var(--font-size-sm);
  color: var(--slate-200);
  font-weight: 500;
}

.footer-email a:hover {
  color: var(--white);
}

.footer-links a[href^="mailto:"] {
  color: var(--slate-200);
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  color: var(--slate-500);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--brand-orange);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
  }

  h1,
  .hero-title {
    font-size: var(--font-size-5xl);
  }

  h2,
  .section-title {
    font-size: var(--font-size-3xl);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Table Mobile Card View */
  .care-plan-table thead {
    display: none;
  }

  /* Reset table display for card view */
  .care-plan-table,
  .care-plan-table tbody,
  .care-plan-table tr,
  .care-plan-table td {
    display: block;
    width: 100%;
  }

  /* Ensure wrapper doesn't trap scroll when in card view */
  .care-plan-table-wrapper {
    overflow-x: visible;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .care-plan-table tr {
    margin-bottom: var(--space-6);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
  }

  .care-plan-table td {
    text-align: right;
    padding: var(--space-3) 0;
    position: relative;
    border-bottom: 1px solid var(--slate-100);
    padding-left: 50%;
    /* Make space for the label */
    min-height: 40px;
    /* Ensure minimum height */
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .care-plan-table td:last-child {
    border-bottom: none;
  }

  .care-plan-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    padding-right: 10px;
    white-space: normal;
    /* Allow wrapping */
    text-align: left;
    font-weight: 700;
    color: var(--slate-900);
    font-size: var(--font-size-sm);
    line-height: 1.2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-5);
  }

  body {
    font-size: var(--font-size-base);
  }

  h1,
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  h2,
  .section-title {
    font-size: var(--font-size-2xl);
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: var(--space-16);
  }

  .hero-content {
    padding: var(--space-10) var(--space-4);
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-cta {
    flex-direction: column;
    gap: var(--space-3);
  }

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

  .section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

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

  /* Header mobile */
  .header .container {
    height: 64px;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: var(--space-6) var(--container-padding);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    gap: var(--space-4);
  }

  .header-nav.is-open {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  /* Timeline mobile */
  .timeline::before {
    left: 20px;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  .timeline-item {
    gap: var(--space-5);
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  /* CTA */
  .cta-title {
    font-size: var(--font-size-2xl);
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {

  h1,
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .card {
    padding: var(--space-6);
  }

  .card {
    padding: var(--space-6);
  }

  .feature-card {
    padding: var(--space-6);
  }
}

/* ============================================
   CHAT SIMULATOR
   ============================================ */
.chat-section-grid {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

@media (max-width: 768px) {
  .chat-section-grid {
    margin-top: var(--space-10);
    margin-bottom: var(--space-10);
  }
}

.chat-simulator-wrapper {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  margin-bottom: var(--space-8);
}

.chat-simulator {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--slate-200);
}

.chat-header {
  background: var(--slate-900);
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-header {
  width: 40px;
  height: 40px;
  background: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
}

.chat-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--white);
}

.chat-info span {
  font-size: 12px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-info span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  /* Green dot */
  border-radius: 50%;
  display: inline-block;
}

.chat-body {
  padding: 24px;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
  animation: fadeInUp 0.5s ease-out both;
  position: relative;
}

.chat-bubble-ai {
  background: var(--white);
  color: var(--slate-700);
  border-top-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.chat-bubble-user {
  background: var(--brand-orange);
  color: var(--white);
  border-top-right-radius: 4px;
  align-self: flex-end;
}

.chat-avatar-small {
  width: 28px;
  height: 28px;
  background: var(--slate-200);
  color: var(--slate-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  position: absolute;
  bottom: -10px;
  left: -10px;
  border: 2px solid var(--white);
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 1.2s;
}

.delay-3 {
  animation-delay: 2.5s;
}

.delay-4 {
  animation-delay: 3.5s;
}

.delay-5 {
  animation-delay: 4.5s;
}

.delay-6 {
  animation-delay: 5.5s;
}

.delay-7 {
  animation-delay: 6.5s;
}

/* ============================================
   ENHANCED CARE PLAN TABLE
   ============================================ */
.care-plan-table-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.care-plan-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  /* Ensure 5 columns don't squish */
}

.care-plan-table thead th {
  background: var(--slate-900);
  color: var(--white);
  padding: 20px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.care-plan-table tbody tr {
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.2s;
}

.care-plan-table tbody tr:last-child {
  border-bottom: none;
}

.care-plan-table tbody tr:hover {
  background: var(--slate-50);
}

.care-plan-table td {
  padding: 24px;
  vertical-align: top;
  color: var(--slate-600);
}

.care-plan-name {
  color: var(--slate-900);
  font-weight: 800;
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.care-plan-price {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 18px;
}

.care-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.care-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
}

.care-plan-features li::before {
  content: '✓';
  color: #10b981;
  /* Green */
  font-weight: 800;
}

/* ============================================
   FORMS (Contact Page)
   ============================================ */
.contact-wrapper {
  animation: fadeInUp 0.5s ease-out;
}

.form-group {
  margin-bottom: var(--space-4);
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--slate-900);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

.form-input::placeholder {
  color: var(--slate-400);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

/* Success Message Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success-message {
  animation: fadeIn 0.5s ease-out;
  color: #10b981;
  /* Success Green */
  font-weight: 600;
  padding: 1rem;
  background: #ecfdf5;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  display: none;
}

/* ============================================
   AI CHATBOT WIDGET — Enhanced v2
   ============================================ */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-family);
}

.chatbot-window {
  position: absolute;
  bottom: 88px;
  right: 0;
  width: 420px;
  height: 600px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Header ─────────────────────────────── */
.chatbot-header {
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
  color: var(--white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--brand-orange);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
}

.chatbot-header h4 {
  color: var(--white);
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.chatbot-header span {
  font-size: 11px;
  opacity: 0.8;
}

.chatbot-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 4px;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

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

.chatbot-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-size: 20px;
  line-height: 1;
}

.chatbot-header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Conversation ID ────────────────────── */
.chatbot-convo-id {
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 10px;
  font-family: monospace;
  text-align: center;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--slate-200);
  user-select: all;
}

/* ── Messages ───────────────────────────── */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--slate-50);
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
}

.chatbot-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: msgFadeIn 0.3s ease;
}

@keyframes msgFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message-ai {
  align-self: flex-start;
}

.chatbot-message-user {
  align-self: flex-end;
  text-align: right;
}

.chatbot-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chatbot-message-ai .chatbot-bubble {
  background: var(--white);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chatbot-message-user .chatbot-bubble {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.2);
}

/* ── Typing Indicator ───────────────────── */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 16px 20px !important;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background: var(--slate-400);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.chatbot-typing span:nth-child(1) {
  animation-delay: -0.32s;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: -0.16s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Lead Capture Form ──────────────────── */
.chatbot-lead-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  max-height: 340px;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chatbot-lead-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--slate-800);
}

.chatbot-lead-close {
  background: none;
  border: none;
  color: var(--slate-500);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}

.chatbot-lead-close:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.chatbot-lead-form input,
.chatbot-lead-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-lead-form input:focus,
.chatbot-lead-form select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

.chatbot-lead-form input::placeholder {
  color: var(--slate-400);
}

.chatbot-lead-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-lead-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.chatbot-lead-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.chatbot-lead-status {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  min-height: 18px;
}

/* ── Input Area ─────────────────────────── */
.chatbot-input-area {
  padding: 14px 16px;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-form-trigger {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chatbot-form-trigger:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.chatbot-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input-area input:focus {
  border-color: var(--brand-orange);
}

.chatbot-send-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chatbot-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.chatbot-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Toggle Button ──────────────────────── */
.chatbot-toggle-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: var(--white);
  border: none;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35), 0 0 0 0 rgba(234, 88, 12, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  animation: chatbot-pulse 3s infinite;
}

@keyframes chatbot-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35), 0 0 0 0 rgba(234, 88, 12, 0.4);
  }

  70% {
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35), 0 0 0 14px rgba(234, 88, 12, 0);
  }

  100% {
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.35), 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

.chatbot-toggle-btn:hover {
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.45);
}

/* ── Mobile Responsive ──────────────────── */

/* Body scroll lock when chat is open on mobile */
body.chatbot-mobile-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
  .chatbot-window {
    width: 380px;
    height: 560px;
  }
}

/* Mobile breakpoint — full-screen takeover */
@media (max-width: 480px) {
  .chatbot-widget {
    right: 12px;
    bottom: 12px;
  }

  .chatbot-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    border-radius: 0;
    z-index: 10000;
  }

  .chatbot-header {
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
    border-radius: 0;
  }

  .chatbot-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .chatbot-header h4 {
    font-size: 14px;
  }

  .chatbot-header-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .chatbot-convo-id {
    font-size: 9px;
    padding: 3px 10px;
  }

  .chatbot-messages {
    padding: 12px;
    gap: 10px;
  }

  .chatbot-bubble {
    font-size: 15px;
    padding: 10px 14px;
    max-width: 90%;
  }

  .chatbot-message {
    max-width: 90%;
  }

  .chatbot-input-area {
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 6px;
  }

  .chatbot-input-area input {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
  }

  .chatbot-form-trigger {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .chatbot-send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .chatbot-toggle-btn {
    width: 60px;
    height: 60px;
  }

  /* Lead form mobile */
  .chatbot-lead-form {
    max-height: 50vh;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .chatbot-lead-form input,
  .chatbot-lead-form select {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents iOS zoom */
  }

  .chatbot-lead-submit {
    padding: 14px;
    font-size: 15px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .chatbot-header-info {
    gap: 8px;
  }

  .chatbot-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .chatbot-header h4 {
    font-size: 13px;
  }
}