/* ==========================================================================
   ESPER GLOBAL — Subpage Styles
   Shared across all division subpages (Fishing, Hunting, Camping, etc.)
   ========================================================================== */

/* ── Nav Active State ── */
.nav__link--active {
  color: var(--color-text-primary);
}

.nav__link--active::after {
  width: 100%;
}

.mega__category--active {
  background: var(--color-bg-card);
  border-color: var(--color-border-hover);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-4);
  font-size: var(--text-caption);
  font-family: var(--font-primary);
  font-weight: 500;
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
}

.breadcrumb .rule {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-chrome-dark);
  margin-right: 0.25rem;
}

.breadcrumb__link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.breadcrumb__link:hover {
  color: var(--color-text-secondary);
}

.breadcrumb__sep {
  color: var(--color-chrome-dark);
  user-select: none;
}

.breadcrumb__current {
  color: var(--color-text-secondary);
}

/* ── Subpage Hero ── */
.hero--subpage {
  min-height: 65vh;
  height: auto;
}

.hero--subpage .hero__headline {
  font-size: var(--text-h1);
}

/* Hero background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
}

/* ── Categories Section ── */
.categories {
  padding: var(--space-9) 0;
  min-height: var(--esper-categories-height, auto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-base);
}

.categories__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.categories__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.categories__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.categories__subtitle {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gutter);
}

/* Alternating category section background */
.categories--alt {
  background: var(--color-bg-darkest);
}

/* Spec tags — cyan-tinted variant */
.card__tag--spec {
  border-color: rgba(var(--color-primary-rgb), 0.2);
  color: var(--color-text-secondary);
}

.card__tag--spec:hover {
  border-color: rgba(var(--color-primary-rgb), 0.4);
  background: rgba(var(--color-primary-rgb), 0.06);
}

/* ── B8LAB Showcase ── */
.b8lab {
  padding: var(--space-9) 0;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.b8lab::before,
.b8lab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-chrome);
}

.b8lab::before { top: -1px; }
.b8lab::after  { bottom: -1px; }

.b8lab__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-7);
  align-items: start;
}

.b8lab__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.b8lab__name {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.b8lab__tagline {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.b8lab__relation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.b8lab__esper-mark {
  width: 24px;
  height: 24px;
  color: var(--color-chrome-dark);
  flex-shrink: 0;
}

.b8lab__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.b8lab-feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.b8lab-feature:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.b8lab-feature__num {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  flex-shrink: 0;
  min-width: 2.5rem;
}

.b8lab-feature__content h4 {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.b8lab-feature__content p {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}

/* ── Brands Section ── */
.brands {
  padding: var(--space-9) 0;
  min-height: var(--esper-brands-height, auto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.brands::before,
.brands::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-chrome);
}

.brands::before { top: -1px; }
.brands::after  { bottom: -1px; }

.brands__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.brands__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.brands__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gutter);
}

.brand-card {
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-normal) var(--ease-out);
}

.brand-card:hover {
  border-color: var(--color-border-hover);
}

.brand-card__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.brand-card__tagline {
  font-size: var(--text-body);
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.brand-card__desc {
  font-size: var(--text-small);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.brand-card__relation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.brand-card__esper-mark {
  width: 20px;
  height: 20px;
  color: var(--color-chrome-dark);
  flex-shrink: 0;
}

/* ── Process Preview ── */
.process-preview {
  padding: var(--space-9) 0;
  background: var(--color-bg-darkest);
}

.process-preview__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.process-preview__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.process-preview__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.process-preview__subtitle {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

.process-preview__timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gutter);
  position: relative;
  padding-top: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Connecting line */
.process-preview__line {
  position: absolute;
  top: calc(var(--space-4) + 3px);
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: var(--color-border-visible);
}

.process-preview__fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 1.2s var(--ease-out-expo);
}

.process-preview__timeline.is-visible .process-preview__fill {
  width: 100%;
}

.process-preview__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-preview__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-bg-darkest);
  border: 1.5px solid var(--color-text-muted);
  margin: 0 auto var(--space-2);
  transition: all var(--duration-normal) var(--ease-out);
}

.process-preview__timeline.is-visible .process-preview__dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.process-preview__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: 4px;
  transition: color var(--duration-normal);
}

.process-preview__timeline.is-visible .process-preview__num {
  color: var(--color-text-primary);
}

.process-preview__name {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.process-preview__desc {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.process-preview__ctas {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}

/* ── Credentials / Stats ── */
.credentials {
  padding: var(--space-8) 0;
  background: var(--color-bg-base);
  position: relative;
  overflow: hidden;
}

.credentials::before,
.credentials::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.credentials::before { top: 0; }
.credentials::after  { bottom: 0; }

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gutter);
}

