@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #0a1a30;
  --navy-800: #0f2340;
  --navy-700: #16305a;
  --teal-600: #0f7a6e;
  --teal-500: #12a390;
  --teal-100: #e3f4f1;
  --bg: #f6f7f5;
  --card: #ffffff;
  --ink: #16202b;
  --ink-muted: #5b6674;
  --border: #e6e9ec;
  --positive: #1a7f4b;
  --warning: #b8790a;
  --negative: #b3423a;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(10,26,48,0.04), 0 8px 24px rgba(10,26,48,0.06);
  --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 60px;
  --bottomnav-h: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 16px; padding-bottom: calc(var(--bottomnav-h) + 12px); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 14px; font-size: 16px; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 720px; margin: 0 auto; padding: 0 18px; }
header.site-header { background: var(--navy-900); color: #fff; padding: 0; position: sticky; top: 0; z-index: 20; height: var(--header-h); display: flex; align-items: center; }
header.site-header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand-mark { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.brand-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }
header.site-header nav.top-nav { display: none; }
@media (min-width: 760px) {
  header.site-header nav.top-nav { display: flex; gap: 24px; }
  header.site-header nav.top-nav a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 14px; }
  body { padding-bottom: 24px; }
  .bottom-nav { display: none; }
}
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottomnav-h); background: #fff; border-top: 1px solid var(--border); display: flex; z-index: 30; }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.bottom-nav a .glyph { font-size: 18px; line-height: 1; }
.bottom-nav a.active { color: var(--teal-600); }
.card { background: var(--card); border-radius: var(--radius-lg); padding: 22px; margin: 16px 0; box-shadow: var(--shadow-card); border: 1px solid rgba(10,26,48,0.03); }
.hero-card { background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-700) 100%); color: #fff; border-radius: var(--radius-lg); padding: 28px 24px; margin: 18px 0; }
.hero-card h1 { color: #fff; }
.hero-card p { color: rgba(255,255,255,0.78); }
.hero-card .eyebrow { color: var(--teal-500); }
.insight-card { background: var(--teal-100); border-radius: var(--radius-lg); padding: 22px; margin: 16px 0; }
.insight-card h2 { color: var(--navy-900); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--teal-600); color: #fff !important; padding: 14px 22px; border-radius: var(--radius-sm); min-height: 48px; text-decoration: none !important; font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover { background: var(--navy-800); }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--navy-900) !important; border: 1.5px solid var(--border); }
.btn-ghost.active { background: var(--navy-900); color: #fff !important; border-color: var(--navy-900); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.07em; font-size: 12px; color: var(--teal-600); font-weight: 800; }
.muted { color: var(--ink-muted); font-size: 14px; }
.meta-row { display: flex; gap: 8px; align-items: center; color: var(--ink-muted); font-size: 13px; margin-bottom: 8px; }
.meta-row .dot-sep::before { content: "·"; margin: 0 6px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--navy-900); }
input, select { width: 100%; padding: 13px 14px; min-height: 48px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: 16px; margin-bottom: 16px; font-family: var(--font-body); background: #fff; }
input:focus, select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100); }
.stat-headline { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--navy-900); margin: 0 0 4px; }
.stat-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.stat-row:last-child { border-bottom: none; }
.disclaimer { font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 24px; }
footer.site-footer { margin-top: 40px; padding: 24px 0 40px; }
footer.site-footer .brand { font-family: var(--font-display); font-weight: 800; color: var(--navy-900); }
blockquote { border-left: 4px solid var(--teal-500); margin: 0 0 16px; padding: 4px 0 4px 16px; font-style: italic; color: var(--navy-800); }

.sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(10,26,48,0.5); z-index: 100; align-items: flex-end; justify-content: center; }
.sheet-overlay.open { display: flex; }
.bottom-sheet { background: #fff; width: 100%; max-width: 720px; max-height: 82vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-btn { padding: 18px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; text-align: left; font-weight: 700; font-size: 15px; color: var(--ink); min-height: 48px; cursor: pointer; }
.type-btn:active { background: var(--teal-100); border-color: var(--teal-500); }
blockquote.lesson-blockquote { border-left: 4px solid var(--teal-500); margin: 0 0 16px; padding: 4px 0 4px 16px; font-style: italic; color: var(--navy-800); font-size: 16px; }
.pull-quote { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.4; color: var(--navy-900); text-align: center; margin: 24px 0; padding: 0 12px; }
.pull-quote::before { content: "\\201C"; color: var(--teal-500); }
.pull-quote::after { content: "\\201D"; color: var(--teal-500); }
