/* ============================================================
   workflow-automation.css â€” Mastery Logistics Systems
   Workflow Automation page-specific styles.
   Global styles live in style.css.
   Desktop styles first. Mobile overrides at the bottom.

   COMPONENT REUSE:
   - .image-placeholder â€” same component used on other capability
     pages. Modifier --hero for the hero image zone.
   - .banner â€” slim warm-background band (introduced on Visibility
     & Tracking page). If we like this format we should refactor it
     into a shared component and replace the dark .bridge sections
     on Fleet, Driver, and Carrier pages.
   - .feature / .feature--reverse â€” same alternating two-column
     feature block used on other capability pages.
   - .cta-banner â€” standard closing CTA.

   NEW COMPONENTS INTRODUCED HERE:
   - .lanes â€” light warm 3-card foundation block.
   - .lane-card â€” overview card with mini visual (Rate, Pattern,
     Routing Guide).
   - .routing-guides â€” white 3-card deep-dive block with 3 strategy
     visualizations.
   - .rg-card â€” strategy card with custom visual.
   - .waterfall, .low-cost, .blast â€” three routing strategy visuals.
   - .molo â€” standalone customer stat block, horizontal stat focus.
   - .back-office â€” light warm 2-card block for Auto Voucher / Auto
     Invoice.
   - .bo-card â€” back office card with icon + heading + copy.
   - .patterns / .patterns__flow â€” single-column block with horizontal
     transformation diagram (Tendered â†’ Pattern â†’ Routed).
   - .leg â€” small circle stop for the multi-leg routing.
   - .feature__image â€” settlement visual showing AUTO-applied line
     items; a self-framed SVG, so the CSS only sizes and shadows it.

   PAGE STRUCTURE:
   1. Hero (dark, two-column with AI image right)
   2. Slim banner (light warm)
   3. Lanes 3-card foundation (light warm)
   4. Routing Guides 3-card deep dive (white)
   5. MoLo stat block (light warm)
   6. Back Office 2-card block (light warm)
   7. Patterns side-by-side transformation (white)
   8. Accessorial Automation feature (white)
   9. CTA banner (dark)
============================================================ */


