/* =========================================================
   OrgForge marketing site — v3 (platform-aligned)
   Theme system mirrors the orgfrg.com dashboard brand bundle.
   Three themes: Light, OrgForgeBrand (default), Dark.
   Layout, components, and typography are constant across themes.
   ========================================================= */

/* ---------- OrgForgeBrand (default) ---------- */
:root,
[data-theme='orgforge'] {
  --bg: #1C294C;
  --bg-pattern: rgba(255, 255, 255, 0.018);
  --surface: #FFFFFF;
  --surface-2: #F4F6FB;
  --surface-3: #14213E;       /* darker surface for sub-panels on navy */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-on-surface: #E2E6F0;

  --text-on-bg: #FFFFFF;
  --text-on-bg-2: #B5BCD0;
  --text-on-bg-3: #8590AB;

  --text: #10131F;
  --text-2: #4A5269;
  --text-3: #6B7388;
  --text-muted: #8B92A6;

  --accent: #6F42D4;
  --accent-soft: rgba(111, 66, 212, 0.12);
  --accent-hover: #5A2EB8;
  --accent-on-bg: #A48CE8;     /* lifted purple readable on navy */

  --gold: #CB940A;
  --gold-soft: rgba(203, 148, 10, 0.18);
  --gold-on-bg: #E0A82E;

  --teal: #189899;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #DC2626;

  --chrome-bg: rgba(20, 33, 62, 0.78);
  --chrome-border: rgba(255, 255, 255, 0.10);
  --chrome-hover: rgba(255, 255, 255, 0.06);

  --mark-halves: #FFFFFF;
  --mark-dot: #CB940A;

  --shadow-rgb: 0, 0, 0;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.28);
  --shadow-card-elevated: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 40px rgba(0,0,0,0.32);
}

/* ---------- Light ---------- */
[data-theme='light'] {
  --bg: #EEF0F4;
  --bg-pattern: rgba(28, 41, 76, 0.025);
  --surface: #FFFFFF;
  --surface-2: #F5F6F9;
  --surface-3: #FFFFFF;
  --border: #DEE1E8;
  --border-strong: #C8CDD8;
  --border-on-surface: #E2E6F0;

  --text-on-bg: #10131F;
  --text-on-bg-2: #4A5269;
  --text-on-bg-3: #6B7388;

  --text: #10131F;
  --text-2: #4A5269;
  --text-3: #6B7388;
  --text-muted: #8B92A6;

  --accent: #6F42D4;
  --accent-soft: rgba(111, 66, 212, 0.10);
  --accent-hover: #5A2EB8;
  --accent-on-bg: #6F42D4;

  --gold: #CB940A;
  --gold-soft: rgba(203, 148, 10, 0.15);
  --gold-on-bg: #CB940A;

  --teal: #189899;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #DC2626;

  --chrome-bg: rgba(255, 255, 255, 0.86);
  --chrome-border: #DEE1E8;
  --chrome-hover: #F0F2F6;

  --mark-halves: #1C294C;
  --mark-dot: #CB940A;

  --shadow-rgb: 17, 24, 39;
  --shadow-card: 0 1px 2px rgba(17,24,39,0.04), 0 4px 16px rgba(17,24,39,0.06);
  --shadow-card-elevated: 0 2px 4px rgba(17,24,39,0.05), 0 12px 32px rgba(17,24,39,0.10);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --bg: #07090E;
  --bg-pattern: rgba(255, 255, 255, 0.02);
  --surface: #131A2A;
  --surface-2: #1B2238;
  --surface-3: #0E1422;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-on-surface: rgba(255, 255, 255, 0.08);

  --text-on-bg: #F1F4FA;
  --text-on-bg-2: #B5BCD0;
  --text-on-bg-3: #8590AB;

  --text: #F1F4FA;
  --text-2: #B5BCD0;
  --text-3: #8590AB;
  --text-muted: #62708C;

  --accent: #8E66E0;
  --accent-soft: rgba(142, 102, 224, 0.18);
  --accent-hover: #A285E8;
  --accent-on-bg: #A48CE8;

  --gold: #E0A82E;
  --gold-soft: rgba(224, 168, 46, 0.18);
  --gold-on-bg: #E0A82E;

  --teal: #1FB1B2;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  --chrome-bg: rgba(7, 9, 14, 0.82);
  --chrome-border: rgba(255, 255, 255, 0.08);
  --chrome-hover: rgba(255, 255, 255, 0.06);

  --mark-halves: #FFFFFF;
  --mark-dot: #E0A82E;

  --shadow-rgb: 0, 0, 0;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.5);
  --shadow-card-elevated: 0 1px 0 rgba(255,255,255,0.06) inset, 0 16px 40px rgba(0,0,0,0.6);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-bg);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, var(--bg-pattern) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, var(--bg-pattern) 0%, transparent 50%);
  transition: background-color 240ms ease, color 240ms ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  transition: background-color 240ms ease, border-color 240ms ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--text-on-bg);
}

