/* filename: main.css */
/* version: 2.0.0 */
/* description: Urban Pulse stylesheet — deep-navy + gold theme, self-hosted fonts, animated-viz component layer */
/* last_modified: 2026-06-06 */

/* ============================================================
   Urban Pulse — Main Stylesheet
   Palette: deep navy bg, warm-white text, gold accent (#C9A24B),
   navy panels with gold hairlines. Spectral serif display,
   Hanken Grotesk body, JetBrains Mono numerals/labels.
   ============================================================ */

/* ---- Self-hosted fonts ---- */
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-400.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-500.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/spectral-600.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/spectral-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('../fonts/spectral-500-italic.woff2') format('woff2'); }
/* Hanken Grotesk + JetBrains Mono are variable fonts (one file, full weight range) */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/hanken-grotesk-var.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/jetbrains-mono-var.woff2') format('woff2'); }

:root {
  /* navy + gold palette (design tokens) */
  --navy:        #0A1326;
  --navy-2:      #0E1A33;
  --navy-3:      #13213D;
  --panel-grad:  linear-gradient(180deg, #0F1B33, #0B1730);
  --gold:        #C9A24B;
  --gold-bright: #E6C878;
  --gold-soft:   rgba(201,162,75,.16);
  --line:        rgba(255,255,255,.08);
  --line-gold:   rgba(201,162,75,.18);
  --ink:         #F4F1E8;
  --muted:       #9CABCB;
  --muted-dim:   #6F7E9C;
  --pos:         #7FB99A;
  --neg:         #C98686;

  /* fonts */
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --radius:      16px;
  --radius-sm:   10px;
  --max-w:       1200px;

  /* ---- legacy aliases: keep older component classes working unchanged ---- */
  --bg:          var(--navy);
  --bg-alt:      var(--navy-2);
  --panel:       var(--navy-3);
  --border:      var(--line-gold);
  --text:        var(--ink);
  --text-muted:  var(--muted);
  --gold-light:  var(--gold-bright);
  --green:       var(--pos);
  --white:       var(--ink);
  --font:        var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* fixed ambient page glow, behind all content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(201,162,75,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, rgba(45,90,160,.10), transparent 55%);
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 1.4rem; }
em, .em { font-style: italic; color: var(--gold-bright); }

p { color: var(--ink); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 560px; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title { margin-bottom: 2.5rem; }
.section-title.centered, .centered { text-align: center; }
.section-intro { max-width: 640px; margin: 0 auto 2.5rem; color: var(--text-muted); }
.section-note { margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .two-col, .three-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #E6C878, #C9A24B);
  color: #10172a;
}
.btn-primary:hover { color: #10172a; box-shadow: 0 10px 26px rgba(201,162,75,.32); }
/* .btn-secondary kept as a gold-outline button (used by older pages) */
.btn-secondary,
.btn-ghost {
  background: rgba(201,162,75,.06);
  color: var(--gold-bright);
  border: 1px solid rgba(201,162,75,.42);
}
.btn-secondary:hover,
.btn-ghost:hover { border-color: var(--gold-bright); box-shadow: 0 10px 26px rgba(201,162,75,.18); color: var(--gold-bright); }
.btn-disabled {
  background: var(--navy-2);
  color: var(--muted-dim);
  cursor: not-allowed;
  border: 1px solid var(--line);
  pointer-events: none;
}
.btn-disabled:hover { transform: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
/* nav Subscribe — intentionally compact */
.nav-cta.btn-sm { padding: 5px 13px; font-size: 12px; font-weight: 600; }
.btn-full { width: 100%; display: block; }

/* ---- Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,19,38,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-gold);
  transition: background 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  background: rgba(8,15,30,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo { font-family: var(--font-body); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.logo-urban { color: var(--ink); }
.logo-pulse { color: var(--gold-bright); }
.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold-bright); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-bright);
  border-radius: 2px;
}
.nav-cta { margin-left: 1.5rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
}

/* ---- Flash Messages ---- */
.flash-messages { padding: 0.75rem 1.5rem; }
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; font-size: 0.9rem; }
.flash-error { background: #3d1515; color: #ff8a8a; border: 1px solid #6b2020; }
.flash-info  { background: #162030; color: #7dc8f0; border: 1px solid #204060; }

/* ---- Company Intro ---- */
.company-intro {
  background: rgba(255,255,255,.015);
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.company-intro-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 1.5rem 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-eyebrow,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
/* leading gold rule on eyebrows */
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero h1 { max-width: 760px; margin-bottom: 1.25rem; }
.hero-sub { max-width: 600px; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Hero ---- */
.page-hero {
  padding: 4rem 0 3rem;
  background: rgba(255,255,255,.012);
  border-bottom: 1px solid var(--line-gold);
}
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
/* 2-col page hero (viz on the right) */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero-grid .viz-panel { order: -1; }
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--gold-bright); }
.stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; text-align: center; }

/* ---- Stat Card ---- */
.stat-card {
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.stat-card-row:last-child { border-bottom: none; }
.stat-card-row.highlight { background: rgba(201,168,76,0.08); }
.stat-card-row.highlight-green { background: rgba(76,175,122,0.1); }
.stat-card-row span:last-child { font-weight: 600; color: var(--white); }

/* ---- Feature List ---- */
.feature-list { margin: 1rem 0 1.5rem; }
.feature-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---- Pillar Cards ---- */
.pillar-card {
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,162,75,.42);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}
.pillar-icon { color: var(--gold-bright); margin-bottom: 1.25rem; width: 40px; height: 40px; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar-card h3 { margin-bottom: 0.75rem; }
.pillar-card p { color: var(--muted); font-size: 0.95rem; }

/* ---- Performance Table ---- */
.perf-table-wrapper { overflow-x: auto; margin: 1.5rem 0; }
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.perf-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-gold);
}
.perf-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.perf-table tr:last-child td { border-bottom: none; }
/* highlighted (featured-year) row — faint gold bg */
.perf-table tr.row-highlight td { background: var(--gold-soft); color: var(--gold-bright); }
.highlight-green { color: var(--gold-bright) !important; }
.table-disclaimer { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }
.perf-disclaimer { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-top: 0.5rem; margin-bottom: 0; }

/* ---- Metrics Grid ---- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.metric-card {
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.metric-card.highlight { border-color: rgba(201,162,75,.45); }
.metric-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; color: var(--gold-bright); }
.metric-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.metric-pair { display: flex; gap: 2.5rem; align-items: flex-start; }

/* ---- Monte Carlo Grid ---- */
.mc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.mc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.5rem;
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
}
.mc-value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 600; color: var(--gold-bright); }
.mc-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mc-positive .mc-value { color: var(--pos); }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.step {
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}
.pricing-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--panel-grad);
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.pricing-card.featured {
  border-color: rgba(201,162,75,.55);
  box-shadow: 0 0 0 1px rgba(201,162,75,.25), 0 18px 50px rgba(201,162,75,.14);
}
.pricing-card.coming-soon { opacity: 0.55; }
.pricing-card.coming-soon:hover { transform: none; box-shadow: none; }

