/* ==========================================================================
   Allgood Marketing — Design System & Shared Styles
   Version: 2.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & VARIABLES
   -------------------------------------------------------------------------- */

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

:root {
  /* Brand Colors */
  --cream: #f5f3f0;
  --white: #fff;
  --dark: #1a1a1a;
  --charcoal: #2a2a2a;
  --red: #e5352d;
  --red-dark: #c0241d;
  --gray: #6b6b6b;
  --border: #dddbd8;
  --green: #22c55e;

  /* Derived Colors */
  --red-glow: rgba(229, 53, 45, 0.25);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.3s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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


/* --------------------------------------------------------------------------
   2. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1rem;
  color: var(--gray);
}

p:last-child {
  margin-bottom: 0;
}

a:hover {
  color: var(--red);
}

.text-red { color: var(--red); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.text-green { color: var(--green); }

.label, .section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   3. NAVIGATION
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: var(--nav-height);
  transition: box-shadow var(--duration) var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 1rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--white);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-of-type {
  border-bottom: none;
}

.nav-mobile .btn-primary {
  margin-top: 1.5rem;
  text-align: center;
}


/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .emphasis {
  color: var(--red);
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 20px rgba(229, 53, 45, 0.3);
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 53, 45, 0.4);
}

/* Urgency badge */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.urgency-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: iconPulse 1.5s infinite;
}

/* Video wrapper */
.hero-video {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-video video,
.hero-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
}

.hero-video .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.hero-video .play-overlay:hover {
  background: rgba(0, 0, 0, 0.15);
}

.hero-video .play-btn {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration) var(--ease);
}

.hero-video .play-overlay:hover .play-btn {
  transform: scale(1.08);
}

.hero-video .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--red);
  margin-left: 4px;
}

/* Page hero — interior pages */
.page-hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  background: var(--cream);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb .sep {
  color: var(--border);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero .subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   5. TRUST BAR
   -------------------------------------------------------------------------- */

.trust-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trust-bar::-webkit-scrollbar {
  display: none;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  flex-shrink: 0;
}

.trust-item .check {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
}


/* --------------------------------------------------------------------------
   6. PROOF / STATS BAR
   -------------------------------------------------------------------------- */

.proof-bar {
  background: var(--dark);
  padding: 3rem 1.5rem;
}

.proof-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.proof-stat {
  padding: 0.5rem;
}

.proof-stat .number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.proof-stat .number .suffix {
  font-size: 0.6em;
}

.proof-stat .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.35rem;
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   7. PAIN POINTS SECTION
   -------------------------------------------------------------------------- */

.pain-points {
  background: var(--charcoal);
  padding: 5rem 1.5rem;
}

.pain-points-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pain-points .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pain-points .section-header h2 {
  color: var(--white);
}

.pain-points .section-header p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 8px 32px var(--red-glow);
}

.pain-card .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(229, 53, 45, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--red);
}

.pain-card h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.pain-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}


/* --------------------------------------------------------------------------
   8. HOW IT WORKS
   -------------------------------------------------------------------------- */

.how-it-works {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.how-it-works-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  max-width: 260px;
  margin: 0 auto;
}

/* Arrow between steps */
.step-arrow {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  color: var(--border);
  font-size: 1.5rem;
}


/* --------------------------------------------------------------------------
   9. SERVICES GRID
   -------------------------------------------------------------------------- */

.services {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.services-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.services .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-2px);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--red);
}

.service-card h4 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-card .learn-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--duration) var(--ease);
}

.service-card .learn-more:hover {
  gap: 0.6rem;
}

.service-card .learn-more::after {
  content: '\2192';
}


/* --------------------------------------------------------------------------
   10. CASE STUDIES
   -------------------------------------------------------------------------- */

.case-studies {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.case-studies-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-studies .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

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

.case-card-body {
  padding: 2rem;
}

.case-card .client-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.case-card h4 {
  margin-bottom: 0.75rem;
}

.case-card .quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin: 1rem 0;
}

.case-metrics {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.case-metric {
  text-align: center;
}

.case-metric .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1.2;
}

.case-metric .metric-label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.15rem;
}

.case-metric .direction {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
}


/* --------------------------------------------------------------------------
   11. QUIZ SECTION
   -------------------------------------------------------------------------- */

.quiz-section {
  background: var(--dark);
  padding: 5rem 1.5rem;
}

