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

   COMPONENT REUSE:
   - .banner â€” slim warm band component introduced on Visibility
     & Tracking.
   - .feature / .feature--reverse â€” standard alternating two-column
     feature block on white.
   - .cta-banner â€” standard closing CTA.

   NEW COMPONENTS INTRODUCED HERE:
   - .optimatch â€” driver-match score visual for OptiMatch feature.
   - .cards2 / .cards2__card â€” 2-card warm block.
   - .aic â€” AI Capacity Entry card visual (text â†’ AI â†’ trucks).
   - .tours â€” Tours card visual (day-labeled route legs).
   - .aic-stat â€” AI Capacity Entry stat block (two horizontal stats).
   - .leo — Leo callout strip (chat visual comes from shared /leo.css).
   - .labs-bridge â€” Mastery Labs dark chapter break.
   - .feature-dark — now in shared /feature-dark.css, since the
     Shippers page carries the OptiRoute block too.
   - .cards4-dark â€” 4-card grid on dark background.
   - .fuel-vis / .tetris-vis / .eta-vis / .cons-vis â€” distinct card
     visuals for each Mastery Labs model.

   PAGE STRUCTURE:
   1. Hero (dark, two-column)
   2. Slim banner (light warm)
   3. OptiMatch feature (white, in-app flagship)
   4. 2-card block (light warm, AI Capacity Entry + Tours)
   5. AI Capacity Entry stat block (white, proof moment)
   6. Leo callout strip (light warm)
   7. Mastery Labs bridge (dark, chapter break)
   8. OptiRoute feature (dark, Labs flagship)
   9. 4-card Mastery Labs block (dark, more Labs models)
   10. CTA banner (dark)

   NOTE: Sections 7â€“10 are intentionally all on dark backgrounds
   to visually separate the Mastery Labs experience from the
   in-app optimization above.
============================================================ */

/* ============================================================
   SECTION 1 â€” HERO
   Dark. Two-column matching other capability pages.
============================================================ */
.opt-hero .eyebrow {
  color: var(--color-copper-light);
}

.opt-hero {
  position: relative;
  background-color: #0a0a0a;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

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

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

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

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

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

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

.opt-hero__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   SECTION 2 â€” SLIM BANNER
   Same component as other capability pages.
============================================================ */
.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 â€” OPTIMATCH FEATURE
   White. Standard side-by-side feature block. Custom score
   visual on the right.
============================================================ */
.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__content .eyebrow {
  color: var(--color-copper-dark);
  margin-bottom: 0.875rem;
}

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

/* ----- OPTIMATCH SCORE VISUAL ----- */
.optimatch {
  aspect-ratio: 16 / 11;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(252, 147, 101, 0.16), transparent 65%),
    linear-gradient(135deg, #1a1a1a, #2a2320);
  padding: 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  justify-content: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

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

.optimatch__tag {
  position: relative;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(252, 147, 101, 0.9);
  font-weight: var(--weight-bold);
  margin-bottom: -0.25rem;
}

.optimatch__best {
  position: relative;
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.15), rgba(178, 93, 66, 0.25));
  border: 0.5px solid rgba(252, 147, 101, 0.5);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.optimatch__driver {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  flex: 1;
}

.optimatch__driver-name {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: var(--color-white);
}

.optimatch__driver-meta {
  font-size: 0.5625rem;
  color: rgba(252, 147, 101, 0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight-semibold);
}

.optimatch__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.0625rem;
}

