/* ── 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;
}

/* ── Utilities ── */
.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: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.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);
}

/* ── 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;
}

/* ── 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: 768px) {
  .nav-desktop { display: none; }
  .header-right { display: none; }
  .hamburger { display: block; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, #1a2744 0%, var(--primary-900) 100%);
  position: relative;
  overflow: hidden;
}

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

/* Floating bubble/glow effects */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(128,193,235,0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(0,150,225,0.1) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(255,255,255,0.05) 0%, transparent 30%),
    radial-gradient(circle at 70% 40%, rgba(128,193,235,0.08) 0%, transparent 25%);
  pointer-events: none;
}

/* Copy container — left side only, in normal flow */
.hero-inner {
  padding: 5rem 3rem 5rem max(1.5rem, calc(50vw - 36rem + 1.5rem));
  max-width: 55%;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  margin-top: 0.5rem;
}

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

.hero-cta {
  margin-top: 1.5rem;
}

/* Image — full section coverage, gradient handles the fade, no container edge seam */
.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Full-width fade: opaque hero bg colour on left → transparent at ~55% */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgb(26,39,68) 0%, rgb(26,39,68) 22%, rgba(26,39,68,0.8) 35%, rgba(26,39,68,0.3) 48%, transparent 60%),
    linear-gradient(to bottom, transparent 55%, rgba(35,50,79,0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transform: scale(1.06);
}

@keyframes hero-drift {
  0%   { transform: scale(1.06) translate( 0%,    0%  ); }
  33%  { transform: scale(1.08) translate(-0.6%,  0.4%); }
  66%  { transform: scale(1.07) translate( 0.4%, -0.5%); }
  100% { transform: scale(1.06) translate( 0%,    0%  ); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image img { animation: none; transform: scale(1.06); }
}

@media (max-width: 1024px) {
  .hero-inner {
    max-width: 100%;
    min-height: auto;
    padding: 3rem 1.5rem 2rem;
  }
  .hero-image {
    position: relative;
    width: 100%;
    height: 260px;
    bottom: auto;
  }
}

/* ── 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: 1.5rem 0 1.5rem;
  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: 1.5rem;
  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: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .trust-cards { grid-template-columns: repeat(3, 1fr); }
  .trust-card:last-child { grid-column: auto; max-width: none; margin-inline: 0; }
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px -4px rgba(35, 50, 79, 0.14), 0 2px 8px -2px rgba(35, 50, 79, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .trust-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .trust-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px -4px rgba(35, 50, 79, 0.2), 0 4px 12px -2px rgba(35, 50, 79, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card {
    transition: none;
  }
  .trust-card:hover {
    transform: none;
  }
}

.trust-card-number {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 4vw, 2.625rem);
  font-weight: 700;
  color: var(--brand-cta);
  line-height: 1;
}

.trust-card-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Problem Cards ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

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

.pain-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.pain-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.pain-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  stroke: currentColor;
}

.pain-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

.closing-line {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* ── Benefit Cards ── */
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}

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

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

.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem 1.25rem 1.375rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px -2px rgba(35,50,79,0.08), 0 1px 4px -1px rgba(35,50,79,0.04);
}

@media (hover: hover) and (pointer: fine) {
  .benefit-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(35,50,79,0.15), 0 2px 8px -2px rgba(35,50,79,0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card { transition: none; }
  .benefit-card:hover { transform: none; }
}

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

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

.benefit-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.benefit-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Benefit Icon Animations ── */

/* Card 1 — Eye blink */
.eye-lid {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink-eye 4s ease-in-out infinite;
}
@keyframes blink-eye {
  0%, 86%, 100% { transform: scaleY(1);    }
  92%           { transform: scaleY(0.08); }
}

/* Card 2 — Typing dots (coordination) */
.bubble-dot {
  fill: currentColor;
  stroke: none;
  animation: bubble-bounce 2s ease-in-out infinite;
}
.bubble-dot-1 { animation-delay: 0s;    }
.bubble-dot-2 { animation-delay: 0.25s; }
.bubble-dot-3 { animation-delay: 0.5s;  }
@keyframes bubble-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%           { transform: translateY(-2px); opacity: 1;    }
}

/* Card 3 — Paper scrunch (admin) */
.doc-scrunch {
  transform-box: fill-box;
  transform-origin: center;
  animation: paper-scrunch 6s ease-in-out infinite;
  animation-delay: 0.8s;
}
@keyframes paper-scrunch {
  0%, 70%, 100% { transform: scaleY(1)    scaleX(1);    }
  79%           { transform: scaleY(0.65) scaleX(1.22); }
  88%           { transform: scaleY(0.90) scaleX(1.07); }
  95%           { transform: scaleY(0.98) scaleX(1.01); }
}

