/**
 * Future Workforce Initiative (FWI) — page styles
 *
 * Scoped to .fwi-page. Loads AFTER landing.css so ThemeProvider tokens
 * (--bg-primary, --brand, --text-*, --surface, --border, etc.) are the
 * single source of truth. Do not redeclare brand colours here — inherit
 * from .ThemeProvider[data-uv-theme='dark'] in landing.css so future
 * brand updates flow through automatically.
 */

/* ─── Page shell ─── */
/* Shared AuthHeader is position:fixed (~75px). Clear it so the hero
   does not slide underneath (same pattern as become-a-billboard). */
.fwi-page {
  position: relative;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding-top: 4.6875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 450;
  line-height: 1.6;
}

.fwi-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout container — wider on large screens for longer prose lines */
.fwi-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.fwi-container--narrow {
  max-width: 880px;
}

/* Display type — HCo Gotham Bold loaded by landing.css */
.fwi-display {
  font-family: 'HCo Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.fwi-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-orange);
  margin-bottom: 1rem;
}

.fwi-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
  max-width: 28ch;
}

.fwi-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 56rem; /* Wider body lines on large screens */
  margin: 0;
}

/* Explicit Initiative vs Alliance — twin glossary strip under About heading */
.fwi-about-terms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0;
}

@media (min-width: 720px) {
  .fwi-about-terms {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.fwi-about-term {
  margin: 0;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background:
    linear-gradient(135deg, rgba(255, 140, 56, 0.1) 0%, transparent 55%),
    var(--bg-secondary);
}

.fwi-about-term--alliance {
  border-left-color: var(--text-orange);
  background:
    linear-gradient(135deg, rgba(255, 159, 10, 0.08) 0%, transparent 55%),
    var(--bg-secondary);
}

.fwi-about-term__word {
  margin: 0 0 0.35rem;
  font-family: 'HCo Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.fwi-about-term__def {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Section rhythm */
.fwi-section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.fwi-section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.fwi-section--muted {
  background: var(--bg-secondary);
}

/* ─── Focus states (visible keyboard outline) ─── */
.fwi-page a:focus-visible,
.fwi-page button:focus-visible,
.fwi-page input:focus-visible,
.fwi-page .fwi-video-frame:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ─── Scroll reveal (respects reduced motion) ─── */
[data-fwi-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

[data-fwi-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-fwi-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fwi-page * {
    scroll-behavior: auto !important;
  }

  .primaryButton:hover,
  .fwi-aim-card:hover,
  .fwi-exchange-col:hover,
  .fwi-about-block:hover {
    transform: none !important;
  }
}

/* ─── Hero ─── */
/* Full-bleed photo hero (preferred ATF). Soft scrim for type — not a solid
   orange column. Photo stays bright; orange accents carry the energy. */
.fwi-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, rgba(255, 140, 56, 0.28) 0%, transparent 55%),
    #1a120c;
}

.fwi-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fwi-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: brightness(1.14) contrast(1.05) saturate(1.18);
}

/* Readable left/bottom scrim — keeps photo vibrant on the right */
.fwi-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 140, 56, 0.16) 0%,
      rgba(15, 15, 15, 0.12) 42%,
      rgba(15, 15, 15, 0.55) 78%,
      var(--bg-primary) 100%
    ),
    linear-gradient(
      105deg,
      rgba(15, 15, 15, 0.62) 0%,
      rgba(15, 15, 15, 0.28) 40%,
      rgba(255, 140, 56, 0.1) 65%,
      transparent 100%
    );
  pointer-events: none;
}

.fwi-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 10vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}

.fwi-hero__panel {
  max-width: 42rem;
}

.fwi-hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  max-width: 12ch;
  margin: 0 0 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  line-height: 1.08;
}

/* Forced break after "Ready for work." */
.fwi-hero__title-break {
  display: block;
}

.fwi-hero__title-accent {
  background: linear-gradient(100deg, #ffd089 0%, var(--orange-100) 35%, var(--text-orange) 70%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.fwi-hero__vision {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #f2f2f2;
  max-width: 40rem;
  margin: 0 0 1.75rem;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.fwi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.fwi-hero__actions .primaryButton,
.fwi-hero__actions .secondaryButton {
  text-decoration: none;
}

.fwi-hero__actions .secondaryButton {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fwi-hero .fwi-eyebrow {
  color: var(--orange-100);
}

/* ─── Goal strip ─── */
.fwi-goal {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 140, 56, 0.25);
  background:
    linear-gradient(90deg, rgba(255, 140, 56, 0.14) 0%, rgba(255, 159, 10, 0.06) 45%, transparent 100%),
    var(--bg-primary);
}

.fwi-goal__label {
  margin-bottom: 0.5rem;
}

.fwi-goal__text {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--text-primary);
  max-width: 52rem;
  margin: 0;
  line-height: 1.45;
  font-weight: 500;
}

/* ─── Aims ─── */
.fwi-aims__intro {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 56rem;
}

.fwi-aims__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fwi-aim;
}

