/* ── Variables ── */
:root {
  /* Primary Blue */
  --primary-100: #C4CDDB;
  --primary-300: #7A8EA9;
  --primary-500: #405E8A;   /* MAIN */
  --primary-700: #314C75;
  --primary-900: #23324F;

  /* Secondary Blue */
  --secondary-50:  #E0F0F9;
  --secondary-200: #80C1EB;
  --secondary-400: #0096E1; /* MAIN */
  --secondary-600: #0079D0;
  --secondary-800: #0058AD;

  /* Warning / Orange */
  --warning-200: #FAEC9B;
  --warning-400: #F6E059;
  --warning-600: #F2CA3B;   /* MAIN */
  --warning-800: #EA9C2E;
  --warning-900: #E37523;
  /* Legacy tertiary aliases — kept for backward compat */
  --tertiary-400: #F6E059;
  --tertiary-600: #F2CA3B;
  --tertiary-800: #EA9C2E;
  --tertiary-900: #E37523;

  /* Purple */
  --purple-100: #E2BBD7;
  --purple-300: #BA63A3;
  --purple-500: #9A2380;    /* MAIN */
  --purple-700: #7E1874;
  --purple-900: #550C5C;

  /* Success */
  --success-100: #E2F1C4;
  --success-300: #BBDE76;
  --success-500: #9ACF30;   /* MAIN */
  --success-700: #73AA1C;
  --success-900: #357500;

  /* Error */
  --error-50:  #FEECEF;
  --error-200: #ED9C9E;
  --error-400: #ED5958;     /* MAIN */
  --error-600: #E3413E;

  /* Surface */
  --bg:      #F5F7FA;
  --card:    #FFFFFF;
  --bg-soft: var(--secondary-50);

  /* Semantic aliases */
  --text:            var(--primary-900);  /* #23324F — unchanged */
  --text-muted:      var(--primary-700);  /* #314C75 */
  --border:          var(--primary-100);  /* #C4CDDB */
  --brand-primary:   var(--primary-500);
  --brand-accent:    var(--secondary-400);
  --brand-warning:   var(--warning-600);
  --brand-success:   var(--success-500);
  --brand-error:     var(--error-400);
  --brand-cta:       var(--warning-900);  /* unchanged — already warning family */
  --brand-cta-hover: var(--warning-800);  /* unchanged */

  --radius: 0.375rem;
}

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

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

body {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  height: 70px;
  padding-inline: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

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

.nav-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-cta-desktop {
  height: 38.5px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text);
}

/* Login — an outlined button rather than a plain nav-link, sitting
   immediately before the primary CTA (the conventional slot for
   login in a marketing header) so it reads as an action, not just
   another nav item. */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  height: 38.5px;
  padding: 0 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.nav-login-btn:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

/* ── Product dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown-chevron {
  transition: transform 0.15s;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  list-style: none;
  min-width: 140px;
  padding: 0.375rem 0;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.75rem;
}

.nav-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-item:hover {
  color: var(--text);
  background: var(--bg);
}

/* ── Mobile nav product group ── */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-group-label {
  font-weight: 700;
  color: var(--text);
}

.mobile-nav-sub {
  padding-left: 1rem;
  font-size: 0.875rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-cta {
  background: var(--brand-cta);
  color: #fff;
}

.btn-cta:hover {
  background: var(--brand-cta-hover);
}

.btn-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* ── Hamburger / Mobile Nav ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

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

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-right { display: none; }
  .hamburger { display: block; }
}

/* ── Hero (split: navy statement / white proof panel) ──
   Deliberately NOT the same 50/50, card-heavy shape as the
   feature-split sections below it — taller, more asymmetric,
   and the right side carries one big elevated visual rather
   than a mini feature list, so it reads as an opening, not
   another section. */
.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
  min-height: min(78vh, 680px);
}

