@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --teal: #1D9E75;
  --teal-light: #E1F5EE;
  --teal-dark: #085041;
  --teal-mid: #0F6E56;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --coral: #D85A30;
  --coral-light: #FAECE7;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --blue-light: #E6F1FB;
  --blue-text: #0C447C;
  --ink: #1a1a18;
  --ink-mid: #444441;
  --ink-light: #888780;
  --surface: #F7F6F2;
  --surface-mid: #EEEDE8;
  --border: rgba(0,0,0,0.1);
  --border-mid: rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max: 1000px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-light); }
p { font-size: 16px; line-height: 1.8; color: var(--ink-mid); }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-mid); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 8px 20px;
  background: var(--teal); color: white; border-radius: var(--radius-pill);
  border: none; cursor: pointer; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }
.nav-mobile { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-mobile span { display: block; width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 13px 28px; border-radius: var(--radius-pill);
  cursor: pointer; transition: all 0.2s; border: none; text-decoration: none;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 0.5px solid var(--border-mid); }
.btn-outline:hover { background: var(--surface); }
.btn-sm { font-size: 13px; padding: 9px 20px; }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.tag-teal { background: var(--teal-light); color: var(--teal-mid); }
.tag-purple { background: var(--purple-light); color: #3C3489; }
.tag-amber { background: var(--amber-light); color: #633806; }
.tag-coral { background: var(--coral-light); color: #712B13; }
.tag-blue { background: var(--blue-light); color: var(--blue-text); }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}

/* ── HERO ── */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex; align-items: center;
}
.hero-content { max-width: 700px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); border: 0.5px solid var(--teal);
  padding: 5px 14px; border-radius: var(--radius-pill); margin-bottom: 2rem;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.85)} }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--teal); font-style: italic; }
.hero-sub { font-size: 18px; line-height: 1.75; color: var(--ink-mid); max-width: 540px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.counter-strip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-mid);
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: var(--radius-pill); padding: 8px 18px;
}
.counter-num { font-weight: 500; color: var(--ink); }

/* ── REDIRECT VISUAL ── */
.redirect-visual {
  display: grid; grid-template-columns: 1fr 48px 1fr; gap: 0;
  align-items: center; margin-top: 4rem; background: var(--surface);
  border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.rv-col { padding: 2rem; }
.rv-col:first-child { border-right: 0.5px solid var(--border); }
.rv-col:last-child { border-left: 0.5px solid var(--border); }
.rv-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.rv-label.bad { color: var(--coral); }
.rv-label.good { color: var(--teal); }
.rv-items { display: flex; flex-direction: column; gap: 8px; }
.rv-item { font-size: 13px; padding: 7px 12px; border-radius: 6px; }
.rv-item.bad { background: var(--coral-light); color: #712B13; }
.rv-item.good { background: var(--teal-light); color: var(--teal-mid); }
.rv-arrow { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--teal); }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden; border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 0.9rem 0; background: var(--teal-light);
}
.ticker-inner { display: flex; gap: 2.5rem; white-space: nowrap; animation: ticker 32s linear infinite; width: max-content; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-mid); flex-shrink: 0; }

/* ── CARDS ── */
.card {
  background: #fff; border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(29,158,117,0.08); }
.card-surface { background: var(--surface); border-color: transparent; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 14px; line-height: 1.7; }
.card-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--teal);
  margin-top: 1.25rem; transition: gap 0.2s;
}
.card:hover .card-link { gap: 8px; }

/* ── PULLQUOTE ── */
.pullquote {
  border-left: 3px solid var(--teal); padding: 1rem 1.5rem 1rem 2rem;
  margin: 2.5rem 0;
  font-family: var(--font-display); font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5; color: var(--ink); font-style: italic;
}

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0; }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.stat-num.bad { color: var(--coral); }
.stat-num.good { color: var(--teal); }
.stat p { font-size: 13px; margin-top: 0.4rem; color: var(--ink-mid); }

