/* Cargo Pulse — marketing deferred bundle (CP-AG-235).
 * Concatenation of: cp-glass.css → cp-theme.css → cp-redesign.css → cp-consent.css
 * Loaded async on marketing shells so first paint waits on only cp-marketing-critical.css.
 * Source files remain for session/dashboard pages; edit sources then rebuild this bundle.
 * Run: python3 scripts/build_marketing_deferred_css.py
 */

/* ===== BEGIN cp-glass.css ===== */
/* Cargo Pulse — glass / tech display theme */

html {
  color-scheme: dark;
}

body {
  background: var(--cp-bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(230, 138, 46, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(100, 160, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(230, 138, 46, 0.08), transparent 55%),
    linear-gradient(165deg, #060910 0%, #0c1220 38%, #0a0f18 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 20%, transparent 75%);
}

.cp-page,
.cp-shell {
  position: relative;
  z-index: 1;
}

.cp-site-header {
  z-index: 1100;
  background: rgba(8, 12, 20, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* backdrop-filter creates a fixed containing block — breaks the mobile drawer */
@media (max-width: 959px) {
  .cp-site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0f18;
    overflow: visible;
  }
}

.cp-header-nav {
  position: relative;
  z-index: 1;
}

@media (max-width: 959px) {
  .cp-header-nav,
  .cp-header-nav--session {
    position: fixed;
    z-index: 12050;
  }
}

.cp-header-dropdown {
  position: relative;
}

.cp-header-dropdown.is-open {
  z-index: 1200;
}

.cp-header-logo {
  padding: 4px 8px;
  margin: 0;
  height: 64px;
  max-width: min(42vw, 300px);
  border-radius: 8px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: none;
  box-shadow:
    0 0 0 1px rgba(230, 138, 46, 0.28),
    0 0 12px rgba(230, 138, 46, 0.22);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cp-header-logo:hover {
  box-shadow:
    0 0 0 1px rgba(230, 138, 46, 0.5),
    0 0 16px rgba(230, 138, 46, 0.35);
}

.cp-header-logo-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px rgba(230, 138, 46, 0.22));
}

/*
  Do NOT use display:contents on <picture> — Chrome/Android drops the image.
  Size the picture box; theme classes still hide the inactive logo img.
*/
.cp-header-logo picture,
.cp-logo-wrap picture {
  display: block;
  line-height: 0;
  width: 100%;
  max-width: 280px;
}

.cp-header-logo picture:has(.cp-header-logo-img--light),
.cp-logo-wrap picture:has(.cp-logo-img--light) {
  display: none;
}

[data-theme="light"] .cp-logo-wrap picture:has(.cp-logo-img--dark) {
  display: none;
}

[data-theme="light"] .cp-logo-wrap picture:has(.cp-logo-img--light) {
  display: block;
}

/* Icon sizes must exist outside dashboard CSS (marketing shell skips it). */
.cp-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}
.cp-icon--xs { width: 14px; height: 14px; }
.cp-icon--sm { width: 16px; height: 16px; }
.cp-icon--md { width: 18px; height: 18px; }
.cp-icon--lg { width: 28px; height: 28px; }
.cp-icon--header { width: 20px; height: 20px; }

@media (max-width: 959px) {
  .cp-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 0;
    background: none;
  }

  .cp-header-tools {
    flex-shrink: 0;
  }

  .cp-header-menu-btn {
    display: inline-flex !important;
  }

  .cp-header-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 112px);
  }

  .cp-header-logo picture {
    max-width: 100%;
  }
}

.cp-header-actions {
  margin-left: auto;
  padding-left: 14px;
  position: relative;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, rgba(8, 12, 20, 0.92) 18%);
}

.cp-header-mega {
  z-index: 1201;
  background: rgba(14, 20, 32, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cp-header-lang {
  position: relative;
  z-index: 1200;
}

.cp-header-lang-menu {
  z-index: 1201;
}

.cp-header-cta {
  box-shadow:
    0 4px 20px rgba(230, 138, 46, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cp-header-support {
  color: var(--cp-orange-light);
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.22) 0%, rgba(230, 138, 46, 0.1) 100%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 138, 46, 0.45);
  box-shadow:
    0 4px 18px rgba(230, 138, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.cp-header-support:hover {
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.28) 0%, rgba(230, 138, 46, 0.14) 100%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(230, 138, 46, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cp-header-support.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.42) 0%, rgba(230, 138, 46, 0.22) 100%),
    rgba(255, 255, 255, 0.06);
}

.cp-page {
  background: transparent;
}

.cp-page::before {
  display: none;
}

.cp-dashboard,
.cp-card,
.cp-info-page {
  isolation: isolate;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cp-dashboard {
  border-radius: 24px;
}

.cp-card,
.cp-info-page {
  border-radius: 20px;
}

.brand-accent-top {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 138, 46, 0.3) 15%,
    var(--cp-orange) 50%,
    rgba(230, 138, 46, 0.3) 85%,
    transparent
  );
  box-shadow: 0 0 20px rgba(230, 138, 46, 0.45);
}

.cp-hero-tag,
.cp-info-tag,
.cp-badge {
  background: rgba(230, 138, 46, 0.12);
  border: 1px solid rgba(230, 138, 46, 0.35);
  color: var(--cp-orange-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(230, 138, 46, 0.12);
}

.cp-hero h1,
.cp-info-hero h1,
.cp-header h1 {
  text-shadow: 0 0 40px rgba(230, 138, 46, 0.08);
}

.cp-coverage-note,
.cp-info-callout,
.cp-info-card,
.cp-info-list-item,
.cp-company-card,
.cp-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cp-info-hero {
  background:
    linear-gradient(180deg, rgba(230, 138, 46, 0.08) 0%, transparent 100%),
    rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-info-cta {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-info-steps li,
.cp-checkbox-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cp-muted);
}

.cp-info-steps li strong {
  color: var(--cp-text);
}

.cp-circle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cp-circle--carrier {
  background: linear-gradient(
    145deg,
    rgba(244, 162, 97, 0.95) 0%,
    rgba(230, 138, 46, 0.88) 45%,
    rgba(201, 116, 31, 0.95) 100%
  );
  box-shadow:
    0 16px 48px rgba(230, 138, 46, 0.35),
    0 0 40px rgba(230, 138, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cp-circle--broker {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cp-circle--broker .cp-circle-title {
  color: #fff;
}

.cp-circle:hover {
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(230, 138, 46, 0.25);
}

.cp-btn--outline {
  color: var(--cp-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cp-btn--outline:hover {
  border-color: rgba(230, 138, 46, 0.5);
  box-shadow: 0 0 24px rgba(230, 138, 46, 0.15);
}

.cp-back {
  color: var(--cp-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cp-text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(230, 138, 46, 0.6);
  box-shadow:
    0 0 0 3px rgba(230, 138, 46, 0.15),
    0 0 24px rgba(230, 138, 46, 0.1);
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--cp-placeholder, #4b5563);
  opacity: 1;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] select::placeholder {
  color: rgba(238, 241, 246, 0.55);
  opacity: 1;
}

.cp-table th {
  color: var(--cp-orange-light);
}

.cp-table th,
.cp-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cp-stat-value {
  color: var(--cp-orange-light);
  text-shadow: 0 0 20px rgba(230, 138, 46, 0.25);
}

.cp-filter button {
  box-shadow: 0 4px 16px rgba(230, 138, 46, 0.3);
}
.cp-filter-status {
  min-height: 18px;
  margin: -10px 0 10px;
  color: var(--cp-orange-light);
  font-size: 0.76rem;
  font-weight: 700;
}
.cp-filter--board.is-submitting {
  pointer-events: none;
}
.cp-filter--board.is-submitting input,
.cp-filter--board.is-submitting select {
  opacity: 0.72;
}
.cp-filter-submit:disabled {
  opacity: 0.8;
  cursor: wait;
}
.cp-filter--dashboard {
  margin: 12px 0 8px;
}
.cp-dashboard-filter-count {
  margin: 0 0 14px;
}
.cp-board-updating .cp-post-list--board {
  pointer-events: none;
  opacity: 0.55;
}
.cp-board-updating .cp-post-list--board .cp-board-listing {
  animation: cp-board-refresh-pulse 0.75s ease-in-out infinite alternate;
}
@keyframes cp-board-refresh-pulse {
  from { opacity: 0.55; }
  to { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-board-updating .cp-post-list--board .cp-board-listing {
    animation: none;
  }
}

.cp-msg--info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cp-muted);
}

.cp-msg--success {
  background: rgba(230, 138, 46, 0.1);
  border: 1px solid rgba(230, 138, 46, 0.25);
  color: var(--cp-text);
}

.cp-footer a,
.cp-coverage-note a {
  color: var(--cp-orange-light);
}

.cp-logo-wrap,
.cp-logo-wrap--on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px 10px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.06) 52%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cp-card-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 22px 12px;
  overflow: hidden;
  text-align: center;
}

.cp-card-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: min(400px, 94%);
  height: 120px;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    rgba(230, 138, 46, 0.22) 0%,
    rgba(230, 138, 46, 0.08) 34%,
    transparent 72%
  );
}

.cp-card-top .cp-logo-wrap {
  position: relative;
  z-index: 1;
  margin-inline: auto;
}

.cp-card .cp-logo-img {
  display: block;
  width: min(220px, 72vw);
  margin-inline: auto;
  filter: drop-shadow(0 2px 14px rgba(230, 138, 46, 0.28));
}

.cp-local-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--cp-muted);
}

.cp-dev-tools {
  background: rgba(230, 138, 46, 0.06);
  border: 1px dashed rgba(230, 138, 46, 0.25);
}

.mock-btn--fill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cp-text);
}

.gold-btn,
.cp-primary-btn,
.cp-btn--primary {
  box-shadow:
    0 8px 28px rgba(230, 138, 46, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cp-dashboard-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-how-it-works {
  margin: 4px 0 22px;
  padding: 20px;
  border: 1px solid rgba(230, 138, 46, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.04);
}
.cp-how-it-works__heading {
  margin-bottom: 16px;
  text-align: center;
}
.cp-how-it-works__eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--cp-orange-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cp-how-it-works__heading h2 {
  margin: 0;
  color: var(--cp-text);
  font-size: 1.05rem;
}
.cp-how-it-works__steps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 0 auto;
  padding: 0;
  padding-inline-start: 0;
  width: 100%;
  max-width: 100%;
  list-style: none;
  box-sizing: border-box;
}
.cp-how-it-works__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}
.cp-how-it-works__number {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--cp-orange);
  box-shadow: 0 5px 14px rgba(230, 138, 46, 0.3);
  font-size: 0.78rem;
  font-weight: 900;
}
.cp-how-it-works__step strong,
.cp-how-it-works__step small {
  display: block;
}
.cp-how-it-works__step strong {
  color: var(--cp-text);
  font-size: 0.82rem;
  line-height: 1.3;
}
.cp-how-it-works__step small {
  margin-top: 4px;
  color: var(--cp-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}
.cp-how-it-works--compact {
  margin: 0 0 20px;
  padding: 16px;
}
.cp-how-it-works--compact .cp-how-it-works__heading h2 {
  font-size: 0.95rem;
}
@media (max-width: 700px) {
  .cp-how-it-works__steps {
    flex-direction: column;
  }
  .cp-how-it-works__heading {
    text-align: left;
  }
}

.cp-hint--banner {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--cp-orange);
}