.quiz-inner {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-section .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.quiz-section .section-header h2 {
  color: var(--white);
}

.quiz-section .section-header p {
  color: rgba(255, 255, 255, 0.6);
}

/* Progress bar */
.quiz-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.5s var(--ease);
  width: 0%;
}

/* Question */
.quiz-question {
  margin-bottom: 1.5rem;
}

.quiz-question h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.quiz-question .step-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* Option cards */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--white);
  font-size: 0.95rem;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.quiz-option.selected {
  background: rgba(229, 53, 45, 0.1);
  border-color: var(--red);
}

.quiz-option .letter {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.quiz-option.selected .letter {
  background: var(--red);
  color: var(--white);
}

/* Result reveal */
.quiz-result {
  text-align: center;
  padding: 2rem 0;
}

.quiz-result h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.quiz-result p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.quiz-result .recommended-tier {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.quiz-loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-loading-bar .fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  animation: quizLoad 2s var(--ease) forwards;
}

@keyframes quizLoad {
  0%   { width: 0%; }
  60%  { width: 80%; }
  100% { width: 100%; }
}

/* Contact capture form inside quiz */
.quiz-capture {
  margin-top: 1.5rem;
}

.quiz-capture .form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.quiz-capture input {
  flex: 1;
}


/* --------------------------------------------------------------------------
   12. TESTIMONIALS (Text Carousel)
   -------------------------------------------------------------------------- */

.testimonials {
  padding: 5rem 1.5rem;
  background: var(--white);
  overflow: hidden;
}

.testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

.testimonial-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.testimonial-card .quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card .name {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.testimonial-card .title-company {
  font-size: 0.85rem;
  color: var(--gray);
}

.testimonial-card .stat-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--red);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-top: 0.75rem;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.carousel-arrow:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.carousel-dot.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}


/* --------------------------------------------------------------------------
   13. VIDEO TESTIMONIALS
   -------------------------------------------------------------------------- */

.video-testimonials {
  padding: 5rem 1.5rem;
  background: var(--cream);
  overflow: hidden;
}

.video-testimonials-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.video-testimonials .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.video-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}

.video-carousel::-webkit-scrollbar {
  display: none;
}

.video-card {
  min-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-card-body {
  padding: 1.25rem;
}

.video-card-body .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.video-card-body .title-company {
  font-size: 0.8rem;
  color: var(--gray);
}


/* --------------------------------------------------------------------------
   14. PRICING SECTION
   -------------------------------------------------------------------------- */

.pricing {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.pricing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 8px 40px var(--red-glow);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
}

.pricing-card .tier-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.pricing-card .price .currency {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
}

.pricing-card .price .period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray);
}

.pricing-card .price-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.pricing-card .feature-list {
  margin-bottom: 2rem;
}

.pricing-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--dark);
  padding: 0.4rem 0;
}

.pricing-card .feature-list li .check-icon {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  display: block;
  width: 100%;
  text-align: center;
}


/* --------------------------------------------------------------------------
   15. TEAM SECTION
   -------------------------------------------------------------------------- */

.team {
  padding: 5rem 1.5rem;
  background: var(--cream);
}

.team-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--duration) var(--ease);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card .photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-card .name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 0.15rem;
}


/* --------------------------------------------------------------------------
   16. FAQ SECTION
   -------------------------------------------------------------------------- */

.faq {
  padding: 5rem 1.5rem;
  background: var(--white);
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  list-style: none;
  transition: color var(--duration) var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--gray);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--duration) var(--ease);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  color: var(--red);
}

.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   17. CTA SECTIONS
   -------------------------------------------------------------------------- */

.cta-block {
  background: var(--dark);
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-block-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-block h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-block .btn-primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* Alt CTA — Red bg */
.cta-block.cta-red {
  background: var(--red);
}

.cta-block.cta-red h2 {
  color: var(--white);
}

.cta-block.cta-red p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-block.cta-red .btn-white {
  background: var(--white);
  color: var(--red);
}

.cta-block.cta-red .btn-white:hover {
  background: var(--cream);
}


/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */

.footer {
  background: var(--dark);
  padding: 4rem 1.5rem 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Partner badges */
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-badges img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.5);
  transition: all var(--duration) var(--ease);
}

.footer-badges img:hover {
  opacity: 1;
  filter: none;
}

/* Footer columns */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h6 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.footer-col p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.3rem 0;
  transition: color var(--duration) var(--ease);
}

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

