/* =============================================================
   THE IMPACT ADVANTAGE — PROGRAM PAGE STYLES
   Layer added for the application-conversion site. Consumes
   tokens.css only — no brand colors/fonts hardcoded. The
   visual identity from main.css is unchanged.
   ============================================================= */

/* ---------- HERO ADJUSTMENTS (program framing) ---------- */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}

/* ---------- PROGRAM COMPONENTS (3 piliers) ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.pillar__num {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 1.1rem;
  color: var(--accent-bright);
  letter-spacing: var(--tracking-wide);
}
.pillar h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin: var(--space-2) 0 0.75rem; }
.pillar p { color: var(--text-on-dark-muted); font-size: var(--fs-small); }

/* ---------- TIMELINE (4 phases) ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.phase {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline-light);
  align-items: start;
}
.phase:last-child { border-bottom: 1px solid var(--hairline-light); }
.phase__weeks {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-h3);
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.phase__weeks small {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  color: var(--text-on-light-muted);
  margin-top: 0.4rem;
}
.phase__body h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--text-on-light); margin-bottom: 0.5rem; }
.phase__body p { color: var(--text-on-light-muted); font-size: var(--fs-body); max-width: 60ch; }

/* ---------- PHASE FLOW INFOGRAPHIC ---------- */
.phase-flow {
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
  align-items: center;
  gap: 0;
  margin-top: var(--space-5);
}
.phase-step {
  background: var(--surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  transition: border-color var(--dur-base) var(--ease-soft),
              transform var(--dur-base) var(--ease-out);
}
.phase-step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.phase-step__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-700);
  border: 1px solid var(--hairline-dark);
  display: grid; place-items: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}
.phase-step__icon svg { width: 26px; height: 26px; }
.phase-step__num {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
}
.phase-step__weeks {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.phase-step__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  color: var(--text-on-dark);
  line-height: var(--lh-snug);
}
.phase-step__desc {
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}
.phase-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.55;
}
.phase-flow__arrow svg { width: 20px; height: 20px; }

/* ---------- DELIVERABLES ---------- */
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2.5rem; }
.deliverable {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline-dark);
}
.deliverable svg { width: 22px; height: 22px; color: var(--accent-bright); flex-shrink: 0; margin-top: 2px; }
.deliverable p { color: var(--text-on-dark); font-size: var(--fs-body); }

/* ---------- MENTOR ---------- */
.mentor__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: var(--space-6); align-items: start; }
.mentor__portrait-wrap {
  margin: 0 0 var(--space-3) 0;
  max-width: 380px;
}
.mentor__portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(7, 27, 22, 0.08);
  box-shadow: 0 26px 50px -30px rgba(7, 27, 22, 0.38);
  filter: saturate(0.92) contrast(1.02);
}
.mentor__intro {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--text-on-light);
  border-left: 2px solid var(--accent-deep);
  padding-left: var(--space-3);
}
.mentor__pillars { display: grid; gap: var(--space-3); }
.mentor__pillar { display: grid; gap: 0.4rem; }
.mentor__pillar h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-on-light);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.mentor__pillar h3 span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-deep);
}
.mentor__pillar p { color: var(--text-on-light-muted); font-size: var(--fs-small); }
.mentor__quote {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  color: var(--text-on-light);
  max-width: 30ch;
}
.mentor__quote .accent { color: var(--accent-deep); }