.cp-broker-access-account {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cp-broker-access-account__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.cp-broker-access-account__name {
  font-size: 1.05rem;
  color: var(--cp-text);
}

/* ── Comic pop sticker (homepage, left edge) ───────── */
.cp-comic-pop {
  position: fixed;
  left: 10px;
  top: 84px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 128px;
  padding: 14px 22px 14px 14px;
  transform-origin: left center;
  animation:
    cp-comic-pop-in 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
    cp-comic-idle 2.6s ease-in-out 1.15s infinite;
  pointer-events: none;
}
.cp-comic-pop__burst {
  position: absolute;
  inset: -10px -16px -10px -6px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
    linear-gradient(145deg, #ffe566 0%, #f5c344 38%, #e68a2e 72%, #ffd45a 100%);
  border: 4px solid #1a1208;
  clip-path: polygon(
    50% 0%, 58% 18%, 76% 6%, 68% 26%, 92% 28%, 72% 40%,
    100% 50%, 74% 58%, 88% 78%, 66% 68%, 72% 94%, 50% 78%,
    28% 94%, 34% 68%, 12% 78%, 26% 58%, 0% 50%, 28% 40%,
    8% 28%, 32% 26%, 24% 6%, 42% 18%
  );
  box-shadow:
    5px 5px 0 rgba(26, 18, 8, 0.85),
    0 10px 28px rgba(230, 138, 46, 0.5);
  animation: cp-comic-burst-idle 2.6s ease-in-out 1.15s infinite;
}
.cp-comic-pop__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: rotate(-4deg);
  line-height: 1;
  animation: cp-comic-text-wiggle 2.6s ease-in-out 1.15s infinite;
}
.cp-comic-pop__line {
  display: block;
  font-family: "Bangers", Impact, "Arial Black", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff8dc;
  -webkit-text-stroke: 2px #1a1208;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 #1a1208,
    4px 4px 0 rgba(26, 18, 8, 0.35);
}
.cp-comic-pop__line--main {
  font-size: 1.9rem;
}
.cp-comic-pop__line--sub {
  margin-top: 4px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
@keyframes cp-comic-pop-in {
  0% {
    opacity: 0;
    transform: translateX(-115%) scale(0.2) rotate(-18deg);
  }
  55% {
    opacity: 1;
    transform: translateX(12px) scale(1.14) rotate(5deg);
  }
  75% {
    transform: translateX(-5px) scale(0.97) rotate(-7deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(-3deg);
  }
}
@keyframes cp-comic-idle {
  0%, 100% {
    transform: translateX(0) scale(1) rotate(-3deg);
  }
  25% {
    transform: translateX(4px) scale(1.07) rotate(2deg);
  }
  50% {
    transform: translateX(-3px) scale(1.1) rotate(-5deg);
  }
  75% {
    transform: translateX(3px) scale(1.05) rotate(1deg);
  }
}
@keyframes cp-comic-burst-idle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08) rotate(3deg);
    filter: brightness(1.08);
  }
}
@keyframes cp-comic-text-wiggle {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  33% { transform: rotate(2deg) scale(1.04); }
  66% { transform: rotate(-6deg) scale(1.02); }
}
@media (max-width: 900px) {
  .cp-comic-pop {
    top: 78px;
    left: 8px;
    min-width: 176px;
    min-height: 108px;
    padding: 10px 16px 10px 10px;
  }
  .cp-comic-pop__line--main { font-size: 1.55rem; }
  .cp-comic-pop__line--sub { font-size: 0.92rem; }
}
@media (max-width: 600px) {
  .cp-comic-pop {
    top: auto;
    bottom: 16px;
    left: 10px;
    right: auto;
    min-width: 148px;
    min-height: 92px;
    padding: 8px 14px 8px 10px;
    transform-origin: left bottom;
    z-index: 950;
  }
  .cp-comic-pop__line--main { font-size: 1.3rem; }
  .cp-comic-pop__line--sub { font-size: 0.8rem; }
  .cp-page--dashboard {
    padding-bottom: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cp-comic-pop,
  .cp-comic-pop__burst,
  .cp-comic-pop__text {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .cp-comic-pop__text { transform: rotate(-4deg); }
}

.cp-badge-tag {
  background: rgba(230, 138, 46, 0.12);
  border: 1px solid rgba(230, 138, 46, 0.3);
  color: var(--cp-orange-light);
}

@media (max-width: 959px) {
  .cp-header-nav {
    background: #0a0f18;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

gmp-place-autocomplete input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cp-text);
}

.pac-container {
  background: rgba(14, 20, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.pac-item {
  color: var(--cp-text);
}

.pac-item:hover {
  background: rgba(230, 138, 46, 0.12);
}

.cp-err {
  background: var(--cp-err-bg, rgba(185, 28, 28, 0.22));
  border: 1px solid var(--cp-err-border, rgba(248, 113, 113, 0.45));
  color: var(--cp-err-fg, #fecaca);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.cp-err--portal {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 16px 14px 14px;
  border-left: 4px solid var(--cp-err-accent, #ef4444);
  box-shadow: 0 2px 10px var(--cp-err-shadow, rgba(185, 28, 28, 0.15));
}

.cp-section {
  color: var(--cp-text);
  border-bottom-color: rgba(230, 138, 46, 0.35);
}

select option {
  background: #0c1220;
  color: #eef1f6;
}

.cp-support-option {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cp-support-option:hover,
.cp-support-option:focus-visible {
  box-shadow:
    0 14px 36px rgba(230, 138, 46, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cp-support-option__panel-inner {
  background: linear-gradient(
    180deg,
    rgba(230, 138, 46, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-left: 3px solid rgba(230, 138, 46, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 12px 24px rgba(230, 138, 46, 0.04);
}

.cp-support-option__summary {
  color: var(--cp-muted);
}

/* Dashboard — prominent board CTA (Find loads / Find trucks) */
.cp-dashboard-board-link--featured {
  position: relative;
  overflow: hidden;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff !important;
  background: linear-gradient(
    135deg,
    rgba(230, 138, 46, 0.94) 0%,
    rgba(244, 162, 97, 0.9) 50%,
    rgba(255, 186, 106, 0.85) 100%
  );
  border: 1px solid rgba(255, 210, 140, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 6px 24px rgba(230, 138, 46, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(180, 90, 20, 0.12);
  animation: cp-board-link-glow 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cp-dashboard-board-link--featured:hover {
  transform: translateY(-2px);
  color: #fff !important;
  border-color: rgba(255, 235, 185, 1);
  animation-play-state: paused;
}

.cp-dashboard-board-link--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 42%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.28) 58%,
    transparent 100%
  );
  transform: skewX(-18deg);
  animation: cp-board-link-shine 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

@keyframes cp-board-link-glow {
  0%,
  100% {
    box-shadow:
      0 6px 22px rgba(230, 138, 46, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.48);
    border-color: rgba(255, 210, 140, 0.75);
  }
  25% {
    box-shadow:
      0 7px 26px rgba(230, 138, 46, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.52);
    border-color: rgba(255, 218, 155, 0.82);
  }
  50% {
    box-shadow:
      0 8px 30px rgba(230, 138, 46, 0.55),
      0 0 24px rgba(230, 138, 46, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.58);
    border-color: rgba(255, 228, 175, 0.9);
  }
  75% {
    box-shadow:
      0 7px 26px rgba(230, 138, 46, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.52);
    border-color: rgba(255, 218, 155, 0.82);
  }
}

@keyframes cp-board-link-shine {
  0%,
  18% {
    left: -120%;
    opacity: 0;
  }
  28% {
    left: -40%;
    opacity: 0.2;
  }
  50% {
    left: 55%;
    opacity: 0.38;
  }
  72% {
    left: 130%;
    opacity: 0.15;
  }
  82%,
  100% {
    left: 140%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-dashboard-board-link--featured {
    animation: none;
  }

  .cp-dashboard-board-link--featured::before {
    display: none;
  }
}

.cp-code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-bulk-fixed {
  margin: 0 0 8px;
  padding-left: 1.2rem;
  color: var(--cp-muted);
  line-height: 1.55;
}

.cp-bulk-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 18px;
  padding: 28px 18px;
  border: 1.5px dashed rgba(230, 138, 46, 0.45);
  border-radius: 12px;
  background: rgba(230, 138, 46, 0.06);
  cursor: pointer;
  text-align: center;
}

.cp-bulk-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.cp-bulk-drop__title {
  font-weight: 700;
  color: var(--cp-text);
}

.cp-bulk-drop__sub,
.cp-bulk-drop__name {
  font-size: 0.85rem;
  color: var(--cp-muted);
}

.cp-load-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(520px, 94vw);
}

.cp-load-modal::backdrop {
  background: rgba(8, 12, 20, 0.62);
}

.cp-load-modal__panel {
  background: var(--cp-bg-card, #121826);
  color: var(--cp-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.cp-load-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cp-load-modal__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.cp-load-modal__close {
  border: none;
  background: transparent;
  color: var(--cp-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.cp-load-modal__dl {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 8px 12px;
  margin: 14px 0 0;
}

.cp-load-modal__dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

.cp-load-modal__dl dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cp-text);
  word-break: break-word;
}

/* ── Floating panels (Facebook Messenger style) ────── */
.cp-float-panel {
  position: fixed;
  bottom: 16px;
  z-index: 1300;
  display: none;
  flex-direction: column;
  width: 340px;
  height: 460px;
  border-radius: 12px;
  background: var(--cp-bg-card, #121826);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.cp-float-panel.is-open {
  display: flex;
}
.cp-float-inbox { right: 372px; }
.cp-float-chat  { right: 16px; }
.cp-float-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.cp-float-panel__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-float-panel__close {
  border: none;
  background: transparent;
  color: var(--cp-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}
.cp-float-panel__close:hover { background: rgba(255, 255, 255, 0.08); }

/* ── Chat (inside float panel) ─────────────────────── */
.cp-chat-response-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--cp-muted);
  background: rgba(230, 138, 46, 0.08);
  border-bottom: 1px solid rgba(230, 138, 46, 0.18);
  flex-shrink: 0;
}
.cp-chat-response-note__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cp-orange);
  box-shadow: 0 0 0 3px rgba(230, 138, 46, 0.18);
  flex-shrink: 0;
}
.cp-chat-status {
  min-height: 1.1em;
  margin: 0;
  padding: 0 12px 6px;
  font-size: 0.74rem;
  color: var(--cp-muted);
  flex-shrink: 0;
}
.cp-chat-status--ok { color: #86efac; }
.cp-chat-status--error { color: #fca5a5; }
.cp-chat-body {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 10px 12px;
  min-height: 140px;
}
.cp-chat-empty {
  color: var(--cp-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px 0;
}
.cp-chat-msg {
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  max-width: 85%;
}
.cp-chat-msg--mine {
  margin-left: auto;
  background: rgba(230, 138, 46, 0.18);
  border: 1px solid rgba(230, 138, 46, 0.3);
}
.cp-chat-msg--theirs {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cp-chat-msg__who {
  display: block;
  font-size: 0.68rem;
  color: var(--cp-muted);
  margin-bottom: 2px;
}
.cp-chat-msg__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.42;
  word-break: break-word;
}
.cp-chat-msg__text--deleted {
  font-style: italic;
  opacity: 0.72;
}
.cp-chat-msg--deleted {
  opacity: 0.85;
}
.cp-chat-msg__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cp-chat-msg__receipt {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cp-muted);
  letter-spacing: 0.02em;
}
.cp-chat-msg__receipt--seen {
  color: var(--cp-orange-light, #e68a2e);
}
.cp-chat-msg__actions {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.cp-chat-msg__action {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cp-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cp-chat-msg__action:hover {
  color: var(--cp-orange-light, #e68a2e);
}
.cp-chat-msg__action--danger:hover {
  color: #e07070;
}
.cp-chat-compose {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.cp-chat-compose input {
  flex: 1;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 8px;
}
.cp-chat-compose__send {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 0.8rem;
}
.cp-chat-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 6px 12px;
}
.cp-contact-choice-note {
  padding: 10px 12px;
  border-left: 3px solid var(--cp-orange);
  border-radius: 0 8px 8px 0;
  background: rgba(230, 138, 46, 0.07);
}
.cp-contact-choice-note strong {
  color: var(--cp-orange-light);
}
.cp-expiry-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 4px 12px;
  padding: 8px 10px;
  border: 1px solid rgba(230, 138, 46, 0.32);
  border-radius: 9px;
  color: var(--cp-orange-light);
  background: rgba(230, 138, 46, 0.08);
  font-size: 0.76rem;
  font-weight: 700;
}
.cp-expiry-reminder form {
  margin: 0;
}
.cp-expiry-reminder__action {
  padding: 5px 9px;
  border: 1px solid rgba(230, 138, 46, 0.45);
  border-radius: 7px;
  color: #fff;
  background: var(--cp-orange);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cp-expiry-reminder__action:hover {
  filter: brightness(1.08);
}
@media (max-width: 520px) {
  .cp-expiry-reminder {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── Inbox (inside float panel) ────────────────────── */
.cp-inbox-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.cp-inbox-search {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}
.cp-inbox-search input,
.cp-inbox-tools select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}
.cp-inbox-tools select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-inbox-unread-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.cp-inbox-unread-filter input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--cp-orange);
}
.cp-inbox-results {
  min-height: 0;
  margin: 0;
  padding: 6px 12px 2px;
  color: var(--cp-muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.cp-inbox-threads {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 4px 0;
  min-height: 200px;
}
.cp-inbox-thread {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-inbox-thread:hover {
  background: rgba(255, 255, 255, 0.04);
}
.cp-inbox-thread--unread {
  background: rgba(230, 138, 46, 0.07);
}
.cp-inbox-thread__info {
  flex: 1;
  min-width: 0;
}
.cp-inbox-thread__info strong {
  display: block;
  font-size: 0.88rem;
}
.cp-inbox-thread__route {
  display: block;
  font-size: 0.75rem;
  color: var(--cp-muted);
}
.cp-inbox-thread__preview {
  display: block;
  font-size: 0.78rem;
  color: var(--cp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-inbox-thread__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.cp-inbox-thread__time {
  font-size: 0.7rem;
  color: var(--cp-muted);
}
.cp-inbox-badge, .cp-inbox-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--cp-orange);
}

.cp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(230, 138, 46, 0.35);
  background: rgba(230, 138, 46, 0.06);
}
.cp-empty-state--compact {
  padding: 14px;
}
.cp-empty-state__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cp-charcoal, #1a1208);
}
.cp-empty-state__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cp-muted);
}
.cp-empty-state__cta {
  margin-top: 2px;
}
.cp-empty-state .cp-btn + .cp-btn {
  margin-left: 0;
}
.cp-inbox-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cp-inbox-btn .cp-inbox-badge {
  position: absolute;
  top: -6px;
  right: -6px;
}
/* ── Floating action button (message FAB on load board) */
.cp-float-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cp-orange) 0%, #f4a261 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(230, 138, 46, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cp-float-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(230, 138, 46, 0.55);
}
.cp-float-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: #e53e3e;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 760px) {
  .cp-float-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: var(--cp-keyboard-inset, 0px) !important;
    width: 100% !important;
    max-width: none;
    height: calc(100dvh - var(--cp-keyboard-inset, 0px));
    max-height: calc(100dvh - var(--cp-keyboard-inset, 0px));
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  }
  .cp-float-inbox { z-index: 1301; }
  .cp-float-chat { z-index: 1302; }
  /* Chat covers inbox on phones — stacked 510px offset caused the empty top panel */
  body.cp-chat-open .cp-float-inbox.is-open {
    display: none !important;
  }
  .cp-chat-compose {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .cp-chat-compose input {
    font-size: 16px; /* avoid iOS zoom */
    min-height: 44px;
  }
  .cp-chat-compose__send {
    min-height: 44px;
    padding: 10px 16px;
  }
  .cp-chat-body {
    min-height: 0;
  }
}

/* ===== END cp-glass.css ===== */

/* ===== BEGIN cp-theme.css ===== */
/* Cargo Pulse — light / dark theme tokens and light-mode overrides */

:root {
  --cp-orange: #ef4c04;
}

[data-theme="light"] {
  color-scheme: light;
  --cp-orange-dark: #c9741f;
  --cp-orange-light: #f4a261;
  --cp-charcoal: #2e2e2e;
  --cp-charcoal-soft: #444444;
  --cp-header-bg: #0c1018;
  --cp-header-bg-elevated: #141c2a;
  --cp-bg: #f5f4f1;
  --cp-bg-card: #ffffff;
  --cp-bg-muted: #faf9f7;
  --cp-border: #e0ddd6;
  --cp-text: #2e2e2e;
  --cp-muted: #666666;
  --cp-input-bg: #ffffff;
  --cp-header-fg: rgba(238, 241, 246, 0.9);
  --cp-header-fg-strong: #eef1f6;
  --cp-header-fg-muted: rgba(238, 241, 246, 0.58);
  --cp-header-fg-soft: rgba(238, 241, 246, 0.72);
  --cp-header-fg-dim: rgba(238, 241, 246, 0.5);
  --cp-header-hover-bg: rgba(255, 255, 255, 0.08);
  --cp-header-subtle-bg: rgba(255, 255, 255, 0.06);
  --cp-header-icon-border: rgba(255, 255, 255, 0.18);
  --cp-header-divider: rgba(255, 255, 255, 0.1);
  --cp-header-menu-bar: #ffffff;
  --cp-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --cp-header-mega-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --cp-err-bg: #fee2e2;
  --cp-err-border: #f87171;
  --cp-err-fg: #991b1b;
  --cp-err-accent: #dc2626;
  --cp-err-shadow: rgba(220, 38, 38, 0.18);
}

[data-theme="dark"] {
  color-scheme: dark;
  --cp-orange-dark: #f4a261;
  --cp-orange-light: #ffba6a;
  --cp-charcoal: #eef1f6;
  --cp-charcoal-soft: rgba(238, 241, 246, 0.82);
  --cp-header-bg: rgba(8, 12, 20, 0.72);
  --cp-header-bg-elevated: rgba(14, 20, 32, 0.88);
  --cp-bg: #080c14;
  --cp-bg-card: rgba(255, 255, 255, 0.06);
  --cp-bg-muted: rgba(255, 255, 255, 0.04);
  --cp-border: rgba(255, 255, 255, 0.12);
  --cp-text: #eef1f6;
  --cp-muted: rgba(238, 241, 246, 0.55);
  --cp-input-bg: rgba(255, 255, 255, 0.05);
  --cp-header-fg: rgba(255, 255, 255, 0.88);
  --cp-header-fg-strong: #ffffff;
  --cp-header-fg-muted: rgba(255, 255, 255, 0.58);
  --cp-header-fg-soft: rgba(255, 255, 255, 0.72);
  --cp-header-fg-dim: rgba(255, 255, 255, 0.5);
  --cp-header-hover-bg: rgba(255, 255, 255, 0.08);
  --cp-header-subtle-bg: rgba(255, 255, 255, 0.06);
  --cp-header-icon-border: rgba(255, 255, 255, 0.18);
  --cp-header-divider: rgba(255, 255, 255, 0.08);
  --cp-header-menu-bar: #ffffff;
  --cp-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  --cp-header-mega-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --cp-err-bg: rgba(185, 28, 28, 0.28);
  --cp-err-border: rgba(248, 113, 113, 0.55);
  --cp-err-fg: #fecaca;
  --cp-err-accent: #f87171;
  --cp-err-shadow: rgba(0, 0, 0, 0.25);
}

.cp-header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cp-header-theme {
  position: relative;
}

.cp-header-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cp-header-icon-border);
  border-radius: 999px;
  background: var(--cp-header-subtle-bg);
  color: var(--cp-header-fg-strong);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cp-header-theme-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cp-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.cp-header-theme-btn:hover {
  background: var(--cp-header-hover-bg);
}

/* Logo variants */
.cp-logo-img--light,
.cp-header-logo-img--light {
  display: none;
}

[data-theme="light"] .cp-logo-img--dark {
  display: none;
}

[data-theme="light"] .cp-logo-img--light {
  display: block;
}

[data-theme="light"] .cp-header-logo-img--dark {
  display: block;
}

[data-theme="light"] .cp-header-logo-img--light {
  display: none;
}

.cp-header-logo-img--light {
  display: none;
}

[data-theme="light"] .cp-header-logo-img {
  filter: none;
}

[data-theme="dark"] .cp-header-logo-img--dark {
  filter: drop-shadow(0 2px 10px rgba(230, 138, 46, 0.22));
}

[data-theme="light"] .cp-profile-card__frame {
  box-shadow:
    0 12px 32px rgba(46, 46, 46, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  color: var(--cp-text);
  border-color: var(--cp-border);
}

[data-theme="light"] .cp-footer {
  color: var(--cp-muted);
}

[data-theme="light"] .cp-site-footer {
  --cp-footer-bg: #fcfaf9;
  --cp-footer-text: #262f39;
  --cp-footer-text-secondary: #6e7277;
  --cp-footer-icon: #e78223;
  --cp-footer-divider: rgba(38, 47, 57, 0.14);
  background: var(--cp-footer-bg);
  border-top-color: var(--cp-footer-divider);
}

[data-theme="light"] .cp-site-footer-nav a {
  color: var(--cp-footer-text-secondary);
}

[data-theme="dark"] .cp-site-footer {
  --cp-footer-bg: var(--cp-bg-muted);
  --cp-footer-text: var(--cp-text);
  --cp-footer-text-secondary: var(--cp-muted);
  --cp-footer-icon: var(--cp-orange);
  --cp-footer-divider: var(--cp-border);
}

/* Site footer — ISSUE 07 / improved contrast + one row */
.cp-site-footer {
  border-top: 1px solid var(--cp-footer-divider, var(--cp-border));
  background: var(--cp-footer-bg, var(--cp-bg-muted));
  padding: 12px 16px 16px;
}

.cp-site-footer-inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.2fr)
    minmax(0, 1.2fr)
    minmax(0, 2.5fr)
    minmax(0, 1.3fr);
  align-items: center;
  width: 100%;
  max-width: none;
  gap: 4px;
  padding: 0 12px;
  box-sizing: border-box;
}

.cp-site-footer-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 4px 8px;
  text-align: center;
  box-sizing: border-box;
}

.cp-site-footer-segment + .cp-site-footer-segment {
  border-left: 1px solid var(--cp-footer-divider, var(--cp-border));
}

.cp-site-footer-copy {
  margin: 0;
  font-size: calc(0.75rem + 2px);
  font-weight: 500;
  color: var(--cp-footer-text, var(--cp-text));
  line-height: 1.4;
  white-space: nowrap;
}

.cp-site-footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 2px 0;
  font-size: calc(0.75rem + 2px);
  font-weight: 500;
  color: var(--cp-footer-text, var(--cp-text));
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.cp-site-footer-contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-site-footer-icon {
  flex-shrink: 0;
  color: var(--cp-footer-icon, var(--cp-orange));
}

.cp-site-footer-icon--muted {
  color: var(--cp-footer-text, var(--cp-text));
}

.cp-site-footer-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.cp-site-footer-nav-list li {
  display: inline-flex;
  align-items: center;
}

.cp-site-footer-nav-list li + li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px;
  border-radius: 50%;
  background: var(--cp-footer-icon, var(--cp-orange));
  flex-shrink: 0;
}

.cp-site-footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 2px 0;
  font-size: calc(0.75rem + 2px);
  font-weight: 500;
  color: var(--cp-footer-text-secondary, var(--cp-muted));
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.cp-site-footer-nav-list a:hover {
  color: var(--cp-footer-text, var(--cp-text));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-site-footer-segment--cookies .cp-site-footer-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 2px 0;
  font-size: calc(0.75rem + 2px);
  font-weight: 500;
  color: var(--cp-footer-text, var(--cp-text));
  white-space: nowrap;
}

html[lang="es"] .cp-site-footer-inner,
.cp-site-footer[data-lang="es"] .cp-site-footer-inner {
  width: 100%;
  max-width: none;
}

html[lang="es"] .cp-site-footer-segment,
.cp-site-footer[data-lang="es"] .cp-site-footer-segment {
  justify-content: center;
  padding: 4px 8px;
}

html[lang="es"] .cp-site-footer-nav-list,
.cp-site-footer[data-lang="es"] .cp-site-footer-nav-list {
  justify-content: center;
  width: 100%;
}

html[lang="es"] .cp-site-footer-copy,
html[lang="es"] .cp-site-footer-contact-link,
html[lang="es"] .cp-site-footer-nav-list a,
html[lang="es"] .cp-site-footer-segment--cookies .cp-site-footer-link-btn,
.cp-site-footer[data-lang="es"] .cp-site-footer-copy,
.cp-site-footer[data-lang="es"] .cp-site-footer-contact-link,
.cp-site-footer[data-lang="es"] .cp-site-footer-nav-list a,
.cp-site-footer[data-lang="es"] .cp-site-footer-segment--cookies .cp-site-footer-link-btn {
  font-size: calc(0.7rem + 2px);
}

html[lang="es"] .cp-site-footer-nav-list li + li::before,
.cp-site-footer[data-lang="es"] .cp-site-footer-nav-list li + li::before {
  margin: 0 6px;
}

@media (max-width: 720px) {
  .cp-site-footer-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px;
  }

  .cp-site-footer-segment {
    width: 100%;
    padding: 4px 0;
    border-left: none !important;
    white-space: normal;
  }

  .cp-site-footer-segment + .cp-site-footer-segment {
    border-top: 1px solid var(--cp-footer-divider, var(--cp-border));
    padding-top: 12px;
    margin-top: 8px;
  }

  .cp-site-footer-nav-list {
    flex-wrap: wrap;
  }
}


/* Light theme — dark header bar (logo integration) */
[data-theme="light"] .cp-site-header {
  background: var(--cp-header-bg);
  border-bottom-color: var(--cp-header-divider);
  box-shadow: var(--cp-header-shadow);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

[data-theme="light"] .cp-header-link {
  color: var(--cp-header-fg);
}

[data-theme="light"] .cp-header-link:hover,
[data-theme="light"] .cp-header-dropdown.is-open > .cp-header-dropdown-toggle {
  color: var(--cp-header-fg-strong);
  background: var(--cp-header-hover-bg);
}

[data-theme="light"] .cp-header-link.is-active {
  color: var(--cp-orange-light);
}

[data-theme="light"] .cp-header-user {
  color: var(--cp-header-fg-soft);
}

[data-theme="light"] .cp-header-logo {
  background: #0a0a0a;
  border: none;
  overflow: visible;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(230, 138, 46, 0.32),
    0 0 12px rgba(230, 138, 46, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme="light"] .cp-header-logo:hover {
  box-shadow:
    0 0 0 1px rgba(230, 138, 46, 0.5),
    0 0 16px rgba(230, 138, 46, 0.4);
}

[data-theme="light"] .cp-header-actions {
  background: linear-gradient(90deg, transparent 0%, var(--cp-header-bg) 18%);
}

[data-theme="light"] .cp-header-mega {
  background: var(--cp-header-bg-elevated);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--cp-header-mega-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .cp-header-mega-item:hover {
  background: var(--cp-header-hover-bg);
}

[data-theme="light"] .cp-header-mega-desc,
[data-theme="light"] .cp-header-mega-label {
  color: var(--cp-header-fg-muted);
}

[data-theme="light"] .cp-header-mega-title {
  color: var(--cp-header-fg-strong);
}

[data-theme="light"] .cp-header-menu-btn span {
  background: #ffffff;
}

[data-theme="light"] .cp-header-lang-btn,
[data-theme="light"] .cp-header-theme-btn {
  color: var(--cp-header-fg);
}

/* Light body — no dark grid overlay */
[data-theme="light"] body::before,
[data-theme="light"] body::after {
  display: none;
}

[data-theme="light"] body {
  background: var(--cp-bg);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] select::placeholder {
  color: var(--cp-placeholder, #4b5563);
  opacity: 1;
}

[data-theme="light"] .cp-page {
  background: linear-gradient(180deg, rgba(230, 138, 46, 0.04) 0%, transparent 28%), var(--cp-bg);
}

[data-theme="light"] .cp-page::before {
  opacity: 0.04;
}

/* Light cards — solid white, no glass */
[data-theme="light"] .cp-dashboard,
[data-theme="light"] .cp-card,
[data-theme="light"] .cp-info-page {
  background: var(--cp-bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: var(--cp-border);
  box-shadow: 0 16px 48px rgba(46, 46, 46, 0.08);
}

[data-theme="light"] .cp-coverage-note,
[data-theme="light"] .cp-info-callout,
[data-theme="light"] .cp-info-card,
[data-theme="light"] .cp-info-list-item,
[data-theme="light"] .cp-company-card,
[data-theme="light"] .cp-stat-card {
  background: var(--cp-bg-muted);
  border-color: var(--cp-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .cp-info-hero {
  background: linear-gradient(180deg, rgba(230, 138, 46, 0.08) 0%, transparent 100%), var(--cp-bg-card);
  border-bottom-color: var(--cp-border);
}

[data-theme="light"] .cp-info-cta {
  background: var(--cp-bg-muted);
  border-top-color: var(--cp-border);
}

[data-theme="light"] .cp-info-steps li,
[data-theme="light"] .cp-checkbox-item {
  background: var(--cp-bg-muted);
  border-color: var(--cp-border);
  color: var(--cp-charcoal-soft);
}

[data-theme="light"] .cp-info-steps li strong {
  color: var(--cp-charcoal);
}

[data-theme="light"] .cp-hero h1,
[data-theme="light"] .cp-info-hero h1,
[data-theme="light"] .cp-header h1 {
  text-shadow: none;
}

[data-theme="light"] .cp-hero-tag,
[data-theme="light"] .cp-info-tag,
[data-theme="light"] .cp-badge {
  color: var(--cp-orange-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

[data-theme="light"] .cp-circle--broker {
  background: linear-gradient(145deg, #ffffff 0%, #f5f4f1 100%);
  border-color: var(--cp-border);
  box-shadow: 0 12px 32px rgba(46, 46, 46, 0.08);
}

[data-theme="light"] .cp-circle--broker .cp-circle-title,
[data-theme="light"] .cp-circle--broker .cp-circle-sub {
  color: var(--cp-charcoal);
}

[data-theme="light"] .cp-btn--outline {
  color: var(--cp-charcoal);
  background: #fff;
  border-color: var(--cp-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .cp-back {
  color: var(--cp-charcoal);
  background: var(--cp-bg-card);
  border-color: var(--cp-border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .cp-logo-wrap,
[data-theme="light"] .cp-logo-wrap--on-dark {
  background: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 20px rgba(46, 46, 46, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .cp-card-top::before {
  display: none;
}

[data-theme="light"] .cp-card .cp-logo-img {
  filter: none;
}

[data-theme="light"] .cp-stat-value {
  color: var(--cp-orange-dark);
  text-shadow: none;
}

[data-theme="light"] .cp-footer a,
[data-theme="light"] .cp-coverage-note a,
[data-theme="light"] .cp-network-preview__links a {
  color: var(--cp-orange-dark);
}

[data-theme="light"] .cp-local-badge {
  background: #fff;
  border-color: var(--cp-border);
  color: var(--cp-muted);
}

[data-theme="light"] .cp-hint--banner {
  background: var(--cp-bg-muted);
}

[data-theme="light"] .cp-broker-access-account {
  background: var(--cp-bg-muted);
  border-color: var(--cp-border);
}

[data-theme="light"] .cp-broker-access-account__label {
  color: var(--cp-text-muted);
}

[data-theme="light"] .cp-badge-tag {
  color: var(--cp-orange-dark);
}

[data-theme="light"] .cp-dashboard-footer {
  border-top-color: var(--cp-border);
}

[data-theme="light"] .cp-how-it-works {
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.1), transparent 54%),
    var(--cp-bg-muted);
  border-color: rgba(230, 138, 46, 0.3);
}

[data-theme="light"] .cp-how-it-works__step {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(46, 46, 46, 0.06);
}

[data-theme="light"] .cp-how-it-works__eyebrow {
  color: var(--cp-orange-dark);
}

[data-theme="light"] .cp-contact-choice-note strong,
[data-theme="light"] .cp-expiry-reminder {
  color: var(--cp-orange-dark);
}

[data-theme="light"] .cp-network-preview {
  border-top-color: var(--cp-border);
}

[data-theme="light"] select option {
  background: #ffffff;
  color: #2e2e2e;
}

[data-theme="light"] .pac-container {
  background: #ffffff;
  border-color: var(--cp-border);
}

[data-theme="light"] .cp-code {
  background: var(--cp-bg-muted);
  border-color: var(--cp-border);
}

[data-theme="light"] .cp-bulk-drop {
  background: rgba(230, 138, 46, 0.05);
}

[data-theme="light"] .cp-load-modal__panel {
  background: #ffffff;
  border-color: var(--cp-border);
  color: var(--cp-text);
  box-shadow: 0 20px 48px rgba(46, 46, 46, 0.16);
}

[data-theme="light"] .cp-load-modal::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

@media (max-width: 959px) {
  [data-theme="light"] .cp-header-nav {
    background: var(--cp-header-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

[data-theme="light"] .cp-support-option {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 18px rgba(46, 46, 46, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .cp-support-option:hover,
[data-theme="light"] .cp-support-option:focus-visible {
  box-shadow:
    0 12px 28px rgba(230, 138, 46, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .cp-support-option__panel-inner {
  background: linear-gradient(
    180deg,
    rgba(230, 138, 46, 0.1) 0%,
    rgba(255, 255, 255, 0.92) 100%
  );
  border-left: 3px solid rgba(230, 138, 46, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .cp-support-option__summary {
  color: var(--cp-charcoal-soft);
}

[data-theme="light"] .cp-header-support {
  color: var(--cp-orange-light);
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.22) 0%, rgba(230, 138, 46, 0.1) 100%),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 138, 46, 0.45);
  box-shadow:
    0 4px 18px rgba(230, 138, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .cp-header-support:hover {
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.28) 0%, rgba(230, 138, 46, 0.14) 100%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(230, 138, 46, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .cp-err--portal {
  background: #fecaca;
  border-color: #ef4444;
  color: #7f1d1d;
  border-left-color: #b91c1c;
}

[data-theme="dark"] .cp-err--portal {
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fee2e2;
  border-left-color: #f87171;
}

[data-theme="light"] .cp-header-support.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(230, 138, 46, 0.42) 0%, rgba(230, 138, 46, 0.22) 100%),
    rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .cp-header-messages {
  color: var(--cp-charcoal);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 18, 8, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .cp-header-messages:hover {
  border-color: rgba(230, 138, 46, 0.55);
  background: rgba(230, 138, 46, 0.12);
}

[data-theme="light"] .cp-header-messages.is-active {
  border-color: var(--cp-orange);
  color: var(--cp-orange-dark);
}

/* ── Comic pop sticker — light theme ────────────────── */
[data-theme="light"] .cp-comic-pop__burst {
  box-shadow:
    4px 4px 0 rgba(26, 18, 8, 0.75),
    0 8px 22px rgba(200, 140, 20, 0.35);
}

/* ── Chat / inbox floating panels — light theme ────── */
[data-theme="light"] .cp-float-panel {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .cp-inbox-tools {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cp-inbox-search input,
[data-theme="light"] .cp-inbox-tools select {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
}
[data-theme="light"] .cp-float-panel__head {
  background: rgba(0, 0, 0, 0.03);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cp-float-panel__close:hover {
  background: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .cp-chat-msg--mine {
  background: rgba(230, 138, 46, 0.12);
  border-color: rgba(230, 138, 46, 0.25);
}
[data-theme="light"] .cp-chat-msg--theirs {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cp-chat-compose {
  border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cp-chat-response-note {
  color: rgba(46, 46, 46, 0.7);
  background: rgba(230, 138, 46, 0.08);
  border-bottom-color: rgba(230, 138, 46, 0.2);
}
[data-theme="light"] .cp-chat-status--ok { color: #15803d; }
[data-theme="light"] .cp-chat-status--error { color: #b91c1c; }
[data-theme="light"] .cp-inbox-thread {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .cp-inbox-thread:hover {
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .cp-inbox-thread--unread {
  background: rgba(230, 138, 46, 0.06);
}

/* Spanish header: slightly tighter type; keep same three-zone distribution */
@media (min-width: 960px) {
  html[lang="es"] .cp-header-inner,
  .cp-site-header[data-lang="es"] .cp-header-inner {
    flex-wrap: nowrap;
    gap: 0;
  }

  html[lang="es"] .cp-header-nav,
  .cp-site-header[data-lang="es"] .cp-header-nav {
    flex-wrap: nowrap;
    gap: 4px clamp(10px, 1.2vw, 20px);
    margin-left: clamp(20px, 3vw, 40px);
    margin-right: clamp(16px, 2.5vw, 28px);
  }

  html[lang="es"] .cp-header-link,
  .cp-site-header[data-lang="es"] .cp-header-link {
    font-size: 0.68rem;
    padding: 8px 2px;
    letter-spacing: 0.05em;
  }

  html[lang="es"] .cp-header-support,
  .cp-site-header[data-lang="es"] .cp-header-support {
    font-size: 0.66rem;
    padding: 8px 10px;
    margin: 0;
    letter-spacing: 0.05em;
  }

  html[lang="es"] .cp-header-cta,
  .cp-site-header[data-lang="es"] .cp-header-cta {
    font-size: 0.68rem;
    padding: 9px 14px;
    letter-spacing: 0.05em;
  }

  html[lang="es"] .cp-header-actions,
  .cp-site-header[data-lang="es"] .cp-header-actions {
    gap: clamp(8px, 1vw, 14px);
    padding-left: 0;
  }
}
/* ===== END cp-theme.css ===== */

/* ===== BEGIN cp-redesign.css ===== */
/**
 * Cargo Pulse — marketing redesign (CP-AG-064 phase 1).
 * Scoped to public marketing shell + home. Dashboard pages keep existing glass styles.
 */

.cp-font-nav {
  font-family: var(--cp-font-nav);
  font-size: var(--cp-nav-size);
  font-weight: var(--cp-nav-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(239, 76, 4, 0.35);
  background: rgba(239, 76, 4, 0.06);
  color: var(--cp-orange);
  font-family: var(--cp-font-nav);
  font-size: var(--cp-eyebrow-size);
  font-weight: var(--cp-eyebrow-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-text-accent { color: var(--cp-orange); }

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--cp-radius-md);
  border: 1px solid transparent;
  font-family: var(--cp-font-nav);
  font-size: var(--cp-nav-size);
  font-weight: var(--cp-nav-weight);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.cp-btn--primary {
  background: var(--cp-orange);
  background-image: none;
  border-color: var(--cp-orange);
  color: var(--cp-white);
  box-shadow: none;
}
.cp-btn--ghost {
  background: transparent;
  background-image: none;
  border: 1px solid var(--cp-gray-300);
  color: var(--cp-gray-700);
  box-shadow: none;
}
.cp-btn--ghost:hover {
  border-color: var(--cp-gray-500);
  color: var(--cp-gray-900);
}
.cp-btn--block { width: 100%; }
.cp-btn__icon { width: 18px; height: 18px; flex-shrink: 0; }
.cp-btn--primary .cp-btn__icon {
  /* SVG <img> ignores currentColor — force white arrow on orange CTA */
  filter: brightness(0) invert(1);
}

body.cp-body--marketing {
  /* Override creamy light-theme --cp-bg (#f5f4f1) for marketing pages */
  --cp-bg: #ffffff;
  --cp-footer-bar-height: 56px;
  background: #ffffff;
  color: var(--cp-marketing-text);
  padding-top: var(--cp-header-height);
  padding-bottom: var(--cp-footer-bar-height);
}

body.cp-body--marketing .cp-site-header {
  background: var(--cp-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Three zones: Logo | Main nav | Support / Login / Sign up / Lang */
body.cp-body--marketing .cp-header-inner {
  height: var(--cp-header-height);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 clamp(20px, 3.5vw, 48px);
  gap: 0;
  align-items: center;
}

body.cp-body--marketing .cp-header-logo,
body.cp-body--marketing .cp-header-logo:hover,
body.cp-body--marketing .cp-header-logo:focus,
[data-theme="light"] body.cp-body--marketing .cp-header-logo,
[data-theme="light"] body.cp-body--marketing .cp-header-logo:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition: none !important;
  transform: none !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
  width: auto;
  max-width: 190px;
  height: 44px;
  margin: 0;
  padding: 0;
}

body.cp-body--marketing .cp-header-logo-img,
[data-theme="light"] body.cp-body--marketing .cp-header-logo-img {
  height: 40px;
  max-width: 180px;
  width: auto;
  filter: none !important;
}

body.cp-body--marketing .cp-header-nav {
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: center;
  gap: 6px clamp(14px, 1.6vw, 28px);
  margin-left: clamp(28px, 4vw, 56px);
  margin-right: clamp(20px, 3vw, 40px);
  min-width: 0;
}

body.cp-body--marketing .cp-header-link,
body.cp-body--marketing .cp-header-dropdown-toggle {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--cp-font-nav);
  font-size: 0.75rem;
  font-weight: var(--cp-nav-weight);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 8px 4px;
  background: transparent;
  border-radius: 0;
}

/* Account chip is also a .cp-header-dropdown-toggle — keep Title Case / sentence case */
body.cp-body--marketing .cp-header-account-toggle.cp-header-dropdown-toggle {
  font-family: var(--cp-font-primary, "Inter", system-ui, sans-serif);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  color: #fff;
}

body.cp-body--marketing .cp-header-account__name,
body.cp-body--marketing .cp-header-account__role {
  letter-spacing: normal;
  text-transform: none;
}

body.cp-body--marketing .cp-header-nav > .cp-header-link,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle {
  padding: 8px 2px;
}

body.cp-body--marketing .cp-header-nav > .cp-header-link,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle,
body.cp-body--marketing .cp-header-actions > a.cp-header-link {
  position: relative;
}

body.cp-body--marketing .cp-header-nav > .cp-header-link::after,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle::after,
body.cp-body--marketing .cp-header-actions > a.cp-header-link::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background: var(--cp-orange, #ef4c04);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
  pointer-events: none;
}

body.cp-body--marketing .cp-header-nav > .cp-header-link:hover::after,
body.cp-body--marketing .cp-header-nav > .cp-header-link:focus-visible::after,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle:hover::after,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle:focus-visible::after,
body.cp-body--marketing .cp-header-nav > .cp-header-dropdown.is-open > .cp-header-dropdown-toggle::after,
body.cp-body--marketing .cp-header-actions > a.cp-header-link:hover::after,
body.cp-body--marketing .cp-header-actions > a.cp-header-link:focus-visible::after {
  transform: scaleX(1);
}

body.cp-body--marketing .cp-header-link:hover,
body.cp-body--marketing .cp-header-dropdown-toggle:hover,
body.cp-body--marketing .cp-header-link.is-active,
body.cp-body--marketing .cp-header-dropdown-toggle.is-active {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

body.cp-body--marketing .cp-header-actions {
  flex: 0 0 auto;
  margin-left: 0;
  padding-left: 0;
  gap: clamp(10px, 1.2vw, 18px);
  background: none;
  align-items: center;
}

body.cp-body--marketing .cp-header-actions .cp-header-link {
  padding: 8px 6px;
}

body.cp-body--marketing .cp-header-cta {
  background: var(--cp-orange);
  background-image: none;
  border: 1px solid var(--cp-orange);
  color: var(--cp-white);
  font-family: var(--cp-font-nav);
  font-size: 0.75rem;
  font-weight: var(--cp-nav-weight);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--cp-radius-md);
  padding: 10px 18px;
  margin-left: 4px;
  box-shadow: none;
}

body.cp-body--marketing .cp-header-tools {
  margin-left: 2px;
}

body.cp-body--marketing .cp-header-lang-btn {
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  overflow: hidden;
}

body.cp-body--marketing .cp-header-lang-btn .cp-icon,
body.cp-body--marketing .cp-header-lang-btn img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (min-width: 960px) and (max-width: 1180px) {
  body.cp-body--marketing .cp-header-nav {
    gap: 4px clamp(8px, 1vw, 14px);
    margin-left: 20px;
    margin-right: 16px;
  }

  body.cp-body--marketing .cp-header-link,
  body.cp-body--marketing .cp-header-dropdown-toggle {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  body.cp-body--marketing .cp-header-account-toggle.cp-header-dropdown-toggle {
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
  }

  body.cp-body--marketing .cp-header-actions {
    gap: 8px;
  }
}

body.cp-body--marketing .cp-header-mega {
  background: var(--cp-white);
  border: 1px solid var(--cp-gray-300);
  border-radius: var(--cp-radius-lg);
  box-shadow: 0 18px 48px rgba(13, 17, 23, 0.14);
  color: var(--cp-gray-900);
  padding: 18px 20px 20px;
}

body.cp-body--marketing .cp-header-mega-label {
  color: var(--cp-gray-500);
  font-family: var(--cp-font-nav);
  font-size: var(--cp-eyebrow-size);
  font-weight: var(--cp-eyebrow-weight);
  letter-spacing: 0.1em;
}

body.cp-body--marketing .cp-header-mega-item { color: var(--cp-gray-900); border-radius: var(--cp-radius-sm); }
body.cp-body--marketing .cp-header-mega-item:hover { background: transparent; }

body.cp-body--marketing .cp-header-mega-title {
  color: var(--cp-gray-900);
  font-family: var(--cp-font-primary);
  font-size: var(--cp-text-body-size);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

body.cp-body--marketing .cp-header-mega-desc {
  color: var(--cp-gray-500);
  font-size: var(--cp-text-caption-size);
  line-height: var(--cp-text-caption-line);
}

body.cp-body--marketing .cp-header-mega-item__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

body.cp-body--marketing .cp-header-mega-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--cp-orange);
  margin-top: 2px;
}

body.cp-body--marketing .cp-header-mega--two-col {
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  min-width: min(560px, calc(100vw - 40px));
}

/* Only show mega menus when the dropdown is open (never by default). */
body.cp-body--marketing .cp-header-dropdown.is-open > .cp-header-mega--two-col {
  display: grid;
}

body.cp-body--marketing .cp-header-mega--auth {
  min-width: min(300px, calc(100vw - 40px));
}

body.cp-body--marketing .cp-site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: var(--cp-white);
  border-top: 1px solid var(--cp-gray-300);
  color: var(--cp-gray-700);
  margin-top: 0;
  padding: 0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

/*
  Footer rules (do not break):
  1) pad · centered content · pad in every section (same --cp-footer-pad)
  2) vertical lines never hide content
  3) one row; same text size for all items
  Grid minmax(max-content, 1fr) = equal share of leftover width, but each
  column is never narrower than its content — so centering cannot clip.
*/
body.cp-body--marketing .cp-site-footer-inner {
  --cp-footer-pad: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(max-content, 1fr));
  align-items: center;
  justify-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px clamp(20px, 3.5vw, 48px);
  gap: 0;
  box-sizing: border-box;
  min-height: var(--cp-footer-bar-height);
  height: auto;
  overflow: visible;
}

body.cp-body--marketing .cp-site-footer-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: max-content;
  padding: 0 var(--cp-footer-pad);
  box-sizing: border-box;
  text-align: center;
  overflow: visible;
}

body.cp-body--marketing .cp-site-footer-segment--nav {
  overflow: visible;
}

body.cp-body--marketing .cp-site-footer-copy,
body.cp-body--marketing .cp-site-footer-nav-list a,
body.cp-body--marketing .cp-site-footer-contact-link,
body.cp-body--marketing .cp-site-footer-link-btn {
  color: var(--cp-gray-700);
  font-size: var(--cp-text-caption-size);
  white-space: nowrap;
}

body.cp-body--marketing .cp-site-footer-nav-list {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: none;
  margin: 0;
  gap: 0;
  overflow: visible;
  box-sizing: border-box;
}

body.cp-body--marketing .cp-site-footer-nav-list li {
  flex: 0 0 auto;
}

body.cp-body--marketing .cp-site-footer-nav-list li + li::before {
  margin: 0 6px;
  background: var(--cp-orange);
}

body.cp-body--marketing .cp-site-footer-icon { color: var(--cp-orange); stroke: var(--cp-orange); }
body.cp-body--marketing .cp-site-footer-icon--muted { color: var(--cp-gray-500); stroke: var(--cp-gray-500); }

body.cp-body--marketing .cp-site-footer-segment + .cp-site-footer-segment {
  border-left: 1px solid var(--cp-gray-300);
}

body.cp-body--marketing .cp-site-footer-segment + .cp-site-footer-segment::before {
  display: none;
}

body.cp-body--marketing .cp-site-footer-link-btn {
  border: none;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Pure white — must beat [data-theme=light] .cp-page (cream #f5f4f1 + orange wash) */
body.cp-body--marketing .cp-page--home,
[data-theme="light"] body.cp-body--marketing .cp-page--home,
[data-theme="light"] .cp-page.cp-page--home {
  background: #ffffff;
  background-image: none;
  color: var(--cp-marketing-text);
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  min-height: calc(100vh - var(--cp-header-height));
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  overflow-x: clip;
  position: relative;
}

body.cp-body--marketing .cp-page--home::before,
[data-theme="light"] .cp-page.cp-page--home::before {
  display: none;
  content: none;
  opacity: 0;
}

.cp-home-hero {
  display: grid;
  /* More copy room — push fade + image toward the right */
  grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  /* Grow with copy so How it works always starts below the banner */
  height: auto;
  min-height: 440px;
  align-items: stretch;
  box-sizing: border-box;
  background: #ffffff;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.cp-home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  justify-self: stretch;
  gap: 4px;
  width: 100%;
  max-width: none;
  background: #ffffff;
  /* Flush to left screen edge — same inset as header logo */
  padding: 28px 20px 28px 60px;
  margin: 0;
  box-sizing: border-box;
  text-align: left;
}

.cp-home-hero__content h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 60px);
  line-height: 1.2;
  font-weight: var(--cp-text-h1-weight);
  color: var(--cp-gray-900);
  text-align: left;
}

.cp-home-hero__title-line {
  display: block;
}

.cp-home-hero__lead {
  margin: 0 0 28px;
  font-size: var(--cp-text-body-lg-size);
  line-height: var(--cp-text-body-lg-line);
  color: var(--cp-gray-700);
  max-width: 34ch;
  text-align: left;
}

.cp-home-role-label {
  margin: 0 0 14px;
  font-family: var(--cp-font-nav);
  font-size: var(--cp-eyebrow-size);
  font-weight: var(--cp-eyebrow-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-gray-500);
  text-align: left;
}

.cp-home-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 420px;
}

.cp-home-role-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 13px 14px;
  border: 1.5px solid var(--cp-gray-300);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.cp-home-role-card.is-selected {
  border-color: var(--cp-orange);
  box-shadow: 0 0 0 1px rgba(239, 76, 4, 0.2);
}

.cp-home-role-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Unselected: dark icon; selected: brand orange (img SVG) */
.cp-home-role-card__icon {
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}

.cp-home-role-card.is-selected .cp-home-role-card__icon {
  /* #EF4C04 */
  filter: brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(2878%) hue-rotate(1deg) brightness(101%) contrast(96%);
  opacity: 1;
}

.cp-home-role-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.cp-home-role-card__title {
  font-family: var(--cp-font-primary);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--cp-gray-900);
}

.cp-home-role-card.is-selected .cp-home-role-card__title {
  color: var(--cp-orange);
}

.cp-home-role-card__sub {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--cp-gray-500);
  font-weight: 400;
}

.cp-home-hero__cta {
  width: 100%;
  max-width: 420px;
  justify-content: center;
  font-family: var(--cp-font-primary);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Right panel — hero banner anchored to the left of the media column */
.cp-home-hero__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #ffffff;
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.cp-home-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Branded Cargo Pulse truck + USA/MEXICO crossing — keep signs in frame */
  object-position: 70% 35%;
}

/* Light edge blend — fade-mk2 already has left white mist */
.cp-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cp-white) 0%,
    rgba(255, 255, 255, 0.55) 6%,
    rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0) 22%
  );
}

.cp-home-hero__media::after {
  content: none;
  display: none;
}

.cp-how-v2 {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  text-align: center;
  border-top: 1px solid var(--cp-gray-100);
  background: var(--cp-white);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  clear: both;
}

.cp-how-v2__inner {
  max-width: var(--cp-shell-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cp-how-v2__heading {
  width: 100%;
  text-align: center;
}

.cp-how-v2__heading h2 {
  margin: 14px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.375rem);
  line-height: 1.25;
  font-weight: var(--cp-text-h2-weight);
  color: var(--cp-gray-900);
}

.cp-how-v2__heading .cp-eyebrow {
  padding: 4px 12px;
  font-size: 0.6875rem;
}

.cp-how-v2__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 0 32px;
  list-style: none;
  margin: 28px auto 0;
  padding: 0 8px;
  width: min(100%, 980px);
  max-width: 980px;
  box-sizing: border-box;
}

.cp-how-v2__step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 8px 20px;
  box-sizing: border-box;
  text-align: left;
  min-width: 0;
}

.cp-how-v2__step + .cp-how-v2__step {
  border-left: 1px solid var(--cp-gray-300);
  padding-left: 32px;
}

.cp-how-v2__icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 76, 4, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-how-v2__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.cp-how-v2__copy {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 18ch;
  padding-top: 4px;
}

.cp-how-v2__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cp-orange);
  color: var(--cp-white);
  font-family: var(--cp-font-nav);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-how-v2__step strong[hidden],
.cp-how-v2__step small[hidden] {
  display: none !important;
}

.cp-how-v2__step strong {
  display: block;
  font-size: var(--cp-text-body-size);
  font-weight: 600;
  color: var(--cp-gray-900);
  margin-bottom: 8px;
}

.cp-how-v2__step small {
  display: block;
  font-size: var(--cp-text-caption-size);
  line-height: 1.45;
  color: var(--cp-gray-500);
  max-width: none;
  margin: 0;
}

/* Home — visibility mid-band (Okara landing: light wash + dark type) */
.cp-home-visibility {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  overflow: hidden;
  color: var(--cp-gray-900);
  text-align: center;
  isolation: isolate;
  background: #f3f4f6;
}

.cp-home-visibility__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cp-home-visibility__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.cp-home-visibility::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Center heavy white wash for copy; edges clearer so truck/plaza show through */
  background: radial-gradient(
    ellipse 72% 68% at 50% 48%,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.86) 28%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.22) 78%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

.cp-home-visibility__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cp-home-visibility__inner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--cp-gray-900);
}

.cp-home-visibility__inner p {
  margin: 0;
  max-width: 62ch;
  font-size: var(--cp-text-body-lg-size, 1.05rem);
  line-height: 1.55;
  color: var(--cp-gray-700);
}

/* Home — Why Cargo Pulse (below visibility band) */
.cp-home-why {
  width: 100%;
  margin: 0;
  padding: 48px clamp(20px, 4vw, 48px) 56px;
  border-top: 1px solid var(--cp-gray-100);
  background: #ffffff;
  box-sizing: border-box;
}

.cp-home-why__inner {
  max-width: var(--cp-shell-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cp-home-why__heading {
  width: 100%;
  text-align: center;
}

.cp-home-why__heading h2 {
  margin: 14px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.375rem);
  line-height: 1.25;
  font-weight: var(--cp-text-h2-weight);
  color: var(--cp-gray-900);
}

.cp-home-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cp-home-why__card {
  background: var(--cp-white);
  border: 1px solid var(--cp-gray-100);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: left;
  box-sizing: border-box;
}

.cp-home-why__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 76, 4, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cp-home-why__icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  /* Match PDF orange outline icons */
  filter: brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(2878%) hue-rotate(1deg) brightness(101%) contrast(96%);
}

.cp-home-why__card strong {
  display: block;
  font-size: var(--cp-text-body-size);
  font-weight: 600;
  color: var(--cp-gray-900);
  margin-bottom: 8px;
}

.cp-home-why__card p {
  margin: 0;
  font-size: var(--cp-text-caption-size);
  line-height: 1.5;
  color: var(--cp-gray-500);
}

/* Home — Coverage (two-column: copy + map) */
.cp-home-coverage {
  width: 100%;
  margin: 0;
  padding: 56px clamp(20px, 4vw, 48px) 64px;
  border-top: 1px solid var(--cp-gray-100);
  background: #f7f8fa;
  box-sizing: border-box;
}

.cp-home-coverage__inner {
  max-width: var(--cp-shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.4fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  text-align: left;
}

.cp-home-coverage__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 34ch;
}

.cp-home-coverage__copy .cp-eyebrow {
  display: inline-flex;
  border: 1px solid var(--cp-orange);
  color: var(--cp-orange);
  background: transparent;
}

.cp-home-coverage__copy h2 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--cp-gray-900);
  letter-spacing: -0.02em;
}

.cp-home-coverage__lead {
  margin: 14px 0 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--cp-gray-500);
}

.cp-home-coverage__map {
  margin: 0;
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  line-height: 0;
}

.cp-home-coverage__map img,
.cp-home-coverage__svg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 860px) {
  .cp-home-coverage__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cp-home-coverage__copy {
    max-width: none;
  }
}

/* Home — FAQ (two-column: intro + accordion panel) */
.cp-home-faq {
  width: 100%;
  margin: 0;
  padding: 56px clamp(20px, 4vw, 48px) 64px;
  border-top: 1px solid var(--cp-gray-100);
  background: #f3f4f6;
  box-sizing: border-box;
}

.cp-home-faq__inner {
  max-width: var(--cp-shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.cp-home-faq__intro {
  text-align: left;
  padding-top: 4px;
}

.cp-home-faq__intro .cp-eyebrow {
  display: inline-flex;
  border: 1px solid var(--cp-orange);
  color: var(--cp-orange);
  background: transparent;
}

.cp-home-faq__intro h2 {
  margin: 16px 0 0;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--cp-gray-900);
  letter-spacing: -0.02em;
}

.cp-home-faq__intro p {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--cp-gray-500);
}

.cp-home-faq__panel {
  background: var(--cp-white);
  border: 1px solid var(--cp-gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cp-home-faq__item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.cp-home-faq__item + .cp-home-faq__item {
  border-top: 1px solid var(--cp-gray-200);
}

.cp-home-faq__trigger {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  cursor: pointer;
  padding: 18px 20px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cp-gray-900);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cp-home-faq__trigger::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 2px solid var(--cp-gray-500);
  border-bottom: 2px solid var(--cp-gray-500);
  transform: rotate(45deg);
  transition: transform 0.28s ease;
}

.cp-home-faq__item.is-open .cp-home-faq__trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.cp-home-faq__curtain {
  height: 0;
  overflow: hidden;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-home-faq__curtain-inner {
  padding: 0 20px 18px;
}

.cp-home-faq__curtain-inner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--cp-gray-500);
}

@media (max-width: 860px) {
  .cp-home-faq__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cp-home-faq__intro p {
    max-width: none;
  }
}

/* Home AdSense unit — between How it works and footer */
.cp-home-adsense {
  width: 100%;
  margin: 0;
  padding: 24px clamp(20px, 4vw, 48px) 32px;
  border-top: 1px solid var(--cp-gray-300);
  background: #fafafa;
  box-sizing: border-box;
}

.cp-home-adsense__inner {
  max-width: var(--cp-shell-max);
  margin: 0 auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-home-adsense .adsbygoogle {
  display: block;
  width: 100%;
}

@media (max-width: 959px) {
  body.cp-body--marketing .cp-header-nav > .cp-header-link::after,
  body.cp-body--marketing .cp-header-nav > .cp-header-dropdown > .cp-header-dropdown-toggle::after,
  body.cp-body--marketing .cp-header-actions > a.cp-header-link::after {
    display: none;
  }

  /* Match dashboard drawer: display toggle (transform alone fought base display:none) */
  body.cp-body--marketing .cp-header-nav {
    display: none;
    position: fixed;
    inset: var(--cp-header-height) 0 0 0;
    background: var(--cp-navy);
    padding: 16px 20px 28px;
    overflow-y: auto;
    transform: none;
    transition: none;
    z-index: 1090;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    -webkit-overflow-scrolling: touch;
  }

  body.cp-body--marketing .cp-header-nav.is-open {
    display: flex;
    transform: none;
  }

  body.cp-body--marketing.cp-body--growth,
  body.cp-body--marketing.cp-body--growth-apply,
  body.cp-body--marketing.cp-body--support-session {
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.cp-body--marketing .cp-header-link,
  body.cp-body--marketing .cp-header-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.cp-body--marketing .cp-header-mega {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    margin: 0 0 8px;
    padding: 10px 12px;
  }

  body.cp-body--marketing .cp-header-dropdown.is-open .cp-header-mega { display: block; }
  body.cp-body--marketing .cp-header-mega--two-col { grid-template-columns: 1fr; min-width: 0; }
  body.cp-body--marketing .cp-header-mega-title { color: var(--cp-white); }
  body.cp-body--marketing .cp-header-mega-desc { color: rgba(255, 255, 255, 0.62); }

  body.cp-body--marketing .cp-header-mobile-extra {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cp-home-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .cp-home-hero__content {
    padding: 22px 20px 19px;
    max-width: none;
    justify-self: stretch;
    align-items: stretch;
  }
  .cp-home-hero__cta { max-width: none; }
  .cp-home-role-grid { max-width: none; }
  .cp-home-hero__media { min-height: 260px; order: 2; }
  .cp-home-hero__img { position: absolute; inset: 0; height: 100%; object-position: 70% 35%; }
  .cp-home-hero__media::before {
    content: "";
    display: block;
    background: linear-gradient(
      180deg,
      var(--cp-white) 0%,
      rgba(255, 255, 255, 0.4) 12%,
      rgba(255, 255, 255, 0) 28%
    );
  }
  .cp-home-hero__media::after { content: none; display: none; }
  .cp-how-v2 { padding: 28px 20px 32px; }
  .cp-how-v2__steps {
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0;
    width: 100%;
    max-width: 420px;
    margin-top: 24px;
  }
  .cp-how-v2__step { padding: 20px 12px; gap: 14px; flex-direction: row; align-items: flex-start; text-align: left; }
  .cp-how-v2__step + .cp-how-v2__step {
    border-left: none;
    border-top: 1px solid var(--cp-gray-300);
    padding-left: 12px;
  }
  .cp-home-why,
  .cp-home-coverage,
  .cp-home-faq {
    padding: 36px 20px 40px;
  }
  .cp-home-why__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.cp-body--marketing {
    --cp-footer-bar-height: 0px;
    padding-bottom: 0;
  }

  body.cp-body--marketing .cp-site-footer {
    position: static;
    box-shadow: none;
  }

  body.cp-body--marketing .cp-site-footer-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px;
    min-height: 0;
  }

  body.cp-body--marketing .cp-site-footer-segment {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
  }

  body.cp-body--marketing .cp-site-footer-segment--nav {
    flex: 0 0 auto;
    overflow: visible;
  }

  body.cp-body--marketing .cp-site-footer-nav-list {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  body.cp-body--marketing .cp-site-footer-segment + .cp-site-footer-segment {
    border-left: none;
    border-top: 1px solid var(--cp-gray-300);
  }
}

@media (min-width: 960px) {
  body.cp-body--marketing .cp-header-desktop-only { display: inline-flex; }
  body.cp-body--marketing .cp-header-mobile-extra { display: none; }
}

@media (max-width: 959px) {
  body.cp-body--marketing .cp-header-desktop-only { display: none !important; }
}

body.cp-body--marketing .cp-header-cta.cp-header-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

body.cp-body--marketing .cp-header-cta .cp-header-chevron {
  color: var(--cp-white);
}

body.cp-body--marketing .cp-header-actions .cp-header-dropdown {
  position: relative;
}

body.cp-body--marketing .cp-header-actions .cp-header-mega {
  right: 0;
  left: auto;
}

/* Marketing controls — flat static buttons (no hover lift, shine, or transitions) */
body.cp-body--marketing .cp-btn,
body.cp-body--marketing .cp-header-cta,
body.cp-body--marketing .cp-home-role-card,
body.cp-body--marketing .cp-site-footer-link-btn,
body.cp-body--marketing .cp-header-link,
body.cp-body--marketing .cp-header-dropdown-toggle,
body.cp-body--marketing .cp-header-lang-btn,
body.cp-body--marketing .cp-header-mega-item {
  transition: none !important;
  animation: none !important;
}

body.cp-body--marketing .cp-btn--primary,
body.cp-body--marketing .cp-header-cta {
  background: var(--cp-orange) !important;
  background-image: none !important;
  border-color: var(--cp-orange) !important;
  box-shadow: none !important;
}

body.cp-body--marketing .cp-btn:hover,
body.cp-body--marketing .cp-btn:active,
body.cp-body--marketing .cp-btn--primary:hover,
body.cp-body--marketing .cp-btn--primary:active,
body.cp-body--marketing .cp-btn--primary:focus,
body.cp-body--marketing .cp-header-cta:hover,
body.cp-body--marketing .cp-header-cta:active,
body.cp-body--marketing .cp-header-cta:focus {
  background: var(--cp-orange) !important;
  background-image: none !important;
  border-color: var(--cp-orange) !important;
  color: var(--cp-white) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.cp-body--marketing .cp-home-role-card:hover {
  border-color: var(--cp-gray-300);
}

body.cp-body--marketing .cp-home-role-card.is-selected:hover {
  border-color: var(--cp-orange);
}

/* —— Login page (split form + hero) —— */
body.cp-body--marketing.cp-body--login {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.cp-body--marketing.cp-body--login .cp-page--login,
[data-theme="light"] body.cp-body--marketing.cp-body--login .cp-page--login {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  height: calc(100vh - var(--cp-header-height) - var(--cp-footer-bar-height));
  max-height: calc(100vh - var(--cp-header-height) - var(--cp-footer-bar-height));
  margin: 0;
  padding: 0;
  background: #ffffff;
  background-image: none;
  overflow: hidden;
}

.cp-login-split {
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.cp-login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  background: #ffffff;
  box-sizing: border-box;
  overflow-y: auto;
}

.cp-login-form-inner {
  width: 100%;
  max-width: 420px;
}

.cp-login-form-inner .cp-eyebrow {
  margin-bottom: 14px;
}

.cp-login-form-inner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--cp-gray-900);
}

.cp-login-lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cp-gray-500);
}

.cp-login-portal-label {
  margin: 0 0 10px;
  font-family: var(--cp-font-nav);
  font-size: var(--cp-eyebrow-size);
  font-weight: var(--cp-eyebrow-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-gray-500);
}

.cp-login-portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.cp-login-portal-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1.5px solid var(--cp-gray-300);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.cp-login-portal-card.is-selected {
  border-color: var(--cp-orange);
  background: rgba(239, 76, 4, 0.06);
  box-shadow: 0 0 0 1px rgba(239, 76, 4, 0.15);
}

.cp-login-portal-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%);
  opacity: 0.82;
}

.cp-login-portal-card.is-selected .cp-login-portal-card__icon {
  filter: brightness(0) saturate(100%) invert(42%) sepia(96%) saturate(2878%) hue-rotate(1deg) brightness(101%) contrast(96%);
  opacity: 1;
}

.cp-login-portal-card__title {
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-login-portal-card.is-selected .cp-login-portal-card__title {
  color: var(--cp-orange);
}

.cp-login-error {
  margin-bottom: 18px;
}

body.cp-body--marketing .cp-login-error.cp-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.cp-login-field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-login-field {
  position: relative;
  margin-bottom: 18px;
}

.cp-login-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--cp-gray-500);
  pointer-events: none;
  opacity: 0.72;
}

.cp-login-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--cp-gray-300);
  border-radius: 10px;
  background: #ffffff;
  color: var(--cp-gray-900);
  font-size: 1rem;
  line-height: 1.4;
  box-sizing: border-box;
}

.cp-login-field input::placeholder {
  color: var(--cp-placeholder, #4b5563);
  opacity: 1;
}

.cp-login-field input:focus {
  outline: 2px solid rgba(239, 76, 4, 0.35);
  outline-offset: 0;
  border-color: var(--cp-orange);
}

.cp-login-field--password input {
  padding-right: 48px;
}

.cp-login-field--password .cp-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--cp-orange);
  box-shadow: none;
}

.cp-login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
}

.cp-login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--cp-gray-700);
  cursor: pointer;
}

.cp-login-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--cp-orange);
}

.cp-login-forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cp-orange);
  text-decoration: none;
  white-space: nowrap;
}

.cp-login-submit {
  font-family: var(--cp-font-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  min-height: 48px;
}

.cp-login-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 18px;
  color: var(--cp-gray-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cp-login-or::before,
.cp-login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--cp-gray-300);
}

.cp-google-signin {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 18px;
}

.cp-google-signin.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.cp-google-signin__custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px; /* match .cp-login-submit */
  padding: 0 18px;
  box-sizing: border-box;
  border: 1px solid var(--cp-gray-300);
  border-radius: var(--cp-radius-md);
  background: #fff;
  color: var(--cp-gray-900);
  font-family: var(--cp-font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cp-google-signin__custom:hover {
  border-color: var(--cp-gray-500);
  background: #fafafa;
}

.cp-google-signin__custom:focus-visible {
  outline: 2px solid var(--cp-orange);
  outline-offset: 2px;
}

.cp-google-signin__custom-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cp-google-signin__g {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.cp-google-signin__label {
  line-height: 1;
}

.cp-google-signin__hint {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--cp-gray-500);
  line-height: 1.4;
}

.cp-login-signup {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--cp-gray-500);
}

.cp-login-signup a {
  color: var(--cp-orange);
  font-weight: 600;
  text-decoration: none;
}

.cp-login-hero-panel {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #0d1117;
}

.cp-login-hero-panel > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.cp-login-hero-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cp-login-hero-panel__overlay {
  display: none;
}

.cp-login-hero-panel__copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 48px);
  max-width: none;
  box-sizing: border-box;
  transform: translateY(-120px);
}

.cp-login-hero-panel__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  line-height: 1.12;
  font-weight: 700;
  color: #ffffff;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.45);
}

.cp-login-hero-panel__title-line {
  display: block;
}

.cp-login-hero-panel__title .cp-text-accent {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.6),
    0 1px 4px rgba(0, 0, 0, 0.5);
}

.cp-login-hero-panel__lead {
  margin: 0;
  font-size: clamp(1rem, 1.75vw, 1.1875rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.94);
  max-width: 36ch;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.42);
}

body.cp-body--marketing.cp-body--login .cp-login-portal-card,
body.cp-body--marketing.cp-body--login .cp-login-portal-card:hover,
body.cp-body--marketing.cp-body--login .cp-login-forgot:hover,
body.cp-body--marketing.cp-body--login .cp-login-signup a:hover,
body.cp-body--marketing.cp-body--login .cp-login-field--password .cp-password-toggle:hover {
  transition: none !important;
  transform: none !important;
  box-shadow: none;
}

body.cp-body--marketing.cp-body--login .cp-login-portal-card.is-selected {
  box-shadow: 0 0 0 1px rgba(239, 76, 4, 0.15);
}

body.cp-body--marketing.cp-body--login .cp-login-portal-card:not(.is-selected):hover {
  border-color: var(--cp-gray-300);
  background: #ffffff;
}

@media (max-width: 959px) {
  body.cp-body--marketing.cp-body--login .cp-page--login,
  [data-theme="light"] body.cp-body--marketing.cp-body--login .cp-page--login {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .cp-login-split {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--cp-header-height) - var(--cp-footer-bar-height));
  }

  .cp-login-hero-panel {
    order: 2;
    min-height: 320px;
    height: auto;
  }

  .cp-login-form-panel {
    order: 1;
    height: auto;
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .cp-login-hero-panel__copy {
    justify-content: flex-end;
    padding: 24px 20px 28px;
  }
}

/* ── Broker signup — single column, locked viewport (no scroll on desktop) ── */
body.cp-body--marketing.cp-body--signup {
  --cp-bg: #f3f4f6;
  --cp-signup-vh: calc(100vh - var(--cp-header-height) - var(--cp-footer-bar-height));
  --cp-signup-gap: 8px;
  --cp-signup-input-h: 36px;
  --cp-signup-pad-y: 12px;
  --cp-signup-pad-x: 20px;
  background: #f3f4f6;
  overflow: hidden;
}

.cp-page--signup,
[data-theme="light"] body.cp-body--marketing.cp-body--signup .cp-page--signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--cp-signup-vh);
  max-height: var(--cp-signup-vh);
  min-height: 0;
  margin: 0;
  padding: 8px 16px;
  background: #f3f4f6;
  background-image: none;
  overflow: hidden;
  box-sizing: border-box;
}

.cp-signup-shell {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.cp-signup-card {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: var(--cp-signup-pad-y) var(--cp-signup-pad-x);
  border-radius: 14px;
  background: var(--cp-white);
  border: 1px solid var(--cp-gray-100);
  box-shadow: 0 10px 32px rgba(13, 17, 23, 0.07);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cp-signup-card__head {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 8px;
}

.cp-signup-card .cp-eyebrow {
  display: inline-block;
  margin: 0 0 4px;
  text-align: center;
  color: var(--cp-orange);
  font-size: 0.6875rem;
}

.cp-signup-card h1 {
  margin: 0 0 4px;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--cp-gray-900);
}

.cp-signup-lead {
  margin: 0 auto;
  max-width: 40ch;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--cp-gray-500);
}

.cp-signup-error {
  margin: 0 0 6px;
  flex-shrink: 0;
  font-size: 0.8125rem;
}

.cp-signup-form .cp-login-field.is-invalid,
.cp-signup-form .cp-signup-phone.is-invalid,
.cp-signup-form .cp-places-field.is-invalid,
.cp-signup-form input.is-invalid,
.cp-signup-form select.is-invalid {
  border-color: #c2410c;
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.25);
}

.cp-signup-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.cp-signup-grid {
  display: flex;
  flex-direction: column;
  gap: var(--cp-signup-gap);
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-between;
}

.cp-signup-field--full {
  width: 100%;
}

.cp-signup-grid--passwords {
  display: flex;
  flex-direction: column;
  gap: var(--cp-signup-gap);
}

.cp-signup-form .cp-login-field {
  margin-bottom: 0;
}

.cp-signup-form .cp-login-field-label {
  margin: 0 0 3px;
  font-size: 0.75rem;
  line-height: 1.2;
}

.cp-signup-form .cp-login-field input,
.cp-signup-phone select,
.cp-signup-phone input {
  min-height: var(--cp-signup-input-h);
  height: var(--cp-signup-input-h);
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.8125rem;
  border-radius: 8px;
}

.cp-signup-form .cp-login-field input {
  padding-left: 36px;
}

.cp-signup-form .cp-login-field__icon {
  left: 11px;
  width: 15px;
  height: 15px;
}

.cp-signup-form .cp-login-field--password input {
  padding-right: 40px;
}

.cp-signup-form .cp-login-field--password .cp-password-toggle {
  width: 26px;
  height: 26px;
  right: 6px;
}

.cp-signup-hint {
  margin: 2px 0 0;
  font-size: 0.625rem;
  line-height: 1.25;
  color: var(--cp-gray-500);
}

.cp-signup-phone {
  display: grid;
  grid-template-columns: minmax(100px, 112px) minmax(0, 1fr);
  gap: 8px;
}

.cp-signup-phone select,
.cp-signup-phone input {
  width: 100%;
  border: 1px solid var(--cp-gray-300);
  background: #ffffff;
  color: var(--cp-gray-900);
  line-height: 1.2;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

.cp-signup-phone select:focus,
.cp-signup-phone input:focus {
  outline: 2px solid rgba(239, 76, 4, 0.35);
  outline-offset: 0;
  border-color: var(--cp-orange);
}

.cp-signup-phone input::placeholder {
  color: var(--cp-placeholder, #4b5563);
  opacity: 1;
}

.cp-signup-password-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cp-signup-password-head .cp-login-field-label {
  margin-bottom: 3px;
}

.cp-signup-suggest {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--cp-orange);
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.cp-signup-suggest:hover {
  color: var(--cp-orange-hover);
}

.cp-signup-form .cp-password-notice {
  margin: 4px 0 0;
}

.cp-signup-submit {
  margin-top: 8px;
  flex-shrink: 0;
  min-height: 38px;
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.875rem;
}

.cp-signup-form .cp-login-or {
  margin: 8px 0 6px;
  flex-shrink: 0;
}

.cp-signup-footer {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cp-gray-700);
  flex-shrink: 0;
}

.cp-signup-footer a {
  color: var(--cp-orange);
  font-weight: 600;
  text-decoration: none;
}

.cp-signup-footer a:hover {
  color: var(--cp-orange-hover);
  text-decoration: underline;
}

body.cp-body--marketing.cp-body--signup .cp-signup-suggest:hover,
body.cp-body--marketing.cp-body--signup .cp-signup-footer a:hover,
body.cp-body--marketing.cp-body--signup .cp-login-field--password .cp-password-toggle:hover {
  transform: none;
}

/* Comfortable screens — a bit more breathing room */
@media (min-height: 900px) {
  body.cp-body--marketing.cp-body--signup {
    --cp-signup-gap: 10px;
    --cp-signup-input-h: 40px;
    --cp-signup-pad-y: 16px;
    --cp-signup-pad-x: 24px;
  }

  .cp-signup-card__head {
    margin-bottom: 12px;
  }

  .cp-signup-card h1 {
    font-size: 1.375rem;
  }

  .cp-signup-lead {
    font-size: 0.8125rem;
  }

  .cp-signup-hint {
    font-size: 0.6875rem;
  }

  .cp-signup-submit {
    margin-top: 12px;
    min-height: 42px;
    height: 42px;
  }

  .cp-signup-form .cp-login-or {
    margin: 12px 0 8px;
  }
}

/* Short desktop — denser, still no scroll */
@media (max-height: 800px) {
  body.cp-body--marketing.cp-body--signup {
    --cp-signup-gap: 5px;
    --cp-signup-input-h: 32px;
    --cp-signup-pad-y: 8px;
    --cp-signup-pad-x: 16px;
  }

  .cp-page--signup {
    padding: 4px 12px;
  }

  .cp-signup-card__head {
    margin-bottom: 4px;
  }

  .cp-signup-card h1 {
    font-size: 1.125rem;
  }

  .cp-signup-lead {
    font-size: 0.6875rem;
    line-height: 1.25;
  }

  .cp-signup-hint {
    display: none;
  }

  .cp-signup-submit {
    margin-top: 6px;
    min-height: 34px;
    height: 34px;
  }

  .cp-signup-form .cp-login-or {
    margin: 6px 0 4px;
  }
}

/* Phones + narrow tablets — stack + allow scroll (was 700 only; clipped 701–959) */
@media (max-width: 959px) {
  body.cp-body--marketing.cp-body--signup {
    overflow-x: hidden;
    overflow-y: auto;
    --cp-signup-gap: 10px;
    --cp-signup-input-h: 44px;
    --cp-signup-pad-y: 20px;
    --cp-signup-pad-x: 18px;
  }

  .cp-page--signup,
  [data-theme="light"] body.cp-body--marketing.cp-body--signup .cp-page--signup {
    height: auto;
    max-height: none;
    min-height: var(--cp-signup-vh);
    justify-content: flex-start;
    overflow: visible;
    padding: 16px 12px 24px;
  }

  .cp-signup-shell,
  .cp-signup-card {
    height: auto;
    max-height: none;
    overflow: visible;
    flex: none;
  }

  .cp-signup-grid {
    justify-content: flex-start;
    flex: none;
  }

  .cp-signup-hint {
    display: block;
    font-size: 0.75rem;
  }

  .cp-signup-form .cp-login-field-label {
    font-size: 0.875rem;
  }

  .cp-signup-form .cp-login-field input,
  .cp-signup-phone select,
  .cp-signup-phone input {
    font-size: 1rem;
  }

  .cp-signup-submit {
    min-height: 44px;
    height: 44px;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .cp-signup-phone {
    grid-template-columns: 1fr;
  }
}

/* ── Carrier signup wizard (3 steps) ── */
body.cp-body--marketing.cp-body--carrier-signup {
  --cp-signup-shell-max: 512px;
  --cp-signup-gap: 14px;
  --cp-signup-input-h: 42px;
  --cp-signup-pad-y: 18px;
  --cp-signup-pad-x: 28px;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-shell {
  max-width: var(--cp-signup-shell-max);
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-card__head {
  margin-bottom: 10px;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-card h1 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-lead {
  font-size: 0.875rem;
}

/* Carrier stepper — equal thirds so step 2 stays centered regardless of label width */
body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps {
  --cp-signup-step-r: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-left: 0;
  padding-right: 0;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps::before {
  left: var(--cp-signup-step-r);
  right: var(--cp-signup-step-r);
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps__item:first-child {
  justify-self: start;
  align-items: flex-start;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps__item:nth-child(2) {
  justify-self: center;
  align-items: center;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps__item:last-child {
  justify-self: end;
  align-items: flex-end;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps__item:first-child .cp-signup-steps__label {
  text-align: left;
}

body.cp-body--marketing.cp-body--carrier-signup .cp-signup-steps__item:last-child .cp-signup-steps__label {
  text-align: right;
}

.cp-carrier-signup-card[data-cp-signup-step="1"] .cp-signup-steps::after,
.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps::after,
.cp-carrier-signup-card[data-cp-signup-step="3"] .cp-signup-steps::after {
  content: "";
  position: absolute;
  top: 14px;
  left: var(--cp-signup-step-r, 14px);
  height: 2px;
  background: var(--cp-orange);
  z-index: 0;
}

.cp-carrier-signup-card[data-cp-signup-step="1"] .cp-signup-steps::after {
  width: 0;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps::after {
  width: calc((100% - (2 * var(--cp-signup-step-r, 14px))) / 2);
}

.cp-carrier-signup-card[data-cp-signup-step="3"] .cp-signup-steps::after {
  width: calc(100% - (2 * var(--cp-signup-step-r, 14px)));
}

.cp-signup-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0 4px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  position: relative;
  flex-shrink: 0;
}

.cp-signup-steps::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--cp-gray-200);
  z-index: 0;
}

.cp-signup-steps__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.cp-signup-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--cp-white);
  border: 2px solid var(--cp-gray-300);
  color: var(--cp-gray-500);
  box-sizing: border-box;
}

.cp-signup-steps__label {
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cp-gray-500);
  max-width: 9em;
}

.cp-signup-steps__item.is-active .cp-signup-steps__num,
.cp-signup-steps__item.is-done .cp-signup-steps__num {
  background: var(--cp-orange);
  border-color: var(--cp-orange);
  color: var(--cp-white);
}

.cp-signup-steps__item.is-active .cp-signup-steps__label {
  color: var(--cp-orange);
}

.cp-signup-steps__item.is-done .cp-signup-steps__label {
  color: var(--cp-gray-700);
}

.cp-signup-panel {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.cp-signup-panel.is-active {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cp-signup-panel__title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cp-orange, #ef4c04);
  font-family: var(--cp-font-nav);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cp-gray-700);
  flex-shrink: 0;
}

.cp-signup-subtitle {
  margin: 4px 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cp-gray-700);
}

.cp-signup-optional {
  margin-left: 4px;
  font-weight: 500;
  color: var(--cp-gray-500);
  text-transform: lowercase;
}

.cp-signup-textarea {
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid var(--cp-gray-300);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cp-gray-900);
  font-size: 0.8125rem;
  line-height: 1.35;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.cp-signup-textarea:focus {
  outline: 2px solid rgba(239, 76, 4, 0.35);
  outline-offset: 0;
  border-color: var(--cp-orange);
}

.cp-signup-field--routes .cp-login-field-label {
  margin-top: 6px;
}

.cp-login-field--select select {
  width: 100%;
  min-height: var(--cp-signup-input-h, 36px);
  height: var(--cp-signup-input-h, 36px);
  padding: 0 28px 0 36px;
  border: 1px solid var(--cp-gray-300);
  border-radius: 8px;
  background: #ffffff;
  color: var(--cp-gray-900);
  font-size: 0.8125rem;
  appearance: none;
  box-sizing: border-box;
}

.cp-login-field--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--cp-gray-500);
  border-bottom: 2px solid var(--cp-gray-500);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.cp-login-field--select select:focus {
  outline: 2px solid rgba(239, 76, 4, 0.35);
  outline-offset: 0;
  border-color: var(--cp-orange);
}

.cp-signup-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-signup-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cp-gray-200);
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-signup-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cp-orange);
  flex-shrink: 0;
}

.cp-signup-check:has(input:checked) {
  border-color: rgba(239, 76, 4, 0.45);
  background: rgba(239, 76, 4, 0.06);
}

.cp-signup-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 10px;
  flex-shrink: 0;
}

.cp-signup-nav .cp-signup-back {
  min-width: 88px;
  min-height: var(--cp-signup-input-h, 36px);
  height: auto;
  padding: 0 14px;
}

.cp-signup-nav .cp-signup-submit {
  margin-top: 0;
  width: 100%;
}

.cp-signup-panel .cp-signup-submit {
  margin-top: 10px;
}

.cp-signup-panel[data-cp-signup-panel="1"] > .cp-signup-submit {
  margin-top: 22px;
}

/* All steps — same single-column fill as Account */
.cp-signup-panel .cp-signup-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.8vh, 18px);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  justify-content: space-evenly;
}

.cp-signup-panel .cp-signup-panel__title {
  flex-shrink: 0;
}

.cp-signup-panel .cp-signup-nav,
.cp-signup-panel .cp-signup-footer,
.cp-signup-panel .cp-login-or,
.cp-signup-panel > .cp-signup-submit {
  flex-shrink: 0;
}

/* Step 1 — even fill (fewer fields) */
.cp-signup-panel[data-cp-signup-panel="1"] .cp-signup-grid {
  justify-content: space-evenly;
}

/* Step 2 — no scroll; all fields visible, evenly distributed */
.cp-carrier-signup-card[data-cp-signup-step="2"] {
  --cp-signup-input-h: 34px;
  --cp-signup-pad-y: 10px;
  --cp-signup-pad-x: 22px;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-card__head {
  margin-bottom: 4px;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-eyebrow {
  margin-bottom: 2px;
  font-size: 0.625rem;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-card h1 {
  margin-bottom: 2px;
  font-size: 1.125rem;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-lead {
  display: none;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps {
  --cp-signup-step-r: 12px;
  margin-bottom: 4px;
  padding-bottom: 2px;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps__num {
  width: 24px;
  height: 24px;
  font-size: 0.6875rem;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps::before,
.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps::after {
  top: 12px;
}

.cp-carrier-signup-card[data-cp-signup-step="2"] .cp-signup-steps__label {
  font-size: 0.5625rem;
}

.cp-signup-panel[data-cp-signup-panel="2"] {
  justify-content: space-between;
  gap: 4px;
  min-height: 0;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-panel__title {
  margin-bottom: 4px;
  padding-bottom: 3px;
  flex-shrink: 0;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-grid {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-evenly;
  gap: 0;
  overflow: visible;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-field--routes {
  display: contents;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-subtitle {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-login-field-label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  line-height: 1.15;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-textarea {
  min-height: 34px;
  height: 34px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  resize: none;
  overflow: hidden;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-hint {
  display: none;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-optional {
  font-size: 0.6875rem;
  font-weight: 500;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-step-actions {
  margin-top: 4px;
  padding-top: 4px;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-back-link {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-submit {
  min-height: 36px;
  height: 36px;
  margin-top: 0;
}

.cp-signup-step-actions {
  flex-shrink: 0;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--cp-gray-100);
}

.cp-signup-back-link {
  display: inline-block;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--cp-gray-500);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-signup-back-link:hover {
  color: var(--cp-gray-700);
}

/* Step 3 — shorter modal (fewer fields), mockup layout */
.cp-signup-shell:has(.cp-carrier-signup-card[data-cp-signup-step="3"]) {
  height: auto;
  max-height: none;
  flex: 0 0 auto;
}

.cp-carrier-signup-card[data-cp-signup-step="3"] {
  height: auto;
  max-height: none;
  flex: 0 0 auto;
  --cp-signup-pad-y: 16px;
  --cp-signup-input-h: 40px;
}

.cp-carrier-signup-card[data-cp-signup-step="3"] .cp-signup-form {
  flex: 0 0 auto;
}

.cp-carrier-signup-card[data-cp-signup-step="3"] .cp-signup-panel.is-active {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 0;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-panel__title {
  margin-bottom: 10px;
  padding-bottom: 5px;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-grid {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 14px;
  overflow: visible;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-login-field-label {
  margin-bottom: 5px;
  font-size: 0.8125rem;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-hint {
  margin-top: 4px;
  font-size: 0.6875rem;
  line-height: 1.3;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-checks {
  gap: 8px;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-check {
  padding: 12px 14px;
  min-height: 0;
  font-size: 0.9375rem;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-step-actions {
  margin-top: 18px;
  padding-top: 0;
  border-top: none;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-back-link {
  margin-bottom: 10px;
}

.cp-signup-panel[data-cp-signup-panel="3"] .cp-signup-submit {
  min-height: 44px;
  height: 44px;
  margin-top: 0;
}

.cp-signup-panel[data-cp-signup-panel="1"] .cp-password-block {
  display: contents;
}

.cp-signup-panel[data-cp-signup-panel="1"] .cp-password-notice {
  width: 100%;
}

@media (max-height: 800px) {
  body.cp-body--marketing.cp-body--carrier-signup {
    --cp-signup-gap: 10px;
    --cp-signup-input-h: 36px;
    --cp-signup-pad-y: 12px;
    --cp-signup-pad-x: 22px;
  }

  .cp-signup-steps {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .cp-signup-steps__label {
    font-size: 0.5625rem;
  }

  .cp-signup-panel .cp-signup-grid {
    gap: 8px;
  }

  .cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-grid {
    gap: 0;
  }

  .cp-signup-panel[data-cp-signup-panel="2"] .cp-signup-textarea {
    min-height: 32px;
    height: 32px;
  }

  .cp-carrier-signup-card[data-cp-signup-step="2"] {
    --cp-signup-input-h: 32px;
    --cp-signup-pad-y: 8px;
  }
}

@media (max-width: 959px) {
  body.cp-body--marketing.cp-body--carrier-signup {
    --cp-signup-shell-max: 384px;
  }

  .cp-signup-nav {
    grid-template-columns: 1fr;
  }

  .cp-signup-nav .cp-signup-back {
    order: 2;
    width: 100%;
  }
}

/* ── Workflow pages (carrier / broker) — static view, hero within margin guides ── */
body.cp-body--marketing.cp-body--workflow {
  --cp-bg: #f3f4f6;
  --cp-workflow-vh: calc(100vh - var(--cp-header-height) - var(--cp-footer-bar-height));
  /* Green-line content width from mockup (narrower than marketing shell) */
  --cp-workflow-max: 980px;
  --cp-workflow-pad-x: 28px;
  background: #f3f4f6;
  overflow: hidden;
}

.cp-page--workflow {
  /* Override base.html .cp-page (padding 32/48 + justify center) — that was the grey gap */
  width: 100%;
  height: var(--cp-workflow-vh);
  max-height: var(--cp-workflow-vh);
  min-height: 0;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.cp-workflow-shell {
  flex: 1;
  min-height: 0;
  max-width: var(--cp-workflow-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px) 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.cp-workflow-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cp-white);
  border: 1px solid var(--cp-gray-100);
  border-radius: 16px;
  box-shadow: 0 10px 36px rgba(13, 17, 23, 0.06);
  padding: 0 var(--cp-workflow-pad-x) 16px;
  box-sizing: border-box;
}

/* Hero band — flush to top of card; cream matches banner art (#fdf8f5) */
.cp-workflow-hero {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 14px 20px;
  align-items: center;
  width: calc(100% + (2 * var(--cp-workflow-pad-x)));
  margin: 0 calc(-1 * var(--cp-workflow-pad-x)) 12px;
  padding: 16px 18px 16px 22px;
  border-radius: 16px 16px 12px 12px;
  background: #fdf8f5;
  border: 1px solid rgba(232, 220, 210, 0.55);
  border-top: none;
  box-sizing: border-box;
}

.cp-workflow-hero__copy {
  min-width: 0;
}

.cp-workflow-breadcrumb-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: var(--cp-radius-pill);
  border: 1px solid rgba(239, 76, 4, 0.35);
  background: #fae6da;
  font-family: var(--cp-font-nav);
  font-size: 0.75rem;
  font-weight: var(--cp-nav-weight);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-workflow-breadcrumb-pill a {
  color: var(--cp-orange);
  text-decoration: none;
}

.cp-workflow-breadcrumb-pill a:hover {
  color: var(--cp-orange-hover);
}

.cp-workflow-breadcrumb-pill__sep,
.cp-workflow-breadcrumb-pill__current {
  color: var(--cp-orange);
}

.cp-workflow-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--cp-gray-900);
}

.cp-workflow-hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--cp-marketing-muted);
}

.cp-workflow-hero__media {
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cp-workflow-hero__img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 168px;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
  background: #fdf8f5;
}

.cp-workflow-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 12px 20px;
  align-items: stretch;
  overflow: hidden;
}

.cp-workflow-steps {
  list-style: none;
  margin: 0;
  padding: 2px 0 2px 6px;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.cp-workflow-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--cp-gray-200);
  z-index: 0;
}

.cp-workflow-step {
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid var(--cp-gray-100);
  flex: 1 1 0;
  min-height: 0;
}

.cp-workflow-step:last-child {
  border-bottom: none;
}

.cp-workflow-step__visual {
  display: contents;
}

.cp-workflow-step__num {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cp-orange);
  color: var(--cp-white);
  font-family: var(--cp-font-nav);
  font-size: 0.625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  justify-self: center;
}

.cp-workflow-step__icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fae6da;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cp-workflow-step__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.cp-workflow-step__icon--current {
  color: var(--cp-orange);
}

.cp-workflow-step__icon--muted {
  filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(710%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

.cp-workflow-step__copy {
  min-width: 0;
}

.cp-workflow-step__copy strong {
  display: block;
  margin-bottom: 1px;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-workflow-step__copy p {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--cp-marketing-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cp-workflow-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: visible;
}

.cp-workflow-benefits {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px 12px;
  border: 1px solid var(--cp-gray-100);
  border-radius: var(--cp-radius-md);
  background: var(--cp-white);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.cp-workflow-benefits__title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--cp-gray-900);
  flex-shrink: 0;
}

.cp-workflow-benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.cp-workflow-benefit {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cp-workflow-benefit__icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.cp-workflow-benefit__icon--current {
  color: var(--cp-orange);
}

.cp-workflow-benefit__icon--muted {
  filter: brightness(0) saturate(100%) invert(47%) sepia(8%) saturate(710%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

.cp-workflow-benefit__copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-workflow-benefit__copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cp-marketing-muted);
}

.cp-workflow-cta-card {
  flex-shrink: 0;
  padding: 12px;
  border-radius: var(--cp-radius-md);
  background: rgba(239, 76, 4, 0.08);
  border: 1px solid rgba(239, 76, 4, 0.14);
}

.cp-workflow-cta-card__title {
  margin: 0 0 4px;
  font-size: 0.875rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--cp-gray-900);
}

.cp-workflow-cta-card__lead {
  margin: 0 0 10px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--cp-marketing-muted);
}

.cp-workflow-cta-card__btn {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.6875rem;
}

body.cp-body--marketing.cp-body--workflow .cp-workflow-cta-card__btn .cp-btn__icon {
  width: 14px;
  height: 14px;
}

@media (max-height: 820px) and (min-width: 960px) {
  .cp-workflow-shell {
    padding-top: 0;
    padding-bottom: 6px;
  }

  .cp-workflow-card {
    padding-top: 0;
    padding-bottom: 12px;
  }

  .cp-workflow-hero {
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .cp-workflow-hero__img {
    height: 140px;
    max-height: 140px;
  }

  .cp-workflow-step__icon-wrap {
    width: 32px;
    height: 32px;
  }

  .cp-workflow-step__icon {
    width: 16px;
    height: 16px;
  }
}

/* Mobile / tablet — stack, allow scroll */
@media (max-width: 959px) {
  body.cp-body--marketing.cp-body--workflow {
    height: auto;
    overflow: visible;
    --cp-workflow-max: 100%;
  }

  .cp-page--workflow {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0 0 24px;
    justify-content: flex-start;
    align-items: stretch;
  }

  .cp-workflow-shell,
  .cp-workflow-card {
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .cp-workflow-hero {
    grid-template-columns: 1fr;
  }

  .cp-workflow-hero__media {
    order: -1;
    justify-content: center;
  }

  .cp-workflow-hero__img {
    height: 140px;
    max-height: 140px;
    object-position: center;
  }

  .cp-workflow-body {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .cp-workflow-steps {
    display: grid;
    gap: 0;
    justify-content: start;
    overflow: visible;
  }

  .cp-workflow-step {
    flex: none;
    padding: 10px 0;
    align-items: start;
  }

  .cp-workflow-step__icon-wrap {
    width: 40px;
    height: 40px;
  }

  .cp-workflow-step__icon {
    width: 20px;
    height: 20px;
  }

  .cp-workflow-step__copy strong {
    font-size: 0.875rem;
  }

  .cp-workflow-step__copy p {
    font-size: 0.8125rem;
    line-height: 1.4;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }

  .cp-workflow-sidebar {
    overflow: visible;
  }

  .cp-workflow-benefits {
    overflow: visible;
  }

  .cp-workflow-benefits__list {
    display: grid;
    gap: 12px;
    justify-content: start;
  }
}
/* ===== END cp-redesign.css ===== */

/* ===== BEGIN cp-consent.css ===== */
/* Cookie consent — redesigned flat CP buttons (matches marketing shell). */
.cp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 16px 20px 20px;
  background: var(--cp-white, #ffffff);
  border-top: 1px solid var(--cp-gray-300, #d1d5db);
  box-shadow: 0 -10px 32px rgba(13, 17, 23, 0.08);
}

/* Overlay — does not push page content (avoids CLS when JS unhides the bar). */
.cp-cookie-banner[hidden] {
  display: none !important;
}

.cp-cookie-banner__inner {
  max-width: var(--cp-shell-max, 1280px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.cp-cookie-banner__title {
  margin: 0 0 6px;
  font-family: var(--cp-font-primary, "Inter", system-ui, sans-serif);
  font-size: var(--cp-text-body-lg-size, 1rem);
  font-weight: 700;
  line-height: var(--cp-text-body-lg-line, 1.5rem);
  color: var(--cp-gray-900, #0d1117);
}

.cp-cookie-banner__desc {
  margin: 0;
  font-family: var(--cp-font-primary, "Inter", system-ui, sans-serif);
  font-size: var(--cp-text-body-size, 0.875rem);
  line-height: 1.5;
  color: var(--cp-gray-500, #6b7280);
  max-width: 640px;
}

.cp-cookie-banner__desc a {
  color: var(--cp-orange, #ef4c04);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-cookie-banner__desc a:hover {
  color: var(--cp-orange-hover, #d74404);
}

.cp-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cp-cookie-banner__actions .cp-btn {
  min-width: 140px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--cp-radius-md, 10px);
  font-family: var(--cp-font-nav, var(--cp-font-primary, "Inter", system-ui, sans-serif));
  font-size: var(--cp-nav-size, 0.8125rem);
  font-weight: var(--cp-nav-weight, 700);
  letter-spacing: 0.04em;
  transition: none;
  box-shadow: none;
  background-image: none;
}

.cp-cookie-banner__actions .cp-btn--primary {
  background: var(--cp-orange, #ef4c04);
  border: 1px solid var(--cp-orange, #ef4c04);
  color: var(--cp-white, #ffffff);
}

.cp-cookie-banner__actions .cp-btn--primary:hover,
.cp-cookie-banner__actions .cp-btn--primary:focus,
.cp-cookie-banner__actions .cp-btn--primary:active {
  background: var(--cp-orange, #ef4c04);
  border-color: var(--cp-orange, #ef4c04);
  color: var(--cp-white, #ffffff);
  transform: none;
  box-shadow: none;
}

.cp-cookie-banner__actions .cp-btn--ghost {
  background: transparent;
  border: 1px solid var(--cp-gray-300, #d1d5db);
  color: var(--cp-gray-900, #0d1117);
}

.cp-cookie-banner__actions .cp-btn--ghost:hover,
.cp-cookie-banner__actions .cp-btn--ghost:focus,
.cp-cookie-banner__actions .cp-btn--ghost:active {
  border-color: var(--cp-gray-500, #6b7280);
  color: var(--cp-gray-900, #0d1117);
  background: var(--cp-gray-100, #f3f4f6);
  transform: none;
  box-shadow: none;
}

.cp-legal-section {
  margin-bottom: 28px;
}

.cp-legal-section h2 {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.cp-legal-section p,
.cp-legal-section li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--cp-gray-500, #6b7280);
}

.cp-legal-section ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 640px) {
  .cp-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cp-cookie-banner__actions {
    flex-direction: column;
  }

  .cp-cookie-banner__actions .cp-btn {
    width: 100%;
  }
}

.cp-site-footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cp-site-footer-link-btn:hover {
  opacity: 0.85;
}
/* ===== END cp-consent.css ===== */
