/*
 * Envío Propio — public pitch site (enviopropio.com / :4310/site/enviopropio).
 * Vanilla CSS, no framework, no build. Enterprise B2B identity: confident navy hero +
 * gold accent, clean off-white body. Mobile-first (works at 375px).
 */

:root {
  /* brand palette — brand/color-psychology/palettes.registry.json → "envio-propio" */
  --ep-navy: #14213D;         /* primary — trust, authority, logistics (body text/nav) */
  --ep-navy-dark: #0c1830;    /* hover/active on navy */
  /* v2 (2026-07-31 revamp): high-contrast near-black for hero/footer dark surfaces,
     grounded in 2026 Awwwards logistics-category research (Flexe et al. — high-contrast
     black/white + one bright accent beats mid-tone navy for authority + data legibility).
     --ep-navy is kept unchanged for body text/nav to preserve the locked wordmark/logo/stills
     brand equity already built — this is a contrast upgrade, not a palette replacement. */
  --ep-ink: #0A0F1C;
  --ep-gold: #E0A02C;         /* accent — value, ownership, premium */
  --ep-gold-dark: #C0871F;    /* hover/active on gold */
  --ep-slate: #425065;        /* structure — neutral/steel */
  --ep-teal: #2F8F7A;         /* secondary — modern, movement, "savings" */
  --ep-surface: #F4F6F8;      /* light/cool body surface */
  --ep-white: #FFFFFF;

  --ep-good: #2F8F7A;
  --ep-neutral: #425065;

  /* mapped for the shared i18n.js toggle (injectStyles uses var(--panel-2,var(--panel)) etc.) */
  --panel: var(--ep-white);
  --panel-2: var(--ep-surface);
  --border: rgba(20, 33, 61, 0.14);
  --text: var(--ep-navy);
  --muted: rgba(20, 33, 61, 0.60);
  --accent: var(--ep-gold);

  --ep-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;

  --ep-radius: 14px;
  --ep-radius-sm: 9px;
  --ep-container: 1160px;
  --ep-shadow: 0 12px 32px rgba(20, 33, 61, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ep-surface);
  color: var(--ep-navy);
  font-family: var(--ep-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

.ep-container {
  width: 100%;
  max-width: var(--ep-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- nav */
.ep-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.ep-nav-inner {
  max-width: var(--ep-container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ep-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ep-navy);
}

.ep-wordmark-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.ep-wordmark-gold { color: var(--ep-gold-dark); }

.ep-nav-links {
  display: none;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.ep-nav-links a {
  text-decoration: none;
  color: var(--ep-navy);
  opacity: 0.72;
}
.ep-nav-links a:hover { opacity: 1; color: var(--ep-gold-dark); }

.ep-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px) {
  .ep-nav-links { display: flex; }
}

/* narrow phones (≤480px): wordmark + toggle + "Agenda demo" pill don't all fit on one
   sticky row — drop the nav CTA (the hero button one scroll away covers it) rather than
   let the row overflow horizontally. */
@media (max-width: 480px) {
  .ep-nav-actions .ep-btn--primary { display: none; }
}

/* ---------------------------------------------------------------- buttons */
.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.ep-btn--sm { padding: 8px 16px; font-size: 13px; }
.ep-btn--lg { padding: 14px 26px; font-size: 15.5px; }

.ep-btn--primary {
  background: var(--ep-gold);
  color: var(--ep-navy);
  box-shadow: 0 6px 18px rgba(224, 160, 44, 0.32);
}
.ep-btn--primary:hover { background: var(--ep-gold-dark); transform: translateY(-1px); }

.ep-btn--ghost {
  background: transparent;
  color: var(--ep-navy);
  border-color: var(--border);
}
.ep-btn--ghost:hover { border-color: var(--ep-gold); color: var(--ep-gold-dark); }

.ep-btn--ghost-on-dark {
  background: transparent;
  color: var(--ep-white);
  border-color: rgba(244, 246, 248, 0.35);
}
.ep-btn--ghost-on-dark:hover { border-color: var(--ep-gold); color: var(--ep-gold); }

/* ---------------------------------------------------------------- hero */
.ep-hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(224, 160, 44, 0.20), transparent 60%),
    radial-gradient(900px 360px at 0% 100%, rgba(47, 143, 122, 0.12), transparent 60%),
    var(--ep-ink);
  color: var(--ep-surface);
  overflow: hidden;
}

.ep-hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 46%, transparent 78%);
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 46%, transparent 78%);
}