/* Left — the statement */
.hero-statement {
  position: relative;
  background: linear-gradient(155deg, var(--primary-700) 0%, var(--primary-900) 62%);
  padding: 4rem 3.5rem 4rem max(1.5rem, calc(50vw - 36rem + 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('background light.svg') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.hero-statement > * {
  position: relative;
  z-index: 1;
}

/* Solid brand-orange badge — the same colour as the CTA buttons, so
   it reads as a confident, high-contrast announcement against the
   navy hero rather than another subtle kicker label. */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--warning-900);
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}

/* Audience label: an editorial kicker rather than a status pill —
   a chip/dot reads as "live now", which doesn't fit a static
   "for X" category label. A rule + wider tracking feels calmer
   and more premium than a badge here. */
.hero-chip--audience {
  background: none;
  padding: 0;
  gap: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--secondary-200);
}

.hero-chip--audience .hero-chip-dot {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--secondary-400);
}

.hero h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 3.375rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  margin-top: 1.5rem;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 32rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-trust {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}

/* Right — the proof panel: one big elevated visual, nothing else competing with it */
.hero-proof {
  position: relative;
  background: linear-gradient(165deg, #EFF3F8 0%, var(--bg) 100%);
  padding: 3rem 2.75rem 3rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-proof-head h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 0.375rem;
}

.hero-proof-visual {
  margin-left: -2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -12px rgba(35,50,79,0.32), 0 8px 20px rgba(35,50,79,0.12);
  line-height: 0;
}

.hero-proof-visual svg { display: block; width: 100%; height: auto; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-statement {
    padding: 3rem 1.5rem 2.5rem;
  }
  .hero-proof {
    padding: 2.75rem 1.5rem;
  }
  .hero-proof-visual { margin-left: 0; }
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

.section-bg-card {
  background: var(--card);
}

.section-bg-default {
  background: var(--bg);
}

.section-bg-primary {
  background: var(--primary-500);
}

@media (min-width: 1024px) {
  .section { padding: 6rem 0; }
}

/* ── Pattern Wrap ── */
/* Single shared background so the SVG pattern is continuous across trust band + problem */
.pattern-wrap {
  background: url('background light.svg') center/cover no-repeat;
  background-color: #EEEEEE;
}

.pattern-wrap .section-bg-pattern {
  background: transparent;
}

/* Alternating B-pattern background for select sections */
.section-bg-pattern {
  position: relative;
  background: url('background light.svg') center/cover no-repeat;
  background-color: #EEEEEE;
}

.section-bg-pattern > * {
  position: relative;
  z-index: 1;
}

/* Dark variant: B pattern overlay on dark (primary) sections */
.section-bg-primary.section-bg-pattern {
  background: var(--primary-500);
  background-color: var(--primary-500);
}

.section-bg-primary.section-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('background light.svg') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

.section-sub {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── Scroll Truck ── */
#scroll-truck {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  #scroll-truck { display: none; }
}

/* ── Trust Band ── */
.trust-band {
  position: relative;
  z-index: 2;
  padding: 4rem 0;
  background: transparent;
  text-align: center;
}

.trust-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.trust-heading::before,
.trust-heading::after {
  content: '';
  flex: 1;
  max-width: 4rem;
  height: 1px;
  background: var(--border);
}

.trust-cards {
  display: flex;
  justify-content: center;
  gap: 0;
}

.trust-card {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 0 2.5rem;
  border-right: 1px solid var(--border);
}

.trust-card:first-child {
  padding-left: 0;
}

.trust-card:last-child {
  padding-right: 0;
  border-right: none;
}

.trust-card-number {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1;
  letter-spacing: -0.02em;
}

.trust-card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 12ch;
}

@media (max-width: 640px) {
  .trust-cards {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  .trust-card {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
  }
  .trust-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ── Who Blink Is For — Diagonal Panels ── */
.wbif-section {
  overflow: hidden;
}

.wbif-panels {
  display: flex;
  height: 580px;
  overflow: hidden;
}

.wbif-panel {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: flex-grow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wbif-panel + .wbif-panel {
  border-left: 1px solid rgba(255,255,255,0.12);
}

@media (prefers-reduced-motion: reduce) {
  .wbif-panel { transition: none; }
}

/* Background layer — set background-image here to swap photos */
.wbif-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .wbif-bg { transition: none; transform: scale(1) !important; }
}

/* Panel images — all from /assets, cropped to 2400×1350 */
.wbif-panel--1 .wbif-bg {
  background-image: url('assets/carriers_panel_16x9.jpg');
}

.wbif-panel--2 .wbif-bg {
  background-image: url('assets/shippers_2400x1350.jpg');
}

.wbif-panel--3 .wbif-bg {
  background-image: url('assets/drivers_2400x1350.jpg');
}

/* Full-panel overlay — sole source of darkening for every panel.
   Navy-tinted (var(--primary-900)) rather than flat black, so the
   photos read as part of the same brand system as the hero.
   z-index:1 sits above .wbif-bg (z:0) and below .wbif-content (z:2). */
.wbif-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background:
    /* left-edge bias: darkens the text-side of every panel */
    linear-gradient(to right, rgba(35,50,79,0.58) 0%, transparent 55%),
    /* bottom-to-top fade: strong base for text, open sky at top */
    linear-gradient(to top,   rgba(35,50,79,0.92) 0%, rgba(35,50,79,0.55) 38%,
                              rgba(35,50,79,0.22) 65%, transparent 100%);
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .wbif-overlay { transition: none; }
}

/* Hover / keyboard focus: hovered panel expands, others shrink.
   :focus-within keeps panel expanded when the CTA link inside has focus. */
.wbif-panels:has(.wbif-panel:is(:hover, :focus-within)) .wbif-panel:not(:hover):not(:focus-within) {
  flex-grow: 0.55;
}

.wbif-panel:is(:hover, :focus-within) {
  flex-grow: 1.9;
}

/* Lighten overlay on hover so the image opens up as the panel expands */
.wbif-panel:is(:hover, :focus-within) .wbif-overlay {
  opacity: 0.55;
}

/* Identical zoom on hover/focus for all three panels — no per-panel overrides */
.wbif-panel:is(:hover, :focus-within) .wbif-bg {
  transform: scale(1.06);
}

.wbif-panel:is(:hover, :focus-within) .wbif-body {
  opacity: 1;
  transform: translateY(0);
}

/* Panel content — bottom-anchored, fixed 360px width.
   The box never resizes as flex-grow changes, so text layout is always
   identical regardless of which panel is hovered. */
.wbif-content {
  position: absolute;
  left: 2rem;
  bottom: 3rem;
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #fff;
  z-index: 2;
}

/* Panel 1: lift content off the busiest part of the truck image */
.wbif-panel--1 .wbif-content {
  bottom: 4rem;
}

.wbif-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-600);
  border: 1px solid var(--secondary-600);
  padding: 0.375rem 0.8rem 0.375rem 0.5rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.wbif-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex: none;
}