.stat {
  text-align: center;
  padding: var(--space-4) var(--space-2);
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.stat__label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.stat__desc {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-page {
  padding: var(--space-8) 0 var(--space-9);
  background: var(--color-bg-base);
}

.contact-page__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-7);
  align-items: start;
}

/* ── Form Column ── */
.contact-page__heading {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.contact-page__desc {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact-form .form-group--full {
  grid-column: 1 / -1;
}

.contact-form__submit {
  width: 100%;
  justify-content: center;
}

.contact-form__submit svg {
  flex-shrink: 0;
}

.contact-form .form-note a {
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.contact-form .form-note a:hover {
  color: var(--color-primary-light);
}

/* ── Info Column ── */
.contact-page__card {
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.contact-page__card--subtle {
  background: transparent;
  border-color: var(--color-border-visible);
}

.contact-page__card-title {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-3);
}

.contact-page__card-text {
  font-size: var(--text-small);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
}

/* Detail rows */
.contact-page__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.contact-page__detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-page__detail > svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-chrome-dark);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-page__detail-label {
  display: block;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-page__detail-muted {
  color: var(--color-text-muted);
  font-size: var(--text-caption);
}

.contact-page__detail a {
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.contact-page__detail a:hover {
  color: var(--color-primary-light);
}

/* Map placeholder */
.contact-page__map {
  margin-bottom: var(--space-3);
}

.contact-page__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border-visible);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  text-align: center;
}

.contact-page__map-placeholder svg {
  stroke: var(--color-chrome-dark);
}

.contact-page__map-placeholder small {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ==========================================================================
   RESPONSIVE — Subpage
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .contact-page__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .b8lab__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  .credentials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-preview__desc {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero--subpage {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-6));
    padding-bottom: var(--space-6);
  }

  .contact-page {
    padding: var(--space-6) 0 var(--space-7);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .categories {
    padding: var(--space-7) 0;
  }

  .b8lab {
    padding: var(--space-7) 0;
  }

  .brands {
    padding: var(--space-7) 0;
  }

  .process-preview {
    padding: var(--space-7) 0;
  }

  .process-preview__timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-4);
  }

  .process-preview__line {
    display: none;
  }

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

  .breadcrumb__link:first-child {
    display: none;
  }

  .breadcrumb__sep:first-of-type {
    display: none;
  }

  .process-preview__ctas {
    flex-direction: column;
    align-items: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .process-preview__timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-preview__ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   LEGAL / PROSE CONTENT (Privacy, Terms, Impressum)
   ========================================================================== */

/* Hero variant — shorter for legal pages */
.hero--legal {
  min-height: auto;
  padding-top: calc(var(--nav-height) + var(--space-7));
  padding-bottom: var(--space-7);
}

/* Section wrapper */
.legal {
  padding: var(--space-8) 0 var(--space-9);
  background: var(--color-bg-base);
}

.legal__inner {
  max-width: 800px;
}

/* Meta info (last updated, language toggle) */
.legal__meta {
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-visible);
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.legal__meta p {
  margin-bottom: 4px;
}

.legal__meta p:last-child {
  margin-bottom: 0;
}

.legal__meta a {
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.legal__meta a:hover {
  color: var(--color-primary-light);
}

/* Part dividers (Part A, Part B headings) */
.legal__part {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-primary);
  padding: var(--space-5) 0 var(--space-3);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  border-top: 2px solid var(--color-primary);
}

/* Headings */
.legal h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
  border-top: 1px solid var(--color-border-visible);
}

/* First h2 after meta or part divider — no double border */
.legal__meta + h2,
.legal__part + h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal h3 {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

/* Paragraphs */
.legal p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* Links */
.legal a {
  color: var(--color-primary);
  transition: color var(--duration-fast);
}

.legal a:hover {
  color: var(--color-primary-light);
}

/* Lists — restore bullets/numbers inside legal prose */
.legal ul,
.legal ol {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  padding-left: 1.5rem;
}

.legal ul {
  list-style: disc;
}

.legal ol {
  list-style: decimal;
}

.legal li {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
  padding-left: 0.25rem;
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal li strong {
  color: var(--color-text-primary);
}

/* Inline code */
.legal code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  padding: 2px 6px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-visible);
  border-radius: var(--radius-sm);
  color: var(--color-primary-light);
}

/* Tables */
.legal__table-wrap {
  overflow-x: auto;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-border-visible);
  border-radius: var(--radius-sm);
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.legal__table thead {
  background: var(--color-bg-card);
}

.legal__table th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-visible);
}