.ep-hero-grid { position: relative; z-index: 1; }

.ep-hero-grid {
  display: grid;
  gap: 40px;
}

.ep-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ep-teal);
  margin: 0 0 12px;
}
.ep-eyebrow--on-dark { color: #f0c470; }

.ep-hero-title {
  font-weight: 800;
  font-size: clamp(36px, 8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ep-white);
}

.ep-hero-tagline {
  font-weight: 700;
  font-size: clamp(17px, 3vw, 21px);
  color: var(--ep-gold);
  margin: 0 0 18px;
}

.ep-hero-sub {
  font-size: clamp(16px, 3vw, 19px);
  color: rgba(244, 246, 248, 0.80);
  max-width: 48ch;
  margin: 0 0 28px;
}

.ep-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 860px) {
  .ep-hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---------------------------------------------------------------- sections */
.ep-section { padding: 64px 0; }
.ep-section--tint { background: var(--ep-white); }
.ep-section--dark { background: var(--ep-navy); color: var(--ep-surface); }

.ep-h2 {
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.12;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.ep-h2--on-dark { color: var(--ep-white); }

.ep-lead {
  font-size: 16.5px;
  color: rgba(20, 33, 61, 0.76);
  max-width: 70ch;
  margin: 0 0 32px;
}
.ep-lead--on-dark { color: rgba(244, 246, 248, 0.78); }

.ep-sources {
  margin: 24px 0 0;
  font-size: 12.5px;
  color: rgba(20, 33, 61, 0.55);
}

/* ---------------------------------------------------------------- fact / pillar cards */
.ep-cardgrid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .ep-cardgrid--3 { grid-template-columns: repeat(3, 1fr); }
}

.ep-fact-card {
  background: var(--ep-surface);
  border: 1px solid var(--border);
  border-radius: var(--ep-radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-fact-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--ep-navy);
}

.ep-fact-label {
  font-size: 14px;
  color: rgba(20, 33, 61, 0.70);
  line-height: 1.4;
}

.ep-pillar-card {
  background: var(--ep-surface);
  border: 1px solid var(--border);
  border-radius: var(--ep-radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ep-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ep-pillar-icon svg { width: 22px; height: 22px; }

.ep-pillar-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ep-navy);
}

.ep-pillar-body {
  margin: 0;
  font-size: 14px;
  color: rgba(20, 33, 61, 0.72);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- workflow / imagery detail */
.ep-workflow-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .ep-workflow-grid { grid-template-columns: 0.9fr 1.1fr; }
  .ep-workflow-grid.ep-workflow-grid--reverse { grid-template-columns: 1.1fr 0.9fr; }
  .ep-workflow-grid.ep-workflow-grid--reverse .ep-workflow-photo { order: 2; }
}

.ep-workflow-photo {
  border-radius: var(--ep-radius);
  overflow: hidden;
  box-shadow: var(--ep-shadow);
}
.ep-workflow-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.ep-workflow-steps {
  display: grid;
  gap: 18px;
}

.ep-workflow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ep-workflow-step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ep-navy);
  color: var(--ep-gold);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep-workflow-step-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ep-navy);
}

.ep-workflow-step-body {
  margin: 0;
  font-size: 14px;
  color: rgba(20, 33, 61, 0.72);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- reveal-on-scroll motion
   (FX preset "subtle-entrance" / "reduced-motion-fallback" — saas-navy-platform bundle,
   docs/creytix/CREYTIX_SITE_FORGE_RELUME_PARITY_PLAN.md). Respects prefers-reduced-motion:
   the .reveal class only animates when JS confirms motion is allowed (site-motion.js adds
   .motion-ok to <html>); without JS or under reduced-motion, content is simply visible. */
.reveal {
  opacity: 1;
  transform: none;
}
html.motion-ok .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
html.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- who it's for */
.ep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ep-tag {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ep-white);
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ep-navy);
}

/* ---------------------------------------------------------------- footer CTA + footer */
.ep-footer {
  background: var(--ep-ink);
  color: var(--ep-surface);
  padding: 60px 0 40px;
  text-align: center;
}

