/*
 * Career IP — Landing page composition (Frontend Prompt #003).
 *
 * Page-specific layout ONLY, where the foundation primitives cannot express the
 * approved composition directly (full-bleed gradient bands, hero character band,
 * 2-/3-column section grids, illustration sizing). Every value references a design
 * token — no hardcoded visual values. Colours, gradients, type, spacing all come
 * from styles/tokens.css. The orange CTA background is untouched; DEBT-001
 * (label contrast) was resolved in tokens.css (Owner Decision 2026-07-20) by
 * switching the label to ink, not by altering the brand orange itself.
 */

/* ================================================================== Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  overflow: hidden;
}
.hero__inner {
  gap: var(--space-lg);
  align-items: center;
}
.hero-title {
  max-width: 22ch;
  margin-inline: auto;
}
.hero__people {
  width: min(72vw, 64rem);
  height: auto;
  margin-top: var(--space-xl);
  margin-inline: auto;
  filter: saturate(0.88) drop-shadow(0 1rem 1.5rem rgb(13 35 93 / 12%));
}

/* ========================================================== Section titles */
.steps__title,
.testimonials__title {
  margin: 0;
}

/* ========================================================= How it Works */
.steps {
  overflow: hidden;
}
.steps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.step {
  align-items: center;
  gap: var(--space-lg);
}
.step .card {
  width: 100%;
  height: 14rem;
  justify-content: center;
  background: color-mix(in srgb, var(--color-white) 58%, transparent);
  box-shadow: var(--shadow-sm);
}
.step .label {
  min-height: 2lh; /* keep two-line labels vertically aligned across the row */
}
.step__art {
  width: auto;
  height: clamp(9rem, 14vw, 11.5rem);
  max-width: 100%;
  object-fit: contain;
  filter: saturate(0.9) drop-shadow(0 0.75rem 1rem rgb(24 0 173 / 10%));
}

/* ============================================================== Value */
.value,
.outcome,
.feedback {
  background-image:
    linear-gradient(rgb(0 20 58 / 50%), rgb(0 20 58 / 50%)),
    var(--gradient-hero);
}
.value__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.value__text {
  gap: var(--space-lg);
  align-items: flex-start;
}
.value__body {
  max-width: 38rem;
}
.value__body .paragraph--brand {
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}
/* Outcome checklist ("Write a stronger résumé" / …) — owner feedback
   2026-07-24: reads as a crisp list of outcomes, not four separate
   paragraphs. Bold, tight vertical rhythm, checkmark fixed to the left edge
   via padding so it stays aligned even if a line wraps on mobile. */
.value__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  font-family: var(--font-brand);
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.4;
}
.value__checklist li {
  position: relative;
  padding-left: 1.6em;
  font-weight: var(--weight-bold);
}
.value__checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-yellow);
}
.value__principle,
.outcome__principle {
  margin: 0;
  color: var(--color-yellow);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
/* Owner feedback 2026-07-24: the payoff line ("Leave with a clearer
   understanding…") should draw the eye slightly more than the entry line
   ("Come for the résumé…") — same size, one weight step heavier only, so the
   two-line rhythm stays intact rather than becoming visually uneven. */
.value__principle-emphasis {
  font-weight: var(--weight-black);
}
.value__art {
  width: 100%;
  height: auto;
  max-width: 30rem;
  margin-inline: auto;
  filter: saturate(0.9) drop-shadow(0 1rem 1.5rem rgb(13 35 93 / 18%));
}

/* ============================================================ Outcome */
.outcome__inner {
  max-width: 58rem;
  align-items: center;
}
.outcome__copy {
  max-width: 50rem;
  align-items: center;
}
.outcome__copy .paragraph--brand {
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}
.outcome__principle {
  margin-top: var(--space-sm);
}

/* ======================================================= Testimonials */
.testimonials__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.testimonial {
  align-items: center;
  text-align: center;
}
.testimonial__portrait {
  height: 15rem;
  width: auto;
  filter: saturate(0.94) drop-shadow(0 0.75rem 1rem rgb(24 0 173 / 10%));
}
.testimonial__quote {
  margin: 0;
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  /* pale frosted surface derived from the white token — not a hardcoded colour */
  background: color-mix(in srgb, var(--color-white) 70%, transparent);
  box-shadow: var(--shadow-sm);
}

/* ============================================================ Feedback */
.feedback__grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-2xl);
  align-items: center;
}
.feedback__art {
  width: 100%;
  height: auto;
  max-width: 22rem;
  margin-inline: auto;
  filter: saturate(0.88) drop-shadow(0 1rem 1.5rem rgb(13 35 93 / 14%));
}
.feedback__text {
  align-items: center;
  text-align: center;
}
.feedback__title {
  max-width: 22ch;
  margin-inline: auto;
}
.feedback__text .btn {
  white-space: nowrap;
}
/* CTA support text ("About 15 minutes to complete…") — owner feedback
   2026-07-24: white, smaller than the CTA label (not fine-print-small),
   centered, sitting close under the button so it reads as tied to it.
   Deliberately NOT `.fine-print` — that class's muted colour is tuned for
   light backgrounds and was nearly invisible on this on-dark section. */