@media (min-width: 720px) {
  .fwi-aims__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.fwi-aim-card {
  counter-increment: fwi-aim;
  background: linear-gradient(160deg, rgba(255, 140, 56, 0.07) 0%, var(--bg-secondary) 42%);
  border: 1px solid var(--border);
  border-radius: 0.75rem; /* ~$corners-l / 12px */
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fwi-aim-card:hover {
  border-color: rgba(255, 140, 56, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 56, 0.08);
}

.fwi-aim-card::before {
  content: counter(fwi-aim, decimal-leading-zero);
  display: block;
  font-family: 'HCo Gotham', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-orange);
  margin-bottom: 0.75rem;
}

.fwi-aim-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* ─── About — glossary → photo hook → numbered path → offer ─── */
/* One visual job per beat: define terms, land the stake, walk Who→How. */

/* Photo + pull-quote — real visual anchor (not another text slab) */
.fwi-about-hook {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 0 clamp(2.25rem, 4.5vw, 3rem);
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

@media (min-width: 860px) {
  .fwi-about-hook {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.2fr);
    min-height: 22rem;
  }
}

.fwi-about-hook__media {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  background: #1a120c;
}

@media (min-width: 860px) {
  .fwi-about-hook__media {
    min-height: 100%;
  }
}

.fwi-about-hook__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(1.08) saturate(1.1);
}

/* Warm edge into the quote panel */
.fwi-about-hook__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(15, 15, 15, 0.35) 100%),
    linear-gradient(90deg, transparent 55%, rgba(255, 140, 56, 0.18) 100%);
  pointer-events: none;
}

@media (min-width: 860px) {
  .fwi-about-hook__media::after {
    background:
      linear-gradient(90deg, transparent 30%, rgba(15, 15, 15, 0.15) 70%, var(--bg-secondary) 100%),
      linear-gradient(135deg, rgba(255, 140, 56, 0.22) 0%, transparent 50%);
  }
}

.fwi-about-hook__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.fwi-about-hook__mark {
  margin: 0 0 0.35rem;
  font-family: 'HCo Gotham', Georgia, serif;
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 0.7;
  color: var(--brand);
  opacity: 0.85;
}

.fwi-about-hook__line {
  margin: 0 0 1rem;
  font-family: 'HCo Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

.fwi-about-hook__sub {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Numbered story path — vertical spine, not a flat 2×2 card grid */
.fwi-about-story {
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  padding: 0;
  counter-reset: fwi-about-step;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Connecting spine down the left (desktop: beside large step numbers) */
.fwi-about-story::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--brand) 0%,
    rgba(255, 140, 56, 0.35) 45%,
    rgba(255, 140, 56, 0.12) 100%
  );
  border-radius: 1px;
  pointer-events: none;
}

@media (min-width: 720px) {
  .fwi-about-story::before {
    left: 2.15rem;
  }
}

.fwi-about-block {
  position: relative;
  counter-increment: fwi-about-step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.85rem 1.15rem;
  padding: 1.15rem 0 1.35rem;
  align-items: start;
  transition: transform 0.2s ease;
}

@media (min-width: 720px) {
  .fwi-about-block {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
    padding: 1.35rem 0 1.55rem;
  }
}

.fwi-about-block:hover {
  transform: translateX(3px);
}

/* Large step index sits on the spine */
.fwi-about-block::before {
  content: counter(fwi-about-step, decimal-leading-zero);
  grid-row: 1 / span 2;
  grid-column: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.1rem;
  border-radius: 0.55rem;
  font-family: 'HCo Gotham', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid rgba(255, 140, 56, 0.55);
  box-shadow: 0 0 0 4px var(--surface);
}

@media (min-width: 720px) {
  .fwi-about-block::before {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
  }
}

.fwi-about-block__label {
  grid-column: 2;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-orange);
}

@media (min-width: 720px) {
  .fwi-about-block__label {
    margin-top: 0.85rem;
    font-size: 0.85rem;
  }
}

.fwi-about-block__body {
  grid-column: 2;
  padding: 0.85rem 1.1rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 140, 56, 0.05) 0%, var(--bg-secondary) 50%);
  transition: border-color 0.2s ease;
}

.fwi-about-block:hover .fwi-about-block__body {
  border-color: rgba(255, 140, 56, 0.4);
}

.fwi-about-block p {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.fwi-about-block p:last-child {
  margin-bottom: 0;
}

.fwi-about-block strong {
  color: var(--text-primary);
  font-weight: 600;
}

.fwi-about-offer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 140, 56, 0.35);
  background: linear-gradient(145deg, rgba(255, 140, 56, 0.12) 0%, var(--bg-secondary) 55%);
}

@media (min-width: 720px) {
  .fwi-about-offer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.fwi-about-offer__text {
  margin: 0;
  max-width: 48rem;
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-primary);
}

.fwi-about-offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fwi-about-offer__actions .primaryButton,
.fwi-about-offer__actions .secondaryButton {
  text-decoration: none;
}

/* ─── Community impact — what graduates give back ─── */
.fwi-community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