.nav-brand .mark {
  width: 26px;
  height: 26px;
}

.nav-brand .wordmark { color: var(--text-on-bg); }
.nav-brand .wordmark .accent { color: var(--gold-on-bg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-bg-2);
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-on-bg);
  background: var(--chrome-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme switcher (sun / mark / moon) */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 3px;
  background: var(--surface-3);
  border: 1px solid var(--chrome-border);
  border-radius: 10px;
}

.theme-seg {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 7px;
  color: var(--text-on-bg-3);
  transition: background-color 160ms ease, color 160ms ease;
}

.theme-seg:hover { color: var(--text-on-bg-2); }

.theme-seg.active {
  background: var(--chrome-hover);
  color: var(--text-on-bg);
}

.theme-seg svg { width: 15px; height: 15px; }

.theme-seg .mark-mini {
  width: 14px;
  height: 14px;
}

/* CTA in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  transition: background-color 160ms ease, transform 120ms ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-bg);
  border-radius: 8px;
}

.nav-toggle:hover { background: var(--chrome-hover); }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .nav-brand .wordmark { display: none; }
}

.mobile-menu {
  display: none;
  padding: 12px 20px 18px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 14px; font-size: 15px; }
.mobile-menu .nav-cta { width: fit-content; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.hero-text {
  display: grid;
  gap: 28px;
  max-width: 640px;
}

.hero-audience {
  font-size: 13.5px;
  color: var(--text-on-bg-3);
  line-height: 1.5;
  max-width: 540px;
  letter-spacing: 0.005em;
}

.hero-audience strong {
  font-weight: 600;
  color: var(--text-on-bg-2);
}

/* ---------- Proof receipt artifact ---------- */
.proof-receipt {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-on-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-card-elevated);
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
}

@media (min-width: 1000px) {
  .proof-receipt {
    margin: 0 0 0 auto;
    transform: rotate(0.4deg);
  }
}

.proof-receipt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 60%, var(--accent) 100%);
}

.proof-receipt .pr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px dashed var(--border-on-surface);
}

.proof-receipt .pr-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.proof-receipt .pr-title .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: prPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes prPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.proof-receipt .pr-stamp {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--text-3);
}

.proof-receipt .pr-body {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.proof-receipt .pr-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: baseline;
  gap: 12px;
}

.proof-receipt .pr-key {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.proof-receipt .pr-val {
  color: var(--text);
  word-break: break-all;
}

.proof-receipt .pr-val.proof-id { color: var(--gold); font-weight: 500; }

.proof-receipt .pr-foot {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--border-on-surface);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proof-receipt .pr-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--success);
}

.proof-receipt .pr-status .check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
}

.proof-receipt .pr-quorum {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.proof-receipt-caption {
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-on-bg-3);
  text-align: center;
}

