/* =========================================================
   Shared marketing hero — overlay, copy frame, CTA system
   Used by Reserve Studies + Platform heroes only.
   ========================================================= */

:root {
  --mkt-hero-overlay:
    linear-gradient(90deg, rgba(13, 20, 35, 0.94) 0%, rgba(13, 20, 35, 0.82) 34%, rgba(13, 20, 35, 0.34) 52%, rgba(13, 20, 35, 0.08) 68%, transparent 82%),
    radial-gradient(ellipse 50% 55% at 88% 42%, rgba(74, 102, 136, 0.12), transparent 62%);
  --mkt-hero-overlay-mobile:
    linear-gradient(180deg, rgba(13, 20, 35, 0.92) 0%, rgba(13, 20, 35, 0.78) 55%, rgba(13, 20, 35, 0.45) 100%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(74, 102, 136, 0.14), transparent 62%);
  --mkt-hero-shell-max: var(--maxw, 1240px);
  --mkt-hero-inset-x: 32px;
  --mkt-hero-pad-top: calc(var(--nav-h, 74px) + 16px);
  --mkt-hero-pad-bottom: 120px;
  --mkt-hero-copy-max: min(680px, 54%);
  --mkt-hero-sub-max: 560px;
  --mkt-hero-copy-pad-top: 8px;
  --mkt-hero-gold: #d4a15a;
  --mkt-hero-gold-hover: #e8c07a;
  --mkt-hero-gold-text: #0d1423;
  --mkt-hero-btn-radius: 6px;
  --mkt-hero-headline-mt: 16px;
  --mkt-hero-body-mt: 20px;
  --mkt-hero-cta-mt: 28px;
  --mkt-hero-cta-gap: 10px 18px;
}

/* ---------- shared overlay ---------- */
.mkt-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--mkt-hero-overlay);
  pointer-events: none;
}

.phero.mkt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--mkt-hero-overlay);
  pointer-events: none;
}

/* shell owns top/side inset — hero section only supplies bottom pad */
.phero.mkt-hero,
.platform-hero.mkt-hero {
  position: relative;
  z-index: 1;
}

.phero.mkt-hero {
  padding-top: 0;
  padding-bottom: var(--mkt-hero-pad-bottom);
}

/* ---------- shared copy frame ---------- */
.mkt-hero-copy-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--mkt-hero-shell-max);
  margin: 0 auto;
  padding: var(--mkt-hero-pad-top) var(--mkt-hero-inset-x) 0;
}

.mkt-hero-copy-col {
  max-width: var(--mkt-hero-copy-max);
  padding-top: var(--mkt-hero-copy-pad-top);
}

/* ---------- shared CTA system (rounded rectangle) ---------- */
.mkt-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--mkt-hero-btn-radius);
  cursor: pointer;
  border: 1px solid transparent;
  appearance: none;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.mkt-hero-btn:hover {
  transform: translateY(-2px);
}

.mkt-hero-btn-primary {
  color: var(--mkt-hero-gold-text);
  background: var(--mkt-hero-gold);
  box-shadow: 0 12px 30px -12px rgba(212, 161, 90, 0.45);
}

.mkt-hero-btn-primary:hover {
  background: var(--mkt-hero-gold-hover);
  color: var(--mkt-hero-gold-text);
}

.mkt-hero-btn-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.mkt-hero-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Reserve Studies: gold CTA must win over global .btn pill radius */
.phero.mkt-hero .mkt-hero-btn.btn {
  border-radius: var(--mkt-hero-btn-radius);
}

@media (max-width: 980px) {
  :root {
    --mkt-hero-copy-max: 100%;
    --mkt-hero-inset-x: 20px;
  }

  .phero.mkt-hero::before {
    background: var(--mkt-hero-overlay-mobile);
  }

  /* Descent-only mobile shell backdrop — not RS/Platform marketing heroes. */
  .static-site-host:has(.mkt-hero)::before {
    content: none !important;
    display: none !important;
  }
}
