/* Landing + apply form for /join. Reuses the design tokens, brand header,
   .cta, .hero__* and footer from onboarding.css; this file adds the
   marketing-page sections (value grid, who-list, testimonials, form). */

.apply {
  /* Roomier reading width than the chat, but still a single column. */
  max-width: 720px;
  padding-bottom: 8px;
}

/* Hero */
.apply-hero {
  padding: 8px 0 4px;
}

.apply-hero .cta {
  margin-top: 8px;
}

/* Generic section rhythm */
.apply-section {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

.apply-section__title {
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 20px;
}

.apply-section__lead {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 22px;
}

.apply-section p {
  color: var(--ink-soft);
}

/* Value grid — one cohesive "what's included" matrix, not four floating cards.
   Hairline dividers (1px gap over a --rule background) bind the quadrants into
   a single designed object; serif titles + a gold accent rule carry the brand. */
.value-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}

.value-card {
  background: var(--bg-soft);
  border: 0;
  border-radius: 0;
  padding: 32px 30px;
  box-shadow: none;
  transition: background 140ms ease-out;
}

.value-card:hover {
  background: var(--surface);
}

.value-card h3 {
  position: relative;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 13px;
}

.value-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.value-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ----- Visual motifs: show the experience, not just describe it ----- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 11px;
}

.value-card__tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 13%, transparent);
  border-radius: 999px;
  padding: 6px 12px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-family: var(--ui);
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.avatar--debra {
  width: 46px;
  height: 46px;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent);
}

.avatar-stack {
  display: inline-flex;
  margin-bottom: 16px;
  padding-top: 6px;
}

.avatar--sm {
  width: 36px;
  height: 36px;
  font-size: 13px;
  border: 2px solid var(--bg-soft);
  margin-left: -12px;
}

.avatar--sm:first-child {
  margin-left: 0;
}

.avatar--sm:nth-child(2) {
  background: var(--periwinkle);
}

.avatar--sm:nth-child(3) {
  background: var(--gold);
}

.avatar--sm:nth-child(4) {
  background: var(--accent-deep);
}

.avatar--more {
  background: #d8d2c4;
  color: var(--accent-deep);
}

/* Who-list */
.who-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Founder + testimonials */
.apply-founder p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 24px;
}

.testimonial {
  margin: 0 0 18px;
  padding: 18px 22px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 12px;
}

.testimonial blockquote {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--accent-deep);
}

.testimonial figcaption {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-faint);
}

/* Apply form */
.apply-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
}

.field__optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.turnstile {
  min-height: 65px;
}

/* Final CTA — full-width and centered so the submit is impossible to miss. */
.apply-form .cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Mid-page CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 8px 0 4px;
}

.cta-band .cta {
  align-self: center;
}

.cta-band__line {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ----- Scroll-reveal (applied by enhance.js; only active once JS adds
   .anim-ready, so content is never hidden if the script fails to run) ----- */
.anim-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.anim-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim-ready .reveal,
  .anim-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.apply-error {
  font-family: var(--ui);
  font-size: 14px;
  color: #9b2c2c;
  background: #fbeaea;
  border: 1px solid #f0c9c9;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0;
}

/* Honeypot: removed from layout + a11y tree, but still in the DOM. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-success h3 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 32px); /* a confirmation, not a second hero */
}

.apply-success p {
  font-size: 18px;
  color: var(--ink);
}

/* ----- Icons ----- */
.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ----- Hero proof panel -----
   One confident navy block instead of four weak floating boxes. It gives the
   right column real weight, balances the serif headline, and is the only dark
   mass on the page — so it reads as the credibility anchor. */
.proof {
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 1px 2px rgba(20, 30, 30, 0.05), 0 18px 40px rgba(19, 30, 68, 0.18);
  margin: 28px 0 4px;
}

.proof__kicker {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #cba35e; /* warm gold reads brighter on navy than --gold */
  margin: 0 0 6px;
}

.proof__stats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proof__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.proof__stat:first-child {
  border-top: 0;
}

.proof__num {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
}

.proof__count {
  font-variant-numeric: tabular-nums;
}

.proof__plus {
  color: #cba35e;
  font-size: 0.7em;
  vertical-align: 6%;
  margin-left: 1px;
}

.proof__label {
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.4;
  color: var(--periwinkle);
}