.legal__table td {
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.legal__table tbody tr:last-child td {
  border-bottom: none;
}

.legal__table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Address blocks (controller info, authority info) */
.legal__address {
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-visible);
  border-left: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
}

.legal__address p {
  margin-bottom: 2px;
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.legal__address p:last-child {
  margin-bottom: 0;
}

.legal__address strong {
  color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero--legal {
    padding-top: calc(var(--nav-height) + var(--space-5));
    padding-bottom: var(--space-5);
  }

  .legal {
    padding: var(--space-6) 0 var(--space-7);
  }

  .legal h2 {
    font-size: var(--text-body);
  }

  .legal__table th,
  .legal__table td {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-caption);
  }
}

/* ==========================================================================
   SERVICE PIPELINE VISUALIZATION
   ========================================================================== */
.pipeline {
  padding: var(--space-9) 0;
  min-height: var(--esper-pipeline-height, auto);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

.pipeline__ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.pipeline::before,
.pipeline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.pipeline::before { top: 0; }
.pipeline::after  { bottom: 0; }

.pipeline__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

.pipeline__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-chrome-dark);
  margin-bottom: var(--space-2);
}

.pipeline__title {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

.pipeline__subtitle {
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* The flow grid */
.pipeline__flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--grid-gutter);
  position: relative;
  padding-top: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Horizontal connector line */
.pipeline__connector {
  position: absolute;
  top: calc(var(--space-4) + 3px);
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 1px;
  background: var(--color-border-visible);
}

.pipeline__connector-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  transition: width 1.5s var(--ease-out-expo);
}

.pipeline__flow.is-visible .pipeline__connector-fill {
  width: 100%;
}

/* Each node */
.pipeline__node {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-3) var(--space-1);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-normal) var(--ease-out),
              background var(--duration-normal) var(--ease-out);
}

.pipeline__node:hover {
  border-color: var(--color-border-hover);
  background: var(--color-bg-card);
}

.pipeline__node-dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  border: 1.5px solid var(--color-text-muted);
  margin: 0 auto var(--space-2);
  transition: all var(--duration-normal) var(--ease-out);
}

.pipeline__flow.is-visible .pipeline__node-dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.pipeline__node-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  margin-bottom: 4px;
  transition: color var(--duration-normal);
}

.pipeline__flow.is-visible .pipeline__node-num {
  color: var(--color-text-primary);
}

.pipeline__node-name {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* Sub-items within each node */
.pipeline__node-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pipeline__node-items li {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  transition: color var(--duration-normal);
}

.pipeline__node:hover .pipeline__node-items li {
  color: var(--color-text-secondary);
}

/* Scope comparison bar */
.pipeline__scope {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pipeline__scope-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: var(--space-3);
}

.pipeline__scope-label {
  font-family: var(--font-primary);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: right;
}

.pipeline__scope-bar {
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-size: var(--text-body);
  font-weight: 500;
}

.pipeline__scope-bar--client {
  width: 15%;
  min-width: 100px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
  color: var(--color-text-secondary);
}

.pipeline__scope-bar--esper {
  background: rgba(var(--color-primary-rgb), 0.1);
  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
  color: var(--color-primary-light);
}

/* ── Scope Cards (You provide / ESPER handles) ── */
.scope-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.scope-card {
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.scope-card--client {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-hover);
}

.scope-card--esper {
  background: rgba(var(--color-primary-rgb), 0.06);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.scope-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
  color: var(--color-chrome-dark);
}

.scope-card--esper .scope-card__icon {
  color: var(--color-primary);
}

.scope-card__esper-mark {
  width: 40px;
  height: 40px;
}

.scope-card__overline {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-ultra);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.scope-card__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.scope-card--esper .scope-card__title {
  color: var(--color-primary-light);
}

.scope-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.scope-card__list li {
  font-size: var(--text-small);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.scope-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-hover);
}

.scope-card--esper .scope-card__list li::before {
  background: rgba(var(--color-primary-rgb), 0.4);
}

.scope-card__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.scope-card__divider svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .scope-cards {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .scope-card__divider {
    transform: rotate(90deg);
    padding: var(--space-1) 0;
  }
}

/* Pipeline responsive */
@media (max-width: 1024px) {
  .pipeline__node-items {
    display: none;
  }
}

@media (max-width: 768px) {
  .pipeline {
    padding: var(--space-7) 0;
  }

  .pipeline__flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-4);
  }

  .pipeline__connector {
    display: none;
  }

  .pipeline__scope-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .pipeline__scope-label {
    text-align: left;
  }

  .pipeline__scope-bar--client {
    width: 40%;
  }
}

@media (max-width: 480px) {
  .pipeline__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
