/* ═══════════════════════════════════════════════════════════════════════
   /community — Zenrows community hub. Channel directory + build-in-public
   callout. Hairline cards on transparent ground (never card fill),
   left-anchored hero, one accent for the "live" glyph channels.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../_ds/fonts.css";
@import "../_ds/theme.css";
@import "../_shared/chrome.css";
@import "../_shared/components.css";
@import "../_shared/audience-switcher.css";

.cm-main { background: var(--background); }
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 620ms cubic-bezier(0.22,1,0.36,1), transform 620ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ── ACT 1 — hero ──────────────────────────────────────────── */
.cm-hero {
  max-width: 1120px; margin-inline: auto;
  padding: clamp(120px, 16vh, 190px) clamp(20px, 5vw, 72px) clamp(56px, 8vh, 96px);
}
.cm-hero-h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero-xl); line-height: 0.96; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0;
}
.cm-hero-sub {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 22px 0 0; max-width: 50ch;
}
.cm-hero-cta { margin-top: clamp(26px, 4vh, 40px); }
.cm-hero-cta .link-cta { align-self: center; padding-top: 4px; }

/* ── ACT 2 — channels ──────────────────────────────────────── */
.cm-channels {
  max-width: 1120px; margin-inline: auto;
  padding: clamp(40px, 6vh, 72px) clamp(20px, 5vw, 72px) clamp(56px, 9vh, 100px);
}
.cm-head { max-width: 680px; margin-bottom: clamp(28px, 4vh, 44px); }
.cm-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-h2); line-height: 1.02; letter-spacing: -0.028em;
  color: var(--text-primary); margin: 0;
}
.cm-lead {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 16px 0 0; max-width: 52ch;
}

.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cm-channel {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; border: 1px solid var(--border-subtle); border-radius: 16px;
  text-decoration: none; min-width: 0;
  transition: border-color 220ms ease, transform 220ms ease;
}
a.cm-channel:hover { border-color: var(--border); transform: translateY(-3px); }
.cm-logo { width: 32px; height: 32px; object-fit: contain; }
.cm-logo--invert { filter: brightness(0) invert(1); }
.cm-logo--sm { width: 24px; height: 24px; }
.cm-logo--glyph {
  display: inline-flex; align-items: center; justify-content: flex-start;
  width: 32px; height: 32px; font-size: 26px; line-height: 1; color: #7ADAE6;
}
.cm-ch-t {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; color: var(--text-primary);
  display: inline-flex; align-items: center; gap: 10px;
}
.cm-soon {
  font-family: var(--font-code); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-quaternary);
  border: 1px solid var(--border-subtle); border-radius: 999px; padding: 2px 8px;
}
.cm-ch-d {
  font-family: var(--font-base); font-size: 14px; line-height: 1.5;
  color: var(--text-secondary); flex: 1;
}
.cm-ch-cta {
  font-family: var(--font-code); font-size: 12.5px; letter-spacing: -0.005em;
  color: var(--text-primary); margin-top: 4px;
}
.cm-ch-cta--muted { color: var(--text-quaternary); }
/* pending channels — visibly not-yet-clickable, no dead link */
.cm-channel--soon { opacity: 0.62; cursor: default; }

/* ── ACT 3 — build in public / creators ────────────────────── */
.cm-build {
  max-width: 1120px; margin-inline: auto;
  padding: clamp(24px, 4vh, 40px) clamp(20px, 5vw, 72px) clamp(64px, 10vh, 120px);
}
.cm-build-frame {
  border: 1px solid var(--border-subtle); border-radius: 20px;
  padding: clamp(32px, 5vw, 64px);
}
.cm-build-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-h2); line-height: 1.04; letter-spacing: -0.026em;
  color: var(--text-primary); margin: 0; max-width: 18ch;
}
.cm-build-lead {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 16px 0 0; max-width: 56ch;
}
.cm-build-cta.link-cta { margin-top: 22px; display: inline-flex; }

/* ── ACT 4 — closer ────────────────────────────────────────── */
.cm-closer { padding: clamp(88px, 14vh, 190px) clamp(20px, 5vw, 72px); text-align: center; }
.cm-closer-h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--mkt-hero); line-height: 0.99; letter-spacing: -0.03em;
  color: var(--text-primary); margin: 0;
}
.cm-closer-lead {
  font-family: var(--font-base); font-size: var(--mkt-body);
  line-height: 1.5; color: var(--text-secondary); margin: 18px auto 0; max-width: 50ch;
}
.cm-closer-cta { margin-top: clamp(28px, 4vh, 44px); }

/* ── wide ──────────────────────────────────────────────────── */
@media (min-width: 1600px) {
  .cm-hero, .cm-channels, .cm-build { max-width: 1280px; }
  
}

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 940px) { .cm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-hero-cta .link-cta { align-self: flex-start; padding-top: 0; }
}