/* ============================================================
   SHARED â€” IMAGE PLACEHOLDER COMPONENT
   Branded copper-on-dark frame for any unbuilt image zone.
============================================================ */
.image-placeholder {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, rgba(252, 147, 101, 0.16) 0%, transparent 62%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 147, 101, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 147, 101, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.image-placeholder__label {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(252, 147, 101, 0.9);
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 1rem;
}

.image-placeholder__note {
  position: relative;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder--hero {
  aspect-ratio: 16 / 11;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   SECTION 1 â€” HERO
   Dark. Two-column matching Fleet / Driver pattern: content left,
   AI image right.
============================================================ */
.wa-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.wa-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(178, 93, 66, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.wa-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.wa-hero__content {
  max-width: 480px;
}

.wa-hero .eyebrow {
  color: var(--color-copper-light);
}

.wa-hero__headline {
  font-size: var(--font-size-h1);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.wa-hero__sub {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 460px;
}

.wa-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.wa-hero__media {
  position: relative;
  width: 100%;
}

/* The hero visual has a transparent background and carries its own
   copper glow on each component, so no frame, shadow or glow here —
   a filter at this level would halo every shape in the graphic,
   pending steps included. */
.wa-hero__image {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   SECTION 2 â€” SLIM BANNER
   Light warm. Same component as Visibility & Tracking page.
============================================================ */
.banner {
  background: #faf6f3;
  padding: 1.75rem 0;
  border-top: 0.5px solid rgba(178, 93, 66, 0.12);
  border-bottom: 0.5px solid rgba(178, 93, 66, 0.12);
  text-align: center;
}

.banner__text {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

.banner__highlight {
  color: var(--color-copper);
}


/* ============================================================
   SECTION 3 â€” LANES (3-card foundation block)
   Light warm. Three cards showing what lives on a lane and auto-
   applies when a load matches.
============================================================ */
.lanes {
  background: var(--color-white);
}

.lanes__head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.lanes__head .eyebrow {
  color: var(--color-copper-dark);
}

.lanes__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
}

.lanes__head .text-lead {
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

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


/* ----- LANE CARD (shell) ----- */
.lane-card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lane-card__visual {
  aspect-ratio: 16 / 10;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lane-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
}

.lane-card__body h4 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.lane-card__body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ----- Lane card visual 1: RATE ----- */
.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}

.rate__lane {
  font-size: 0.6875rem;
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
}

.rate__val {
  font-size: 1.75rem;
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  letter-spacing: -0.02em;
  line-height: 1;
}

.rate__unit {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-medium);
}


/* ----- Lane card visual 2: PATTERN MINI (transformation preview) ----- */
.pat-mini {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 200px;
}

.pat-mini__row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.2);
  border-radius: 5px;
  font-size: 0.5625rem;
  color: var(--color-text-secondary);
}

.pat-mini__row--multi {
  background: linear-gradient(135deg, rgba(178, 93, 66, 0.05), rgba(178, 93, 66, 0.1));
  border-color: rgba(178, 93, 66, 0.4);
}

.pat-mini__label {
  font-size: 0.4375rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-bold);
  margin-right: auto;
}

.pat-mini__val {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.pat-mini__arrow {
  font-size: 0.875rem;
  color: var(--color-copper);
  text-align: center;
  line-height: 1;
}

.pat-mini__legs {
  display: flex;
  gap: 0.1875rem;
  align-items: center;
}

.pat-mini__leg {
  font-size: 0.5rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.pat-mini__sep {
  font-size: 0.5625rem;
  color: var(--color-copper);
}


/* ----- Lane card visual 3: ROUTING GUIDE MINI ----- */
.rg-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  max-width: 170px;
}

.rg-mini__row {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
}

.rg-mini__rank {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rg-mini__rank--alt {
  background: rgba(178, 93, 66, 0.3);
  color: var(--color-copper-dark);
}

.rg-mini__rank--alt2 {
  background: rgba(178, 93, 66, 0.15);
  color: var(--color-copper-dark);
}

.rg-mini__name {
  font-size: 0.6875rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}


/* ============================================================
   SECTION 4 â€” ROUTING GUIDES (3-card deep dive)
   White. Three cards: Waterfall, Low Cost, Blast.
============================================================ */
.routing-guides {
  background: #faf6f3;
}

.routing-guides__head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.routing-guides__head .eyebrow {
  color: var(--color-copper-dark);
}

.routing-guides__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
}

.routing-guides__head .text-lead {
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.routing-guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}


/* ----- ROUTING GUIDE CARD (shell) ----- */
.rg-card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rg-card__visual {
  aspect-ratio: 16 / 10;
  background: #fafafa;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem;
}

.rg-card__body {
  padding: 1.125rem 1.25rem 1.375rem;
}

.rg-card__body h4 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

.rg-card__body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ----- Strategy visual 1: WATERFALL ----- */
.waterfall {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  width: 100%;
  max-width: 180px;
}

.waterfall__row {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
}

.waterfall__rank {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.waterfall__rank--alt {
  background: rgba(178, 93, 66, 0.28);
  color: var(--color-copper-dark);
}

.waterfall__rank--alt2 {
  background: rgba(178, 93, 66, 0.14);
  color: var(--color-copper-dark);
}

.waterfall__name {
  font-size: 0.6875rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}


/* ----- Strategy visual 2: LOW COST ----- */
.low-cost {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  max-width: 180px;
}

.low-cost__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4375rem 0.75rem;
  background: var(--color-white);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 0.6875rem;
}

.low-cost__row--winner {
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.08), rgba(178, 93, 66, 0.14));
  border-color: rgba(178, 93, 66, 0.4);
}

.low-cost__name {
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.low-cost__row--winner .low-cost__name {
  color: var(--color-copper-dark);
}

.low-cost__price {
  color: var(--color-text-secondary);
  font-weight: var(--weight-bold);
}

.low-cost__row--winner .low-cost__price {
  color: var(--color-copper);
}


/* ----- Strategy visual 3: BLAST (radial broadcast) ----- */
.blast {
  width: 160px;
  height: 120px;
  position: relative;
}

.blast svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* ============================================================
   SECTION 5 â€” MOLO STAT BLOCK
   Light warm. Standalone customer proof point. The 3% â†’ 93%
   stat takes the visual lead in a horizontal arrangement.
============================================================ */
.molo {
  background-color: #0a0a0a;
  background-image: url('/images/highway-schematic-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 0.5px solid #1f1f1f;
  border-bottom: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
}

.molo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  pointer-events: none;
}

.molo__inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
}

/* Horizontal stat â€” large numbers with arrow between */
.molo__stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.molo__stat-num {
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.molo__stat-num--from {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.molo__stat-num--to {
  color: var(--color-copper-light);
}

.molo__stat-arrow {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  color: var(--color-copper-light);
  line-height: 1;
}

.molo__text {
  color: var(--color-white);
  font-size: var(--text-lg);
  line-height: 1.5;
  margin: 0 auto 1.625rem;
  max-width: 640px;
}

/* MoLo logo will replace this placeholder pill */
.molo__logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  background: #faf6f3;
  border: 0.5px solid rgba(178, 93, 66, 0.2);
  border-radius: 8px;
}

.molo__logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.625rem;
  font-weight: 800;
}

.molo__logo-name {
  font-size: 0.75rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-bold);
}

