/*
 * MidPay — Hero Bold (PRIORITY 1)
 * Loaded LAST in index.html so it wins the cascade over hero-fullwidth.css,
 * hero-minimal.css, mobile-first-apple.css. Overrides:
 *   .hero-title-huge        — bold, full-opacity, centered, 40-48px
 *   .hero-subheading        — new element below the H1
 *   body.form-active        — keep the H1 visible at 28-32px, never shrink to 12px
 *   .hero-cta               — the "Get Started" button shown before auth
 */

/* ─── 1. Hero container — full-viewport centered (vert + horiz) ───── */
.hero-fullwidth {
  /* fill the viewport below the nav (≈80px) so the hero feels "above the fold" */
  min-height: calc(100vh - 80px);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px !important;
  box-sizing: border-box;
}
.hero-content-center {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}
@media (max-width: 768px) {
  .hero-fullwidth {
    /* on phones the trust-row at the bottom reserves ~36px; subtract that
       so the centered content doesn't sit underneath it */
    min-height: calc(100vh - 80px - 36px);
    padding: 24px 16px !important;
  }
}
/* Once the form mounts, stop trying to center vertically — the wizard
   needs the full vertical scroll space, not viewport-locked centering. */
body.form-active .hero-fullwidth {
  min-height: 0;
  display: block !important;
  padding: 24px 16px 60px !important;
}
body.form-active .hero-content-center {
  display: block;
}

/* ─── 2. Bold headline ─────────────────────────────────────────────── */
.hero-title-huge,
h1.hero-title-huge,
.hero-title-huge[style] {
  font-size: 48px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  text-align: center !important;
  letter-spacing: -0.02em;
  margin: 0 auto 24px !important;
  max-width: 18ch;
  text-transform: none !important;
}
@media (max-width: 900px) {
  .hero-title-huge,
  h1.hero-title-huge,
  .hero-title-huge[style] {
    font-size: 40px !important;
    max-width: 16ch;
  }
}
@media (max-width: 600px) {
  .hero-title-huge,
  h1.hero-title-huge,
  .hero-title-huge[style] {
    font-size: 34px !important;
    max-width: 14ch;
  }
}

/* ─── 3. Subheading ────────────────────────────────────────────────── */
.hero-subheading {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.75;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 56ch;
  letter-spacing: 0;
}
@media (max-width: 600px) {
  .hero-subheading {
    font-size: 17px;
    margin-bottom: 32px;
  }
}

/* ─── 4. Form-active state — KEEP the headline visible, never 12px ── */
body.form-active .hero-title-huge,
body.form-active h1.hero-title-huge,
body.form-active .hero-title-huge[style] {
  font-size: 32px !important;
  opacity: 1 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
}
@media (max-width: 600px) {
  body.form-active .hero-title-huge,
  body.form-active h1.hero-title-huge,
  body.form-active .hero-title-huge[style] {
    font-size: 28px !important;
  }
}
body.form-active .hero-subheading {
  display: none; /* hide the long subhead once the form is active */
}
body.form-active .hero-content-center {
  /* form-active state still gets vertical breathing room from this file's
     spacing rules; do not let other CSS cram the form against the title */
  padding-top: 8px;
}

/* ─── 5. "Get Started" CTA (pre-auth) ──────────────────────────────── */
.hero-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 44px;
  font-size: 18px;
  font-weight: 800;
  color: #000;
  background: linear-gradient(135deg, #A4D233 0%, #8DB82A 100%);
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(164, 210, 51, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-width: 260px;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(164, 210, 51, 0.35);
  filter: brightness(1.05);
}
.hero-cta:active {
  transform: translateY(0);
  filter: brightness(0.95);
}
.hero-cta[disabled] {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.hero-cta-microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
@media (max-width: 600px) {
  .hero-cta {
    width: 100%;
    max-width: 360px;
    padding: 16px 28px;
    font-size: 17px;
  }
}