/* ── FRAMEWORK STEPS ── */
.fw-steps { display: flex; flex-direction: column; gap: 1px; margin-top: 2rem; }
.fw-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem;
  padding: 1.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; transition: background 0.2s;
}
.fw-step:hover { background: var(--surface); }
.fw-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.fw-step:nth-child(1) .fw-num { background: var(--purple-light); color: var(--purple); }
.fw-step:nth-child(2) .fw-num { background: var(--teal-light); color: var(--teal-mid); }
.fw-step:nth-child(3) .fw-num { background: var(--amber-light); color: #633806; }
.fw-step:nth-child(4) .fw-num { background: var(--coral-light); color: #712B13; }
.fw-step h3 { font-size: 18px; margin-bottom: 0.4rem; }
.fw-step p { font-size: 14px; }

/* ── SIGNUP / FORM ── */
.signup-band {
  background: var(--ink); color: white;
  border-radius: var(--radius); padding: 3rem;
}
.signup-band h2 { color: white; margin-bottom: 0.75rem; }
.signup-band p { color: rgba(255,255,255,0.65); margin-bottom: 2rem; }
.signup-form { display: flex; gap: 0; max-width: 500px; }
.signup-form input {
  flex: 1; padding: 14px 20px; font-size: 15px; font-family: var(--font-body);
  border: 1.5px solid rgba(255,255,255,0.15); border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  background: rgba(255,255,255,0.08); color: white;
  outline: none; transition: border-color 0.2s;
}
.signup-form input::placeholder { color: rgba(255,255,255,0.35); }
.signup-form input:focus { border-color: var(--teal); }
.signup-form button {
  padding: 14px 24px; background: var(--teal); color: white; border: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-size: 14px; font-weight: 500; font-family: var(--font-body);
  cursor: pointer; white-space: nowrap; transition: opacity 0.2s;
}
.signup-form button:hover { opacity: 0.88; }
.signup-success { display: none; align-items: center; gap: 10px; color: var(--teal); font-weight: 500; font-size: 15px; }
.signup-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 0.75rem; }

/* ── CHAPTER FINDER ── */
.chapter-finder { background: var(--surface); border-radius: var(--radius); padding: 2rem; }
.finder-form { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.finder-form input, .finder-form select {
  padding: 11px 16px; font-size: 14px; font-family: var(--font-body);
  border: 0.5px solid var(--border-mid); border-radius: var(--radius-sm);
  background: white; color: var(--ink); outline: none; transition: border-color 0.2s;
}
.finder-form input:focus, .finder-form select:focus { border-color: var(--teal); }
.finder-form input { flex: 1; min-width: 200px; }
.chapter-results { display: flex; flex-direction: column; gap: 1rem; }
.chapter-card {
  background: white; border: 0.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.chapter-info h4 { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: 0; text-transform: none; }
.chapter-info p { font-size: 13px; margin-top: 2px; }
.chapter-badge { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-pill); }
.badge-forming { background: var(--amber-light); color: #633806; }
.badge-active { background: var(--teal-light); color: var(--teal-mid); }
.badge-new { background: var(--purple-light); color: #3C3489; }
.no-results { text-align: center; padding: 2rem; color: var(--ink-mid); font-size: 14px; }

/* ── INITIATIVE PAGE ── */
.init-hero { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 3rem; }
.init-detail { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }
.init-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); height: fit-content; }
.sidebar-card { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1rem; }
.sidebar-card h4 { margin-bottom: 1rem; }
.sidebar-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 0.5px solid var(--border); font-size: 14px; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item span:first-child { color: var(--ink-mid); }
.sidebar-item span:last-child { font-weight: 500; }

/* ── VISION ── */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.vision-card { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; }
.vision-icon { font-size: 28px; margin-bottom: 1rem; }
.vision-card h3 { font-size: 20px; margin-bottom: 0.5rem; }
.vision-card p { font-size: 14px; }

/* ── RESOURCES ── */
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.resource-card {
  border: 0.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  background: white; cursor: pointer; transition: all 0.2s; text-decoration: none; color: inherit; display: block;
}
.resource-card:hover { border-color: var(--teal); background: var(--surface); }
.resource-type { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.resource-card h3 { font-size: 17px; margin-bottom: 0.4rem; }
.resource-card p { font-size: 13px; }
.resource-dl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--teal); margin-top: 1rem; }

/* ── PHOTO PLACEHOLDER ── */
.photo-placeholder {
  background: var(--surface-mid); border-radius: var(--radius);
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  border: 1.5px dashed var(--border-mid); cursor: pointer;
  transition: background 0.2s;
}
.photo-placeholder:hover { background: var(--teal-light); border-color: var(--teal); }
.photo-placeholder span { font-size: 13px; color: var(--ink-light); }
.photo-placeholder .ph-icon { font-size: 32px; }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 280px; margin-top: 1rem; }
.footer-logo { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: white; }
.footer-col h5 { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 0.6rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: white; }

/* ── PAGE HERO SHARED ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 4rem;
  background: var(--surface); border-bottom: 0.5px solid var(--border);
}
.page-hero h1 { margin: 1rem 0; }
.page-hero p { font-size: 18px; max-width: 580px; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .stats-row, .vision-grid { grid-template-columns: 1fr; }
  .redirect-visual { grid-template-columns: 1fr; }
  .rv-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
  .rv-col:first-child { border-right: none; border-bottom: 0.5px solid var(--border); }
  .rv-col:last-child { border-left: none; }
  .init-detail { grid-template-columns: 1fr; }
  .init-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .signup-form { flex-direction: column; }
  .signup-form input { border-right: 1.5px solid rgba(255,255,255,0.15); border-radius: var(--radius-pill); }
  .signup-form button { border-radius: var(--radius-pill); }
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: white; padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 0.5px solid var(--border); z-index: 199;
  }
  .hero { min-height: auto; }
  .resource-grid { grid-template-columns: 1fr; }
  .finder-form { flex-direction: column; }
}
