/* ─────────────────────────────────────────────────────────────────────────────
   Community page styling. Shares the brand tokens with index.html but lives in
   its own file — the two pages evolve at different speeds and shouldn't break
   each other.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --navy:      #0D1B2A;
  --navy-2:    #11253A;
  --blue:      #2563EB;
  --blue-2:    #1D4ED8;
  --emerald:   #10B981;
  --emerald-2: #34D399;
  --amber:     #F59E0B;
  --ink:       #0F172A;
  --slate:     #334155;
  --muted:     #64748B;
  --faint:     #94A3B8;
  --line:      #E2E8F0;
  --soft:      #F1F5F9;
  --softer:    #F8FAFC;
  --shadow:    0 1px 0 rgba(15,23,42,.04), 0 12px 32px -16px rgba(15,23,42,.18);
  --shadow-lg: 0 32px 80px -28px rgba(2,6,23,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.14; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }

.eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--emerald-2); }
.lede { font-size: clamp(1rem, 1.5vw, 1.125rem); color: var(--muted); line-height: 1.65; }
.lede.on-dark { color: rgba(226,232,240,.82); }

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.centered { margin-inline: auto; text-align: center; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 650; cursor: pointer; white-space: nowrap;
  font-family: inherit;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 26px -12px rgba(37,99,235,.85); }
.btn-primary:hover { background: var(--blue-2); }
.btn-emerald { background: var(--emerald); color: #04241A; box-shadow: 0 10px 26px -12px rgba(16,185,129,.8); }
.btn-emerald:hover { background: var(--emerald-2); }
.btn-ghost-d { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost-d:hover { background: rgba(255,255,255,.12); }
.btn-ghost-l { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost-l:hover { border-color: var(--faint); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .875rem; border-radius: 10px; }

/* ── Nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13,27,42,.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word {
  font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; line-height: 1;
}
.logo-word em { font-style: normal; color: var(--emerald-2); margin-left: .3em; font-weight: 700; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(226,232,240,.76); transition: color .15s; }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 460px) { .nav-cta .btn-ghost-d { display: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; background: var(--navy);
  padding: clamp(60px, 7vw, 92px) 0 clamp(64px, 8vw, 100px); color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(44% 40% at 18% 6%,  rgba(37,99,235,.44), transparent 68%),
    radial-gradient(42% 46% at 86% 30%, rgba(16,185,129,.24), transparent 66%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 52px; } }
.hero h1 { color: #fff; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--emerald-2), #7DD3FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px; margin-bottom: 24px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  font-size: .8125rem; font-weight: 500; color: rgba(226,232,240,.9);
}
.pill b {
  background: var(--amber); color: #451A03; font-size: .6875rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}

/* ── Invite panel (hero right) ──────────────────────────────────────────────── */
.invite-panel {
  position: relative; background: #fff; border-radius: 20px; padding: 26px;
  box-shadow: var(--shadow-lg); color: var(--ink);
}
.invite-panel h4 {
  font-size: .6875rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.invite-total {
  margin-top: 12px; display: flex; align-items: baseline; gap: 10px;
}
.invite-total b {
  font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--navy); line-height: 1;
}
.invite-total span { font-size: .875rem; color: var(--muted); }