.molo__logo {
  height: 56px;
  width: auto;
  display: inline-block;
  filter: brightness(0) invert(1);
  opacity: 1;
}


/* ============================================================
   SECTION 6 â€” BACK OFFICE (2-card block)
   Light warm. Two cards side-by-side for Auto Voucher + Auto
   Invoice.
============================================================ */
.back-office {
  background: var(--color-white);
}

.back-office__head {
  max-width: 680px;
  margin: 0 auto 2rem;
}

.back-office__head .eyebrow {
  color: var(--color-copper-dark);
}

.back-office__head h2 {
  color: var(--color-text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.875rem;
}

.back-office__head .text-lead {
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

.back-office__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}


/* ----- BACK OFFICE CARD ----- */
.bo-card {
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  padding: 2rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bo-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.15), rgba(178, 93, 66, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper);
}

.bo-card h4 {
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin: 0;
  letter-spacing: -0.01em;
}

.bo-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin: 0;
}


/* ============================================================
   SECTION 7 â€” PATTERNS (side-by-side transformation)
   White. Centered header above a horizontal transformation flow:
   simple Oâ†’D on the left, transition arrow in the middle, multi-leg
   routing on the right.
============================================================ */
.patterns {
  background: #faf6f3;
}

.patterns__head {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.patterns__head .eyebrow {
  color: var(--color-copper-dark);
}

.patterns__heading {
  color: var(--color-text-primary);
  font-size: 1.625rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0.5rem 0 0.75rem;
}

.patterns__head .text-lead {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  margin: 0;
}

/* Horizontal flow: Tendered | Transition | Routed */
.patterns__flow {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr auto 1.6fr;
  gap: 1.5rem;
  align-items: center;
}

.patterns__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.patterns__side-label {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-bold);
}

/* Tendered: simple Oâ†’D bar */
.patterns__tendered {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.125rem 1.375rem;
  background: #fafafa;
  border: 1px solid #e8e2dd;
  border-radius: 10px;
}

.patterns__stop {
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}

.patterns__stop-arrow {
  font-size: var(--text-base);
  color: var(--color-text-tertiary);
}

/* Transition: arrow + "Pattern applied" label */
.patterns__transition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.5rem;
}

.patterns__transition-arrow {
  font-size: 1.5rem;
  color: var(--color-copper);
  line-height: 1;
}

.patterns__transition-label {
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-copper);
  font-weight: var(--weight-bold);
  text-align: center;
  max-width: 70px;
  line-height: 1.3;
}

/* Routed: 4 legs in a horizontal row */
.patterns__routed {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: center;
  flex-wrap: nowrap;
}

.patterns__routed-arrow {
  font-size: 0.875rem;
  color: var(--color-copper);
}

.leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.leg__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper);
  box-shadow: 0 0 0 4px rgba(178, 93, 66, 0.06);
}

.leg__name {
  font-size: 0.625rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  text-align: center;
  max-width: 60px;
  line-height: 1.15;
}


