/* ExtractMyStatement — Fortress Protocol shared chrome
   Tokens + header/footer/drawer/section primitives shared across every page. */

:root {
  --slate-dark: #0F172A;
  --slate-900: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --action:    #2563EB;
  --action-dark: #1D4ED8;
  --action-soft: #DBEAFE;
  --success:   #10B981;
  --success-soft: #D1FAE5;
  --amber:     #F59E0B;
  --bg:        #F6FAFE;
  --white:     #FFFFFF;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;
  --shadow-card: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-float: 0 10px 40px -5px rgba(15,23,42,0.18), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-lift:  0 20px 50px -10px rgba(15,23,42,0.22), 0 8px 16px rgba(15,23,42,0.08);
  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}
@media (min-width: 768px) {
  .appbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.appbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--slate-dark);
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s;
  flex-shrink: 0;
}
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-mark svg { width: 20px; height: 20px; color: var(--white); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  color: var(--slate-dark);
  white-space: nowrap;
}
.nav-primary { display: none; align-items: center; gap: 32px; }
.nav-primary a {
  font-weight: 500; font-size: 15px; color: var(--slate-500);
  transition: color .15s;
}
.nav-primary a:hover, .nav-primary a.active { color: var(--slate-dark); }
.nav-divider { width: 1px; height: 18px; background: var(--slate-200); }
.btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--r-full);
  background: var(--slate-dark); color: var(--white);
  font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-pill:hover { background: #000; transform: translateY(-1px); }
.menu-toggle {
  background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--slate-700);
  display: inline-flex;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle.open .icon-open { display: none; }
.menu-toggle.open .icon-close { display: block; }
@media (min-width: 768px) {
  .nav-primary { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer (siblings of header, not children) */
.mobile-drawer {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 16px 40px -10px rgba(15,23,42,0.15);
  z-index: 49;
  transform: translateY(-110%);
  transition: transform .25s ease;
  padding: 12px 24px 24px;
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-drawer a {
  display: block;
  padding: 14px 8px;
  font-size: 16px; font-weight: 500;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
}
.mobile-drawer a:last-child { border-bottom: 0; }
.mobile-drawer a.active { color: var(--action); }
.mobile-drawer .btn-pill {
  width: 100%; justify-content: center;
  padding: 14px 18px; font-size: 15px;
  margin-top: 12px;
}
.drawer-scrim {
  position: fixed; inset: 64px 0 0 0;
  background: rgba(15,23,42,0.35);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 48;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
@media (min-width: 768px) {
  .mobile-drawer, .drawer-scrim { display: none; }
}

/* ===== Section primitives ===== */
section.block { padding: 96px 0; }
@media (max-width: 768px) { section.block { padding: 64px 0; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
h2.headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--slate-dark);
  margin-bottom: 14px; line-height: 1.15;
}
.section-head p { color: var(--slate-500); font-size: 17px; line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.10);
  color: var(--action);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--action); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

/* Generic CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate-900) 100%);
  color: var(--white);
  padding: 48px 32px;
  border-radius: var(--r-xl);
  text-align: center;
  margin: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: ''; position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
  top: -60px; right: -60px;
  pointer-events: none;
}
.cta-box h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.cta-box p {
  color: #CBD5E1; font-size: 16px; line-height: 1.55;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.cta-button {
  display: inline-block;
  background: var(--action);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 700; font-size: 15px;
  transition: background .15s, transform .15s;
  position: relative; z-index: 1;
  box-shadow: 0 6px 16px rgba(37,99,235,0.28);
}
.cta-button:hover {
  background: var(--action-dark);
  transform: translateY(-1px);
}

/* ===== Footer ===== */
footer.site {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--slate-500); font-size: 14px; line-height: 1.55; max-width: 320px; margin-top: 18px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--slate-dark); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--slate-500); font-size: 14px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--action); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--slate-200);
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .copy {
  font-size: 11px; color: var(--slate-500); letter-spacing: 0.04em;
}
.footer-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--action);
}
.footer-badge svg { width: 12px; height: 12px; }

/* ===== Page hero variants ===== */
.page-hero {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--slate-200);
}
@media (max-width: 768px) { .page-hero { padding: 56px 0 48px; } }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--slate-dark);
  margin-bottom: 16px;
}
.page-hero .lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--slate-500);
  max-width: 640px;
  line-height: 1.55;
}

/* ===== Prose (article / static content) ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  color: var(--slate-700);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--slate-dark);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-dark);
  margin: 32px 0 12px;
}
.prose p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 18px;
  color: var(--slate-700);
}
.prose ul, .prose ol {
  margin: 12px 0 24px 24px;
  padding-left: 8px;
}
.prose li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--slate-700);
}
.prose strong { color: var(--slate-dark); font-weight: 600; }
.prose a { color: var(--action); border-bottom: 1px solid rgba(37,99,235,0.3); }
.prose a:hover { border-bottom-color: var(--action); }
.prose .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 32px;
}

/* Inline callout boxes used by privacy/about/blog */
.callout {
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 32px 0;
  border: 1px solid;
}
.callout.success {
  background: var(--success-soft);
  border-color: rgba(16,185,129,0.3);
  color: #065F46;
}
.callout.success strong { color: #064E3B; }
.callout.info {
  background: var(--action-soft);
  border-color: rgba(37,99,235,0.25);
  color: #1E40AF;
}
.callout.info strong { color: #1E3A8A; }
.callout.warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.callout.warning strong { color: #78350F; }
.callout.neutral {
  background: var(--slate-50);
  border-color: var(--slate-200);
  color: var(--slate-700);
}
.callout p { margin: 0; line-height: 1.6; }

/* Inline link button variant for prose */
.btn-inline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--action); color: var(--white);
  font-weight: 600; font-size: 14px;
  transition: background .15s;
  border-bottom: 0 !important;
}
.btn-inline:hover { background: var(--action-dark); }