.proof__note {
  margin: 18px 0 0;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--periwinkle);
}

/* ----- Value card icons ----- */
.value-card__icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 12px;
}

.value-card__icon .ic {
  width: 26px;
  height: 26px;
}

/* ----- How it works — a connected journey -----
   Numbered badges sit on a track that fills navy -> gold as the section
   scrolls into view. Open layout (no boxes) so it reads as one path. */
.apply-steps-section .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  counter-reset: step;
}

/* Base track + animated progress fill, centered on the badge row. */
.apply-steps-section .steps::before,
.apply-steps-section .steps::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 16.667%;
  height: 2px;
  z-index: 0;
}

.apply-steps-section .steps::before {
  right: 16.667%;
  background: var(--rule);
}

.apply-steps-section .steps::after {
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 1.2s ease-out;
}

.apply-steps-section .steps.is-drawn::after {
  width: 66.666%;
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 18px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  /* page-coloured ring so the track appears to thread cleanly into the badge */
  box-shadow: 0 0 0 7px var(--bg);
}

.step__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}

.step__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 230px;
}

/* ----- Persona grid — "Who it's for" as elevated tiles -----
   Circular icon badges (navy, shifting to gold with a playful tilt on hover),
   serif labels, and a lift. Reads as an inviting "find yourself here" grid. */
.persona-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.persona {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--rule) 55%, transparent);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20, 30, 30, 0.03);
  transition: transform 200ms ease-out, box-shadow 240ms ease-out;
}

.persona:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(19, 30, 68, 0.1);
}

.persona__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 18px;
  transition: transform 240ms ease-out;
}

/* Soft, color-coded badges cycle through the brand palette by column —
   gentler on the eye than six identical navy dots, and more characterful. */
.persona:nth-child(3n + 1) .persona__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.persona:nth-child(3n + 2) .persona__icon {
  background: color-mix(in srgb, var(--gold) 18%, #fff);
  color: #8a6620;
}

.persona:nth-child(3n + 3) .persona__icon {
  background: color-mix(in srgb, var(--periwinkle) 40%, #fff);
  color: var(--accent-deep);
}

.persona:hover .persona__icon {
  transform: scale(1.08) rotate(-4deg);
}

.persona__icon .ic {
  width: 23px;
  height: 23px;
}

.persona__label {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 7px;
}

.persona__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ----- Testimonials (avatar layout) ----- */
.testimonial {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.testimonial__avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Desktop: widen the canvas and compose the hero as two columns so the first
   viewport reads as one composition, not a narrow column stranded in whitespace.
   Long-form text is capped to a readable measure even though the page is wider. */
@media (min-width: 900px) {
  .apply,
  .site-footer {
    max-width: 940px;
  }

  .apply-section__lead,
  .apply-founder p,
  .apply-founder .testimonial {
    max-width: 660px;
  }

  /* Six audiences read best three-across on the wide canvas. */
  .persona-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .apply-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    column-gap: 48px;
    align-items: start;
    padding-top: 16px;
  }

  .apply-hero > .hero__eyebrow,
  .apply-hero > .hero__title,
  .apply-hero > .hero__body,
  .apply-hero > .cta {
    grid-column: 1;
  }

  /* Proof panel pinned to the right of the headline, fills the dead space. */
  .apply-hero > .proof {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    margin: 4px 0 0;
  }
}

@media (max-width: 560px) {
  .apply-section {
    padding: 32px 0;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .apply-section__lead {
    font-size: 17px;
  }
  /* Steps become a vertical timeline: the track runs down the left edge,
     badges thread through it, text sits to the right. */
  .apply-steps-section .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .apply-steps-section .steps::before,
  .apply-steps-section .steps::after {
    top: 0;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .apply-steps-section .steps::after {
    bottom: auto;
    height: 0;
    background: linear-gradient(180deg, var(--accent), var(--gold));
    transition: height 1.2s ease-out;
  }
  .apply-steps-section .steps.is-drawn::after {
    width: 2px;
    height: 100%;
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 0;
  }
  .step__num {
    margin-bottom: 0;
  }
  .step__desc {
    margin: 0;
    max-width: none;
  }
  .persona-grid {
    grid-template-columns: 1fr;
  }
  .proof {
    padding: 26px 22px;
  }
  .proof__num {
    font-size: 38px;
  }
}
