/* =========================================================
   SPRINGBOARD-LAB — Shared Stylesheet
   Consolidated from all 20 HTML pages
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Custom Properties
   --------------------------------------------------------- */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6560;
  --border: #1a1a1a;
  --accent: #c9943a;
  --accent-muted: #f5ecd7;
  --hairline: rgba(26,26,26,0.1);
  --shell: #0a0b0c;
  --shell-text: #f0f0f0;
  --shell-muted: rgba(240,240,240,0.6);
  --footer-bg: #111111;
  --footer-text: #faf9f7;
  --footer-divider: rgba(250,249,247,0.15);
  --error: #991b1b;
  --error-bg: #fef2f2;
  --ok: #2d7a46;
  --warn: #b45309;
  --warn-bg: #fef9e7;
  --bad: #991b1b;

  --font-display: 'Iowan Old Style', 'Charter', 'Georgia', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, monospace;
}

html.dark {
  --bg: #0f0f0f;
  --surface: #161616;
  --fg: #f0f0f0;
  --muted: #8a8580;
  --border: #333333;
  --accent: #d4a853;
  --accent-muted: #1f1b12;
  --hairline: rgba(255,255,255,0.1);
  --footer-bg: #000000;
  --footer-text: #f0f0f0;
  --footer-divider: rgba(240,240,240,0.12);
  --error: #f87171;
  --error-bg: rgba(248,113,113,0.1);
  --ok: #4ade80;
  --warn: #fbbf24;
  --warn-bg: rgba(251,191,36,0.08);
  --bad: #f87171;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

.hidden { display: none !important; }

/* ---------------------------------------------------------
   3. Navigation
   --------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}
@media (min-width: 880px) { .nav-links { display: flex; } }

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover { opacity: 0.5; }

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links .accent-link { color: var(--accent); font-weight: 600; }

.has-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  opacity: 0.6;
  margin-left: 2px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: -1px;
  min-width: 260px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li { display: block; }

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
  text-decoration: none;
  border-bottom: none;
}
.nav-dropdown a:hover { background: var(--accent-muted); opacity: 1; }

.nav-dropdown a .sec-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  width: 18px;
}

.dd-caret { font-size: 10px; opacity: 0.6; margin-left: 2px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle, .nav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--border);
  color: var(--fg);
  cursor: pointer;
}
.nav-menu-btn { padding: 0; }
@media (min-width: 880px) { .nav-menu-btn { display: none; } }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  padding: 32px 24px;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  padding: 16px 0;
}

.mobile-menu a.mm-section {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0 10px 16px;
  border-bottom: none;
}
.mobile-menu a.mm-section .sec-id {
  color: var(--accent);
  font-weight: 600;
  margin-right: 8px;
}

/* ---------------------------------------------------------
   4. Hero Component (Unified)
   --------------------------------------------------------- */

.hero {
  padding: 80px 0 48px;
  border-bottom: 1.5px solid var(--border);
  position: relative;
}
@media (min-width: 768px) { .hero { padding: 120px 0 64px; } }

/* Dark variant modifier */
.hero--dark {
  background: var(--shell);
  color: var(--shell-text);
  overflow: hidden;
  border-bottom: none;
}

.hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Section variant modifier (tighter padding) */
.hero--section {
  padding: 64px 0 40px;
}
@media (min-width: 768px) { .hero--section { padding: 96px 0 48px; } }

/* Hero typography */
.hero .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero .kicker::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.hero--dark .kicker { font-size: 12px; margin-bottom: 28px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 18ch;
}
.hero--dark h1 { font-size: clamp(44px, 8vw, 104px); line-height: 0.95; max-width: 16ch; margin-bottom: 32px; }

.hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 0;
}
.hero--dark p { color: var(--shell-muted); }
.hero .lead { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--shell-muted);
}
.hero-meta span strong { color: var(--accent); font-weight: 600; margin-right: 8px; }

