@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700&display=swap');

/* HERO-CI-01: CI pp.12,23,25,27–28. Scoped to the opening copy. */
.hero-copy.copy {
  width: min(672px, 49vw);
  isolation: isolate;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -48px -80px -48px -6.5vw;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,10,16,.96) 0%, rgba(7,10,16,.92) 68%, rgba(7,10,16,.62) 83%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.hero-copy .eyebrow {
  margin: 0 0 24px;
  color: #a9b7c7;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: .08em;
}
.hero-copy .eyebrow::before { content: none; }
.hero-copy h1 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: clamp(36px, 3.9vw, 56px);
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #f4f4f0;
}
.hero-copy h1 span { color: #2b579a; }
.hero-copy .lede {
  max-width: 440px;
  margin-top: 24px;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #a9b7c7;
}
.hero-copy .actions { gap: 16px; margin-top: 32px; }
.hero-copy .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #5a6f8a;
  border-radius: 12px;
  background: transparent;
  color: #f4f4f0;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  transition: background-color 150ms cubic-bezier(.2,0,0,1), border-color 150ms cubic-bezier(.2,0,0,1);
}
.hero-copy .actions .primary { background: #2b579a; border-color: #2b579a; }
.hero-copy .primary span { margin: 0; font-size: 20px; font-weight: 400; }
.hero-copy .actions .primary:hover { background: #1d3557; border-color: #1d3557; }
.hero-copy .actions a:not(.primary):hover { border-color: #f4f4f0; }

@media (min-width: 768px) and (max-width: 959px) {
  .hero-copy h1 { font-size: 32px; }
  .hero-copy .lede { font-size: 16px; line-height: 24px; max-width: 360px; }
  .hero-copy .actions { gap: 8px; }
  .hero-copy .actions a { padding-inline: 16px; gap: 16px; }
}
@media (max-width: 767px) {
  .hero-copy.copy {
    left: 24px;
    width: calc(100% - 48px);
    top: min(47svh, calc(100svh - 416px));
  }
  .hero-copy::before {
    inset: -48px -24px -40px;
    background: linear-gradient(180deg, transparent, rgba(7,10,16,.94) 48px, #070a10 70%);
    mask-image: linear-gradient(180deg, #000, #000 calc(100% - 40px), transparent);
  }
  .hero-copy .eyebrow { margin-bottom: 16px; font-size: 12px; line-height: 16px; letter-spacing: .04em; }
  .hero-copy h1 { font-size: clamp(28px, 8.2vw, 48px); line-height: 1.15; }
  .hero-copy .lede { max-width: 440px; margin-top: 16px; font-size: 16px; line-height: 24px; }
  .hero-copy .actions { flex-direction: column; gap: 8px; margin-top: 24px; }
  .hero-copy .actions a { width: 100%; }
  .hero-copy .actions .primary { justify-content: space-between; }
  .fallback .hero-copy.copy { top: min(47svh, calc(100svh - 416px)); }
}
@media (max-height: 650px) and (min-width: 768px) {
  .hero-copy.copy { top: 52%; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy .eyebrow { margin-bottom: 16px; }
  .hero-copy .lede { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .hero-copy .actions { margin-top: 24px; }
}
@media (max-height: 650px) and (min-width: 768px) and (max-width: 959px) {
  .hero-copy h1 { font-size: 32px; }
}
/* Keep the complete message reachable when a phone is turned sideways. */
@media (max-width: 959px) and (max-height: 500px) {
  .hero-copy.copy, .fallback .hero-copy.copy {
    left: 24px;
    top: calc(var(--zp-header-height) + 16px);
    width: calc(100% - 48px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 8px;
  }
  .hero-copy .eyebrow { grid-column: 1 / -1; margin: 0; }
  .hero-copy h1 { grid-row: 2 / 4; font-size: 28px; align-self: start; }
  .hero-copy .lede { grid-column: 2; margin: 0; font-size: 14px; line-height: 20px; }
  .hero-copy .actions { grid-column: 2; margin: 0; flex-direction: column; gap: 8px; }
  .hero-copy .actions a { width: 100%; }
  .hero-copy::before { inset: -24px -24px -24px; }
}
@media (min-width: 768px) and (max-width: 959px) and (max-height: 500px) {
  /* Counter only the existing static desktop offset; scroll translation remains. */
  .hero-copy.copy { translate: 0 42%; }
}
@media (max-width: 767px) and (max-height: 360px) {
  .hero-copy h1 { font-size: 24px; }
  .hero-copy .actions { flex-direction: row; }
  .hero-copy .actions a { padding-inline: 8px; gap: 8px; font-size: 12px; }
  .hero-copy .primary span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy .actions a { transition: none; }
}