@media (min-width: 1000px) {
  .proof-receipt-caption { text-align: right; padding-right: 8px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-on-bg);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--gold-on-bg);
}

h1.hero-h {
  font-family: 'DM Serif Display', 'Inter', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--text-on-bg);
}

h1.hero-h .punctuate { color: var(--gold-on-bg); }

.hero-sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--text-on-bg-2);
  max-width: 620px;
  letter-spacing: -0.005em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background-color 160ms ease, transform 120ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-bg);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--chrome-hover);
  border-color: var(--text-on-bg-2);
}

.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Section pattern ---------- */
section {
  padding: 96px 0;
  position: relative;
  scroll-margin-top: 80px;
}

section.surface-2 {
  background: var(--surface-3);
}

[data-theme='light'] section.surface-2 {
  background: #FFFFFF;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  color: var(--teal);
}

[data-theme='orgforge'] .section-head .eyebrow,
[data-theme='dark'] .section-head .eyebrow {
  color: var(--accent-on-bg);
}

.section-head .eyebrow::before { background: currentColor; opacity: 0.6; }

h2 {
  font-family: 'DM Serif Display', 'Inter', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-on-bg);
}

.section-lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-on-bg-2);
  max-width: 640px;
}

/* ---------- Problem section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 32px; }
}

.problem-list {
  display: grid;
  gap: 14px;
}

.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  list-style: none;
  font-size: 16px;
  color: var(--text-on-bg-2);
}

.problem-list .dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent-on-bg);
  opacity: 0.7;
}

.pull-quote {
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-on-surface);
}

.pull-quote p {
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--text);
  font-weight: 500;
}

.pull-quote .quote-mark {
  display: block;
  font-size: 48px;
  line-height: 0.5;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 700;
}

.pull-quote .attrib {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Difference section ---------- */
.diff-headline {
  font-family: 'DM Serif Display', 'Inter', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-on-bg);
  max-width: 800px;
}

.diff-headline .accent-text { color: var(--gold-on-bg); }

.diff-body {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-bg-2);
  margin-top: 24px;
}

.diff-body p + p { margin-top: 16px; }

.compare {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-on-surface);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}

.compare-col {
  padding: 32px;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--border-on-surface);
}

@media (max-width: 720px) {
  .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--border-on-surface); }
}

.compare-col.theirs {
  background: var(--surface-2);
}

.compare-col.ours {
  background: var(--surface);
  position: relative;
}

.compare-col.ours::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.compare-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.compare-col.ours .compare-label {
  color: var(--gold);
}

.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--border-on-surface);
}

.compare-col .compare-row:first-of-type { border-top: none; }

.compare-row .glyph {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
}

.compare-row .glyph.x {
  background: rgba(220, 38, 38, 0.10);
  color: var(--danger);
}

.compare-row .glyph.check {
  background: rgba(16, 185, 129, 0.14);
  color: var(--success);
}

/* ---------- How it works (reframed for community audience) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
}

@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr; }
}

.flow-step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-on-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flow-step .step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.flow-step .step-num .num-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* Per-step color discipline: action / verification / authority */
.flow-step.s-verify .step-num,
.flow-step.s-verify .step-num .num-dot {
  color: var(--teal);
}
.flow-step.s-verify .step-num .num-dot {
  background: rgba(24, 152, 153, 0.14);
}

.flow-step.s-proof .step-num,
.flow-step.s-proof .step-num .num-dot {
  color: var(--gold);
}
.flow-step.s-proof .step-num .num-dot {
  background: var(--gold-soft);
}

.flow-step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.flow-step .step-example {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border-on-surface);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.flow-step .step-example .label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.flow-step .step-example .accent { color: var(--gold); }
.flow-step .step-example .pos { color: var(--success); font-weight: 600; }
.flow-step .step-example .neg { color: var(--danger); font-weight: 600; }

.flow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--text-on-bg-3);
  pointer-events: none;
}

