/* =============================================================
   LANDING PAGE — page-specific styles
   Loaded only on the home page (index.html). Anything reused on
   other pages belongs in global.css instead.
   ============================================================= */


/* -------------------------------------------------------------
   GRADIENT BANNERS
   The hero section at the top of the page and the call-to-action
   section near the bottom share the same coral-to-steel-blue
   gradient. We define the look once on .gradient-banner and use
   it on both elements.
   ------------------------------------------------------------- */
.gradient-banner {
  background: linear-gradient(
    90deg,
    var(--color-coral)      0%,
    var(--color-steel-blue) 100%
  );
  padding:       var(--space-xl) 0;
  color:         var(--color-text);
  /* Cap the banner width so on wide screens it sits as a centered
     panel with white space on either side, lining up with the
     emotions grid below. */
  max-width:     1100px;
  margin:        0 auto;
  border-radius: var(--radius-md);
}

.gradient-banner__inner {
  max-width:  820px;
  margin:     0 auto;
  padding:    0 var(--space-md);
  text-align: center;
}

/* Hero */
.hero h1 {
  font-size:     var(--text-h2);   /* Slightly smaller than the global H1 to match the screenshot */
  margin-bottom: var(--space-md);
}

.hero p {
  font-size:     var(--text-body);
  margin-bottom: var(--space-lg);
}

/* CTA banner near the bottom of the page */
.cta-banner h2 {
  margin-bottom: var(--space-md);
}

/* The three "✓ FREE TEST" style checkmark items */
.cta-banner__checks {
  list-style:      none;
  display:         flex;
  justify-content: center;
  gap:             var(--space-xl);
  flex-wrap:       wrap;
  margin-bottom:   var(--space-md);
}

.cta-banner__checks li {
  font-size:     var(--text-small);
  font-weight:   var(--font-weight-semibold);
  letter-spacing: 0.05em;
}

.cta-banner__checks li::before {
  content:      '\2713';   /* Unicode checkmark */
  margin-right: 8px;
  font-weight:  var(--font-weight-bold);
}


/* -------------------------------------------------------------
   EMOTIONS SECTION
   White section between the hero and CTA banners. Title centered,
   then a 2-column grid of emotion cards on desktop. Each card is
   an image on the left and a title + description on the right.
   ------------------------------------------------------------- */
.emotions-section {
  padding: var(--space-xl) 0;
}

.emotions-section h2 {
  text-align:    center;
  margin-bottom: var(--space-xl);
}

.emotions-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   var(--space-lg) var(--space-xl);
}

.emotion-card {
  display:     grid;
  grid-template-columns: 192px 1fr;
  gap:         var(--space-md);
  align-items: start;
}

.emotion-card__image {
  width:         192px;
  height:        192px;
  object-fit:    cover;
  border-radius: var(--radius-md);
  display:       block;
}

.emotion-card__title {
  font-size:     var(--text-h3);
  font-weight:   var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.emotion-card__body {
  font-size:   var(--text-body);
  color:       var(--color-text);
}


/* -------------------------------------------------------------
   RESPONSIVE — TABLET / MOBILE
   Below 768px we collapse to a single column so each emotion's
   image stacks directly above its description, in this order:
   anger image → anger text → anxiety image → anxiety text → ...
   ------------------------------------------------------------- */
@media (max-width: 768px) {

  .gradient-banner {
    padding: var(--space-lg) 0;
  }

  .hero h1 {
    font-size: var(--text-h2);
  }

  .emotions-section {
    padding: var(--space-lg) 0;
  }

  .emotions-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Stack image on top of text within each card */
  .emotion-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .emotion-card__image {
    width:  100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cta-banner__checks {
    flex-direction: column;
    align-items:    center;
    gap:            var(--space-xs);
  }

}