/* ---------- TESTIMONIALS ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial {
  background: var(--surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.testimonial__head { display: flex; align-items: center; gap: 0.9rem; }
.testimonial__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial__who { line-height: 1.3; }
.testimonial__who strong { display: block; font-size: var(--fs-body); color: var(--text-on-dark); }
.testimonial__who small { font-size: var(--fs-eyebrow); letter-spacing: 0.04em; color: var(--text-on-dark-muted); text-transform: uppercase; }
.testimonial__quote {
  font-size: var(--fs-body);
  color: var(--text-on-dark);
  font-style: italic;
  line-height: var(--lh-normal);
}
.testimonial__row { font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.testimonial__row strong { color: var(--accent-bright); font-weight: var(--fw-semibold); }
.testimonial__result {
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--fs-small);
  color: var(--text-on-dark);
}
.testimonial__result span {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 0.35rem;
}

/* ---------- FIT CHECKLIST ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fit__col {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  border: 1px solid var(--hairline-dark);
}
.fit__col--yes { background: var(--surface-dark); }
.fit__col--no  { background: transparent; }
.fit__col h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
  display: flex; align-items: center; gap: 0.6rem;
}
.fit__col--yes h3 { color: var(--accent-bright); }
.fit__col--no h3 { color: var(--text-on-dark-muted); }
.fit__list { display: grid; gap: 1rem; }
.fit__list li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  font-size: var(--fs-body); color: var(--text-on-dark);
}
.fit__col--no .fit__list li { color: var(--text-on-dark-muted); }
.fit__list svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 4px; }
.fit__col--yes svg { color: var(--accent-bright); }
.fit__col--no svg { color: var(--text-on-dark-muted); }

/* ---------- FAQ ACCORDION ---------- */
.faq { max-width: 820px; }
.faq__item { border-bottom: 1px solid var(--hairline-light); }
.faq__q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: var(--space-3) 0;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  color: var(--text-on-light);
  transition: color var(--dur-fast) var(--ease-soft);
}
.faq__q:hover { color: var(--accent-deep); }
.faq__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-deep);
  transition: transform var(--dur-fast) var(--ease-soft), opacity var(--dur-fast) var(--ease-soft);
}
.faq__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-base) var(--ease-soft);
}
.faq__a-inner {
  padding: 0 0 var(--space-3);
  color: var(--text-on-light-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  max-width: 68ch;
}

/* ---------- APPLICATION FORM ---------- */
.apply__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-6); align-items: start; }
.apply__lead h2 { font-size: var(--fs-h2); margin-bottom: var(--space-3); }
.apply__lead h2 .accent { color: var(--accent-bright); }
.apply__lead p { color: var(--text-on-dark-muted); font-size: var(--fs-lead); }

.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-on-dark);
  background: var(--surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.1rem;
  transition: border-color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}
.field textarea { min-height: 82px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(245, 243, 238, 0.34); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--green-600);
}
.field.has-error input,
.field.has-error textarea { border-color: #C8615A; }
.field__error {
  font-size: var(--fs-small);
  color: #D98079;
  display: none;
}
.field.has-error .field__error { display: block; }

/* Select wrapper */
.field__select-wrap { position: relative; }
.field__select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-on-dark);
  background: var(--surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-sm);
  padding: 0.95rem 2.75rem 0.95rem 1.1rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-soft), background var(--dur-fast) var(--ease-soft);
}
.field__select:focus {
  outline: none;
  border-color: var(--accent-bright);
  background: var(--green-600);
}
.field__select option { background: var(--green-800); color: var(--text-on-dark); }
.field.has-error .field__select { border-color: #C8615A; }
.field__select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  pointer-events: none;
  color: var(--text-on-dark-muted);
}

/* Optional badge on label */
.field__optional {
  font-weight: var(--fw-regular);
  color: var(--text-on-dark-muted);
  margin-left: 0.5rem;
  font-size: 0.8em;
  letter-spacing: 0.02em;
}

.form__submit { justify-content: center; width: 100%; padding-block: 1.1rem; margin-top: 0.5rem; }
.form__note {
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  text-align: center;
  line-height: var(--lh-normal);
}
.form__success {
  display: none;
  padding: var(--space-4);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--surface-dark);
  text-align: center;
}
.form__success.is-shown { display: block; }
.form__success svg { width: 40px; height: 40px; color: var(--accent-bright); margin: 0 auto var(--space-2); }
.form__success h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); margin-bottom: 0.6rem; }
.form__success p { color: var(--text-on-dark-muted); font-size: var(--fs-body); }
.form__error {
  margin-top: var(--space-2);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(217, 128, 121, 0.4);
  border-radius: var(--radius-md);
  background: rgba(217, 128, 121, 0.08);
  color: #D98079;
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .pillars,
  .testimonials { grid-template-columns: 1fr; }
  .deliverables,
  .fit { grid-template-columns: 1fr; }
  .mentor__grid,
  .apply__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .phase { grid-template-columns: 1fr; gap: var(--space-2); }
  .phase__weeks { font-size: var(--fs-h3); }
  .phase-flow {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .phase-flow__arrow { display: none; }
}
@media (max-width: 600px) {
  .phase-flow { grid-template-columns: 1fr; }
}
