/* ==========================================================================
   EFCL ALTERNATE HERO: full-width "checkout to doorstep" loop
   Themes: .hl--dark and .hl--light (set in WP Admin > EFCL Hero)
   ========================================================================== */

.hl {
  --hl-accent: #ed1c24;
  --hl-bg: #0e0c0b;
  --hl-ink: #f4f1ec;
  --hl-muted: #a8a19b;
  --hl-accent-text: #ed1c24;
  --hl-line: #2e2926;
  --hl-sky-top: #0e0c0b;
  --hl-sky-bot: #171413;
  --hl-skyline: #241f1c;
  --hl-sky-detail: #2e2926;
  --hl-cloud: rgba(244, 241, 236, 0.05);
  --hl-ground: #171413;
  --hl-lane: rgba(244, 241, 236, 0.22);
  --hl-bezel: #eeeae4;
  --hl-bezel-2: #a8a19b;
  --hl-card: #faf8f5;
  --hl-screen: #1a1715;
  --hl-ink-bar: #1a1715;
  --hl-soft-bar: #d7d1ca;
  --hl-building: #211d1b;
  --hl-roof: #2e2926;
  --hl-interior: #171413;
  --hl-post: #6e6560;
  --hl-belt1: #2e2926;
  --hl-belt2: #211d1b;
  --hl-belt-dash: rgba(244, 241, 236, 0.3);
  --hl-door: #0e0c0b;
  --hl-van: #eeeae4;
  --hl-van-text: #1a1715;
  --hl-window: #1a1715;
  --hl-wheel: #1a1715;
  --hl-hub: #a8a19b;
  --hl-house-wall: #2e2926;
  --hl-house-window: #1a1715;
  --hl-chip: #faf8f5;
  --hl-chip-text: #1a1715;
  --hl-kraft: #c8a27c;
  --hl-kraft-dark: #b08a63;
  --hl-kraft-line: #8e6c4b;
  --hl-ghost-border: rgba(244, 241, 236, 0.5);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-family: "Archivo", Arial, sans-serif;
  font-stretch: 100%;
}

.hl--light {
  --hl-bg: #eeeae4;
  --hl-ink: #1a1715;
  --hl-muted: #6e6560;
  --hl-accent-text: #b60911;
  --hl-line: #d7d1ca;
  --hl-sky-top: #eeeae4;
  --hl-sky-bot: #faf8f5;
  --hl-skyline: #d7d1ca;
  --hl-sky-detail: #eeeae4;
  --hl-cloud: rgba(26, 23, 21, 0.05);
  --hl-ground: #e2dcd5;
  --hl-lane: rgba(26, 23, 21, 0.25);
  --hl-bezel: #1a1715;
  --hl-bezel-2: #6e6560;
  --hl-building: #faf8f5;
  --hl-roof: #3b3532;
  --hl-interior: #eeeae4;
  --hl-post: #3b3532;
  --hl-belt1: #3b3532;
  --hl-belt2: #1a1715;
  --hl-belt-dash: rgba(250, 248, 245, 0.45);
  --hl-door: #3b3532;
  --hl-van: #1a1715;
  --hl-van-text: #faf8f5;
  --hl-window: #eeeae4;
  --hl-house-wall: #faf8f5;
  --hl-house-window: #d7d1ca;
  --hl-chip: #1a1715;
  --hl-chip-text: #faf8f5;
  --hl-ghost-border: rgba(26, 23, 21, 0.45);
}

.hl :where(h1, p, figure, ol, li) {
  margin: 0;
  padding: 0;
}

.hl__wrap {
  width: min(1280px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ---------- Copy band ---------- */

.hl__head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(24px, 4vh, 52px);
}

.hl__eyebrow {
  margin-bottom: 18px;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hl-accent-text);
}

.hl__title {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(36px, 4.7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--hl-ink);
}

.hl__title em {
  display: inline-block;
  padding-bottom: 0.08em;
  font-style: italic;
  color: var(--hl-accent);
}

.hl__lead {
  max-width: 42ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--hl-muted);
}