.flow-arrow.a1 { left: calc(33.33% - 12px); }
.flow-arrow.a2 { left: calc(66.66% - 12px); }

@media (max-width: 880px) {
  .flow-arrow { display: none; }
}

.closing-note {
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text-on-bg);
  line-height: 1.5;
}

[data-theme='light'] .closing-note { color: var(--accent-hover); }

.closing-note strong { font-weight: 600; }
.closing-note .micro {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-on-bg-3);
  letter-spacing: 0.01em;
}
[data-theme='light'] .closing-note .micro { color: var(--text-3); }

/* ---------- What You Can Forge ---------- */
.forge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) { .forge-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .forge-grid { grid-template-columns: 1fr; } }

.forge-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border-on-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  color: var(--text);
}

.forge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-elevated);
  border-color: var(--border-strong);
}

.forge-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

.forge-tag.t-teal { background: rgba(24, 152, 153, 0.12); color: var(--teal); }
.forge-tag.t-gold { background: var(--gold-soft); color: var(--gold); }
.forge-tag.t-purple { background: var(--accent-soft); color: var(--accent); }

.forge-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.forge-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.forge-card .cta-row {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.forge-card:hover .cta-row .arrow { transform: translateX(3px); }

/* ---------- The Pattern (Bitcoin analogy) ---------- */
.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 720px) { .pattern-grid { grid-template-columns: 1fr; } }

.pattern-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border-on-surface);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.pattern-card .head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pattern-card.bitcoin .head { color: var(--gold); }
.pattern-card.orgforge .head { color: var(--accent); }

.pattern-card .replaces {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 16px;
}

.pattern-card .with {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

.pattern-card .equation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
}

.pattern-card .equation .op { color: var(--text-3); font-weight: 700; }
.pattern-card.bitcoin .equation .term-strong { color: var(--gold); font-weight: 600; }
.pattern-card.orgforge .equation .term-strong { color: var(--accent); font-weight: 600; }

.pattern-tagline {
  margin-top: 32px;
  padding: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-bg);
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pattern-tagline em {
  font-style: normal;
  color: var(--gold-on-bg);
}

/* ---------- Roadmap ---------- */
.road {
  display: grid;
  gap: 14px;
}

.road-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border-on-surface);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  align-items: center;
}

@media (max-width: 720px) {
  .road-row { grid-template-columns: 1fr; padding: 22px; gap: 12px; }
}

.road-phase {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.road-row .body {
  display: grid;
  gap: 4px;
}

.road-row h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.road-row p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.road-row .status {
  display: inline-flex;
  width: fit-content;
  justify-self: start;
  align-self: start;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status.s-active { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.status.s-next   { background: var(--gold-soft); color: var(--gold); }
.status.s-future { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border-on-surface); }

/* ---------- Closing CTA ---------- */
.closer {
  padding: 96px 0 112px;
  text-align: center;
}

.closer-h {
  font-family: 'DM Serif Display', 'Inter', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text-on-bg);
  max-width: 760px;
  margin: 0 auto;
}

.closer-h em {
  font-style: italic;
  color: var(--gold-on-bg);
}

.closer-sub {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-on-bg-2);
}

.closer-cta {
  margin-top: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.stats-strip {
  max-width: 800px;
  margin: 64px auto 0;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 16px;
}

[data-theme='light'] .stats-strip {
  background: var(--surface);
  border-color: var(--border-on-surface);
  box-shadow: var(--shadow-card);
}

@media (max-width: 720px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 24px; }
}

.stat-cell { text-align: left; }
.stat-cell .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold-on-bg);
}
.stat-cell .label {
  margin-top: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-on-bg-3);
  font-weight: 500;
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

.foot-brand .mark { width: 32px; height: 32px; margin-bottom: 14px; }
.foot-brand h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-bg);
  margin-bottom: 8px;
}
.foot-brand p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-on-bg-3);
  max-width: 280px;
}

.foot-col h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-on-bg-3);
  margin-bottom: 14px;
}