/* Homepage WebGL hero — source-faithful composition with Springboard copy. */
.hero--home {
  min-height: calc(100svh - 64px);
  padding: 0;
  display: grid;
  place-items: center;
}
.hero--home::before { display: none; }
.hero-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-home-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  pointer-events: none;
}
.hero--dark.hero--home h1 {
  max-width: 15ch;
  margin: 0 auto 28px;
  font-size: clamp(46px, 7.5vw, 104px);
  line-height: 0.94;
  text-wrap: balance;
}
.hero--home h1 span {
  display: block;
  font-size: 0.82em;
  font-weight: 400;
}
.hero--home h1 em {
  font-weight: 400;
}
.hero--home .lead {
  max-width: 72ch;
  margin: 0 auto;
  color: var(--shell-muted);
  font-size: clamp(15px, 1.35vw, 18px);
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .hero--home { min-height: calc(100svh - 64px); }
  .hero-home-content {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero--dark.hero--home h1 {
    font-size: clamp(42px, 15vw, 64px);
    max-width: 11ch;
  }
  .hero--home .lead {
    font-size: 16px;
    max-width: 36ch;
  }
}

/* ---------------------------------------------------------
   5. Content Components
   --------------------------------------------------------- */

/* Stats Strip */
.stats-strip {
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--surface);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
}
@media (min-width: 768px) { .stat:not(:last-child) { border-right: 1.5px solid var(--border); } }

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.stat .num span { color: var(--accent); }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Story Section */
.story-section { padding: 96px 0; }
@media (min-width: 768px) { .story-section { padding: 128px 0; } }

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) { .story-grid { grid-template-columns: 5fr 4fr; gap: 80px; } }

.story-main h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 16ch;
}
.story-main p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 20px;
}
.story-main p strong { color: var(--fg); font-weight: 600; }

.story-side {
  border-left: 1.5px solid var(--border);
  padding: 8px 0 8px 32px;
}
.story-side .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.story-side blockquote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}
.story-side .sig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Audience Section */
.audience-section {
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--surface);
  padding: 80px 0;
}
.audience-head { margin-bottom: 48px; max-width: 720px; }
.audience-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.audience-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.audience-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }

.audience-card {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .audience-card { padding: 48px 32px; }
  .audience-card:not(:last-child) { border-right: 1.5px solid var(--border); }
}
.audience-card + .audience-card { border-top: 1.5px solid var(--border); }
@media (min-width: 768px) { .audience-card + .audience-card { border-top: none; } }

.audience-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.audience-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* Principles Section */
.principles-section { padding: 96px 0; }
@media (min-width: 768px) { .principles-section { padding: 128px 0; } }

.principles-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 64px;
  max-width: 720px;
}
.principles-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.principles-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1.5px solid var(--border);
}
@media (min-width: 640px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .principles-grid { grid-template-columns: repeat(5, 1fr); } }

.principle {
  padding: 32px 24px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .principle { border-right: 1.5px solid var(--border); }
  .principle:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
  .principle { border-right: 1.5px solid var(--border); }
  .principle:nth-child(2n) { border-right: 1.5px solid var(--border); }
  .principle:last-child { border-right: none; }
}

.principle .pn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}
.principle h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.principle p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Process Section */
.process-section {
  border-top: 1.5px solid var(--border);
  background: var(--shell);
  color: var(--shell-text);
  padding: 96px 0;
}
.process-head { margin-bottom: 64px; max-width: 720px; }
.process-head .kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.process-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--shell-muted);
  max-width: 56ch;
  margin-top: 16px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: 32px 24px;
  border-top: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .step { border-right: 1.5px solid rgba(255,255,255,0.15); border-top: none; padding: 32px; }
  .step:last-child { border-right: none; }
}
.step .sn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--shell-text);
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--shell-muted);
}