.optimatch__score-num {
  font-size: 2rem;
  font-weight: var(--weight-bold);
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.optimatch__score-of {
  font-size: 0.5625rem;
  color: rgba(252, 147, 101, 0.85);
  letter-spacing: 0.1em;
  font-weight: var(--weight-semibold);
}

.optimatch__alt {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.5625rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.optimatch__alt-name {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
  font-weight: var(--weight-medium);
}

.optimatch__alt-score {
  font-size: 0.8125rem;
  color: rgba(252, 147, 101, 0.85);
  font-weight: var(--weight-bold);
}

/* ============================================================
   SECTION 4 â€” 2-CARD: AI CAPACITY ENTRY + TOURS
   Light warm.
============================================================ */
.cards2 {
  background: #faf6f3;
}

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

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

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

.cards2__head .text-lead {
  color: var(--color-text-secondary);
  margin: 0 auto;
}

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

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

.cards2__visual {
  aspect-ratio: 16 / 9;
  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;
}

.cards2__body {
  padding: 1.125rem 1.375rem 1.375rem;
}

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

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

/* ----- AI CAPACITY ENTRY CARD VISUAL -----
   Sized to fill the 16:9 card zone rather than floating small in the
   middle of it: the cap is wider and the type, padding and bar
   heights scale with it so it reads larger rather than just wider. */
.aic {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
}

.aic__input {
  background: var(--color-white);
  border: 1px solid #e8e2dd;
  border-radius: 6px;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.aic__text {
  height: 7px;
  background: #e0e0e0;
  border-radius: 2px;
}

.aic__text--1 { width: 90%; }
.aic__text--2 { width: 60%; }
.aic__text--3 { width: 75%; }

.aic__arrow {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  justify-content: center;
  margin: 0.125rem 0;
}

.aic__arrow-line {
  font-size: 0.875rem;
  color: var(--color-copper);
}

.aic__ai-badge {
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  padding: 0.1875rem 0.4375rem;
  background: linear-gradient(135deg, #fc9365, #b25d42);
  border-radius: 4px;
}

.aic__truck {
  background: var(--color-white);
  border: 1px solid rgba(178, 93, 66, 0.25);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
}

.aic__truck-icon {
  color: var(--color-copper);
  flex-shrink: 0;
}

.aic__truck-lane {
  color: var(--color-text-secondary);
  font-weight: var(--weight-medium);
  margin-left: auto;
}

/* ----- TOURS CARD VISUAL -----
   Scaled up to fill the card zone. The row is content-sized, so the
   type and padding do the work; the cap only needs to be wide enough
   not to clip the three legs. */
.tours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  justify-content: center;
  flex-wrap: nowrap;
}

.tours__leg {
  background: var(--color-white);
  border: 1px solid rgba(178, 93, 66, 0.25);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1875rem;
  min-width: 0;
}

.tours__day {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-copper);
  font-weight: var(--weight-bold);
}

.tours__route {
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.tours__arrow {
  font-size: 0.9375rem;
  color: var(--color-copper);
  flex-shrink: 0;
}

/* ============================================================
   SECTION 5 â€” AI CAPACITY ENTRY STAT BLOCK
   White. Two-stat horizontal proof point. No customer
   attribution â€” agnostic "month-long customer pilot".
============================================================ */
.aic-stat {
  background: var(--color-white);
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.aic-stat__inner {
  max-width: 880px;
  margin: 0 auto;
}

.aic-stat__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.aic-stat__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.aic-stat__num {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-copper);
  letter-spacing: -0.04em;
  line-height: 1;
}

.aic-stat__label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  font-weight: var(--weight-bold);
  max-width: 200px;
  text-align: center;
}

.aic-stat__divider {
  width: 1px;
  height: 80px;
  background: rgba(178, 93, 66, 0.2);
}

.aic-stat__text {
  color: var(--color-text-primary);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 600px;
}

/* ============================================================
   SECTION 6 â€” LEO CALLOUT STRIP
   Light warm. Compact card with chat-style visual.
============================================================ */
.leo {
  background: #faf6f3;
}

.leo__card {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border: 0.5px solid rgba(178, 93, 66, 0.18);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

/* Inside the strip card the shared panel sits flush in its grid cell. */
.leo__card .leo-chat {
  border-radius: 0;
  box-shadow: none;
}

.leo__content {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leo__heading {
  color: var(--color-text-primary);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.625rem;
}

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

/* ============================================================
   SECTION 7 â€” MASTERY LABS BRIDGE
   Dark chapter break. All sections below this are also on dark.
============================================================ */
.labs-bridge {
  position: relative;
  background: #0a0a0a;
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  overflow: hidden;
}

.labs-bridge__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(178, 93, 66, 0.18), transparent 70%);
  pointer-events: none;
}

.labs-bridge__content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.labs-bridge__content .eyebrow {
  color: var(--color-copper-light);
}

.labs-bridge__heading {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.025em;
  margin: 0.625rem 0 0.875rem;
  line-height: 1.15;
}

.labs-bridge__sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
}

/* ============================================================
   SECTION 10 â€” 4-CARD MASTERY LABS (on dark)
   Four data science models. Each card has a distinct custom
   visual.
============================================================ */
.cards4-dark {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}

.cards4-dark__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(178, 93, 66, 0.06), transparent 60%);
  pointer-events: none;
}

.cards4-dark__head {
  position: relative;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.cards4-dark__head .eyebrow {
  color: var(--color-copper-light);
}

.cards4-dark__heading {
  color: var(--color-white);
  font-size: 1.625rem;
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  margin: 0 0 0.625rem;
}

.cards4-dark__sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0 auto;
}

.cards4-dark__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.cards4-dark__card {
  background: #141414;
  border: 0.5px solid rgba(252, 147, 101, 0.2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast);
}

.cards4-dark__card:hover {
  border-color: rgba(252, 147, 101, 0.4);
}

.cards4-dark__visual {
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  border-bottom: 0.5px solid rgba(252, 147, 101, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem;
  position: relative;
  overflow: hidden;
}

.cards4-dark__visual::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: 16px 16px;
  pointer-events: none;
}

.cards4-dark__body {
  padding: 0.875rem 1rem 1rem;
}