/* Card 4 — Pulse trace (tracking) */
.pulse-line {
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: trace-pulse 4s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes trace-pulse {
  0%, 5%    { stroke-dashoffset: 46; opacity: 0.3; }
  55%, 75%  { stroke-dashoffset: 0;  opacity: 1;   }
  95%, 100% { stroke-dashoffset: 46; opacity: 0.3; }
}

/* Card 5 — Draw check (job allocation) */
.check-mark {
  stroke-dasharray: 19;
  stroke-dashoffset: 19;
  animation: draw-check 4.5s ease-in-out infinite;
  animation-delay: 2.5s;
}
@keyframes draw-check {
  0%, 15%   { stroke-dashoffset: 19; }
  55%, 80%  { stroke-dashoffset: 0;  }
  95%, 100% { stroke-dashoffset: 19; }
}

/* Card 6 — Audit doc lines fade + check draw */
.doc-line {
  opacity: 0;
  animation: doc-line-in 6s ease-in-out infinite;
}
.doc-line-1 { animation-delay: 2s;   }
.doc-line-2 { animation-delay: 2.5s; }
.audit-check {
  stroke-dasharray: 11;
  stroke-dashoffset: 11;
  animation: audit-draw 6s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes doc-line-in {
  0%, 12%, 88%, 100% { opacity: 0; }
  28%, 72%           { opacity: 1; }
}
@keyframes audit-draw {
  0%, 38%   { stroke-dashoffset: 11; }
  66%, 78%  { stroke-dashoffset: 0;  }
  92%, 100% { stroke-dashoffset: 11; }
}

/* Reduced motion — freeze all benefit animations in visible state */
@media (prefers-reduced-motion: reduce) {
  .eye-lid, .bubble-dot, .doc-scrunch,
  .pulse-line, .check-mark, .doc-line, .audit-check {
    animation: none;
  }
  .pulse-line, .check-mark, .audit-check { stroke-dashoffset: 0; }
  .bubble-dot { opacity: 1; }
  .doc-line   { opacity: 1; }
}

/* ── 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;
  --diag: 3.5rem;
  transition: flex-grow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@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.
   Two gradients composite into a bottom-heavy vignette with a left-side
   bias. Works across all three images with no per-panel special-casing.
   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(0,8,20,0.42) 0%, transparent 55%),
    /* bottom-to-top fade: strong base for text, open sky at top */
    linear-gradient(to top,   rgba(0,8,20,0.90) 0%, rgba(0,8,20,0.48) 38%,
                              rgba(0,8,20,0.18) 65%, transparent 100%);
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Diagonal clip-paths: panels 1 & 2 have right-side diagonal cuts */
.wbif-panel--1 {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--diag)) 100%, 0 100%);
  z-index: 3;
}

.wbif-panel--2 {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--diag)) 100%, 0 100%);
  margin-left: calc(-1 * var(--diag));
  z-index: 2;
}

.wbif-panel--3 {
  margin-left: calc(-1 * var(--diag));
  z-index: 1;
}

/* 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;
}

/* Panels 2 & 3: shift the whole box right of the diagonal edge.
   The box stays 360px wide — only its left anchor moves. */
.wbif-panel--2 .wbif-content,
.wbif-panel--3 .wbif-content {
  left: calc(2rem + var(--diag));
}

.wbif-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.6rem;
}

.wbif-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: #fff;
  /* 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);
  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: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.375rem;
  color: #fff;
  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;
}

.wbif-cta:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.72);
}

/* 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;
    clip-path: none !important;
    margin-left: 0 !important;
    transition: none;
  }

  /* 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;
  }

  /* Reset diagonal offset — no clip-path on mobile */
  .wbif-panel--2 .wbif-content,
  .wbif-panel--3 .wbif-content {
    left: 1.5rem;
  }

  .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;
  }
}


/* ── CTA / Form ── */
.cta-form-card {
  max-width: 40rem;
  margin: 0 auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 20px 50px -12px rgba(0,0,0,0.18);
}

@media (min-width: 768px) {
  .cta-form-card { padding: 3rem 3.5rem; }
}

.cta-form-card h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 0.25rem;
}

