/* ═══════════════════════════════════════════════════════════════════════════
   /join — membership landing page.
   Design language: airy and de-boxed. Type and whitespace carry the page; the
   only "surfaces" are soft tinted icon tiles. Sections are separated by hairlines
   and generous vertical rhythm rather than bordered cards.
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --join-hair: rgba(255,255,255,.07); }

.join-page { max-width: 1080px; margin: 0 auto; padding: 0 clamp(22px, 6vw, 48px); }

/* ── Hero — one centred statement + the sign-up ───────────────────────────── */
.join-hero { max-width: 780px; margin: 0 auto; text-align: center; padding: clamp(52px, 9vw, 116px) 0 clamp(44px, 7vw, 80px); }
.join-eyebrow { display: inline-block; color: var(--blue); letter-spacing: .14em; margin-bottom: 24px; }
.join-title {
  font-size: clamp(2.6rem, 7vw, 4.7rem); line-height: 1.02; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 22px; color: var(--text); text-wrap: balance;
}
.join-title-grad {
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.join-lede {
  font-size: clamp(1.12rem, 2.1vw, 1.4rem); line-height: 1.55; color: var(--text2);
  margin: 0 auto; max-width: 30em; font-weight: 400;
}

/* Sign-up — the field floats on the page, no card around it */
.join-signup { max-width: 540px; margin: clamp(30px, 4vw, 44px) auto 0; }
.join-form { margin: 0; }
.join-inputrow { display: flex; gap: 10px; }
.join-input {
  flex: 1 1 auto; min-width: 0; height: 58px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 14px;
  color: var(--text); font-family: inherit; font-size: 1.05rem; padding: 0 18px;
  transition: border-color .15s, box-shadow .15s;
}
.join-input::placeholder { color: var(--faint); }
.join-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(88,166,255,.20); }
.join-inputrow .btn-primary {
  flex: 0 0 auto; height: 58px; padding: 0 24px; border-radius: 14px;
  font-size: 1rem; white-space: nowrap;
}
.join-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.join-form-micro { font-size: .86rem; line-height: 1.55; color: var(--muted); margin: 16px auto 0; max-width: 34em; }
.join-nowrap { white-space: nowrap; }
.join-form-err { font-size: .88rem; color: var(--red); margin-top: 12px; }

.join-success-line { font-size: 1.05rem; line-height: 1.55; color: var(--text2); margin: 8px 0 0; }
.join-success-line strong { color: var(--text); }
.join-success-line svg, .join-welcome svg { color: var(--green); vertical-align: -3px; margin-right: 4px; }
.join-success-email { color: var(--text); font-weight: 600; }

.join-welcome { font-size: 1.08rem; color: var(--text2); margin: 0 0 22px; }
.join-welcome strong { color: var(--text); }
.join-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Trust line — quiet, dot-separated */
.join-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; margin: clamp(30px, 4vw, 44px) 0 0; padding: 0; }
.join-trust li { font-size: .92rem; color: var(--muted); font-weight: 500; }
.join-trust li:not(:last-child)::after { content: "\00b7"; margin: 0 15px; color: var(--border2); }

/* ── Stats — hairline-framed, no box ──────────────────────────────────────── */
.join-stats {
  max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: clamp(40px, 6vw, 60px) 0;
  border-top: 1px solid var(--join-hair); border-bottom: 1px solid var(--join-hair);
}
.join-stat { text-align: center; }
.join-stat-n {
  display: block; font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent; font-variant-numeric: tabular-nums;
}
.join-stat-l { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* ── Section rhythm + heads ───────────────────────────────────────────────── */
.join-reasons, .join-how { padding: clamp(64px, 10vw, 120px) 0; }
.join-section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.join-section-head .section-label { display: block; margin-bottom: 14px; }
.join-h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: 0 0 16px; text-wrap: balance; }
.join-section-sub { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.65; color: var(--text2); margin: 0; }
.join-section-sub em { color: var(--text); font-style: normal; font-weight: 600; }

/* ── Benefits — borderless columns ────────────────────────────────────────── */
.join-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 56px) clamp(30px, 4vw, 52px); }
.acc-blue   { --accent: var(--accent-blue); }
.acc-teal   { --accent: var(--accent-teal); }
.acc-green  { --accent: var(--accent-green); }
.acc-purple { --accent: var(--accent-purple); }
.acc-amber  { --accent: var(--accent-amber); }
.join-benefit-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: rgb(var(--accent)); background: rgba(var(--accent), .13); margin-bottom: 22px;
}
.join-benefit-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); margin: 0 0 10px; line-height: 1.3; }
.join-benefit-body { font-size: .98rem; line-height: 1.62; color: var(--text2); margin: 0; }
.join-benefit-body a { color: rgb(var(--accent)); text-decoration: none; font-weight: 600; }
.join-benefit-body a:hover { text-decoration: underline; }

/* Fail-safe reveal: cards are visible by default; JS arms .is-armed to hide, then
   .in fades them up. A script error or dead observer can never leave them blank. */
.join-benefit { opacity: 1; transform: none; }
.join-reveal.is-armed .join-benefit { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.join-reveal.is-armed.in .join-benefit { opacity: 1; transform: none; }
.join-reveal.is-armed.in .join-benefit:nth-child(2) { transition-delay: .06s; }
.join-reveal.is-armed.in .join-benefit:nth-child(3) { transition-delay: .12s; }
.join-reveal.is-armed.in .join-benefit:nth-child(4) { transition-delay: .18s; }
.join-reveal.is-armed.in .join-benefit:nth-child(5) { transition-delay: .24s; }
.join-reveal.is-armed.in .join-benefit:nth-child(6) { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) { .join-reveal.is-armed .join-benefit { opacity: 1; transform: none; transition: none; } }

/* ── How it works — number + text, no box ─────────────────────────────────── */
.join-how { border-top: 1px solid var(--join-hair); }
.join-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.join-step { display: flex; gap: 16px; align-items: flex-start; }
.join-step-n {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700; color: rgb(var(--accent-blue));
  background: rgba(88,166,255,.13);
}
.join-step-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 6px 0 8px; }
.join-step-body { font-size: .96rem; line-height: 1.6; color: var(--text2); margin: 0; }

/* ── Final CTA — open, on a soft glow, no box ─────────────────────────────── */
.join-final { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 12vw, 130px); text-align: center; border-top: 1px solid var(--join-hair); }
.join-final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 0%, rgba(88,166,255,.10), transparent 62%);
}
.join-final-inner { position: relative; max-width: 620px; margin: 0 auto; }
.join-final-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.025em; color: var(--text); margin: 0 0 14px; }
.join-final-sub { font-size: clamp(1.02rem, 1.7vw, 1.18rem); line-height: 1.6; color: var(--text2); margin: 0 auto 30px; max-width: 30em; }
.join-final-form { max-width: 540px; margin: 0 auto; }
.join-final .join-success { max-width: 540px; margin: 0 auto; }
.join-final-btn { font-size: 1.02rem; padding: 15px 30px; }
.join-final-legal { font-size: .84rem; color: var(--muted); margin: 22px 0 0; }
.join-final-legal a, .join-form-micro a { color: var(--blue); text-decoration: none; }
.join-final-legal a:hover, .join-form-micro a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .join-benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .join-steps { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 640px) {
  .join-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .join-benefit-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .join-inputrow { flex-direction: column; }
  .join-inputrow .btn-primary { width: 100%; justify-content: center; }
  .join-cta-row .btn-primary, .join-cta-row .btn-secondary { width: 100%; justify-content: center; }
}