.cards4-dark__body h4 {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.cards4-dark__body p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

/* ----- FUEL OPTIMIZER VISUAL ----- */
.fuel-vis {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  position: relative;
}

.fuel-vis__route-line {
  width: 24px;
  height: 1.5px;
  background: rgba(252, 147, 101, 0.5);
}

.fuel-vis__pump {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(252, 147, 101, 0.15);
  border: 1px solid rgba(252, 147, 101, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper-light);
}

.fuel-vis__cost {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  color: var(--color-copper-light);
  font-weight: var(--weight-bold);
  background: rgba(10, 10, 10, 0.7);
  padding: 0.125rem 0.3125rem;
  border-radius: 3px;
  border: 0.5px solid rgba(252, 147, 101, 0.3);
}

/* ----- TRAILER TETRIS VISUAL ----- */
.tetris-vis {
  width: 90px;
  height: 50px;
  background: rgba(10, 10, 10, 0.5);
  border: 1.5px solid rgba(252, 147, 101, 0.5);
  border-radius: 3px;
  padding: 0.1875rem;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
}

.tetris-vis__cell {
  background: rgba(252, 147, 101, 0.85);
  border-radius: 1px;
}

.tetris-vis__cell--light {
  opacity: 0.5;
}

.tetris-vis__cell--empty {
  background: transparent;
}

/* ----- PREDICTIVE ETA VISUAL ----- */
.eta-vis {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 120px;
}

.eta-vis__time {
  font-size: 0.875rem;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  text-align: center;
  letter-spacing: 0.04em;
}

.eta-vis__time small {
  font-size: 0.5rem;
  color: rgba(252, 147, 101, 0.75);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.14em;
  display: block;
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.eta-vis__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
}

.eta-vis__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #fc9365, #b25d42);
  border-radius: 2px;
}

.eta-vis__bar-marker {
  position: absolute;
  top: -3px;
  left: 65%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-copper-light);
  border: 1.5px solid #0a0a0a;
}

.eta-vis__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.4375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  font-weight: var(--weight-semibold);
}

/* ----- ORDER CONSOLIDATION VISUAL ----- */
.cons-vis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.cons-vis__orders {
  display: flex;
  gap: 0.25rem;
}

.cons-vis__order {
  width: 18px;
  height: 18px;
  background: rgba(252, 147, 101, 0.25);
  border: 0.5px solid rgba(252, 147, 101, 0.5);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-copper-light);
}

.cons-vis__arrows {
  display: flex;
  gap: 0.875rem;
}

.cons-vis__arrow {
  font-size: 0.625rem;
  color: rgba(252, 147, 101, 0.7);
}

.cons-vis__load {
  width: 60px;
  height: 24px;
  background: linear-gradient(135deg, rgba(252, 147, 101, 0.3), rgba(178, 93, 66, 0.45));
  border: 1px solid rgba(252, 147, 101, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  font-weight: var(--weight-bold);
}

/* ============================================================
   SECTION 11 â€” CTA BANNER
   Dark. Final CTA with new copy.
============================================================ */
.cta-banner {
  background: #0a0a0a;
  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.12) 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: 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 */
  .opt-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Single column, with the CTA below the visual rather than above
     it. .opt-hero__actions is nested inside .opt-hero__content, so it
     cannot be ordered past .opt-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. */
  .opt-hero__inner {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .opt-hero__content {
    display: contents;
  }

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

  .opt-hero__headline {
    order: 2;
  }

  .opt-hero__sub {
    order: 3;
  }

  .opt-hero__media {
    order: 4;
  }

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

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

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

  /* Standard feature block â€” single column */
  .feature__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature__media {
    order: 2;
  }

  .feature__content {
    order: 1;
  }

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

  /* AI Capacity stat â€” stack stats vertically on mobile */
  .aic-stat__row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .aic-stat__divider {
    width: 80px;
    height: 1px;
  }

  /* Leo card â€” stack */
  .leo__card {
    grid-template-columns: 1fr;
  }

  .leo__content {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .leo__card .leo-chat {
    min-height: 220px;
    order: 2;
  }

  /* Labs bridge â€” slightly tighter */
  .labs-bridge__heading {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* 4-card Labs grid â€” collapse to 2 columns on tablet, 1 on phone */
  .cards4-dark__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

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

}

@media (max-width: 480px) {

  /* 4-card grid â€” single column at smallest widths */
  .cards4-dark__grid {
    grid-template-columns: 1fr;
  }

  /* Tours visual gets tight on narrow screens — the three legs and
     two arrows have to fit one line, so the desktop scale-up steps
     back down here rather than overflowing the card. */
  .tours {
    gap: 0.25rem;
  }

  .tours__leg {
    padding: 0.4375rem 0.5rem;
  }

  .tours__day {
    font-size: 0.5rem;
  }

  .tours__route {
    font-size: 0.6875rem;
  }

  .tours__arrow {
    font-size: 0.8125rem;
  }

}