.pricing-badge {
  display: inline-block;
  background: linear-gradient(180deg, #E6C878, #C9A24B);
  color: #10172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-tier { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.16em; }
.pricing-price { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.pricing-period { font-family: var(--font-mono); font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-equity { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text);
  font-size: 0.9rem;
}
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.coming-soon .pricing-features li::before { color: var(--text-muted); }

.pricing-notes {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.pricing-notes h3 { margin-bottom: 1rem; }
.pricing-notes ul { list-style: disc; padding-left: 1.25rem; }
.pricing-notes li { color: var(--text-muted); font-size: 0.9rem; padding: 0.2rem 0; }

/* ---- Subscribe Form ---- */
.subscribe-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.required { color: var(--gold); }
.form-group input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s;
}
.form-group input:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: 0.8rem; color: var(--text-muted); }
.form-check { display: flex; align-items: flex-start; gap: 0.65rem; }
.form-check input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.form-check label { font-size: 0.88rem; color: var(--text-muted); line-height: 1.45; cursor: pointer; }
.form-check label a { color: var(--gold); text-decoration: underline; }
.form-back { margin-top: 1.25rem; text-align: center; font-size: 0.9rem; }

/* ---- Success ---- */
.success-icon {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.centered-cta { text-align: center; margin-top: 2rem; }

/* ---- CTA Band ---- */
.cta-band {
  max-width: var(--max-w);
  margin: 4rem auto;
  border: 1px solid var(--line-gold);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(201,162,75,.16), transparent 60%),
    var(--panel-grad);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: var(--muted); margin-bottom: 2rem; }
.cta-band .hero-actions,
.cta-band .centered-cta { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Footer ---- */
/* ---- How It Works — strategy subheadings ---- */
.strategy-subhead {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}

/* ---- Risk Disclosure ---- */
.disclosure-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.disclosure-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}
.disclosure-bullet {
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.disclosure-final {
  border-color: var(--gold) !important;
  background: var(--panel) !important;
  font-weight: 600;
}
.disclosure-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.disc-intro {
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.75rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.disc-section {
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.disc-section p {
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.7;
  margin: 0;
}
.disc-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.disc-section-final {
  border-color: var(--gold);
  margin-bottom: 2.5rem;
}
.disc-section-final p { margin-bottom: 0.5rem; }
.disc-section-final p:last-child { margin-bottom: 0; }
.disc-tc-link {
  color: var(--gold);
  text-decoration: underline;
}
.disc-tc-link:hover { opacity: 0.8; }
.disc-warning {
  font-weight: 600;
  color: var(--gold) !important;
}

/* ---- Setup Guide ---- */
.setup-notice {
  background: rgba(201,162,75,.06);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
}
.setup-notice p { color: var(--ink); margin-bottom: 0.5rem; }
.setup-notice p:last-child { margin-bottom: 0; }
.setup-notice-contact a { color: var(--gold); text-decoration: none; }
.setup-notice-contact a:hover { text-decoration: underline; }
.setup-notice-legal { color: var(--muted) !important; font-style: italic; }
.setup-notice-legal a { color: var(--gold); }
.setup-section { margin-bottom: 2.5rem; }
.setup-section-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.setup-ref-table td:first-child { width: 70px; text-align: center; font-family: var(--font-mono); font-weight: 700; }
.setup-link { color: var(--gold); text-decoration: underline; }
.setup-link:hover { opacity: 0.8; }
.setup-step {
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 90px;
}
.setup-step-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.setup-step-badge {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--gold);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  line-height: 1.5;
  flex-shrink: 0;
  min-width: 2.4rem;
  text-align: center;
}
.setup-step-badge-text { font-size: 0.75rem; padding: 0.3rem 0.45rem; }
.setup-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}
.setup-step-opt { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.setup-back { display: inline-block; font-size: 0.8rem; color: var(--gold); text-decoration: none; opacity: 0.75; }
.setup-back:hover { opacity: 1; }
.setup-step > p { color: var(--ink); font-size: 0.975rem; line-height: 1.7; margin-bottom: 0.75rem; }
.setup-step > p:last-child { margin-bottom: 0; }
.setup-note { color: var(--muted) !important; font-style: italic; font-size: 0.9rem !important; }
.setup-subhead {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.5rem 0 0.6rem 0;
}
.setup-ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.setup-ol li { color: var(--ink); font-size: 0.975rem; line-height: 1.7; margin-bottom: 0.5rem; }
.setup-sub-list { list-style: disc; padding-left: 1.25rem; margin-top: 0.4rem; }
.setup-sub-list li { color: var(--ink); font-size: 0.95rem; line-height: 1.65; margin-bottom: 0.3rem; }
.setup-checklist { list-style: none; padding: 0; margin-bottom: 1rem; }
.setup-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.65;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.setup-checklist li::before { content: "✓"; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.setup-checklist li .setup-note { display: block; margin-top: 0.2rem; }
.setup-warning {
  background: rgba(201,162,75,.06);
  border: 1px solid rgba(201,162,75,.35);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 1.25rem;
}
.setup-warning-link { color: var(--gold); text-decoration: underline; }
.setup-provider {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.setup-provider p { margin: 0 !important; color: var(--ink) !important; font-size: 0.975rem; }
.setup-affiliate { font-size: 0.8rem !important; color: var(--muted) !important; font-style: italic; width: 100%; }
.setup-formula {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--gold);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.setup-code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  color: var(--text);
}
.setup-code-warn {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--gold);
  font-weight: 600;
}
.setup-code-block {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--muted);
  margin: 0.75rem 0;
  font-style: italic;
}
.setup-screenshot {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 1.25rem;
}
.glossary-list { display: flex; flex-direction: column; }
.glossary-entry { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.glossary-entry:last-child { border-bottom: none; }
.glossary-term { font-weight: 700; color: var(--gold); font-size: 0.95rem; margin-bottom: 0.25rem; }
.glossary-def { color: var(--ink); font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* ---- Terms & Conditions ---- */
.tc-notice {
  background: rgba(201,162,75,.08);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.tc-section {
  margin-bottom: 2rem;
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.75rem;
}
.tc-section p {
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.tc-section p:last-child { margin-bottom: 0; }
.tc-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.tc-section.disclosure-final {
  border-color: var(--gold);
  font-weight: 600;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 0;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .logo-urban { font-size: 1.1rem; font-weight: 700; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-legal p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; margin-bottom: 0.5rem; }

/* --- Helpers added for members/newsletter --- */
.container.narrow { max-width: 540px; }
.sub { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6; }
.sub.centered { text-align: center; }
.opt { color: var(--text-muted); font-weight: 400; font-size: 0.85rem; }

/* --- Auth forms (register / login) --- */
.auth-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.auth-form label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }
.auth-form input {
  padding: 0.75rem 0.9rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.auth-form input:focus { outline: none; border-color: var(--gold); }
.auth-form button { margin-top: 1.25rem; }
.auth-alt { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.dev-link-box {
  margin-top: 1.5rem; padding: 1rem; background: var(--panel);
  border: 1px solid var(--gold); border-radius: var(--radius); word-break: break-all;
}

/* --- Members area --- */
.members-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.members-status { margin-top: 1rem; }
.status-pill {
  display: inline-block; padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border);
}
.status-active { color: var(--green); border-color: var(--green); }
.status-pending { color: var(--gold); border-color: var(--gold); }
.status-cancelled { color: var(--text-muted); }
.coming-tag {
  display: inline-block; margin-top: 0.75rem; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--border);
  padding: 0.2rem 0.6rem; border-radius: var(--radius);
}

/* --- Newsletter --- */
.newsletter-section { background: var(--bg-alt); }
.newsletter-form { display: flex; gap: 0.6rem; max-width: 460px; margin: 1.5rem auto 0; }
.newsletter-form input {
  flex: 1; padding: 0.75rem 0.9rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-note { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.9rem; }
.newsletter-confirm {
  text-align: center;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 1rem;
  font-family: var(--font-body);
}
.nav-members { color: var(--text); font-size: 0.9rem; margin-right: 0.25rem; }
.nav-members:hover { color: var(--gold-light); }

/* --- Honeypot field: visually removed but still in the DOM for bots --- */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Navy + Gold redesign — animated-viz component layer
   ============================================================ */

/* ---- Section rhythm ---- */
.section { padding: 78px 0; }
.section.alt, .section-alt { background: rgba(255,255,255,.012); }
.sec-head { margin-bottom: 2.5rem; }
.sec-head .eyebrow { margin-bottom: 0.85rem; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* ---- Hero 2-col grid ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.05fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 74px 28px 60px;
}
.hero-grid h1 { margin-bottom: 1.25rem; }
.hero-grid .hero-sub { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 540px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.5rem; }
  .hero-grid .viz-panel { order: -1; }
}

/* ---- Viz panel (canvas container) ---- */
.viz-panel {
  position: relative;
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  min-height: 360px;
}
.viz-panel canvas { display: block; width: 100%; height: 100%; }
.viz-tag {
  position: absolute; top: 14px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
/* glass chip (bottom-right of equity viz) */
.viz-chip {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(10,19,38,.55); backdrop-filter: blur(8px);
  border: 1px solid var(--line-gold); border-radius: 12px;
  padding: 10px 14px; text-align: right;
}
.viz-chip .chip-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--gold-bright); }
.viz-chip .chip-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---- Pulse band (live signal monitor) ---- */
.pulse-band {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 148px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--panel-grad);
}
.pulse-band canvas { display: block; width: 100%; height: 100%; }
.pulse-label {
  position: absolute; top: 12px; left: 16px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.pulse-status {
  position: absolute; top: 12px; right: 16px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 8px var(--pos); animation: pulse-blink 1.6s ease-in-out infinite; }
@keyframes pulse-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---- Stats grid (home "what is" + reuse) ---- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stats-grid .full { grid-column: 1 / -1; }
.stats-grid .metric-card { position: relative; }
.metric-spark { position: absolute; right: 1rem; bottom: 1rem; width: 88px; height: 30px; }
.metric-delta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--pos); }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---- Monte Carlo split card ---- */
.mc {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  overflow: hidden;
}
.mc-viz { position: relative; min-height: 320px; }
.mc-viz canvas { display: block; width: 100%; height: 100%; }
.mc-body { padding: 2.25rem; border-left: 1px solid var(--line-gold); }
.mc-body h3 { margin: 0.6rem 0 1rem; }
.mc-body p { color: var(--muted); margin-bottom: 1.5rem; }
.mc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mc-metrics .mc-value { font-size: 1.5rem; }
.mc-metrics .mc-stat { background: none; border: none; padding: 0; align-items: flex-start; text-align: left; }
@media (max-width: 980px) {
  .mc { grid-template-columns: 1fr; }
  .mc-body { border-left: none; border-top: 1px solid var(--line-gold); }
}

/* ---- ROE bar chart ---- */
.bars-card {
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 1rem;
  height: 230px;
}
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; }
.bar-track { position: relative; width: 100%; max-width: 64px; height: 170px; }
.bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0; /* set by JS */
  background: linear-gradient(180deg, #E6C878, #C9A24B);
  border-radius: 6px 6px 0 0;
  transition: height 0.9s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.bar-projected {
  position: absolute;
  left: 0; right: 0;
  height: 0; /* set by JS — also sets bottom */
  background: linear-gradient(180deg, rgba(201,162,75,.32), rgba(201,162,75,.18));
  border: 2px dashed rgba(201,162,75,0.55);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  transition: height 0.9s cubic-bezier(.2,.7,.2,1) 0.3s, bottom 0.9s cubic-bezier(.2,.7,.2,1) 0.3s;
}
.bar-val { font-family: var(--font-mono); font-size: 0.9rem; color: var(--gold-bright); margin-bottom: 0.5rem; }
.bar-proj-label { display: block; font-size: 0.6rem; color: rgba(201,162,75,.6); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.15rem; }
.bar-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.75rem; }

/* ---- Deployment stepper ---- */
.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 28px; left: 7%; right: 7%;
  height: 1px;
  background: var(--line-gold);
  z-index: 0;
}
.step-card { position: relative; z-index: 1; text-align: center; }
.step-node {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: 600;
  color: var(--gold-bright);
  background: var(--navy-3);
  border: 1px solid rgba(201,162,75,.5);
  box-shadow: 0 0 0 4px var(--navy);
}
.step-card h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.6rem; }
.step-card p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 980px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .stepper::before { display: none; }
}
@media (max-width: 560px) { .stepper { grid-template-columns: 1fr; } }

/* ---- Metric grids (4 / 3 col) ---- */
.stat-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 980px) { .stat-grid-4, .stat-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stat-grid-4, .stat-grid-3 { grid-template-columns: 1fr; } }

/* ---- 2-col split (prose + metric grid) ---- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- 2-col checklist ---- */
.list-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 2rem; margin-top: 1.5rem; }
@media (max-width: 560px) { .list-2 { grid-template-columns: 1fr; } }

/* ---- Before-you-subscribe notes ---- */
.notes {
  background: var(--panel-grad);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 2.25rem;
}
.notes h3 { margin-bottom: 1.25rem; }
.notes ul { display: flex; flex-direction: column; gap: 0.85rem; }
.notes li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.notes li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot { animation: none; }
  .bar { transition: none; }
}