.wbif-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  /* Reserve a consistent 2-line slot so body top-edge aligns across panels */
  min-height: calc(1.375rem * 1.25 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Body fades in on hover; always visible on mobile.
   Clamped to 3 lines with a min-height reserve so the CTA baseline
   is always in the same spot regardless of how the copy wraps. */
.wbif-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(0.875rem * 1.65 * 3); /* ≈ 4.33rem — 3 lines reserved */
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 280ms ease, transform 280ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .wbif-body { transition: none; opacity: 1; transform: none; }
  .wbif-cta  { transition: none; }
}

.wbif-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  backdrop-filter: blur(4px);
  /* Hidden by default; revealed when panel is hovered / focused */
  opacity: 0;
  transform: translateY(0.35rem);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms ease,
              background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.wbif-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Reveal CTA only on the active panel */
.wbif-panel:is(:hover, :focus-within) .wbif-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile / tablet — stack vertically, no hover effects */
@media (max-width: 767px) {
  .wbif-panels {
    flex-direction: column;
    height: auto;
  }

  .wbif-panel {
    height: 300px;
    flex: none;
    transition: none;
  }

  .wbif-panel + .wbif-panel {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  /* Responsive content box on mobile — override fixed 360px */
  .wbif-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 2rem;
    width: auto;
  }

  /* Reset panel-1 bottom offset to match mobile base */
  .wbif-panel--1 .wbif-content {
    bottom: 2rem;
  }

  .wbif-body {
    opacity: 1;
    transform: none;
    min-height: 0; /* don't force min-height on mobile */
    -webkit-line-clamp: unset;
  }

  /* CTA always visible on mobile */
  .wbif-cta {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .wbif-panels:has(.wbif-panel:is(:hover, :focus-within)) .wbif-panel:not(:hover):not(:focus-within) {
    flex-grow: 1;
  }
}

/* ── Form Error State ── */
.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #C43131;
  background: #FEECEF;
  border: 1px solid #ED9C9E;
  border-radius: var(--radius);
  text-align: center;
}

