/* Shared experience chrome — nav, stage, gate, tier card */

/* SEO payload is rendered into the page for crawlers + a11y. Hidden visually
   but not from screen readers or bots. */
.cx-seo {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cx-root {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
.cx-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}
.cx-hyperframes {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.cx-hyperframes > * { pointer-events: auto; }

/* Hide the in-experience nav when the page is the homepage — the site
   header now provides the top-level nav and duplicating is noisy. */
body.home .cx-nav { display: none; }

/* ── Top nav ─────────────────────────── */
.cx-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(237,241,240,0.92), rgba(237,241,240,0));
  backdrop-filter: saturate(1.2) blur(6px);
}
.cx-nav .cx-brand {
  font-family: var(--cc-font-display);
  font-weight: 600;
  letter-spacing: 0.24em;
  font-size: 1.1rem;
  color: var(--cc-fg);
}
.cx-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.6rem; align-items: center;
}
.cx-nav ul a { color: var(--cc-body); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.04em; }
.cx-nav ul a[aria-current="page"] { color: var(--cc-warm-deep); border-bottom: 1px solid var(--cc-warm-deep); padding-bottom: 2px; }
.cx-nav .cx-member {
  font-family: var(--cc-font-slab);
  color: var(--cc-accent);
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--cc-accent);
  border-radius: 999px;
}
.cx-join {
  background: var(--cc-accent);
  color: var(--cc-bg);
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 120ms ease;
}
.cx-join:hover { background: var(--cc-accent-deep); }

/* ── Gate modal ──────────────────────── */
.cx-gate { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.cx-gate[data-open="true"] { pointer-events: auto; }
.cx-gate[data-open="true"] .cx-gate-scrim {
  opacity: 1;
}
.cx-gate-scrim {
  position: absolute; inset: 0;
  background: rgba(15, 24, 21, 0.64);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.cx-gate-card {
  position: absolute;
  top: 50%; left: 50%;
  width: min(440px, 92vw);
  transform: translate(-50%, -50%);
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 32px 28px 28px;
  opacity: 0;
  transition: opacity 240ms ease;
}
.cx-gate[data-open="true"] .cx-gate-card { opacity: 1; }
.cx-gate-card h2 { margin-top: 0; }
.cx-gate-card p { color: var(--cc-muted); font-size: 0.95rem; }
.cx-gate-card label { display: block; font-size: 0.85rem; font-weight: 500; margin: 12px 0 4px; color: var(--cc-body); }
.cx-gate-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--cc-border);
  background: var(--cc-surface);
  border-radius: var(--cc-radius);
  font-family: inherit; font-size: 1rem;
  color: var(--cc-fg);
}
.cx-gate-card input:focus { outline: 2px solid var(--cc-accent); outline-offset: -1px; }
.cx-gate-card .cx-gate-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: var(--cc-accent);
  color: var(--cc-bg);
  border: 0; border-radius: var(--cc-radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.cx-gate-card .cx-gate-submit:hover { background: var(--cc-accent-deep); }
.cx-gate-card .cx-gate-close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: 0; font-size: 1.4rem;
  color: var(--cc-muted);
  line-height: 1;
}
.cx-gate-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cc-border);
  font-size: 0.82rem; color: var(--cc-muted);
  display: flex; justify-content: space-between;
}
.cx-gate-meta strong { color: var(--cc-warm-deep); }

/* ── Member reveal + badges ──────────── */
.cx-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cc-warm-deep);
  color: var(--cc-bg);
  margin: 2px 4px 2px 0;
}
.cx-badge.is-founding { background: var(--cc-accent); }
.cx-badge.is-veteran  { background: var(--cc-accent-deep); }
.cx-badge.is-patron   { background: var(--cc-warm-deep); }

/* ── Tier card (CCII) ────────────────── */
.cx-tier-card {
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 20px 18px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cx-tier-card:hover { transform: translateY(-3px); box-shadow: var(--cc-shadow); }
.cx-tier-card h3 { font-family: var(--cc-font-display); letter-spacing: 0.12em; color: var(--cc-accent); }
.cx-tier-card .cx-price { font-size: 2rem; font-weight: 700; color: var(--cc-fg); font-family: var(--cc-font-slab); }
.cx-tier-card ul { padding-left: 18px; font-size: 0.9rem; color: var(--cc-body); }
.cx-tier-card .cx-tier-cta {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--cc-warm-deep);
  color: var(--cc-bg);
  border-radius: var(--cc-radius);
  font-weight: 600;
}

/* ── Pullquote ───────────────────────── */
.cx-pullquote {
  font-family: var(--cc-font-slab);
  font-style: italic;
  color: var(--cc-muted);
  border-left: 2px solid var(--cc-warm-deep);
  padding-left: 14px;
  font-size: 0.95rem;
}

/* ── Mobile chrome ───────────────────── */
@media (max-width: 720px) {
  .cx-nav { padding: 12px 16px; }
  .cx-nav ul { gap: 0.9rem; }
  .cx-nav ul li:nth-child(n+4) { display: none; }
}