.foot-col ul { list-style: none; display: grid; gap: 8px; }

.foot-col a {
  font-size: 14px;
  color: var(--text-on-bg-2);
  transition: color 160ms ease;
}

.foot-col a:hover { color: var(--text-on-bg); }

.foot-soon {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-on-bg-3);
  cursor: not-allowed;
  opacity: 0.55;
  transition: opacity 160ms ease;
  text-decoration: line-through;
  text-decoration-color: var(--text-on-bg-3);
  text-decoration-thickness: 1px;
  width: fit-content;
}

.foot-soon:hover { opacity: 0.85; }

.foot-soon::after {
  content: 'Coming soon';
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-on-bg);
  background: var(--surface-3);
  border: 1px solid var(--chrome-border);
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0ms, transform 0ms;
  pointer-events: none;
  z-index: 5;
}

[data-theme='light'] .foot-soon::after {
  background: #FFFFFF;
  border-color: var(--border-on-surface);
  color: var(--gold);
  box-shadow: var(--shadow-card);
}

.foot-soon:hover::after {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 100ms ease, transform 100ms ease;
}

.foot-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-on-bg-3);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mark inline ---------- */
.mark-inline {
  display: inline-block;
  vertical-align: middle;
}

.mark-inline .halves { fill: var(--mark-halves); stroke: var(--mark-halves); }
.mark-inline .dot { fill: var(--mark-dot); }

/* ---------- Print/screen safety ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Mailing-list signup banner
   Sticky bottom, persistent until user signs up or dismisses.
   localStorage key: orgforge-ml-status = signedup | dismissed
   Mode is controlled by data-mode attribute on .signup-bar:
     data-mode="coming-soon"  → static "Launching soon" pill, no form
     data-mode="live"         → live form posting to /api/subscribe
   ========================================================= */

body {
  padding-bottom: 0;
  transition: padding-bottom 220ms ease;
}

body.has-signup-visible {
  padding-bottom: 72px;
}

@media (max-width: 720px) {
  body.has-signup-visible {
    padding-bottom: 78px;
  }
}

.signup-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--surface-3);
  border-top: 1px solid var(--chrome-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 0.68, 0.32, 1.0), opacity 220ms ease;
}

[data-theme='light'] .signup-bar {
  background: #FFFFFF;
  border-top-color: var(--border-on-surface);
  box-shadow: 0 -2px 24px rgba(17, 24, 39, 0.08);
}

.signup-bar.is-revealed {
  transform: translateY(0);
  opacity: 1;
}

.signup-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 720px) {
  .signup-inner {
    padding: 12px 16px 12px 20px;
    gap: 12px;
  }
}

.signup-copy {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.signup-copy strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-on-bg);
  letter-spacing: -0.005em;
}

.signup-copy .signup-tag {
  font-size: 13px;
  color: var(--text-on-bg-3);
}

@media (max-width: 720px) {
  /* On mobile, hide the headline copy entirely. The email input and Subscribe
     button are self-explanatory; the truncated "G..." headline added no value. */
  .signup-copy { display: none; }
}

@media (max-width: 480px) {
  .signup-soon { padding: 6px 11px; font-size: 11.5px; }
  .signup-inner { padding: 10px 14px; gap: 10px; }
}

/* ---- COMING SOON pill (default mode) ---- */

.signup-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-on-bg);
  background: var(--gold-soft);
  border: 1px solid rgba(203, 148, 10, 0.25);
  border-radius: 999px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.signup-soon .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-on-bg);
  box-shadow: 0 0 0 0 rgba(203, 148, 10, 0.4);
  animation: signupPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes signupPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(203, 148, 10, 0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(203, 148, 10, 0); }
}

[data-mode="live"] .signup-soon { display: none; }