/* ── Success State ── */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  text-align: center;
}

.success-state.visible {
  display: flex;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(64,94,138,0.1);
}

.success-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--brand-primary);
}

.success-state h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.success-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  background: var(--primary-900);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo-img {
  height: 1.25rem;
  width: auto;
}

.footer-registered {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-style: normal;
}

.footer-address {
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: rgba(255,255,255,0.5);
}

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

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.footer-bottom-divider {
  color: rgba(255,255,255,0.2);
}

.footer-col-socials li {
  margin-bottom: 0.5rem;
}

.footer-col-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col-socials svg {
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-col-socials a:hover svg {
  color: #fff;
}

.footer-badge {
  margin-top: 1.5rem;
}

.footer-badge img {
  display: block;
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ── Request a Demo ── */
.section-request-demo {
  background-color: #E3EAF5;
  position: relative;
  border-top: 1px solid #C8D3E8;
}

.section-request-demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('background light.svg') center/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.section-request-demo > * {
  position: relative;
  z-index: 1;
}

.request-demo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.request-demo-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.request-demo-btn {
  font-size: 1.125rem;
  padding: 0.875rem 2.25rem;
}

.request-demo-trust {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Demo Booking (Calendly + fallback form) ── */
.demo-booking {
  width: 100%;
}

.demo-view-form {
  max-width: 22rem;
  margin: 0 auto;
  text-align: left;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

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

.demo-form-input {
  flex: 1;
  min-width: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.demo-form-input::placeholder {
  color: var(--primary-300);
}

.demo-form-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(64,94,138,0.15);
}

.demo-form-submit-btn {
  align-self: center;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
}

.demo-view-form .success-state {
  padding: 0.75rem 0;
  gap: 0.5rem;
}

.demo-view-form .success-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.demo-view-form .success-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.demo-view-form .success-state p {
  font-size: 0.8125rem;
}

.demo-fallback-prompt {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.demo-form-privacy-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

.demo-form-privacy-note a {
  color: var(--brand-primary);
}

.demo-fallback-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: underline;
  cursor: pointer;
}

.demo-fallback-link:hover {
  color: var(--primary-700);
}

.demo-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.demo-cta-divider {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.demo-fallback-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.demo-fallback-btn:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

/* ── What Blink Does ── */
.demo-video-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.demo-video {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(35,50,79,0.18), 0 4px 12px rgba(35,50,79,0.10);
  display: block;
}

@media (max-width: 768px) {
  .demo-video {
    max-width: 100%;
  }
}

/* ── Testimonials ── */
.testimonial-band {
  background: transparent;
  padding-top: 2rem;
}

.testimonial-editorial {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

.testimonial-bg-quote { display: none; }

.testimonial-primary,
.testimonial-secondary {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.25rem 2rem 2rem;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(35,50,79,0.07);
}

.testimonial-primary::before,
.testimonial-secondary::before {
  content: '\201C';
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: 7rem;
  line-height: 1;
  color: var(--primary-500);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  clip-path: inset(0);
}

.testimonial-primary-body,
.testimonial-secondary-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.testimonial-attr {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .testimonial-editorial {
    flex-direction: column;
  }
}

/* ── Icon Arrow (buttons) ── */
.icon-arrow {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