.footer-brand .logo {
  height: 28px;
  margin-bottom: 1rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}


/* --------------------------------------------------------------------------
   19. MODALS
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--duration) var(--ease);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 2rem 2rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gray);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--cream);
  color: var(--dark);
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
}

/* Exit intent modal */
.exit-modal .modal-body {
  text-align: center;
}

.exit-modal h3 {
  margin-bottom: 0.5rem;
}

.exit-modal p {
  margin-bottom: 1.5rem;
}


/* --------------------------------------------------------------------------
   20. FORMS
   -------------------------------------------------------------------------- */

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b0b0b0;
}

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

/* Dark form variant */
.form-dark .form-input,
.form-dark .form-textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.form-dark .form-input::placeholder,
.form-dark .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-dark .form-input:focus,
.form-dark .form-textarea:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.08);
}

.form-dark label {
  color: rgba(255, 255, 255, 0.7);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row > * {
  flex: 1;
}

.form-submit {
  margin-top: 0.5rem;
}


/* --------------------------------------------------------------------------
   21. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-white:hover {
  background: var(--cream);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-outline:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2.25rem;
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
}

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--cream);
  color: var(--dark);
}

.badge-red {
  background: var(--red);
  color: var(--white);
}

.badge-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}


/* --------------------------------------------------------------------------
   22. ANIMATIONS
   -------------------------------------------------------------------------- */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.7; }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Count-up ready — elements with [data-count] start hidden then reveal */
[data-count] {
  transition: all 0.6s var(--ease);
}

/* Fade in animation class */
.animate-fade-in {
  animation: fadeIn 0.6s var(--ease) both;
}

.animate-slide-up {
  animation: slideUp 0.6s var(--ease) both;
}


/* --------------------------------------------------------------------------
   23. RESPONSIVE
   -------------------------------------------------------------------------- */

/* ---- 1200px ---- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

/* ---- 960px ---- */
@media (max-width: 960px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

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

  .proof-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .steps {
    flex-wrap: wrap;
    justify-content: center;
  }

  .step {
    flex: 0 0 calc(50% - 1rem);
  }

  .step-arrow {
    display: none;
  }

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

  .case-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 768px — Tablet ---- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Navigation: switch to hamburger */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Section spacing */
  .hero {
    padding: 5rem 1.25rem 3.5rem;
  }

  .page-hero {
    padding: 4rem 1.25rem 2.5rem;
  }

  .section,
  .pain-points,
  .how-it-works,
  .services,
  .case-studies,
  .quiz-section,
  .testimonials,
  .video-testimonials,
  .pricing,
  .team,
  .faq,
  .cta-block {
    padding: 3.5rem 1.25rem;
  }

  /* Grids to single column */
  .pain-grid,
  .services-grid,
  .pricing-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }

  /* Steps stack */
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: none;
    width: 100%;
    max-width: 360px;
  }

  /* Proof bar */
  .proof-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Trust bar */
  .trust-bar-inner {
    justify-content: flex-start;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-legal {
    justify-content: center;
  }

  .footer-badges {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  /* Modal */
  .modal {
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .modal-header,
  .modal-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Form rows stack */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .quiz-capture .form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Video cards */
  .video-card {
    min-width: 280px;
  }
}

/* ---- 480px — Small mobile ---- */
@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .hero .btn-primary {
    width: 100%;
    padding: 1rem;
  }

  .proof-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .proof-stat .number {
    font-size: 1.75rem;
  }

  .pain-card,
  .service-card,
  .pricing-card,
  .team-card {
    padding: 1.5rem;
  }

  .pricing-card .price {
    font-size: 2.25rem;
  }

  .case-metrics {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .case-metric {
    flex: 0 0 calc(50% - 0.5rem);
  }

  .urgency-badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  .btn-primary,
  .btn-white,
  .btn-outline {
    font-size: 0.85rem;
    padding: 0.7rem 1.5rem;
  }

  .btn-lg {
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
  }
}

/* ---- Sticky mobile CTA bar ---- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    gap: 0.75rem;
  }

  .mobile-cta-bar .btn-primary {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .mobile-cta-bar .btn-outline {
    flex-shrink: 0;
  }

  /* Add bottom padding to body so content isn't hidden behind sticky bar */
  body {
    padding-bottom: 72px;
  }
}

/* ---- Prefers reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Print ---- */
@media print {
  .nav,
  .mobile-cta-bar,
  .modal-overlay,
  .footer {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