/* CTA Section */
.cta-section {
  background: var(--accent-muted);
  border-bottom: 1.5px solid var(--border);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.cta-inner p {
  font-size: 16px;
  color: var(--muted);
  max-width: 48ch;
}
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 560px) { .cta-row { flex-direction: row; } }
.cta-row a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 28px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  text-align: center;
  transition: all 0.15s;
  white-space: nowrap;
}
.cta-row a.primary { background: var(--fg); color: var(--bg); }
.cta-row a.primary:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.cta-row a.secondary:hover { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------
   6. Legal Pages
   --------------------------------------------------------- */
.legal-body { padding: 48px 0 80px; max-width: 760px; }

.meta-bar {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.legal-section { margin-bottom: 48px; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.legal-section h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--fg);
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.legal-section li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.legal-section li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal-section strong { color: var(--fg); font-weight: 600; }

.last-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.warn-box {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
}
.warn-box p { font-size: 14px; line-height: 1.6; color: var(--fg); margin: 0; }
.warn-box strong {
  font-family: var(--font-display);
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

/* ---------------------------------------------------------
   7. Contact Page
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding-bottom: 80px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 80px; } }

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0 16px;
  height: 52px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  outline: none;
  border-radius: 0;
}
.field textarea { height: auto; padding: 14px 16px; min-height: 160px; resize: vertical; }
.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
html.dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23f0f0f0' stroke-width='1.5'/%3E%3C/svg%3E");
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.5; }

.field.error input,
.field.error textarea,
.field.error select { border-color: var(--error); background: var(--error-bg); }
.field-error {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--error);
  display: none;
  margin-top: 2px;
}
.field.error .field-error { display: block; }

.submit-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.submit-btn:hover { background: var(--accent); color: var(--bg); }
.submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-success {
  display: none;
  padding: 32px;
  border: 1.5px solid var(--border);
  background: var(--accent-muted);
}
.form-success.visible { display: block; }
.form-success h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.5; }

.info-block { margin-bottom: 48px; }
.info-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.info-block p,
.info-block li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44ch;
}
.info-block ul { list-style: none; padding: 0; }
.info-block li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.info-block li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

.direct-email {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 4px;
}
.direct-email:hover { color: var(--accent); }

/* ---------------------------------------------------------
   8. Tools & Templates Page
   --------------------------------------------------------- */
.brutal-border { border: 1.5px solid var(--border); }
.brutal-border-b { border-bottom: 1.5px solid var(--border); }
.brutal-border-t { border-top: 1.5px solid var(--border); }

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 48px;
  overflow-x: auto;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-top: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.tab-btn:first-child { border-left: 1.5px solid var(--border); }
.tab-btn.active { background: var(--fg); color: var(--bg); }
.tab-btn:hover:not(.active) { background: var(--accent-muted); color: var(--fg); }

.panel { display: none; }
.panel.active { display: block; }

.tools-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }

.tool-card {
  border: 1.5px solid var(--border);
  padding: 32px;
  background: var(--surface);
}
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tool-card .tool-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 50ch;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .form-row { flex-direction: row; gap: 16px; } }
.form-row > * { flex: 1; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
input[type="number"], input[type="text"] {
  width: 100%;
  padding: 0 14px;
  height: 48px;
  font-size: 16px;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  outline: none;
}
input::placeholder { color: var(--muted); opacity: 0.6; }

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tool-btn:hover { background: var(--accent); color: var(--bg); }
.tool-btn.secondary { background: transparent; color: var(--fg); }
.tool-btn.secondary:hover { background: var(--fg); color: var(--bg); }

.result-box {
  margin-top: 24px;
  padding: 20px;
  border: 1.5px solid var(--border);
  background: var(--accent-muted);
  display: none;
}
.result-box.visible { display: block; }
.result-box h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.result-box .big-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.result-box .unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Validator */
.question-block { margin-bottom: 20px; }
.question-text { font-size: 15px; margin-bottom: 10px; line-height: 1.45; }
.options { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.12s;
}
.opt-btn:hover { background: var(--accent-muted); }
.opt-btn.selected { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.opt-btn.selected.yes { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt-btn.selected.no { background: var(--bad); color: #fff; border-color: var(--bad); }

.verdict {
  margin-top: 24px;
  padding: 20px;
  border: 1.5px solid var(--border);
  display: none;
}
.verdict.visible { display: block; }
.verdict strong { font-family: var(--font-display); font-size: 20px; display: block; margin-bottom: 8px; }
.verdict p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) { .templates-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .templates-grid { grid-template-columns: repeat(3, 1fr); } }

.template-card {
  border: 1.5px solid var(--border);
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 -0.75px -1.5px 0;
  transition: background 0.15s;
}
.template-card:hover { background: var(--accent-muted); }

.template-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  border: 1px solid var(--accent);
  padding: 2px 8px;
}
.template-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.template-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.template-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.download-btn:hover { background: var(--fg); color: var(--bg); }

/* AI Directory */
.ai-table-wrap { overflow-x: auto; border: 1.5px solid var(--border); }
.ai-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ai-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--border);
  background: var(--accent-muted);
  color: var(--muted);
  white-space: nowrap;
}
.ai-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.ai-table tr:last-child td { border-bottom: none; }
.ai-table tr:hover td { background: var(--accent-muted); }
.ai-table td a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.ai-table td a:hover { color: var(--accent); }
.tier-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid var(--border);
}