.ep-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ep-footer-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin: 0;
  max-width: 22ch;
  color: var(--ep-white);
}

.ep-footer-body {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  color: rgba(244, 246, 248, 0.72);
}

.ep-footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ep-footer-family {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(244, 246, 248, 0.55);
}

.ep-footer-legal {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(244, 246, 248, 0.40);
}

/* =================================================================
   scenarios.html — wholesale calculator
   ================================================================= */

.ep-calc {
  display: grid;
  gap: 22px;
  background: var(--ep-white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--ep-shadow);
}

@media (min-width: 820px) {
  .ep-calc { grid-template-columns: 1fr 1fr; padding: 28px; gap: 32px; }
}

/* hero variant (index.html) — data-first calculator replacing static stat cards, per
   2026 logistics-design research: "instant data transparency over marketing copy" beats
   decorative stat tiles. Forced single-column regardless of viewport: it lives in the
   hero's narrower right-hand column, not the full page width scenarios.html gets. */
.ep-hero-calc {
  grid-template-columns: 1fr !important;
  padding: 20px !important;
  gap: 18px !important;
  border-radius: var(--ep-radius);
}
.ep-hero-calc .ep-calc-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ep-teal);
  margin: 0 0 2px;
}
.ep-hero-calc .ep-calc-title {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ep-navy);
}

.ep-calc-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ep-calc-volume-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--ep-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  align-self: start;
}

.ep-calc-volume-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(20, 33, 61, 0.62);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.ep-calc-volume-toggle button.is-active { background: var(--ep-navy); color: var(--ep-white); }

.ep-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(20, 33, 61, 0.82);
}

.ep-field input {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: var(--ep-radius-sm);
  border: 1.5px solid var(--border);
  background: var(--ep-surface);
  color: var(--ep-navy);
}

.ep-field input:focus {
  outline: none;
  border-color: var(--ep-gold);
  box-shadow: 0 0 0 3px rgba(224, 160, 44, 0.18);
}

.ep-calc-advanced {
  border: 1px dashed var(--border);
  border-radius: var(--ep-radius-sm);
  padding: 4px 14px;
}
.ep-calc-advanced summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-slate);
  padding: 10px 0;
}
.ep-calc-advanced-grid {
  display: grid;
  gap: 14px;
  padding: 4px 0 14px;
}
@media (min-width: 480px) {
  .ep-calc-advanced-grid { grid-template-columns: 1fr 1fr; }
}

.ep-calc-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-content: start;
}

.ep-calc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ep-calc-compare-col {
  background: var(--ep-surface);
  border-radius: var(--ep-radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ep-calc-compare-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(20, 33, 61, 0.55);
}

.ep-calc-compare-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--ep-navy);
}

.ep-verdict {
  border-radius: var(--ep-radius);
  padding: 20px;
  transition: background-color .15s ease;
}

.ep-verdict[data-state="win"] {
  background: rgba(47, 143, 122, 0.14);
  border: 1.5px solid rgba(47, 143, 122, 0.4);
}
.ep-verdict[data-state="lose"] {
  background: rgba(20, 33, 61, 0.05);
  border: 1.5px solid var(--border);
}
.ep-verdict[data-state="loading"] {
  background: rgba(20, 33, 61, 0.04);
  border: 1.5px dashed var(--border);
}

.ep-verdict-title {
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
}
.ep-verdict[data-state="win"] .ep-verdict-title { color: var(--ep-good); }
.ep-verdict[data-state="lose"] .ep-verdict-title { color: var(--ep-navy); }

.ep-verdict-body {
  margin: 0;
  font-size: 14.5px;
  color: rgba(20, 33, 61, 0.75);
}

.ep-calc-extra {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.68);
}
.ep-calc-extra div { display: flex; justify-content: space-between; gap: 10px; }
.ep-calc-extra dt { margin: 0; color: rgba(20, 33, 61, 0.55); }
.ep-calc-extra dd { margin: 0; font-weight: 700; }

.ep-calc-honesty {
  margin: 0;
  font-size: 12.5px;
  color: rgba(20, 33, 61, 0.60);
  line-height: 1.5;
}
.ep-calc-honesty a { color: var(--ep-gold-dark); font-weight: 700; text-decoration: none; }
.ep-calc-honesty a:hover { text-decoration: underline; }

