/* ============================================================
   AfterAction AI — Landing Page Upgrade
   File: css/landing-upgrade.css
   Strategy: ADDITIVE ONLY — does not modify existing selectors
   Load: after css/styles.css in <head>
   Rollback: remove one <link> tag from index.html <head>
   ============================================================ */


/* -----------------------------------------------------------
   1. SCROLLABLE LANDING SCREEN
      #landingScreen overflow is "visible" by default.
      This makes below-fold sections scrollable.
      Height expands naturally — .screen uses min-height, not height.
   ----------------------------------------------------------- */
#landingScreen {
  overflow-y: auto;
}

/* Hero area anchors to viewport — new sections stack below */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  flex-shrink: 0;
}


/* -----------------------------------------------------------
   2. GRADIENT OVERLAY REFINEMENT
      Widens the dark left band — opens more of the photo
      on the right side, improves depth and framing.
      Overrides .screen--landing::after without removing it.
   ----------------------------------------------------------- */
.screen--landing::after {
  width: 42% !important;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.86) 0%,
    rgba(0,0,0,0.52) 50%,
    rgba(0,0,0,0.00) 100%
  ) !important;
}


/* -----------------------------------------------------------
   3. TAGLINE — gold overline treatment
      Existing: 0.85rem, 55% white, letter-spacing 3px
      Updated: gold color, tighter tracking, elevated weight
   ----------------------------------------------------------- */
.landing__tagline {
  color: var(--gold) !important;
  opacity: 1 !important;
  font-size: 0.72rem !important;
  letter-spacing: 2.5px !important;
  font-weight: 600 !important;
}


/* -----------------------------------------------------------
   4. HERO HEADLINE — explicit sizing
      .landing__hero-tagline had no font-size set.
      Using clamp() for responsive sizing.
   ----------------------------------------------------------- */
.landing__hero-tagline {
  font-size: clamp(1.75rem, 4vw, 2.6rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  white-space: normal !important;
}


/* -----------------------------------------------------------
   5. SUBHEADLINE — stronger value statement
      Bumps opacity, tightens line-height
   ----------------------------------------------------------- */
.landing__mission p + p {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.65 !important;
}


/* -----------------------------------------------------------
   6. PRIMARY CTA — gold, authoritative
      Targets #btnStartVoice by ID only.
      No class changes. No JS changes.
   ----------------------------------------------------------- */
#btnStartVoice {
  background: var(--gold) !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border: none !important;
  letter-spacing: 0.01em !important;
}

#btnStartVoice:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(197, 165, 90, 0.28) !important;
}

#btnStartVoice:active {
  transform: translateY(0) !important;
}


/* -----------------------------------------------------------
   7. SECONDARY CTA — I'll Type
      Slightly elevated border, reads clearly below primary
   ----------------------------------------------------------- */
#btnStartText {
  border: 1.5px solid rgba(255, 255, 255, 0.42) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

#btnStartText:hover {
  border-color: rgba(255, 255, 255, 0.68) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}


/* -----------------------------------------------------------
   8. TERTIARY CTA — CC (Closed Captions)
      Reduced to utility weight — present but not competing
   ----------------------------------------------------------- */
#btnStartCC {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 0.82rem !important;
  padding: 12px 14px !important;
}

#btnStartCC:hover {
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: rgba(255, 255, 255, 0.65) !important;
  background: transparent !important;
}


/* -----------------------------------------------------------
   9. LANDING ACTIONS
   ----------------------------------------------------------- */
.landing__actions {
  flex-wrap: wrap !important;
  row-gap: 0 !important;
}


/* -----------------------------------------------------------
   10. TRUST BAR
       Three credibility anchors below the CTA group.
       New element — class .landing__trust-bar
   ----------------------------------------------------------- */
.landing__trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing__trust-bar span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing__trust-bar span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}


/* -----------------------------------------------------------
   11. BELOW-FOLD SECTIONS WRAPPER
       Sits inside #landingScreen — hides when chat activates.
       Solid dark background: hero image does not bleed down.
   ----------------------------------------------------------- */
.aaai-sections {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  flex-shrink: 0;
}


/* -----------------------------------------------------------
   12. SECTION LAYOUT BASE
   ----------------------------------------------------------- */
.aaai-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 48px;
}

.aaai-section + .aaai-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.aaai-section__overline {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 16px;
}

.aaai-section__heading {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
}

.aaai-section__sub {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 48px 0;
}


/* -----------------------------------------------------------
   13. STEP CARDS — How It Works
   ----------------------------------------------------------- */
.aaai-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.aaai-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s ease;
}

.aaai-card:hover {
  border-color: rgba(197, 165, 90, 0.22);
}

.aaai-card__step {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.aaai-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.aaai-card__body {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.46);
  line-height: 1.7;
  margin: 0;
}


/* -----------------------------------------------------------
   14. OUTCOME GRID — Your Report
   ----------------------------------------------------------- */
.aaai-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.aaai-outcome {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aaai-outcome__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

.aaai-outcome__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}


/* -----------------------------------------------------------
   15. TRUST SECTION — Built for You
   ----------------------------------------------------------- */
.aaai-trust-body p {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 0 16px 0;
}

.aaai-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.aaai-trust-pill {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 7px 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* -----------------------------------------------------------
   16. RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .aaai-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .aaai-outcomes {
    grid-template-columns: 1fr 1fr;
  }

  .aaai-section {
    padding: 64px 28px;
  }

  .aaai-section__sub {
    margin-bottom: 36px;
  }
}

@media (max-width: 600px) {
  .aaai-outcomes {
    grid-template-columns: 1fr;
  }

  .aaai-section {
    padding: 52px 20px;
  }

  .landing__trust-bar {
    gap: 12px;
  }

}


/* -----------------------------------------------------------
   17. NAVBAR LOGO REPLACEMENT
       Swaps to afteractionai_logo_new.png.
       mix-blend-mode: screen eliminates the black background —
       black pixels become transparent, logo art remains fully visible.
       Height increased to 48px to accommodate tagline line.
   ----------------------------------------------------------- */
.navbar__logo-img {
  mix-blend-mode: screen;
}


/* -----------------------------------------------------------
   18. BACKGROUND IMAGE REPOSITIONING
       Default center center cuts off subject (person + headstones).
       Shift right and slightly up to frame the subject.
   ----------------------------------------------------------- */
.screen--landing::before {
  bottom: unset !important;
  height: 100vh !important;
  height: 100dvh !important;
  background-size: cover !important;
  background-position: center 25% !important;
  opacity: 0.72 !important;
}


/* -----------------------------------------------------------
   18. TOP TRUST ROW
       Replaces hero logo area + trust bar.
       Absolutely positioned — centered across full hero width.
       Sits above headline content.
       z-index: 5 clears hero overlays (::before z:0, ::after z:0).
   ----------------------------------------------------------- */
.aaai-top-trust {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0.92;
  z-index: 5;
  white-space: nowrap;
  padding: 0 24px;
}

.aaai-top-trust span {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 6px rgba(212,175,55,0.25);   /* subtle glow for contrast */
}

.aaai-top-trust span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.aaai-top-trust span:first-child::before {
  display: none;
}


/* -----------------------------------------------------------
   19. (DONATE REMOVED — no active donation system)
   ----------------------------------------------------------- */


/* -----------------------------------------------------------
   20. LANDING TOP PADDING ADJUSTMENT
       landing__logo removed — reduce top padding so headline
       doesn't sit too low. Navbar height ~60px.
   ----------------------------------------------------------- */
.landing {
  padding-top: 140px !important;
}
