/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1526;
  --navy-mid:   #132140;
  --navy-light: #1e3461;
  --blue:       #2463eb;
  --blue-hover: #1d50c8;
  --blue-light: #eff6ff;
  --blue-mid:   #dbeafe;
  --accent:     #38bdf8;
  --green:      #22c55e;
  --amber:      #f59e0b;
  --text:       #1e293b;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --surface:    #f8fafc;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,.07);
  --shadow-md:  0 8px 40px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--muted); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}

/* ===== Layout ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.sm { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; font-size: .92rem; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .16s, transform .1s, box-shadow .16s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 12px rgba(36,99,235,.32); }
.btn-primary:hover { background: var(--blue-hover); box-shadow: 0 4px 20px rgba(36,99,235,.42); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--blue-light); border-color: #bfdbfe; color: var(--blue); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }

/* ===== Nav ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,21,38,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.logo-mark {
  width: 36px; height: 36px;
  background: #fff url("../img/logo-mark.png") center/82% no-repeat;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0; color: transparent;
  text-indent: -9999px; overflow: hidden;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.68); font-size: .88rem; font-weight: 500; transition: color .14s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 21px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 55%, #1a2f5e 100%);
  padding: 120px 0 88px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 35%, rgba(36,99,235,.28) 0%, transparent 70%),
    radial-gradient(ellipse 35% 50% at 10% 80%, rgba(56,189,248,.14) 0%, transparent 65%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; padding-left: 22px; border-left: 4px solid var(--accent); }
.hero-inner .eyebrow { color: var(--accent); font-size: .8rem; letter-spacing: .18em; margin-bottom: 18px; }
.hero-inner h1 {
  color: #fff;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.hero-inner h1 span { color: var(--accent); }
.hero-inner > p { color: rgba(255,255,255,.82); font-size: 1.18rem; line-height: 1.65; margin-bottom: 36px; max-width: 640px; }

.hero-search {
  display: flex; gap: 0;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
  max-width: 520px;
}
.hero-search input {
  flex: 1; padding: 14px 18px; border: none; outline: none;
  font-size: .95rem; font-family: inherit; color: var(--text);
}
.hero-search button {
  padding: 14px 22px; background: var(--blue); color: #fff; border: none;
  font-size: .9rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s; white-space: nowrap;
}
.hero-search button:hover { background: var(--blue-hover); }

.hero-tags { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero-tag-label { color: rgba(255,255,255,.45); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-tag {
  padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.65); font-size: .78rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.hero-tag:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }

/* ===== Stats strip ===== */
.stats-strip { background: var(--navy-mid); border-bottom: 1px solid rgba(255,255,255,.07); padding: 20px 0; }
.stats-inner { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { padding: 8px 36px; border-right: 1px solid rgba(255,255,255,.1); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .76rem; color: rgba(255,255,255,.5); margin-top: 3px; font-weight: 500; }

/* ===== Section headers ===== */
.section-hdr { max-width: 600px; margin: 0 auto 52px; text-align: center; }
.section-hdr h2 { color: var(--navy); margin-bottom: 14px; }
.section-hdr.left { text-align: left; margin-left: 0; }

/* ===== Category pills ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  padding: 24px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  cursor: pointer;
}
.cat-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon { width: 42px; height: 42px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-card h3 { color: var(--navy); font-size: .95rem; margin: 0; }
.cat-card p { font-size: .8rem; margin: 0; line-height: 1.5; }
.cat-count { font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

/* ===== Resource cards ===== */
.resource-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.resource-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow); transform: translateY(-2px); }
.resource-card-badge {
  padding: 14px 18px 0; display: flex; align-items: center; gap: 8px;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.badge-guide    { background: #eff6ff; color: #1d4ed8; }
.badge-explainer{ background: #fdf4ff; color: #7e22ce; }
.badge-template { background: #fff7ed; color: #c2410c; }
.badge-reference{ background: #f0f9ff; color: #0369a1; }

.resource-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.resource-card-body h3 { color: var(--navy); font-size: 1rem; line-height: 1.35; }
.resource-card-body p  { font-size: .85rem; flex: 1; }
.resource-card-footer {
  padding: 12px 18px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.resource-meta { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.resource-link { font-size: .8rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.resource-link:hover { color: var(--blue-hover); }

/* ===== Featured guide ===== */
.featured-guide {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg); padding: 48px; color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.featured-guide h2 { color: #fff; margin-bottom: 12px; }
.featured-guide p { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.featured-guide-meta { display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.fg-meta-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.6); font-size: .82rem; }
.fg-meta-item svg { color: var(--accent); }

.guide-toc {
  background: rgba(255,255,255,.06); border-radius: var(--radius);
  padding: 24px; min-width: 220px; border: 1px solid rgba(255,255,255,.1);
}
.guide-toc h4 { color: var(--accent); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.guide-toc ol { list-style: none; display: flex; flex-direction: column; gap: 9px; counter-reset: toc; padding: 0; }
.guide-toc li { counter-increment: toc; display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: rgba(255,255,255,.7); }
.guide-toc li::before { content: counter(toc); width: 18px; height: 18px; background: rgba(255,255,255,.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ===== Tool teaser ===== */
.tool-teaser {
  background: linear-gradient(150deg, #0c1e3e 0%, #0f2d5a 50%, #132a52 100%);
  border-radius: var(--radius-lg); padding: 64px 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; overflow: hidden;
}
.tool-teaser::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 40%, rgba(56,189,248,.12) 0%, transparent 70%);
}
.tool-teaser-text { position: relative; z-index: 1; }
.tool-teaser-text h2 { color: #fff; margin-bottom: 14px; }
.tool-teaser-text p { color: rgba(255,255,255,.68); margin-bottom: 28px; }

.tool-preview { position: relative; z-index: 1; }
.tool-preview-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; overflow: hidden;
}
.tool-preview-bar {
  background: rgba(255,255,255,.06); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.tool-dot { width: 8px; height: 8px; border-radius: 50%; }
.tool-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tool-row { display: flex; align-items: center; gap: 10px; }
.tool-row-label { font-size: .72rem; color: rgba(255,255,255,.4); width: 80px; flex-shrink: 0; }
.tool-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.tool-bar { height: 100%; border-radius: 3px; }
.tool-row-val { font-size: .72rem; font-weight: 700; width: 32px; text-align: right; }

.waitlist-form { display: flex; gap: 0; max-width: 400px; }
.waitlist-form input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: .9rem; font-family: inherit; color: var(--text);
  border-radius: var(--radius) 0 0 var(--radius);
}
.waitlist-form button {
  padding: 12px 20px; background: var(--blue); color: #fff; border: none;
  font-size: .88rem; font-weight: 600; cursor: pointer; font-family: inherit;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background .15s; white-space: nowrap;
}
.waitlist-form button:hover { background: var(--blue-hover); }

.pill-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.pill {
  padding: 4px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); font-size: .76rem; font-weight: 500;
}

/* ===== Guide page ===== */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.guide-sidebar { position: sticky; top: 84px; }
.guide-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.guide-sidebar-nav a {
  padding: 7px 12px; border-radius: 6px; font-size: .85rem;
  color: var(--muted); transition: background .14s, color .14s;
}
.guide-sidebar-nav a:hover { background: var(--blue-light); color: var(--blue); }
.guide-sidebar-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.guide-content { max-width: 720px; }
.guide-content h2 { color: var(--navy); margin: 48px 0 16px; padding-top: 8px; border-top: 2px solid var(--border); }
.guide-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.guide-content h3 { color: var(--navy); margin: 28px 0 10px; font-size: 1.05rem; }
.guide-content p  { margin-bottom: 16px; }
.guide-content ul, .guide-content ol { margin: 12px 0 20px 20px; }
.guide-content li { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 4px; }
.guide-content strong { color: var(--text); }

.callout {
  border-left: 3px solid var(--blue); background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 20px 0;
}
.callout p { color: var(--text); font-size: .9rem; margin: 0; }
.callout.amber { border-color: var(--amber); background: #fffbeb; }
.callout.green  { border-color: var(--green); background: #f0fdf4; }

.req-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .875rem; }
.req-table th { background: var(--surface); color: var(--navy); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.req-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.req-table tr:last-child td { border-bottom: none; }
.req-table td:first-child { color: var(--navy); font-weight: 600; white-space: nowrap; }

/* ===== Early access page ===== */
.ea-hero {
  background: linear-gradient(150deg, var(--navy) 0%, #0d2348 60%, #112b56 100%);
  padding: 100px 0 88px; position: relative; overflow: hidden;
}
.ea-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 60% 40%, rgba(56,189,248,.15) 0%, transparent 70%);
}
.ea-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ea-text h1 { color: #fff; margin-bottom: 16px; }
.ea-text p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 28px; }

.ea-form-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: 0 16px 64px rgba(0,0,0,.3);
}
.ea-form-card h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.2rem; }
.ea-form-card > p { font-size: .875rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .9rem; font-family: inherit;
  color: var(--text); background: #fff; outline: none; transition: border-color .14s, box-shadow .14s;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,99,235,.1);
}

.feature-list { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.tool-teaser .feature-item { display: flex; gap: 12px; align-items: flex-start; }
.tool-teaser .feature-icon { width: 32px; height: 32px; background: rgba(56,189,248,.12); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.tool-teaser .feature-item strong { color: #fff; display: block; font-size: .9rem; margin-bottom: 2px; }
.tool-teaser .feature-item p { color: rgba(255,255,255,.6); font-size: .82rem; margin: 0; }

/* ===== Resource page ===== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: all .14s;
}
.filter-btn:hover, .filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== Page hero (inner) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 72px 0 64px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 45% 70% at 80% 50%, rgba(36,99,235,.18) 0%, transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.45); font-size: .83rem; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.25); font-size: .83rem; }

/* ===== Newsletter strip ===== */
.newsletter { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter-text h3 { color: var(--navy); margin-bottom: 6px; }
.newsletter-text p { font-size: .9rem; margin: 0; }
.newsletter-form { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form input {
  padding: 11px 16px; border: 1.5px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); font-size: .9rem;
  font-family: inherit; outline: none; width: 260px; transition: border-color .14s;
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form button {
  padding: 11px 20px; background: var(--blue); color: #fff; border: none;
  font-size: .88rem; font-weight: 600; cursor: pointer; font-family: inherit;
  border-radius: 0 var(--radius) var(--radius) 0; transition: background .14s;
}
.newsletter-form button:hover { background: var(--blue-hover); }

/* ===== Footer ===== */
footer { background: var(--navy); color: rgba(255,255,255,.55); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; line-height: 1.7; margin-top: 12px; max-width: 240px; }
.footer-col h4 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .85rem; transition: color .14s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.35); transition: color .14s; }
.footer-legal a:hover { color: #fff; }

/* ===== Early access page extras ===== */
.ea-proof { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 0; }
.ea-proof li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.8); font-size: .9rem; }
.ea-proof-icon { width: 20px; height: 20px; background: rgba(34,197,94,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #4ade80; font-size: .7rem; flex-shrink: 0; }

.ea-form-top { margin-bottom: 24px; }
.ea-form-top h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 8px; }
.ea-form-top p { font-size: .875rem; margin: 0; }
.ea-badge { display: inline-block; background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.ea-field-group { margin-bottom: 16px; }
.ea-field-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ea-field-group input, .ea-field-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: .9rem; font-family: inherit;
  color: var(--text); background: #fff; outline: none; transition: border-color .14s, box-shadow .14s;
}
.ea-field-group input:focus, .ea-field-group select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,99,235,.1);
}
.req-star { color: var(--blue); }
.ea-legal { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 12px; margin-bottom: 0; }
.ea-signup-form { display: flex; flex-direction: column; gap: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 52px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-body h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.feature-body p { font-size: .9rem; margin: 0; }

/* Timeline */
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.tl-item { display: flex; gap: 24px; padding-bottom: 36px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); background: #fff; flex-shrink: 0; margin-top: 2px; z-index: 1; }
.tl-done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-active .tl-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36,99,235,.15); }
.tl-body { padding-top: 2px; }
.tl-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.tl-done .tl-label { color: var(--green); }
.tl-active .tl-label { color: var(--blue); }
.tl-body h3 { color: var(--navy); margin-bottom: 4px; }
.tl-body p { font-size: .9rem; margin: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 20px 0; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 400; flex-shrink: 0; margin-left: 16px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 20px; font-size: .9rem; margin: 0; }

/* ===== Hero scope box ===== */
.hero-scope-box { margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 20px; }
.hero-scope-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 10px; }
.hero-scope-items { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-scope-items span { font-size: .82rem; color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px 12px; }

/* ===== Reality Check section ===== */
.reality-check { background: var(--navy-mid); padding: 52px 0 64px; }
.rc-header { text-align: left; max-width: 640px; margin: 0 0 48px; }
.rc-header h2 { color: #fff; margin: 8px 0 12px; }
.rc-header p { color: rgba(255,255,255,.65); }

.rc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rc-card { border-radius: var(--radius-lg); padding: 36px; }
.rc-card-c3pao { background: rgba(36,99,235,.15); border: 1px solid rgba(36,99,235,.35); }
.rc-card-self  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }

.rc-pct { font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; letter-spacing: -.03em; }
.rc-card-c3pao .rc-pct { color: var(--accent); }
.rc-card-self  .rc-pct { color: rgba(255,255,255,.5); }

.rc-card-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.rc-card-c3pao .rc-card-label { color: var(--accent); }
.rc-card-self  .rc-card-label { color: rgba(255,255,255,.45); }

.rc-card p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 16px; }
.rc-card p strong { color: #fff; }
.rc-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rc-list li { font-size: .85rem; color: rgba(255,255,255,.6); padding-left: 16px; position: relative; }
.rc-list li::before { content: '—'; position: absolute; left: 0; color: rgba(255,255,255,.3); }

.rc-takeaway { display: flex; align-items: flex-start; gap: 12px; margin-top: 32px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: var(--radius); padding: 18px 20px; }
.rc-takeaway svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.rc-takeaway p { color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }
.rc-takeaway p strong { color: #fff; }

/* ===== Phase timeline ===== */
.phase-timeline { display: flex; flex-direction: column; margin-top: 48px; }
.phase-item { display: flex; gap: 0; }
.phase-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 48px; }
.phase-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); background: #fff; flex-shrink: 0; z-index: 1; margin-top: 4px; }
.phase-line { flex: 1; width: 2px; background: var(--border); min-height: 24px; margin: 4px 0; }
.phase-item:last-child .phase-line { display: none; }
.phase-active .phase-dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.phase-critical .phase-dot { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,158,11,.15); }

.phase-body { padding: 0 0 40px 20px; }
.phase-item:last-child .phase-body { padding-bottom: 0; }
.phase-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.phase-date { font-size: .8rem; color: var(--muted); }
.phase-badge { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.phase-badge-active   { background: #dcfce7; color: #15803d; }
.phase-badge-critical { background: #fef3c7; color: #b45309; }
.phase-badge-upcoming { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.phase-body h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.phase-body p  { font-size: .9rem; margin: 0; max-width: 680px; }

/* ===== Resource cards (3-up) ===== */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.res-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; transition: box-shadow .15s, transform .15s; text-decoration: none; }
.res-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.res-card-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.res-card-body h3 { color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.res-card-body p { font-size: .875rem; margin: 0; }
.res-card-link { font-size: .8rem; font-weight: 600; color: var(--blue); margin-top: auto; }

/* ===== Quick reference strip ===== */
.qref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.qref-item { text-align: center; padding: 24px; border-right: 1px solid rgba(255,255,255,.1); }
.qref-item:last-child { border-right: none; }
.qref-num { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; letter-spacing: -.02em; }
.qref-label { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-navy { color: var(--navy) !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.highlight { color: var(--blue); }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-2, .ea-inner, .tool-teaser, .featured-guide, .feature-grid, .rc-split, .res-grid { grid-template-columns: 1fr; }
  .qref-grid { grid-template-columns: repeat(2, 1fr); }
  .qref-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .qref-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .qref-item:nth-last-child(-n+2) { border-bottom: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .featured-guide { padding: 36px; }
  .tool-teaser { padding: 40px 32px; }
  .guide-toc { display: none; }
}
@media (max-width: 640px) {
  .grid-3, .cat-grid, .grid-4, .feature-grid, .res-grid { grid-template-columns: 1fr; }
  .qref-grid { grid-template-columns: 1fr 1fr; }
  .qref-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .stats-inner { flex-direction: column; align-items: center; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { flex: 1; width: auto; }
}

/* ===== Control Family Pages ===== */

/* Index grid */
.cf-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 8px 0 40px;
}
.cf-index-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.cf-index-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cf-index-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cf-index-abbrev {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
}
.cf-index-meta {
  display: flex;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.cf-index-section { font-weight: 600; }
.cf-index-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.cf-index-card p { font-size: .875rem; color: var(--muted); line-height: 1.55; flex: 1; }
.cf-index-link { display: block; margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--blue); }

/* Family page hero stats */
.cf-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cf-stat { display: flex; flex-direction: column; gap: 2px; }
.cf-stat-num { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.cf-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }

/* Theme chips */
.cf-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.cf-theme-chip {
  font-size: .78rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--text);
}

/* Requirements section header */
.cf-reqs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cf-reqs-header h2 { margin: 0; }
.cf-expand-btn {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s;
}
.cf-expand-btn:hover { background: var(--blue-light); }

/* Requirement cards */
.cf-req {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.cf-req-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background .15s;
}
.cf-req-header:hover { background: var(--surface); }
.cf-req-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 44px;
}
.cf-pts-badge {
  font-size: .7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pts-5 { background: #fef2f2; color: #dc2626; }
.pts-3 { background: #fff7ed; color: #c2410c; }
.pts-1 { background: #f1f5f9; color: #64748b; }
.cf-req-title {
  font-size: .9rem;
  font-weight: 600;
  flex: 1;
  color: var(--text);
}
.cf-req-toggle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
  line-height: 1;
}
.cf-req-body {
  padding: 4px 20px 20px;
  border-top: 1px solid var(--border);
}
.cf-req-text {
  font-size: .85rem;
  color: var(--muted);
  border-left: 3px solid var(--border);
  padding: 8px 12px;
  margin: 12px 0 14px;
  font-style: italic;
  line-height: 1.6;
}
.cf-req-explanation {
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.cf-evidence { background: var(--surface); border-radius: 8px; padding: 14px 16px; }
.cf-evidence-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 10px;
}
.cf-evidence ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.cf-evidence li {
  font-size: .85rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.cf-evidence li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: .8rem;
}

/* Findings section */
.cf-findings-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.cf-findings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-findings-list li {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  padding: 12px 16px 12px 44px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  position: relative;
  line-height: 1.5;
}
.cf-findings-list li::before {
  content: '!';
  position: absolute;
  left: 14px;
  top: 12px;
  background: var(--amber);
  color: #000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* Family prev/next navigation */
.cf-family-nav {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--white);
}
.cf-family-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cf-nav-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--blue-mid);
  border-radius: 8px;
  transition: background .15s;
}
.cf-nav-link:hover { background: var(--blue-light); }
.cf-nav-all { color: var(--muted); border-color: var(--border); }
.cf-nav-all:hover { background: var(--surface); color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .cf-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cf-index-grid { grid-template-columns: 1fr; }
  .cf-req-header { flex-wrap: wrap; }
  .cf-req-title { order: 3; flex-basis: 100%; padding-top: 4px; }
  .cf-req-toggle { order: 4; }
}

/* ===== Primary Sources Reference Grid (guide.html) ===== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 32px;
}
.ref-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.ref-card:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 12px rgba(36,99,235,.1);
}
.ref-card-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
}
.ref-card-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ref-grid { grid-template-columns: 1fr; } }

/* ── Implementation Resources ─────────────────────────────────────────────── */
.cf-resources {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.cf-resources-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.cf-resources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-resources ul li a {
  font-size: .85rem;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cf-resources ul li a::after {
  content: '↗';
  font-size: .75rem;
  opacity: .6;
}
.cf-resources ul li a:hover {
  text-decoration: underline;
}

/* ── Theme filter chips ───────────────────────────────────────────────────── */
.cf-themes-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cf-themes-hint {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
}
/* Override span → button for cf-theme-chip */
button.cf-theme-chip {
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
button.cf-theme-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}
button.cf-theme-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.cf-filter-count {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 8px;
}