.slots { display: flex; gap: 8px; margin: 22px 0 18px; }
.slot {
  flex: 1; height: 52px; border-radius: 11px; display: grid; place-items: center;
  border: 1px dashed #CBD5E1; background: var(--softer);
  font-size: .6875rem; font-weight: 700; color: var(--faint);
}
.slot.filled {
  border-style: solid; border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #3B82F6); color: #fff;
}
.slot.filled.paid { background: linear-gradient(135deg, #059669, var(--emerald)); }

.invite-math {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.math-row { display: flex; justify-content: space-between; font-size: .875rem; color: var(--slate); }
.math-row.total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 750; color: var(--navy); }
.math-row.total b { color: #047857; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: #CBD5E1; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin-top: 9px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.icon-box {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 16px; background: #EFF6FF; color: var(--blue);
}
.icon-box.green { background: #ECFDF5; color: #047857; }
.icon-box.amber { background: #FFFBEB; color: #B45309; }

/* ── Filters ────────────────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 9px 18px; font-size: .8125rem; font-weight: 600;
  color: var(--muted); transition: all .16s ease;
}
.chip:hover { border-color: var(--faint); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Blog ───────────────────────────────────────────────────────────────────── */
.post {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.post:hover { border-color: #CBD5E1; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-band { height: 5px; background: linear-gradient(90deg, var(--blue), var(--emerald)); }
.post-band.updates { background: linear-gradient(90deg, #7C3AED, var(--blue)); }
.post-band.playbook { background: linear-gradient(90deg, var(--amber), #F97316); }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-tag {
  align-self: flex-start; font-size: .625rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); background: #EFF6FF;
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.post-tag.updates { color: #6D28D9; background: #F5F3FF; }
.post-tag.playbook { color: #B45309; background: #FFFBEB; }
.post h3 { margin-bottom: 9px; }
.post p { font-size: .875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.post-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; font-size: .75rem; color: var(--faint);
}
.avatar {
  width: 24px; height: 24px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: .5625rem; font-weight: 800; display: grid; place-items: center; flex-shrink: 0;
}
.avatar.team { background: var(--blue); }

/* ── Jobs ───────────────────────────────────────────────────────────────────── */
.job {
  display: flex; align-items: center; gap: 20px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  margin-bottom: 12px; transition: border-color .16s ease, box-shadow .16s ease;
}
.job:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }
.job-main { flex: 1; min-width: 0; }
.job-title { font-size: 1rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.job-co { margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag {
  font-size: .6875rem; font-weight: 650; color: var(--slate);
  background: var(--soft); padding: 4px 10px; border-radius: 6px;
}
.tag.fee { background: #ECFDF5; color: #047857; }
.job-side { flex-shrink: 0; text-align: right; }
@media (max-width: 640px) {
  .job { flex-direction: column; align-items: stretch; gap: 14px; }
  .job-side { text-align: left; }
}

/* ── Recognition tiers ──────────────────────────────────────────────────────── */
.tier {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  position: relative;
}
.tier.now { border-color: var(--amber); box-shadow: 0 20px 50px -28px rgba(245,158,11,.6); }
.tier-badge {
  position: absolute; top: -11px; left: 26px; background: var(--amber); color: #451A03;
  font-size: .625rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tier-mark { font-size: 1.6rem; line-height: 1; margin-bottom: 14px; }
.tier h3 { margin-bottom: 6px; }
.tier > p { font-size: .8125rem; color: var(--muted); }
.tier ul { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tier li {
  position: relative; padding-left: 24px; margin-bottom: 9px;
  font-size: .8125rem; color: var(--slate); line-height: 1.55;
}
.tier li:last-child { margin-bottom: 0; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

/* ── Rules (dark) ───────────────────────────────────────────────────────────── */
.dark-section { background: var(--navy); color: #fff; }
.dark-section h2 { color: #fff; }
.rule {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 24px;
}
.rule-n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(52,211,153,.16); color: var(--emerald-2);
  font-size: .8125rem; font-weight: 800; margin-bottom: 14px;
}
.rule h3 { color: #fff; margin-bottom: 7px; }
.rule p { font-size: .875rem; color: rgba(203,213,225,.85); line-height: 1.6; }

/* ── Rhythm timeline ────────────────────────────────────────────────────────── */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 940px) { .rhythm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rhythm { grid-template-columns: 1fr; } }
.beat { padding-top: 24px; border-top: 2px solid var(--line); position: relative; }
.beat::before {
  content: ""; position: absolute; top: -6px; left: 0;
  width: 10px; height: 10px; border-radius: 999px; background: var(--blue);
}
.beat-when {
  font-size: .6875rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.beat h3 { margin-bottom: 7px; }
.beat p { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ── Gated notice ───────────────────────────────────────────────────────────── */
.gate {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: 14px; margin-top: 28px;
  background: var(--softer); border: 1px solid var(--line);
}
.gate p { flex: 1; min-width: 240px; font-size: .875rem; color: var(--slate); }
.gate strong { color: var(--navy); font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 1rem; font-weight: 650; color: var(--navy); line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 29px;
  width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 40px 24px 0; font-size: .9375rem; color: var(--muted); line-height: 1.68; }

/* ── CTA ────────────────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--navy);
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 60px); text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 20% 0%, rgba(37,99,235,.45), transparent 65%),
    radial-gradient(45% 70% at 85% 100%, rgba(16,185,129,.28), transparent 65%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; max-width: 620px; margin-inline: auto; }
.cta .lede { margin: 18px auto 0; max-width: 500px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); padding: 44px 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { font-size: .875rem; color: rgba(226,232,240,.8); }
.footer-links a:hover { color: #fff; }
.footer-copy {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .8125rem; color: rgba(148,163,184,.75);
}

/* ── Reveal ─────────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
[hidden] { display: none !important; }
