:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #e9eef7 100%);
  color: #102a43;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
}

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

.nav-links a {
  color: #334155;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0f172a;
}

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.menu-toggle:hover {
  transform: scale(1.05);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 0.23rem;
  border-radius: 999px;
  background: #0f172a;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

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

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

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

body.cursor-enabled {
  cursor: none;
}

body.cursor-enabled input,
body.cursor-enabled textarea,
body.cursor-enabled select,
body.cursor-enabled button,
body.cursor-enabled a {
  cursor: auto !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.08s ease, opacity 0.08s ease;
  z-index: 9999;
  opacity: 0;
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor .cursor-dot,
.custom-cursor .cursor-ring,
.custom-cursor .cursor-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.custom-cursor .cursor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.95);
  transform: scale(1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.custom-cursor .cursor-ring {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(15, 23, 42, 0.4);
  border-radius: 50%;
  transition: transform 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1.15);
}

.custom-cursor.active .cursor-ring {
  transform: scale(1.3);
  border-color: rgba(15, 23, 42, 0.6);
}

.custom-cursor.cursor-button .cursor-dot {
  background: #0f172a;
}

.custom-cursor.cursor-button .cursor-ring {
  border-color: rgba(15, 23, 42, 0.75);
}

.custom-cursor.cursor-play .cursor-ring {
  border-color: rgba(15, 23, 42, 0.85);
}

.custom-cursor.cursor-play .cursor-icon {
  opacity: 1;
}

.custom-cursor .cursor-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-cursor.cursor-play .cursor-icon {
  transform: scale(1);
}

.custom-cursor .cursor-icon::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid #0f172a;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.custom-cursor.cursor-arrow .cursor-icon::before {
  content: '';
  width: 10px;
  height: 10px;
  border-top: 2px solid #0f172a;
  border-right: 2px solid #0f172a;
  transform: rotate(45deg);
  border-radius: 0;
}

.cursor-target,
.cursor-target * {
  cursor: none;
}

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

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

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

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #0f172a;
  transform: translateX(2px);
}

.hero {
  padding: 6rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #0f73f2;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero h1,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(2.5rem, 3.5vw, 3.8rem);
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p,
.section-heading p,
.feature-card p,
.step-card p,
.testimonial-card p,
.contact-form label,
.site-footer p,
.hero-panel p,
.contact-copy p,
.trust-bar span {
  color: #475569;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.price-card-highlight .btn-primary {
  background: #60a5fa;
  color: #0f172a;
  border-color: transparent;
  box-shadow: 0 22px 45px rgba(96, 165, 250, 0.22);
}

.price-card-highlight .btn-primary:hover,
.price-card-highlight .btn-primary:focus-visible {
  background: #0f72f2;
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.16);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.08);
}