.hl__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hl .hl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 19px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hl .hl__btn:active { transform: translateY(1px); }
.hl .hl__btn--primary { background: var(--hl-accent); color: #faf8f5; }
.hl .hl__btn--primary:hover { background: #b60911; }
.hl .hl__btn--ghost { border: 1.5px solid var(--hl-ghost-border); color: var(--hl-ink); }
.hl .hl__btn--ghost:hover { border-color: var(--hl-ink); }
.hl .hl__btn:focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 4px; }

/* ---------- Full-width scene ---------- */

.hl__scene {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.hl__viewport {
  overflow: hidden;
  padding-bottom: 84px; /* road runs on under the floating chat buttons */
  background: var(--hl-ground);
}

.hl__svg {
  display: block;
  width: 100%;
  height: clamp(300px, calc(100svh - 554px), 560px);
  will-change: transform;
}

.hl .hl-sky-top { stop-color: var(--hl-sky-top); }
.hl .hl-sky-bot { stop-color: var(--hl-sky-bot); }
.hl .hl-skyline { fill: var(--hl-skyline); }
.hl .hl-sky-detail { fill: var(--hl-sky-detail); }
.hl .hl-sky-ring { fill: none; stroke: var(--hl-skyline); stroke-width: 7; }
.hl .hl-sky-spoke { fill: none; stroke: var(--hl-skyline); stroke-width: 3; }
.hl .hl-sky-cable { fill: none; stroke: var(--hl-skyline); stroke-width: 3; }
.hl .hl-cloud { fill: var(--hl-cloud); }
.hl .hl-ground { fill: var(--hl-ground); }
.hl .hl-lane { fill: none; stroke: var(--hl-lane); stroke-width: 3; stroke-dasharray: 26 26; }

.hl .hl-bezel { fill: var(--hl-bezel); }
.hl .hl-bezel-2 { fill: var(--hl-bezel-2); }
.hl .hl-card { fill: var(--hl-card); }
.hl .hl-screen { fill: var(--hl-screen); }
.hl .hl-ink-bar { fill: var(--hl-ink-bar); }
.hl .hl-soft-bar { fill: var(--hl-soft-bar); }
.hl .hl-accent { fill: var(--hl-accent); }
.hl .hl-buy-text { font-family: "Archivo", Arial, sans-serif; font-weight: 700; font-size: 11px; fill: #faf8f5; }
.hl .hl-buy-text--sm { font-size: 10px; }
.hl .hl-device { transition: filter 0.4s ease; }
.hl .hl-device.is-active { filter: drop-shadow(0 0 14px rgba(237, 28, 36, 0.55)); }
.hl .hl-tap { fill: none; stroke: var(--hl-accent); stroke-width: 3; opacity: 0; }

.hl .hl-chip-bg { fill: var(--hl-chip); }
.hl .hl-chip-text { font-family: "Archivo", Arial, sans-serif; font-weight: 700; font-stretch: 108%; font-size: 15px; fill: var(--hl-chip-text); }
.hl .hl-check { fill: none; stroke: #faf8f5; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hl .hl-chip { opacity: 0; }

.hl .hl-sync-base { fill: none; stroke: var(--hl-line); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.hl .hl-sync-pulse { fill: none; stroke: var(--hl-accent); stroke-width: 4; stroke-linecap: round; opacity: 0; }

.hl .hl-building { fill: var(--hl-building); stroke: var(--hl-line); stroke-width: 1.5; }
.hl .hl-roof { fill: var(--hl-roof); }
.hl .hl-sign { fill: var(--hl-accent); }
.hl .hl-sign-text, .hl .hl-van-text { font-family: "Archivo", Arial, sans-serif; font-weight: 800; font-stretch: 120%; letter-spacing: 0.06em; }
.hl .hl-sign-text { font-size: 18px; fill: #faf8f5; }
.hl .hl-van-text { font-size: 14px; fill: var(--hl-van-text); }
.hl .hl-interior { fill: var(--hl-interior); }
.hl .hl-post { fill: none; stroke: var(--hl-post); stroke-width: 5; stroke-linecap: round; }
.hl .hl-shelf { fill: none; stroke: var(--hl-accent); stroke-width: 4; stroke-linecap: round; }
.hl .hl-slot { fill: none; stroke: var(--hl-muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.hl .hl-belt-top { stop-color: var(--hl-belt1); }
.hl .hl-belt-bot { stop-color: var(--hl-belt2); }
.hl .hl-belt-dash { fill: none; stroke: var(--hl-belt-dash); stroke-width: 2; stroke-dasharray: 12 14; animation: hl-belt 0.9s linear infinite; }
.hl .hl-door { fill: var(--hl-door); }
.hl .hl-warehouse.is-active .hl-sign { filter: drop-shadow(0 0 12px rgba(237, 28, 36, 0.8)); }

.hl .hl-box { fill: var(--hl-kraft); stroke: var(--hl-kraft-line); stroke-width: 1.5; }
.hl .hl-box-line { fill: none; stroke: var(--hl-kraft-line); stroke-width: 1.5; }
.hl .hl-flap { fill: var(--hl-kraft-dark); stroke: var(--hl-kraft-line); stroke-width: 1.5; }
.hl .hl-tape { fill: var(--hl-accent); opacity: 0; }
.hl .hl-label { opacity: 0; }
.hl .hl-label-card { fill: #faf8f5; }
.hl .hl-barcode { stroke: #1a1715; stroke-width: 1.4; }

.hl .hl-van-body { fill: var(--hl-van); }
.hl .hl-van-cab { fill: var(--hl-accent); }
.hl .hl-window { fill: var(--hl-window); }
.hl .hl-wheel { fill: var(--hl-wheel); }
.hl .hl-hub { fill: var(--hl-hub); }

.hl .hl-house-wall { fill: var(--hl-house-wall); stroke: var(--hl-line); stroke-width: 1.5; }
.hl .hl-house-window { fill: var(--hl-house-window); transition: fill 0.5s ease; }
.hl .hl-house.is-lit .hl-house-window { fill: #f4c76b; }
.hl .hl-house-door { fill: var(--hl-accent); }

@keyframes hl-belt { to { stroke-dashoffset: -26; } }

/* ---------- Step bar ---------- */

.hl__steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0 12px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vh, 32px) clamp(20px, 4vw, 48px) 0;
  list-style: none;
}

.hl__step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-stretch: 106%;
  font-size: 15px;
  color: var(--hl-muted);
  transition: color 0.35s ease;
}

.hl__step span {
  font-weight: 800;
  font-stretch: 120%;
  font-size: 13px;
  color: var(--hl-muted);
  transition: color 0.35s ease;
}

.hl__step.is-active,
.hl__step.is-done {
  color: var(--hl-ink);
}

.hl__step.is-active span {
  color: var(--hl-accent);
}

.hl__progress {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--hl-line);
  overflow: hidden;
}

.hl__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hl-accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* Header blends into the hero; the black pill keeps its contrast on both themes. */
body.efcl-hl-dark .efcl-global-header { background: #0e0c0b; }
body.efcl-hl-light .efcl-global-header { background: #eeeae4; }
body.efcl-hl-dark .efcl-global-header__inner { box-shadow: 0 0 0 1px rgba(244, 241, 236, 0.14), 0 22px 50px -24px rgba(0, 0, 0, 0.9); }
body.efcl-hl-light .efcl-global-header__inner { box-shadow: 0 22px 50px -28px rgba(26, 23, 21, 0.45); }

/* ---------- Entrance (JS-gated) ---------- */

.nx-js .hl [data-hl-in] {
  opacity: 0;
  transform: translateY(28px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .hl__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hl__scene {
    margin-top: 12px;
  }

  .hl__svg {
    height: auto;
  }
}

@media (max-width: 900px) {
  .hl__viewport {
    padding-bottom: 72px;
  }

  .hl__svg {
    width: 1100px;
    max-width: none;
    height: 262px; /* crops empty sky; stations and skyline stay in view */
  }

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

  .hl__step {
    display: none;
    font-size: 17px;
  }

  .hl__step.is-active {
    display: flex;
  }

  .hl__step span::after {
    content: " / 06";
    color: var(--hl-muted);
  }
}

@media (max-width: 760px) {
  .hl__title { font-size: clamp(34px, 9.6vw, 44px); }
  .hl__lead { display: none; } /* keeps the animation on the first screen, clear of the chat buttons */
  .hl__eyebrow { font-size: 11px; margin-bottom: 12px; }
  .hl__head { padding-top: 18px; }
  .hl__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hl .hl__btn { min-height: 50px; padding: 0 12px; font-size: 16px; }
  .hl__steps { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hl .hl-belt-dash { animation: none; }
  .nx-js .hl [data-hl-in] { opacity: 1; transform: none; }
  .hl .hl-chip, .hl .hl-tape, .hl .hl-label { opacity: 1; }
}