@media (min-width: 720px) {
  .fwi-community-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.fwi-community-card {
  background: linear-gradient(160deg, rgba(255, 140, 56, 0.08) 0%, var(--bg-secondary) 45%);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.fwi-community-card:hover {
  border-color: rgba(255, 140, 56, 0.4);
  transform: translateY(-2px);
}

.fwi-community-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fwi-community-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .fwi-community-card:hover {
    transform: none;
  }
}

/* ─── Impact groups ─── */
.fwi-impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

@media (min-width: 600px) {
  .fwi-impact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .fwi-impact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Youth (primary) spans the full first row for emphasis */
  .fwi-impact-card--primary {
    grid-column: 1 / -1;
  }
}

.fwi-impact-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.35rem 1.25rem 1.4rem;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.fwi-impact-card:hover {
  border-color: rgba(255, 140, 56, 0.4);
  transform: translateY(-2px);
}

.fwi-impact-card--primary {
  background: linear-gradient(145deg, rgba(255, 140, 56, 0.14) 0%, var(--bg-secondary) 50%);
  border-color: rgba(255, 140, 56, 0.4);
  padding-top: 1.5rem;
}

.fwi-impact-card__badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.375rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  background: linear-gradient(135deg, #ff9f0a 0%, #ff7a18 100%);
}

.fwi-impact-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fwi-impact-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .fwi-impact-card:hover {
    transform: none;
  }
}

/* ─── Brand creed — own visual moment ─── */
.fwi-creed {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.fwi-creed__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fwi-creed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.08) saturate(1.1);
}

.fwi-creed__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.45) 0%, rgba(15, 15, 15, 0.62) 100%),
    linear-gradient(135deg, rgba(255, 140, 56, 0.42) 0%, rgba(255, 159, 10, 0.12) 40%, transparent 65%);
  pointer-events: none;
}

.fwi-creed__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 60rem;
  margin-inline: auto;
}

.fwi-creed__divider {
  width: 3rem;
  height: 2px;
  margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  border: none;
}

.fwi-creed__quote {
  font-family: 'HCo Gotham', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.fwi-creed__quote span {
  display: block;
}

.fwi-creed__attrib {
  margin-top: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Video proof ─── */
.fwi-videos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .fwi-videos__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.fwi-video-card {
  margin: 0;
}

.fwi-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.fwi-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Image break (workplace energy) ─── */
.fwi-imagery {
  padding: 0;
}

.fwi-imagery__frame {
  position: relative;
  max-height: 420px;
  overflow: hidden;
}

.fwi-imagery__frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.12);
}

.fwi-imagery__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, var(--bg-primary) 100%),
    linear-gradient(135deg, rgba(255, 140, 56, 0.28) 0%, transparent 55%);
  pointer-events: none;
}

.fwi-imagery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 1;
  text-align: center;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding-inline: 1.5rem;
}

/* ─── Sponsor / co-invest ─── */
.fwi-sponsor__headline {
  max-width: 28ch;
}

.fwi-sponsor__tagline {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 48rem;
}

.fwi-exchange {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .fwi-exchange {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.fwi-exchange-col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s ease;
}

.fwi-exchange-col:hover {
  border-color: var(--border-secondary);
}

.fwi-exchange-col--return {
  border-color: rgba(255, 140, 56, 0.35);
  background: linear-gradient(160deg, rgba(255, 140, 56, 0.08) 0%, var(--bg-secondary) 55%);
}

.fwi-exchange-col h3 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fwi-exchange-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fwi-exchange-col li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.fwi-exchange-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
}

.fwi-exchange-col--return li::before {
  background: var(--orange-200);
}

/* Lead capture form */
.fwi-form-wrap {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-inline: auto; /* Center the single-column form on wider screens */
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 40rem; /* Single-column prospectus — centered, still readable */
}

.fwi-form-wrap h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.fwi-form-wrap > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fwi-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fwi-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.fwi-form label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.fwi-form input {
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.fwi-form input::placeholder {
  color: var(--text-muted);
}

.fwi-form input:hover {
  border-color: var(--border-secondary);
}

.fwi-form input:focus,
.fwi-form input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 140, 56, 0.2);
}

.fwi-form__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Form CTA — match `/` main-cta-button, full width in the single-column form */
.fwi-form__actions .main-cta-button {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.fwi-form__actions .main-cta-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.fwi-form__actions .main-cta-button .button-text {
  font-size: 1.15rem; /* Slightly tighter than hero CTA for form density */
}

.fwi-form__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.35em;
}

.fwi-form__status[data-state='success'] {
  color: #7dcea0;
}

.fwi-form__status[data-state='error'] {
  color: #f08080;
}

.fwi-form__status[hidden] {
  display: none;
}

/* Success panel after submit */
.fwi-form-success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.fwi-form-success[hidden] {
  display: none;
}

.fwi-form-success h4 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.fwi-form-success p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
}

.fwi-form-success .secondaryButton {
  text-decoration: none;
  display: inline-flex;
}