/* ============================================================
   SECTION 8 â€” ACCESSORIAL AUTOMATION FEATURE BLOCK
   White. Standard side-by-side feature pattern. Content left,
   settlement visual right showing AUTO-applied line items.
============================================================ */
.feature {
  background: var(--color-white);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature--reverse .feature__content {
  order: 2;
}

.feature--reverse .feature__media {
  order: 1;
}

.feature__heading {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 1.75rem;
}

.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.feature__list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.feature__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(178, 93, 66, 0.12);
  color: var(--color-copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feature__media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----- Settlement visual for Accessorial Automation -----
   Self-framed infographic SVG (own dark card and internal
   animation) on a white section, so it takes the standard black
   drop shadow per the house shadow rule. */
.feature__image {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.16));
}

/* ============================================================
   SECTION 9 â€” CTA BANNER
   Standard treatment matching other capability pages.
============================================================ */
.cta-banner {
  background: #111111;
  border-top: 0.5px solid #1f1f1f;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(178, 93, 66, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__heading {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-semibold);
  color: #ffffff;
  margin-bottom: 1rem;
}


/* ============================================================
   RESPONSIVE â€” MOBILE OVERRIDES
============================================================ */
@media (max-width: 1024px) {

  /* Patterns side-by-side gets tighter on tablet */
  .patterns__flow {
    gap: 1rem;
  }

  .patterns__routed {
    gap: 0.25rem;
  }

  .leg__circle {
    width: 46px;
    height: 46px;
  }

}


@media (max-width: 768px) {

  /* The slim strip is a single line of display copy that earns its
     place on a wide screen but reads as another wall of text on a
     phone. Hidden on mobile only; desktop is unchanged. */
  .banner {
    display: none;
  }

  /* Hero â€” single column on mobile */
  .wa-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Single column, with the CTA below the animation rather than
     above it. .wa-hero__actions is nested inside .wa-hero__content,
     so it cannot be ordered past .wa-hero__media on its own;
     display: contents lifts the copy's children into the hero grid
     so all five can be ordered together. The wrapper is a plain
     div, so nothing is lost from the accessibility tree.

     Row gap drops to 0 because it would otherwise apply between
     every line of copy, not just between the blocks. Each element's
     own margins space them, exactly as they do on desktop. */
  .wa-hero__inner {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .wa-hero__content {
    display: contents;
  }

  .wa-hero .eyebrow {
    order: 1;
  }

  .wa-hero__headline {
    order: 2;
  }

  .wa-hero__sub {
    order: 3;
  }

  .wa-hero__media {
    order: 4;
  }

  .wa-hero__actions {
    order: 5;
    margin-top: 2rem;
    flex-direction: column;
    align-items: stretch;
  }

  .wa-hero__actions > a {
    text-align: center;
    justify-content: center;
  }

  /* Banner â€” smaller padding */
  .banner {
    padding: 1.25rem 0;
  }

  /* Lanes grid â€” single column */
  .lanes__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Routing Guides grid â€” single column */
  .routing-guides__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* MoLo â€” stat numbers stay horizontal but smaller via clamp */
  .molo__stat {
    gap: 1rem;
  }

  .molo__text {
    font-size: var(--text-base);
  }

  /* Back Office â€” single column */
  .back-office__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Patterns â€” stack vertically on mobile */
  .patterns__flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .patterns__transition {
    padding: 0;
  }

  /* Rotate the transition arrow to point down on mobile */
  .patterns__transition-arrow {
    transform: rotate(90deg);
    display: inline-block;
  }

  /* Routed legs wrap into 2x2 on mobile if needed */
  .patterns__routed {
    flex-wrap: wrap;
    max-width: 320px;
    margin: 0 auto;
  }

  /* Feature block â€” single column, image always above content */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature--reverse .feature__content,
  .feature--reverse .feature__media {
    order: initial;
  }

  .feature__media {
    order: 2;
  }

  .feature__content {
    order: 1;
  }

  /* CTA heading shrinks gracefully */
  .cta-banner__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

}


@media (max-width: 480px) {

  /* Smaller card visuals at very small widths */
  .rate__val {
    font-size: 1.5rem;
  }

}