.btn-schedule {
  background: linear-gradient(135deg, #0f72f2 0%, #3b82f6 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.btn-schedule:hover,
.btn-schedule:focus-visible {
  background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  transform: translateY(-3px) scale(1.02);
}

.btn-secondary.play-trigger {
  position: relative;
  padding-left: 2.5rem;
}

.btn-secondary.play-trigger::before {
  content: '';
  position: absolute;
  left: 1rem;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #0f172a;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.video-modal.hidden {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.video-modal-content {
  position: relative;
  width: min(920px, calc(100% - 2rem));
  max-width: 920px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(15, 23, 42, 0.25);
  background: #ffffff;
  z-index: 1;
}

.video-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 1.35rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-modal-header {
  padding: 2.5rem 2rem 0;
  text-align: center;
}

.video-modal-header h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 2.4vw, 2.5rem);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.trust-bar span {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.partner-marquee {
  margin-top: 1.75rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.partner-marquee__track {
  display: flex;
  align-items: center;
  width: fit-content;
  animation: marquee-scroll 28s linear infinite;
  transition: transform 0.3s ease;
}

.partner-marquee:hover .partner-marquee__track {
  animation-play-state: paused;
}

.partner-marquee__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  min-width: 11rem;
  white-space: nowrap;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.partner-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.partner-logo__icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: block;
  transition: transform 0.24s ease;
}

.partner-logo:hover .partner-logo__icon {
  transform: scale(1.05);
}

.partner-logo__icon path,
.partner-logo__icon rect,
.partner-logo__icon circle {
  shape-rendering: geometricPrecision;
}

.partner-logo--symmetry .partner-logo__icon { color: #0f4c81; }
.partner-logo--ffl .partner-logo__icon { color: #e11d48; }
.partner-logo--naa .partner-logo__icon { color: #7c3aed; }
.partner-logo--us .partner-logo__icon { color: #0f4c81; }
.partner-logo--ail .partner-logo__icon { color: #d97706; }
.partner-logo--globe .partner-logo__icon { color: #1d4ed8; }
.partner-logo--ao .partner-logo__icon { color: #f97316; }
.partner-logo--statefarm .partner-logo__icon { color: #dc2626; }
.partner-logo--dfg .partner-logo__icon { color: #6d28d9; }
.partner-logo--tlc .partner-logo__icon { color: #f59e0b; }
.partner-logo--sm .partner-logo__icon { color: #14b8a6; }
.partner-logo--ia .partner-logo__icon { color: #0ea5e9; }
.partner-logo--more .partner-logo__icon { color: #475569; }

.partner-logo__name {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 720px) {
  .partner-marquee {
    padding: 0.85rem 1rem;
  }

  .partner-marquee__inner {
    gap: 0.75rem;
  }

  .partner-logo {
    padding: 0.7rem 0.85rem;
    min-width: 0;
  }

  .partner-logo__icon {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.72rem;
  }

  .partner-logo__name {
    display: none;
  }
}

.hero-visual {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.services-image {
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  min-height: 360px;
}

.services-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (max-width: 840px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.hero-image {
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  background: #f8fafc;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  min-height: 320px;
}

.hero-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.75rem;
  padding: 2.2rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
}

.hero-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.8rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.pricing-grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 2rem;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 28%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 32%),
              #f8fafc;
}

.pricing-visual {
  margin-top: 2rem;
}

.pricing-image {
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  min-height: 280px;
}

.pricing-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 840px) {
  .pricing-image {
    min-height: 220px;
  }
}

.affiliate-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 2rem;
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 32%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 32%),
              rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.affiliate-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.affiliate-cta-copy {
  flex: 1 1 320px;
  min-width: 260px;
}

.affiliate-cta-image {
  width: min(280px, 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.affiliate-cta-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.affiliate-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 840px) {
  .affiliate-cta {
    justify-content: flex-start;
  }

  .affiliate-cta-image {
    width: 100%;
  }
}

.affiliate-form-panel {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

.affiliate-benefits {
  margin-top: 2rem;
}

.affiliate-benefits h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
  text-align: center;
}

.benefits-table {
  display: grid;
  gap: 0.5rem;
  background: transparent;
}

.benefits-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
}

.benefits-row.header {
  background: #0f172a;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, 0.12);
}

.benefits-row:nth-child(odd):not(.header) {
  background: #f8fafc;
}

.benefits-row span {
  display: block;
}

@media (max-width: 720px) {
  .benefits-row {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .benefits-row.header {
    display: none;
  }

  .benefits-row span {
    padding: 0.35rem 0;
  }
}

.affiliate-form-copy h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.65rem, 2vw, 2rem);
}

.affiliate-form {
  margin: 0;
}

@media (max-width: 840px) {
  .affiliate-form-panel {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 1.25rem;
}

.price-card-highlight {
  background: linear-gradient(180deg, #0f172a 0%, #132144 100%);
  border: 2px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 30px 75px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.price-card-popular {
  position: relative;
  overflow: hidden;
}

.price-card-popular::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 120%;
  height: 140%;
  transform: translateX(-50%) translateY(-25%);
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.32), transparent 55%);
  pointer-events: none;
}

.price-card-popular::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.22);
  filter: blur(18px);
  pointer-events: none;
}

.price-card-popular .price-pill {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, #93c5fd, #0f72f2);
  box-shadow: 0 18px 45px rgba(96, 165, 250, 0.25);
}

.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #0f72f2);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.price-card-highlight .price-label,
.price-card-highlight p,
.price-card-highlight ul li,
.price-card-highlight strong {
  color: #ffffff;
}

 .price-card-highlight strong {
   color: #ffffff;
 }

 .price-card-highlight strong span {
   color: rgba(255, 255, 255, 0.82);
 }

 .price-card-highlight .price-label {
   background: rgba(255, 255, 255, 0.18);
   color: #ffffff;
 }

  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #0f73f2;
  background: rgba(15, 23, 42, 0.05);
  width: fit-content;
}

.price-card strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: #0f172a;
}

.price-card strong span {
  display: inline-block;
  font-size: 1rem;
  color: #64748b;
  margin-left: 0.35rem;
}

.price-card p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #475569;
}

.price-card li::before {
  content: '✓';
  flex-shrink: 0;
  color: #0f73f2;
  margin-top: 0.15rem;
}

.price-card-highlight li::before {
  color: #a5b4fc;
}

.price-card-highlight .price-label {
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
}

.price-card-highlight strong span,
.price-card-highlight p,
.price-card-highlight li {
  color: rgba(255, 255, 255, 0.9);
}

.price-card button,
.price-card .btn {
  width: fit-content;
}

.stat-card {
  padding: 1.2rem 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card.stat-card-highlight {
  background: linear-gradient(180deg, #0f172a 0%, #132144 100%);
  border-color: rgba(15, 23, 42, 0.24);
}

.stat-card.stat-card-highlight strong {
  color: #ffffff;
}

.stat-card.stat-card-highlight span {
  color: rgba(255, 255, 255, 0.82);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
}

.stat-card strong {
  display: block;
  font-size: 1.85rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.animated-counter {
  display: inline-block;
  animation: counter-pop 0.8s ease forwards;
}

@keyframes counter-pop {
  0% {
    transform: scale(0.85);
    opacity: 0.3;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.section-light,
.section-dark,
.contact-section {
  padding: 5rem 0;
}

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

#testimonials {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 6rem;
  margin-top: 3rem;
}

#testimonials .section-heading {
  margin-bottom: 2rem;
}

.testimonial-grid {
  gap: 2rem;
}

.testimonial-card {
  min-height: 260px;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.testimonial-card p {
  color: #334155;
}

.testimonial-card footer strong {
  color: #0f172a;
}

.testimonial-card footer span {
  color: #64748b;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  color: #334155;
}

.review-meta strong {
  color: #0f172a;
  font-size: 1rem;
}

.review-meta span {
  color: #64748b;
  font-size: 0.95rem;
}

.review-stars {
  display: inline-flex;
  gap: 0.2rem;
  align-items: center;
  color: #f59e0b;
}

.review-stars svg {
  width: 1.05rem;
  height: 1.05rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.review-stars svg:hover {
  transform: scale(1.08);
}

.featured-review-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2rem 2.25rem;
}

.featured-review-photo,
.testimonial-photo {
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.featured-review-photo img,
.testimonial-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-review-card p {
  font-size: 1.2rem;
  line-height: 1.95;
}

@media (max-width: 840px) {
  .featured-review-card {
    grid-template-columns: 1fr;
  }
}

.section-dark {
  background: #0f172a;
  color: #f8fafc;
}

.section-dark .section-heading p,
.section-dark .section-heading h2,
.section-dark .eyebrow {
  color: #f8fafc;
}

.section-dark .step-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  padding: 2.2rem 1.9rem;
}

.section-dark .step-card h3,
.section-dark .step-card p {
  color: #0f172a;
}

.section-dark .step-card .step-number {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.cards-grid,
.steps-grid,
.testimonial-grid,
.contact-grid {
  display: grid;
   gap: 1.75rem;
 }

 .steps-grid {
   grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
   align-items: start;
 }

.section-dark .container.steps-grid {
  max-width: 1080px;
  margin: 0 auto;
}


.section-heading.light h2 {
  margin-bottom: 1rem;
}

.section-heading.light .section-description {
  color: rgba(248, 250, 252, 0.88);
  font-size: 1.05rem;
  line-height: 1.95;
  max-width: 700px;
  margin: 0 auto;
}

.feature-card,
.step-card,
.testimonial-card {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.feature-card h3,
.step-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.step-card {
  position: relative;
  padding-left: 5rem;
}

.step-number {
  position: absolute;
  left: 1.4rem;
  top: 1.6rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: #0f172a;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-photo {
  width: 100%;
  min-height: 160px;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.testimonial-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.testimonial-premium {
  border-color: rgba(15, 23, 42, 0.12);
}

.testimonial-card footer {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.75rem;
}

.contact-section {
  background: #f8fafc;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
}

.contact-form label {
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.contact-copy {
  max-width: 520px;
}

.crm-section {
  background: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.crm-highlight-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.crm-highlight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.2rem;
  border-radius: 1.5rem;
  background: #f7faff;
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.crm-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  border-color: rgba(96, 165, 250, 0.28);
  background: #eef4ff;
}

.crm-highlight-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1f2e50 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.crm-highlight-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.crm-highlight-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.crm-highlight-card p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.crm-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.crm-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.crm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.crm-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.crm-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.crm-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1rem;
}

.crm-feature-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.crm-feature-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.crm-feature-card p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.crm-comparison {
  margin-top: 2rem;
}

.crm-comparison h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
}

.crm-comparison-table {
  display: grid;
  width: 100%;
  max-width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.comparison-row.header {
  background: #0f172a;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.comparison-row.header span {
  font-weight: 700;
}

.comparison-row:nth-child(odd):not(.header) {
  background: #f8fafc;
}

.comparison-row span {
  display: block;
  font-size: 0.92rem;
  color: inherit;
}

@media (max-width: 960px) {
  .crm-comparison-table {
    border-radius: 1.25rem;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    padding: 0.9rem 1rem;
  }

  .comparison-row.header {
    display: none;
  }

  .comparison-row span {
    padding: 0.35rem 0;
  }
}

.crm-mobile-cta {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.crm-mobile-cta p {
  margin: 0 0 0.8rem;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-full-width {
  width: 100%;
  justify-content: center;
}

@media (max-width: 840px) {
  .crm-mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
    background: #ffffff;
  }

  .crm-mobile-cta p {
    display: none;
  }

  .crm-mobile-cta .btn-full-width {
    width: 100%;
  }
}

.crm-panel {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.crm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.crm-panel-header h3 {
  margin: 0.25rem 0 0;
}

.status-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  color: #dbeafe;
}

.crm-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.crm-feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.crm-feature-list strong {
  font-size: 1.4rem;
}

.crm-widget {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-widget div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.crm-widget p {
  margin: 0 0 0.5rem;
  color: #cbd5e1;
}

.crm-widget strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.crm-login-card,
.crm-panel-content,
.crm-success-card,
.training-login-card,
.training-panel-content,
.training-success-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden {
  display: none !important;
}

.crm-login-form,
.training-login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.crm-login-form label,
.training-login-form label {
  display: grid;
  gap: 0.5rem;
  color: #f8fafc;
  font-weight: 600;
}

.crm-login-form input,
.training-login-form input,
.leads-login-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

.crm-login-form input::placeholder,
.training-login-form input::placeholder,
.leads-login-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.crm-note,
.training-note,
.leads-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.leads-section {
  background: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.leads-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.leads-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.leads-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.leads-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.leads-panel {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.leads-login-card,
.leads-panel-content,
.leads-success-card {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.leads-login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.leads-login-form label {
  display: grid;
  gap: 0.5rem;
  color: #f8fafc;
  font-weight: 600;
}

.demo-hint {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.demo-hint summary {
  cursor: pointer;
  list-style: none;
}

.demo-hint summary::-webkit-details-marker {
  display: none;
}

.demo-hint summary::before {
  content: '➤ ';
  color: rgba(255, 255, 255, 0.7);
}

.demo-hint p {
  margin: 0.75rem 0 0;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.95rem;
  color: #f8fafc;
}

.leads-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.leads-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.leads-feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.leads-widget {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leads-widget div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.leads-widget p {
  margin: 0 0 0.5rem;
  color: #cbd5e1;
}

.leads-widget strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.crm-success-card,
.training-success-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.training-section {
  background: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.training-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.training-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.training-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.training-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.training-panel {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.training-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.training-panel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.training-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.training-feature-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.training-widget {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-widget div {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
}

.training-widget p {
  margin: 0 0 0.5rem;
  color: #cbd5e1;
}

.training-widget strong {
  display: block;
  color: #ffffff;
  font-size: 1.35rem;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 960px) {
  .training-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .crm-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #475569;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero {
    padding-top: 4rem;
  }

  .header-row {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

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

  .hero h1,
  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

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

.step-card {
  position: relative;
  padding: 2.5rem 2rem 2rem 4.25rem;
  min-height: 280px;
}

.section-dark .step-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.step-number {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  min-height: 220px;
}

.reviews-section {
  padding-top: 2rem;
}

.reviews-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card,
.featured-review-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.featured-review-card {
  max-width: 840px;
  margin: 0 auto 2rem;
  border-color: rgba(15, 23, 42, 0.15);
}

.featured-review-card p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #102a43;
}

.review-card p {
  margin: 0 0 1.5rem;
  color: #334155;
  line-height: 1.75;
}

.review-meta {
  display: grid;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.95rem;
}

.review-meta span,
.review-meta strong {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.3;
}

.review-meta .review-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.review-meta .review-stars svg {
  width: 1rem;
  height: 1rem;
  color: #f59e0b;
}

.review-meta strong {
  color: #0f172a;
}

.review-meta.featured {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.review-meta.featured span {
  font-size: 1rem;
}

.review-meta.featured strong {
  font-size: 1rem;
}

.testimonial-card footer {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
}

.contact-section {
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 2rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.consent-field {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: #334155;
  font-size: 0.95rem;
}

.consent-field input {
  margin-top: 0.2rem;
  width: auto;
  min-width: auto;
}

.consent-field a {
  color: #0f172a;
  text-decoration: underline;
}

.policy-section {
  padding: 5rem 0;
}

.policy-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.policy-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 1.75rem;
}

.policy-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.policy-card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.75;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #475569;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .hero-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .section-dark .step-card {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-dark .step-card .step-number {
    left: 1rem;
    top: 1rem;
  }

  .section-heading.light {
    margin-bottom: 2rem;
  }

  .section-heading.light .section-description {
    font-size: 1rem;
    line-height: 1.9;
  }

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

@media (max-width: 720px) {
  .header-row {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

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

  .hero h1,
  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(2.25rem, 7vw, 3rem);
  }

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

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

@media (max-width: 760px) {

  /* --- Section spacing --- */
  .section-light,
  .section-dark,
  .contact-section,
  .crm-section,
  .leads-section,
  .training-section,
  .policy-section {
    padding: 3rem 0;
  }

  /* --- Hero --- */
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

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

  .hero-visual {
    display: none; /* hide right-side panel on mobile to reduce clutter */
  }

  .hero h1,
  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    letter-spacing: -0.03em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .trust-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* --- Cards grids: force single column --- */
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* --- Pricing cards --- */
  .price-card-highlight {
    transform: none;
  }

  .price-card-popular .price-pill {
    position: static;
    display: inline-flex;
    margin-bottom: 0.75rem;
  }

  /* --- Affiliate section --- */
  .affiliate-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .affiliate-form-panel {
    grid-template-columns: 1fr;
  }

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

  .affiliate-cta-image {
    width: 100%;
  }

  /* --- CRM, Leads, Training grids --- */
  .crm-grid,
  .leads-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .crm-feature-grid {
    grid-template-columns: 1fr;
  }

  .crm-highlight-bar {
    grid-template-columns: 1fr;
  }

  .crm-widget,
  .leads-widget,
  .training-widget {
    grid-template-columns: 1fr;
  }

  /* --- Contact section --- */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* --- Featured review card --- */
  .featured-review-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  /* --- Step cards --- */
  .step-card {
    padding: 1.75rem 1.25rem 1.75rem 3.75rem;
    min-height: auto;
  }

  .step-number {
    left: 1rem;
    top: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.85rem;
  }

  .section-dark .step-card .step-number {
    left: 1rem;
    top: 1.5rem;
  }

  /* --- Policy grid --- */
  .policy-grid {
    grid-template-columns: 1fr;
  }

  /* --- Section headings --- */
  .section-heading {
    margin-bottom: 1.75rem;
  }

  /* --- Buttons full width on mobile --- */
  .affiliate-cta .btn,
  .crm-comparison .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- CRM comparison table: card style on mobile --- */
  .comparison-row {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
  }

  .comparison-row.header {
    display: none;
  }

  .crm-comparison-table {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* --- Benefits table: card style on mobile --- */
  .benefits-row {
    grid-template-columns: 1fr;
    border-radius: 0.75rem;
    margin-bottom: 0.25rem;
  }

  /* --- Hero panel inside hero visual --- */
  .hero-panel {
    padding: 1.5rem;
  }

  /* --- Footer --- */
  .footer-row {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* --- Nav link font size on open menu --- */
  .nav-links.open {
    padding-bottom: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  /* --- Ensure containers have breathing room --- */
  .container {
    width: calc(100% - 2rem);
  }

  /* --- Eyebrow text --- */
  .eyebrow {
    font-size: 0.7rem;
  }
}

/* Tablet: 761–960px — two-column grids are fine but fix specific issues */
@media (min-width: 761px) and (max-width: 960px) {
  .hero h1,
  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .crm-grid,
  .leads-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-form-panel {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .section-light,
  .section-dark,
  .contact-section,
  .crm-section,
  .leads-section,
  .training-section {
    padding: 3.5rem 0;
  }
}

/* ============================================
   MOBILE CENTERING FIXES
   ============================================ */

@media (max-width: 760px) {

  /* Center all section text */
  .section-heading,
  .section-heading p,
  .section-heading h2,
  .eyebrow,
  .contact-copy,
  .contact-copy p,
  .contact-copy h2,
  .hero-copy p,
  .affiliate-cta-copy,
  .affiliate-cta-copy p,
  .affiliate-form-copy,
  .affiliate-form-copy p,
  .affiliate-form-copy h3 {
    text-align: center;
  }

  /* Center hero text */
  .hero-copy {
    text-align: center;
    max-width: 100%;
  }

  /* Center hero action buttons */
  .hero-actions {
    align-items: center;
  }

  /* Center trust bar chips */
  .trust-bar {
    justify-content: center;
    align-items: center;
  }

  /* Center stat cards */
  .stat-card {
    text-align: center;
  }

  /* Center feature cards */
  .feature-card,
  .step-card,
  .price-card,
  .crm-card,
  .leads-card,
  .training-card,
  .review-card,
  .policy-card {
    text-align: left; /* keep card body left-aligned for readability */
  }

  /* Center section eyebrows and headings inside cards-grid sections */
  .cards-grid .feature-card h3 {
    text-align: left;
  }

  /* Center pricing section */
  .pricing-grid {
    justify-items: center;
  }

  .price-card {
    width: 100%;
  }

  /* Center chip groups */
  .crm-chip-group,
  .leads-chip-group,
  .training-chip-group {
    justify-content: center;
  }

  /* Center affiliate benefits heading */
  .affiliate-benefits h3 {
    text-align: center;
  }

  /* Center footer */
  .footer-row {
    align-items: center;
  }

  /* Center CRM and leads panel headers */
  .crm-panel-header,
  .leads-panel-header,
  .training-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Center step numbers layout */
  .step-card h3,
  .step-card p {
    text-align: left;
  }

  /* Center contact copy */
  .contact-copy {
    max-width: 100%;
  }

  /* Ensure affiliate CTA centers */
  .affiliate-cta {
    align-items: center;
    text-align: center;
  }

  /* Center section-dark heading */
  .section-heading.light {
    text-align: center;
  }

  /* Center buttons in sections */
  .section-heading + .btn,
  .affiliate-benefits + .btn {
    display: block;
    margin: 0 auto;
  }

  /* Make sure grids are centered */
  .cards-grid,
  .steps-grid,
  .testimonial-grid,
  .reviews-grid,
  .pricing-grid,
  .affiliate-grid,
  .policy-grid {
    justify-items: stretch;
    margin-left: auto;
    margin-right: auto;
  }
}