.cta-form-card .sub {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta-form-card .register-line {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  padding: 0.7rem 0.875rem;
  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;
}

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

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

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

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

/* ── 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-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(3, 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-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

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

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

@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;
  }
}

/* ── Story Cards (Problem section) ── */

.section-problem {
  background-color: #E3EAF5;
  position: relative;
  padding: 3.5rem 0;
  border-top: 1px solid #C8D3E8;
  border-bottom: 1px solid #C8D3E8;
}

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

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

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

/* ── Problem Split Layout ── */
.problem-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .problem-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.problem-bullets {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.problem-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.problem-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-cta);
}

/* ── Chaos Diagram ── */
.chaos-caption {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
}

.chaos-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chaos-chip-field {
  position: relative;
  width: 100%;
  height: 260px;
}

.chaos-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chaos-lines line {
  stroke: var(--primary-300);
  stroke-width: 1.75;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
}

.chaos-lines circle {
  fill: var(--primary-900);
}

.chaos-chip {
  position: absolute;
  padding: 0.375rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px rgba(35,50,79,0.14);
  z-index: 1;
}

.cc-1 { top:  4%; left:  3%; transform: rotate(-2deg);   }
.cc-2 { top:  2%; right: 3%; transform: rotate(2.5deg);  }
.cc-3 { top: 37%; left:  6%; transform: rotate(1deg);    }
.cc-4 { top: 33%; right: 5%; transform: rotate(-1.5deg); }
.cc-5 { top: 68%; left:  2%; transform: rotate(-0.8deg); }
.cc-6 { top: 63%; right: 1%; transform: rotate(1.5deg);  }

.chaos-job {
  margin-top: 0.875rem;
  padding: 0.75rem 2rem;
  background: var(--primary-900);
  border-radius: 0.5rem;
  box-shadow: 0 6px 24px -4px rgba(35,50,79,0.38), 0 2px 8px -1px rgba(35,50,79,0.18);
}

.chaos-job-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

@keyframes chaos-pulse {
  0%, 100% {
    box-shadow: 0 6px 24px -4px rgba(35,50,79,0.38),
                0 2px 8px -1px rgba(35,50,79,0.18),
                0 0 0 0px rgba(227,117,35,0);
  }
  50% {
    box-shadow: 0 10px 36px -4px rgba(35,50,79,0.48),
                0 4px 12px -1px rgba(35,50,79,0.22),
                0 0 0 7px rgba(227,117,35,0.14);
  }
}

@keyframes chaos-line-fade {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1;    }
}

@media (prefers-reduced-motion: no-preference) {
  .chaos-job {
    animation: chaos-pulse 3s ease-in-out infinite;
  }
  .chaos-lines line:nth-of-type(1) { animation: chaos-line-fade 3s ease-in-out infinite 0s;    }
  .chaos-lines line:nth-of-type(2) { animation: chaos-line-fade 3s ease-in-out infinite 0.5s;  }
  .chaos-lines line:nth-of-type(3) { animation: chaos-line-fade 3s ease-in-out infinite 1s;    }
  .chaos-lines line:nth-of-type(4) { animation: chaos-line-fade 3s ease-in-out infinite 1.5s;  }
  .chaos-lines line:nth-of-type(5) { animation: chaos-line-fade 3s ease-in-out infinite 2s;    }
  .chaos-lines line:nth-of-type(6) { animation: chaos-line-fade 3s ease-in-out infinite 2.5s;  }
}

/* ── See Blink in Action ── */
.preview-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .preview-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.preview-copy .section-sub {
  margin-bottom: 0;
}

.preview-bullets {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.preview-bullets li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.preview-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-cta);
}

.preview-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview-img {
  width: 100%;
  max-width: 720px;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(35,50,79,0.16)) drop-shadow(0 4px 10px rgba(35,50,79,0.09));
}

.preview-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

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

.testimonial-editorial {
  position: relative;
  display: flex;
  gap: 0;
  align-items: start;
  margin-top: 1.75rem;
  overflow: hidden;
}

.testimonial-editorial::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.testimonial-bg-quote {
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-size: 14rem;
  line-height: 1;
  color: var(--primary-500);
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.testimonial-primary,
.testimonial-secondary {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
}

.testimonial-primary {
  padding-right: 2.5rem;
}

.testimonial-primary-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.testimonial-secondary {
  padding-left: 2.5rem;
}

.testimonial-secondary-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.testimonial-attr {
  margin-top: 1.25rem;
}

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

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

@media (max-width: 768px) {
  .testimonial-editorial {
    flex-direction: column;
    overflow: visible;
  }
  .testimonial-editorial::after {
    display: none;
  }
  .testimonial-primary {
    padding-right: 0;
    padding-bottom: 2rem;
  }
  .testimonial-secondary {
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 2rem;
  }
  .testimonial-bg-quote {
    font-size: 8rem;
  }
}

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