a.signup-soon {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

a.signup-soon:hover {
  background: rgba(203, 148, 10, 0.18);
  border-color: rgba(203, 148, 10, 0.4);
}


/* ---- LIVE form (only shown when data-mode="live") ---- */

[data-mode="coming-soon"] .signup-form { display: none; }

.signup-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.signup-form input[type='email'] {
  width: 240px;
  height: 38px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-on-bg);
  background: var(--surface-2);
  border: 1px solid var(--chrome-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

[data-theme='light'] .signup-form input[type='email'] {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.signup-form input[type='email']::placeholder { color: var(--text-on-bg-3); }
.signup-form input[type='email']:focus {
  border-color: var(--accent);
  background: var(--surface);
}
[data-theme='light'] .signup-form input[type='email']:focus { background: #FFFFFF; }

@media (max-width: 720px) {
  .signup-form input[type='email'] { width: 100%; flex: 1 1 auto; height: 36px; font-size: 13px; }
}

.signup-submit {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 8px;
  transition: background-color 160ms ease;
  flex: 0 0 auto;
  white-space: nowrap;
}

.signup-submit:hover:not(:disabled) { background: var(--accent-hover); }
.signup-submit:disabled { opacity: 0.7; cursor: progress; }
.signup-submit-arrow { transition: transform 160ms ease; }
.signup-submit:hover:not(:disabled) .signup-submit-arrow { transform: translateX(2px); }

@media (max-width: 720px) {
  .signup-submit { height: 36px; padding: 0 13px; font-size: 13px; }
}

/* ---- Dismiss button ---- */

.signup-dismiss {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text-on-bg-3);
  border-radius: 6px;
  transition: color 160ms ease, background-color 160ms ease;
}

.signup-dismiss:hover {
  color: var(--text-on-bg);
  background: var(--chrome-hover);
}

@media (max-width: 720px) {
  .signup-dismiss { width: 28px; height: 28px; }
}

/* ---- Success state (live mode only) ---- */

.signup-success {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--success);
  font-weight: 500;
}

.signup-success-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

.signup-success span:nth-child(2) {
  flex: 1;
  color: var(--text-on-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .signup-bar { transition: none; }
  .signup-soon .pulse { animation: none; }
}

/* Override display: flex/grid for hidden elements */
.signup-success[hidden],
.signup-inner[hidden] {
  display: none !important;
}

/* ---------- Hero "Live demo running" pill ---------- */
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--success);
  width: fit-content;
}

[data-theme='light'] .hero-live-pill {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.32);
}

.hero-live-pill .hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: heroLivePulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes heroLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-pill .hero-live-dot { animation: none; }
}

/* WYCF clarification line — slightly emphasized below the main lede */
.section-lede-emphasis {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-bg-2);
  font-weight: 500;
  letter-spacing: -0.005em;
  max-width: 720px;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

/* =========================================================
   Persistent re-open tab. Appears bottom-right after dismissal.
   Lets a returning visitor re-open the subscribe banner
   without clearing site data.
   ========================================================= */
.signup-reopen {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-on-bg);
  background: var(--surface-3);
  border: 1px solid var(--chrome-border);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.22, 0.68, 0.32, 1.0),
              opacity 200ms ease,
              background-color 160ms ease,
              border-color 160ms ease;
}

[data-theme='light'] .signup-reopen {
  background: #FFFFFF;
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.10);
}

.signup-reopen.is-revealed {
  transform: translateY(0);
  opacity: 1;
}

.signup-reopen:hover {
  background: var(--chrome-hover);
  border-color: var(--gold-on-bg);
}

[data-theme='light'] .signup-reopen:hover {
  background: var(--surface-2);
  border-color: var(--gold);
}

.signup-reopen svg {
  flex: none;
  color: var(--gold-on-bg);
}

[data-theme='light'] .signup-reopen svg {
  color: var(--gold);
}

@media (max-width: 720px) {
  .signup-reopen {
    right: 12px;
    bottom: 12px;
    height: 34px;
    font-size: 12.5px;
    padding: 0 12px 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signup-reopen { transition: none; }
}