/* =================================================================
   scenarios.html — tier cards (expandable)
   ================================================================= */

.ep-scn-card {
  background: var(--ep-white);
  border: 1.5px solid var(--border);
  border-radius: var(--ep-radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-scn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ep-scn-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.ep-scn-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 143, 122, 0.16);
  color: var(--ep-good);
  flex: none;
}

.ep-scn-volume {
  margin: 0;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.6);
}

.ep-scn-rows {
  margin: 4px 0 0;
  display: grid;
  gap: 6px;
}
.ep-scn-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
}
.ep-scn-row dt { margin: 0; color: rgba(20, 33, 61, 0.6); }
.ep-scn-row dd { margin: 0; font-weight: 700; }

.ep-scn-result {
  margin: 2px 0 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--ep-good);
}
.ep-scn-result-extra {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(20, 33, 61, 0.5);
  margin-top: 2px;
}

.ep-scn-invest {
  margin: 0;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.7);
}

.ep-scn-expand-btn {
  appearance: none;
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ep-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ep-scn-expand-btn:hover { border-color: var(--ep-gold); color: var(--ep-gold-dark); }
.ep-scn-expand-btn .ep-chevron { transition: transform .15s ease; }
.ep-scn-card.is-open .ep-scn-expand-btn .ep-chevron { transform: rotate(180deg); }

.ep-scn-breakdown {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.ep-scn-card.is-open .ep-scn-breakdown { max-height: 900px; }

.ep-scn-breakdown-inner {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  display: grid;
  gap: 18px;
}

.ep-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ep-scn-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ep-scn-table th, .ep-scn-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.ep-scn-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(20, 33, 61, 0.55); font-weight: 700; }
.ep-scn-table td.num { text-align: right; font-weight: 700; }

.ep-scn-costgrid {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .ep-scn-costgrid { grid-template-columns: 1fr 1fr; }
}
.ep-scn-costblock {
  background: var(--ep-surface);
  border-radius: var(--ep-radius-sm);
  padding: 14px;
}
.ep-scn-costblock h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ep-navy);
}
.ep-scn-costblock p {
  margin: 0;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.68);
  line-height: 1.5;
}

.ep-recovery-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ep-navy);
}
.ep-recovery-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.10);
}
.ep-recovery-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 999px;
  background: var(--ep-gold);
}
.ep-recovery-marker {
  position: absolute;
  top: -5px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--ep-navy);
  border: 3px solid var(--ep-white);
  box-shadow: 0 2px 6px rgba(20, 33, 61, 0.35);
}
.ep-recovery-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(20, 33, 61, 0.5);
}
.ep-recovery-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.72);
}

.ep-scn-backhaul {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(224, 160, 44, 0.10);
  border: 1px solid rgba(224, 160, 44, 0.30);
  border-radius: var(--ep-radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(20, 33, 61, 0.80);
  line-height: 1.5;
}

.ep-scn-modeled-note {
  margin: 0;
  font-size: 12px;
  color: rgba(20, 33, 61, 0.5);
}

/* ---------------------------------------------------------------- page header (scenarios) */
.ep-page-header {
  padding: 40px 0 8px;
}
.ep-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(20, 33, 61, 0.62);
  text-decoration: none;
  margin-bottom: 18px;
}
.ep-back-link:hover { color: var(--ep-gold-dark); }

/* ================================================================
 * Homepage experience modules — site-standard floor (promoBar,
 * heroStory, movingRail, categoryOrProductRail, differentiators,
 * promoBanners, contentRail, reviews, exitIntent, footerColumns) +
 * design-element / Site Asset Kit tiers (banner, carousel, exitIntent,
 * trustOrCtaRail, reviewsRail; tier1 trust chrome, tier2 LCP hero,
 * tier3 page heroes, tier4 empty-state) + landscape breakpoint.
 * Real, wired, visible — not placeholder chrome. See index.html.
 * ================================================================ */

/* data-surface — Creytix design-system surface typing (component-quality
 * signal, parallels --cx-style-* tokens already flowing through the page). */
[data-surface] {
  --surface-set: 1;
}

