/* Join the Team page. Shared tokens and components live in site.css. */

main .lede, main .source-note { text-wrap: pretty; }

/* ---------- Hero ---------- */

.j-hero { padding: clamp(40px, 7vh, 88px) 0 clamp(64px, 10vh, 112px); }
.j-title {
  font-size: clamp(56px, 10.4vw, 150px);
  margin: 20px 0 clamp(24px, 3vw, 36px);
  max-width: 9.4em;
  text-wrap: balance;
}
.j-lede { max-width: 34em; }

/* The honest state: closed, with the one thing to do instead. */
.j-closed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 24px clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.j-closed-copy { min-width: 0; }
.j-closed-h {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin-bottom: 14px;
}
.j-closed-act { display: grid; justify-items: end; gap: 12px; }
.j-closed-act .btn { min-width: 11em; }
.j-signup { width: min(32em, 46vw); }
.j-signup-h { font-size: clamp(24px, 2.2vw, 30px); line-height: 0.95; text-wrap: balance; margin-bottom: 18px; }
.j-signup .signup-done { padding-top: 0; }
.j-signup .signup-done .display { font-size: clamp(24px, 2.2vw, 30px); }
.j-closed-copy .source-note { margin-top: 14px; }

@media (max-width: 760px) {
  .j-closed { grid-template-columns: minmax(0, 1fr); }
  .j-signup { width: auto; }
  .j-closed-act { justify-items: start; }
}
@media (max-width: 560px) {
  .j-closed-act { justify-items: stretch; }
  .j-closed-act .btn { width: 100%; min-width: 0; }
}

/* ---------- Why (dark) ---------- */

.j-why-h { max-width: 14em; }
.j-why-p { margin-top: clamp(26px, 3vw, 36px); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); max-width: 32em; text-wrap: pretty; }
.j-why-p b { color: var(--paper); font-weight: 700; }

/* Keep each sentence whole when the line is wide enough to hold it. */
.j-sent { text-wrap: balance; }
.j-final-p .j-sent { display: inline-block; }
@media (min-width: 761px) {
  .j-why-h .j-sent { display: inline-block; }
}

/* ---------- How to apply (light) ---------- */

.j-head { margin-bottom: clamp(40px, 5vw, 64px); }
.j-head .eyebrow { margin-bottom: 18px; }

.j-steps { border-bottom: 2px solid var(--ink); }
.j-step {
  align-items: start;
  column-gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 3vw, 36px) 0 clamp(40px, 5vw, 60px);
}
.j-step-body { min-width: 0; }
.j-step h3 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 16px; }
.j-step p { font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; text-wrap: pretty; }
.j-why-line { margin-top: 18px; font-weight: 600; color: var(--muted-dark); }
.j-why-line b { color: var(--ink); font-weight: 700; }

.j-optional { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--ink); }
.j-optional .tag { margin-bottom: 12px; }

.j-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 15px; font-weight: 700; }

@media (max-width: 560px) {
  .j-step { row-gap: 18px; }
  .j-step .num { font-size: 84px; }
}

/* ---------- Rules (dark) ---------- */

.j-rules-h { max-width: 9em; margin-bottom: clamp(40px, 5vw, 64px); }
.j-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 44px);
}
.j-rule { min-width: 0; padding-top: 26px; border-top: 2px solid var(--paper); }
.j-check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  background: var(--paper);
  color: var(--ink);
}
.j-check svg { width: 26px; height: 26px; }
.j-rule h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 0.95;
  margin-bottom: 12px;
}
.j-rule p { color: var(--muted); max-width: 30em; text-wrap: pretty; }

@media (max-width: 860px) {
  .j-rule-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .j-rule {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 22px;
    padding: 24px 0 30px;
  }
  .j-rule .j-check { grid-row: 1 / span 2; margin-bottom: 0; }
  .j-rule:last-child { border-bottom: 2px solid var(--paper); }
}
@media (max-width: 420px) {
  .j-rule { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .j-check { width: 36px; height: 36px; }
  .j-check svg { width: 22px; height: 22px; }
}

/* ---------- Final ---------- */

.j-final { text-align: center; }
.j-final-h { font-size: clamp(104px, 16vw, 200px); }
.j-final-p { margin: 24px auto 0; max-width: 27em; font-size: clamp(18px, 1.9vw, 21px); text-wrap: balance; }
.j-final-cta { display: grid; justify-items: center; gap: 18px; margin-top: clamp(32px, 4vw, 40px); }
.j-q { margin-top: 30px; font-size: 15px; color: var(--muted-dark); }
.j-q a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .j-final-cta { justify-items: stretch; }
  .j-final-cta .btn { width: 100%; }
}
