/* #traffic — Content Drives Traffic (exact Traffic Engine composition) */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#traffic .traffic-drive {
  position: relative;
  align-items: stretch;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(18px, 2.2vw, 32px);
  padding: 0 0 var(--stack-gap, 18px);
}

#traffic .traffic-drive::before {
  content: "";
  position: absolute;
  inset: 0 -2% -2% -2%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 58% at 10% 42%, rgba(63, 169, 245, 0.1) 0%, transparent 72%),
    radial-gradient(ellipse 44% 50% at 90% 55%, rgba(11, 127, 199, 0.05) 0%, transparent 74%);
}

#traffic .traffic-drive > * {
  position: relative;
  z-index: 1;
}

/* ——— Left copy ——— */
#traffic .traffic-drive-copy {
  gap: 0;
  align-content: start;
  justify-items: start;
  align-self: stretch;
  padding-top: 4px;
}

#traffic .traffic-drive-kicker {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1.2;
}

#traffic .traffic-drive-kicker::after {
  display: none;
}

#traffic .traffic-drive-title {
  margin: 0 0 14px;
  max-width: 14ch;
  font-family: var(--sans);
  font-size: clamp(34px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
}

#traffic .traffic-drive-title .hl-green {
  color: var(--up);
  font-weight: 800;
}

#traffic .traffic-drive-body {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  max-width: 40ch;
}

#traffic .traffic-drive-body p {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
}

#traffic .traffic-drive-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}

#traffic .traffic-drive-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 14px 9px 12px;
  border: 1px solid color-mix(in srgb, var(--hairline) 80%, #fff);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px -12px rgba(11, 61, 92, 0.28);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
  color: var(--signal);
  white-space: nowrap;
}

#traffic .traffic-drive-pills li.traffic-drive-pill--hash {
  gap: 0;
  letter-spacing: 0;
  padding-left: 14px;
  padding-right: 14px;
}

#traffic .traffic-drive-hashmark {
  display: inline-block;
  margin-right: -0.32em;
  transform: translateX(0.02em);
}

#traffic .traffic-drive-pill-icon {
  display: inline-grid;
  place-items: center;
  color: var(--signal);
  flex: 0 0 auto;
}

#traffic .traffic-drive-pill-icon svg {
  display: block;
}

#traffic .feat-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  align-self: stretch;
}

/* ——— Traffic Engine card ——— */
#traffic .te-card {
  margin: 0;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--hairline) 85%, #fff);
  border-radius: var(--radius-card, 14px);
  background: #fff;
  box-shadow:
    0 22px 48px -20px rgba(11, 61, 92, 0.22),
    0 8px 18px -14px rgba(11, 61, 92, 0.12);
  overflow: hidden;
}

#traffic .te-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 4px;
}

#traffic .te-card-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

#traffic .te-card-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--up);
}

#traffic .te-card-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 18%, transparent);
  animation: teLivePulse 1.8s ease-in-out infinite;
}

@keyframes teLivePulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 16%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--up) 8%, transparent); }
}

#traffic .te-pipeline {
  position: relative;
  padding: 16px 12px 8px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

#traffic .te-pipeline-wave {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  width: 96%;
  height: min(58%, 160px);
  color: color-mix(in srgb, var(--bright) 22%, transparent);
  pointer-events: none;
  z-index: 0;
}

#traffic .te-pipeline-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin: 0;
  padding: 0 4px 4px;
}

#traffic .te-pipeline-steps::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bright) 55%, transparent), color-mix(in srgb, var(--bright) 70%, var(--signal)));
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

#traffic .te-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding-top: 4px;
  z-index: 1;
}

#traffic .te-step-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  align-self: start;
  width: 18px;
  margin-top: 18px;
  color: color-mix(in srgb, var(--bright) 78%, var(--signal));
  opacity: 0.9;
}

#traffic .te-step-arrow svg {
  display: block;
  width: 20px;
  height: 12px;
}

#traffic .te-step-orb {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--bright) 55%, #d7e8f6);
  box-shadow:
    0 0 0 4px color-mix(in srgb, #e8f4fc 88%, #fff),
    0 8px 16px -10px rgba(11, 127, 199, 0.35);
  color: var(--signal);
}

#traffic .te-step-orb svg {
  display: block;
}

#traffic .te-step-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--navy);
  max-width: 9.5ch;
}

#traffic .te-step-metric {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}

#traffic .te-step-meta {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  max-width: 12ch;
}

/* Gold outcome stage */
#traffic .te-step--gold {
  padding-top: 0;
}

#traffic .te-step-frame {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  width: 100%;
  max-width: 118px;
  padding: 10px 8px 12px;
  border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--gold) 72%, #c9a227);
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-lite) 28%, #fff) 0%, #fff 70%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold-lite) 35%, transparent),
    0 0 28px -4px color-mix(in srgb, var(--gold) 48%, transparent);
}

#traffic .te-step--gold .te-step-orb {
  border-color: color-mix(in srgb, var(--gold) 78%, #c9a227);
  color: #c9a227;
  background: linear-gradient(180deg, #fff9e6 0%, #fff 100%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--gold-lite) 50%, transparent),
    0 8px 14px -10px rgba(201, 162, 39, 0.4);
}

#traffic .te-step--gold .te-step-metric {
  color: #d4a017;
}

#traffic .te-step--gold .te-step-label {
  color: var(--navy);
}

#traffic .te-step--gold .te-step-meta {
  color: color-mix(in srgb, #9a7a12 55%, var(--muted));
}

/* Footer */
#traffic .te-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f2f5f8;
  border: 1px solid color-mix(in srgb, var(--hairline) 70%, #fff);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.4;
  color: var(--muted);
  flex: 0 0 auto;
}

#traffic .te-card-shield {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

#traffic .te-card-shield svg {
  display: block;
}

@media (max-width: 1100px) {
  #traffic .te-pipeline {
    padding-left: 8px;
    padding-right: 8px;
  }
  #traffic .te-step-label {
    font-size: 10px;
  }
  #traffic .te-step-metric {
    font-size: 16px;
  }
  #traffic .te-step-orb {
    width: 38px;
    height: 38px;
  }
  #traffic .te-step-arrow {
    width: 12px;
    margin-top: 14px;
  }
}

@media (max-width: 900px) {
  #traffic .traffic-drive {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  #traffic .traffic-drive-title {
    max-width: none;
  }
  #traffic .traffic-drive-body {
    max-width: 52ch;
  }
  #traffic .te-pipeline-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  #traffic .te-step {
    flex: 0 0 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #traffic .te-card-live i {
    animation: none;
  }
}