/* ---- announcement bar (top status strip) ---- */
.announcement-bar {
  background: var(--ep-navy);
  color: var(--ep-surface);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
}
.announcement-bar a {
  color: var(--ep-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- promo banner (program callout, mid-page) ---- */
.promo-banner {
  margin: 0 auto;
  max-width: var(--ep-container);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--ep-radius);
  background: linear-gradient(120deg, rgba(224, 160, 44, 0.12), rgba(47, 143, 122, 0.10));
  border: 1px solid rgba(224, 160, 44, 0.30);
}
.promo-banner-copy { margin: 0; font-size: 14.5px; color: var(--ep-navy); max-width: 62ch; }
.promo-banner-copy strong { color: var(--ep-navy); }

/* ---- category / segment rail — self-moving marquee, pauses on hover,
   static under prefers-reduced-motion ---- */
.category-rail { overflow: hidden; padding: 6px 0; }
.category-rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
}
.marquee-rail .category-rail-track {
  animation: cx-marquee-scroll 34s linear infinite;
}
.marquee-rail:hover .category-rail-track,
.marquee-rail:focus-within .category-rail-track {
  animation-play-state: paused;
}
@keyframes cx-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-rail .category-rail-track { animation: none; }
}

/* ---- differentiators band ---- */
.differentiators {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .differentiators { grid-template-columns: repeat(2, 1fr); }
}
.differentiator-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--ep-radius-sm);
  background: var(--ep-white);
  border: 1px solid var(--border);
}
.differentiator-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ep-teal);
  color: var(--ep-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.differentiator-item p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(20, 33, 61, 0.78); }

/* ---- content / guides rail — horizontal scroll-snap carousel ---- */
.featured-articles { padding: 4px 2px; }
.carousel-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.carousel-rail::-webkit-scrollbar { height: 6px; }
.carousel-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.guide-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  padding: 20px;
  border-radius: var(--ep-radius);
  background: var(--ep-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ep-teal); }
.guide-card-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--ep-navy); }
.guide-card-body { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(20, 33, 61, 0.7); }

/* ---- reviews rail — honest pre-launch empty state (tier4 icon/empty-state) ---- */
.reviews-rail {
  padding: 26px 24px;
  border-radius: var(--ep-radius);
  border: 1px dashed var(--border);
  background: var(--ep-white);
  text-align: center;
}
.reviews-rail.empty-state .empty-state-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--ep-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-teal);
}
.reviews-rail p { margin: 0; font-size: 14px; color: rgba(20, 33, 61, 0.68); max-width: 48ch; margin: 0 auto; }

/* ---- ac-grain — Design Magic #4 grain overlay, applied to the hero (recommended
   move for this site's marketplace-browse motion profile — SITE_DESIGN_MAGIC_PLANS). */
.ac-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .ac-grain::before { display: none; }
}

/* ---- trust / CTA rail ---- */
.trust-rail,
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--ep-radius);
  background: var(--ep-navy);
  color: var(--ep-surface);
}
.trust-rail-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.trust-rail-item svg { flex: none; color: var(--ep-gold); }

/* ---- exit intent panel ---- */
.exit-intent {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 15, 28, 0.62);
}
.exit-intent[hidden] { display: none; }
.exit-intent-card {
  max-width: 420px;
  width: 100%;
  background: var(--ep-white);
  border-radius: var(--ep-radius);
  padding: 28px 26px;
  box-shadow: var(--ep-shadow);
  position: relative;
}
.exit-intent-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--ep-white);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--ep-navy);
}
.exit-intent-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: var(--ep-navy); }
.exit-intent-body { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: rgba(20, 33, 61, 0.72); }

/* ---- grouped footer columns ---- */
.footer-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 720px;
  text-align: left;
  margin: 8px auto 0;
}
@media (min-width: 640px) {
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}
.footer-column-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.55);
}
.footer-column a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: rgba(244, 246, 248, 0.85);
  text-decoration: none;
}
.footer-column a:hover { color: var(--ep-gold); }

/* ---- per-route page hero (tier3) ---- */
.page-hero {
  padding: 44px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

/* ---- hero-still companion sizing (tier2 LCP) ---- */
.hero-still { width: 100%; height: 100%; }

/* ---- tablet-landscape treatment — not phone+desktop only ---- */
@media (orientation: landscape) and (min-width: 768px) and (max-width: 1180px) {
  .ep-hero-grid { gap: 28px; align-items: center; }
  .ep-calc { max-height: 88vh; overflow-y: auto; }
}