/* Section Header */
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.section-head p { font-size: 15px; color: var(--muted); max-width: 60ch; }

.tool-disclaimer {
  margin-top: 48px;
  padding: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.tool-disclaimer strong { color: var(--fg); font-weight: 600; }

/* ---------------------------------------------------------
   9. Section Pages (marketing, premises, tech, start, business-planning, trading)
   --------------------------------------------------------- */
.jump-nav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding: 12px 0;
  overflow-x: auto;
}
.jump-list { display: flex; gap: 8px; list-style: none; }
.jump-list a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  white-space: nowrap;
  transition: all 0.15s;
}
.jump-list a:hover,
.jump-list a.active { background: var(--fg); color: var(--bg); }

.content-block { padding: 56px 0; border-bottom: 1.5px solid var(--border); }
@media (min-width: 768px) { .content-block { padding: 80px 0; } }
.content-block:last-child { border-bottom: none; }

.block-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .block-grid { grid-template-columns: 120px 1fr; gap: 48px; } }

.block-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.block-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.block-body p,
.block-body li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 14px;
}
.block-body ul { list-style: none; padding: 0; margin: 16px 0; }
.block-body li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.block-body li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.block-body strong { color: var(--fg); font-weight: 600; }

.resource-inline {
  margin-top: 32px;
  padding: 24px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.resource-inline .tag-row { display: flex; gap: 8px; align-items: center; }
.resource-inline .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 8px;
}
.resource-inline .meta-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.resource-inline h4 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}
.resource-inline p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.resource-inline .dl-row { display: flex; gap: 12px; margin-top: 8px; }
.resource-inline a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.15s;
}
.resource-inline a:hover { background: var(--fg); color: var(--bg); }

.related-section {
  background: var(--accent-muted);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 64px 0;
}
.related-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.related-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.related-card {
  border: 1.5px solid var(--border);
  padding: 24px;
  background: var(--surface);
}
.related-card h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.related-card p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.related-card a {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* Risk Banner (financial-trading) */
.risk-banner {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1.5px solid var(--warn);
  background: var(--warn-bg);
  max-width: 65ch;
}
.risk-banner p { font-size: 14px; line-height: 1.6; color: var(--fg); margin: 0; }
.risk-banner strong {
  font-family: var(--font-display);
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}

/* ---------------------------------------------------------
   10. Resources Page
   --------------------------------------------------------- */
.sections-grid { padding: 64px 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 768px) { .sections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sections-grid { grid-template-columns: repeat(3, 1fr); } }

.section-card {
  border: 1.5px solid var(--border);
  padding: 40px 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 -0.75px -1.5px 0;
  transition: background 0.15s;
}
.section-card:hover { background: var(--accent-muted); }
.section-card .sec-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.section-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.section-card a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------
   11. Insights Page
   --------------------------------------------------------- */
.articles-section { padding: 64px 0; }
@media (min-width: 768px) { .articles-section { padding: 80px 0; } }

.articles-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  border: 1.5px solid var(--border);
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
}
.article-card:hover { background: var(--accent-muted); }
.article-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  border: 1px solid var(--accent);
  padding: 2px 8px;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.article-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.article-card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-card .meta span { display: flex; align-items: center; gap: 8px; }

/* ---------------------------------------------------------
   12. Simple Content (finance, operations, people, growth, legal)
   --------------------------------------------------------- */
.content-simple { padding: 64px 0; max-width: 760px; }
.content-simple h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}
.content-simple p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Back link nav style (simple pages) */
.back-nav {
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0;
}
.back-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-nav .nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
}
.back-nav .nav-logo span { color: var(--accent); }
.back-nav .back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------
   13. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.footer-brand span { color: var(--accent); }

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 32ch;
}

.footer-bottom {
  border-top: 1px solid var(--footer-divider);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  color: var(--footer-text);
}

/* Minimal footer variant */
.footer-minimal {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-minimal p {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.5;
}