.cta-support {
  align-self: stretch;
  margin-top: calc(-1 * var(--space-sm));
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-align: center;
}

/* The white inner halo remains visible on dark bands; the indigo outer ring
   remains visible on the light process and testimonial bands. */
.landing .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--color-white), 0 0 0 6px var(--color-indigo);
}

/* ================================================= Responsive foundation */
/* Tablet keeps genuine two-dimensional compositions; only narrative sections
   that benefit from a single reading measure are stacked. */
@media (max-width: 1023px) {
  .value__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .value__text {
    align-items: center;
    text-align: center;
  }
  .value__art {
    max-width: 24rem;
  }
  .hero__people {
    width: min(82vw, 50rem);
  }
  .steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
  .testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
  .testimonial:last-child {
    grid-column: 1 / -1;
    width: min(100%, 22rem);
    justify-self: center;
  }
  .testimonial__portrait {
    height: 13rem;
  }
  .step .label {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
  }
  .hero__inner {
    gap: var(--space-md);
  }
  .hero__people {
    width: 100%;
    height: 10rem;
    object-fit: cover;
    object-position: center;
    margin-top: var(--space-lg);
  }
  .value__text {
    gap: var(--space-md);
  }
  .value__body .paragraph--brand,
  .outcome__copy .paragraph--brand {
    font-size: var(--text-base);
  }
  .value__art {
    max-width: 17rem;
  }
  .steps__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7rem;
    gap: var(--space-md);
    width: 100%;
  }
  .step .card {
    height: auto;
    min-height: 11.25rem;
    padding: var(--space-md);
  }
  .step__art {
    height: 8rem;
  }
  .step:nth-child(even) {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
  .step:nth-child(even) .card {
    grid-column: 2;
    grid-row: 1;
  }
  .step:nth-child(even) .step__art {
    grid-column: 1;
    grid-row: 1;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .testimonial:last-child {
    grid-column: auto;
    width: 100%;
  }
  .testimonial__portrait {
    height: 10.5rem;
  }
  .testimonial__quote {
    padding: var(--space-sm) var(--space-md);
  }
  .feedback__title {
    max-width: 18ch;
  }
  .feedback__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .feedback__text {
    grid-row: 1;
  }
  .feedback__art {
    grid-row: 2;
    max-width: 15rem;
  }
}

@media (max-width: 360px) {
  .hero__people {
    height: 9rem;
    /* The band is 1086x324 (3.35:1). With the base rule's width still in force,
       a fixed height alone stretches it ~1.9x vertically on the narrowest
       phones, so the crop behaviour has to be stated explicitly — this is the
       same pairing the pre-polish rule carried, kept when the height was. */
    object-fit: cover;
    object-position: center;
  }
  .feedback__text {
    min-width: 0;
  }
  .feedback__text .btn {
    max-width: 100%;
    padding-inline: var(--space-md);
  }
  .value__text .btn {
    padding-inline: var(--space-md);
    font-size: var(--text-sm);
    white-space: nowrap;
  }
  .step {
    grid-template-columns: minmax(0, 1fr) 6rem;
  }
  .step:nth-child(even) {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
  .step__art {
    height: 7rem;
  }
}
