/* ── Tokens ──────────────────────────────────────────── */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #191919;
  --muted: #6b6b6b;
  --line: #e7e6e3;
  --accent: #2383e2;
  --accent-hover: #1f76cc;
  --accent-soft: #edf5ff;
  --ink: #111111;
  --max: 1120px;
  --pad: 1.5rem;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Gradient on major headings only */
h1,
.section-title {
  background: linear-gradient(120deg, #0c2d57 0%, #1b4f8a 45%, #1cb7c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Card/component headings stay solid so they don't compete */
.card h2, .card h3,
.dark-band h2, .dark-band h3,
.cta-band h2, .cta-band h3 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: var(--ink);
}

p { margin: 0 0 0.75rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Main: no top padding — sections own their vertical rhythm */
main { padding: 0 0 5rem; }
.lead-page { /* intentionally empty — let sections breathe */ }

/* Sections: padding-based (no margin collapse surprises) */
.section { padding: 4rem 0; }
.section + .section { padding-top: 0; } /* stacked sections share the gap */

/* ── Decorative orbs ─────────────────────────────────── */
.accent-orb {
  position: fixed;
  right: -120px;
  top: 20%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(35,131,226,.07), rgba(35,131,226,0) 65%);
  pointer-events: none;
  z-index: -1;
}
.accent-orb.left {
  right: auto;
  left: -140px;
  top: 55%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(100,100,100,.05), rgba(100,100,100,0) 68%);
}

/* ── Header ──────────────────────────────────────────── */
.site-shell {
  position: sticky;
  top: 10px;
  z-index: 12;
}

.site-header {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.header-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--pad);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Brand mark */
.brand-prominent {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow 0.2s;
}
.brand-prominent:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(140deg, #2f2f2f, #5a5a5a);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  color: #191919;
  font-size: 0.95rem;
  line-height: 1.1;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.brand-text small {
  display: block;
  color: #7a7a7a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
nav a:hover { color: var(--text); }

/* Social dropdown */
.social-menu { position: relative; color: var(--muted); }
.social-menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.social-menu summary::-webkit-details-marker { display: none; }
.social-menu summary::after { content: " +"; color: #1b7c8e; font-weight: 700; }
.social-menu[open] summary,
.social-menu summary:hover { color: var(--text); }
.social-menu[open] summary::after { content: " −"; }

.social-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 150px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: grid;
  gap: 0.1rem;
  z-index: 20;
}
.social-panel a {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}
.social-panel a:hover { background: var(--accent-soft); color: #0c2d57; }

/* CTA dropdown */
.header-menu { position: relative; }
.header-menu summary {
  list-style: none;
  cursor: pointer;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(35,131,226,.2);
  transition: background 0.15s;
}
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary::after { content: " +"; font-weight: 800; }
.header-menu[open] summary,
.header-menu summary:hover { background: var(--accent-hover); }
.header-menu[open] summary::after { content: " −"; }

.header-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 210px;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  display: grid;
  gap: 0.1rem;
  z-index: 24;
}
.header-panel a {
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}
.header-panel a:hover { background: var(--accent-soft); color: #0c2d57; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(35,131,226,.2);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(35,131,226,.28);
}
.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}
.btn-secondary:hover { border-color: #c5c4c0; background: #fafaf9; }

.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 38%, rgba(0,0,0,.015), transparent 34%),
              linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-bg-sketch) { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 18ch;
  background: linear-gradient(120deg, #0c2d57 0%, #1b4f8a 45%, #1cb7c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-full {
  font-size: clamp(1.75rem, 3.6vw, 3rem) !important;
  margin-bottom: 1rem;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 24ch !important;
}

.hero-subcopy {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  color: #4a4a4a;
  max-width: 72ch;
  font-style: italic;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.hero-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.hero-bg-sketch {
  position: absolute;
  pointer-events: none;
  opacity: 0.2;
  filter: grayscale(1) contrast(1.35) brightness(0.58);
  mix-blend-mode: multiply;
  z-index: 0;
}
.hero-bg-left {
  width: min(50vw, 520px);
  left: -10px;
  top: 98px;
  transform: rotate(-4deg);
}
.hero-bg-right {
  width: min(45vw, 480px);
  right: -8px;
  top: 140px;
  transform: rotate(3deg);
  opacity: 0.25;
  filter: grayscale(1) contrast(1.52) brightness(0.5);
}

/* ── Kicker / label ──────────────────────────────────── */
.kicker {
  color: #4e4e4e;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 0.6rem;
}

.hero-label {
  margin: 1.25rem 0 0.5rem;
  font-family: Manrope, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #26485f;
  font-weight: 700;
}

/* ── Pills / eyebrow ─────────────────────────────────── */
.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1.25rem;
}

.pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5d5d5d;
  background: #f3f3f1;
  border: 1px solid #e4e3df;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

/* ── Kaboom stats ────────────────────────────────────── */
.hero-kaboom {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.hero-kaboom .blast {
  border: 1px solid rgba(11,122,114,.22);
  background: rgba(255,255,255,.88);
  border-radius: var(--radius);
  padding: 0.7rem 0.75rem;
}
.hero-kaboom strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  color: #12313d;
  margin-bottom: 0.15rem;
}
.hero-kaboom span { font-size: 0.79rem; color: #47606c; }

/* ── Cred strip ──────────────────────────────────────── */
.cred-strip {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.cred-item strong {
  font-family: Manrope, sans-serif;
  font-size: 0.9rem;
  display: block;
  color: var(--ink);
  margin-bottom: 0.1rem;
}
.cred-item span { color: var(--muted); font-size: 0.84rem; }

/* ── Section sketch / separator image ───────────────── */
.hero-separator-image { margin: 0; }

.section-sketch {
  width: 100%;
  border: 1px dashed #dad9d5;
  border-radius: 10px;
  background: #fafaf9;
  padding: 0.35rem;
  filter: grayscale(1) contrast(1.35) brightness(.78);
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d0cfcb;
  box-shadow: 0 6px 18px rgba(0,0,0,.07);
}

.service-pop { border-top: 3px solid rgba(14,109,102,.5); }

/* Leader cards (about page) */
.leader-card { padding: 0 0 1.5rem; overflow: hidden; }
.leader-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  margin-bottom: 0;
}
.leader-card h3 { padding: 1.25rem 1.5rem 0; margin-bottom: 0.5rem; }
.leader-card p   { padding: 0 1.5rem; }

/* ── Grids ───────────────────────────────────────────── */
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ── Two-column feature ──────────────────────────────── */
.two-column-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.visual-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1.25rem;
}

.visual-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  color: #6f6f6f;
}

/* ── Split layout ────────────────────────────────────── */
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }

/* ── Section contrast block ──────────────────────────── */
.section-contrast {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(244,250,250,.78));
  border: 1px solid rgba(14,41,52,.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* ── Dark band ───────────────────────────────────────── */
.dark-band {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
}
.dark-band h2, .dark-band h3 { color: var(--ink); }
.dark-band .muted { color: var(--muted); }

/* ── AI band (dark variant) ──────────────────────────── */
.ai-band {
  background:
    linear-gradient(135deg, rgba(12,45,87,.96), rgba(28,183,201,.82)),
    #0c2d57;
  border: 1px solid rgba(28,183,201,.22);
}
.ai-band h2,
.ai-band .section-title,
.dark-band.ai-band h2,
.dark-band.ai-band .section-title {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}
.ai-band .muted,
.dark-band.ai-band .muted { color: #e9f7fb; }

/* ── CTA band ────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.2), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8f8f7 58%, #f2f2f1);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.24), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--ink); font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin-bottom: 0.6rem; }
.cta-band .btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}
.cta-band .btn-secondary:hover { border-color: #c5c4c0; }

/* ── About page ──────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-badge {
  background: linear-gradient(135deg, #0e2f57, #14608f 58%, #1cb8c9);
  border: 1px solid rgba(123, 209, 220, 0.4);
}
.about-badge h3 { color: #f2fbff !important; background: none !important; -webkit-background-clip: unset !important; background-clip: unset !important; }
.about-badge .muted { color: #d4ebf6; }

/* About page contextual overrides */
body:has(main .about-hero) .section-contrast {
  background: linear-gradient(180deg, rgba(227, 244, 251, 0.85), rgba(240, 249, 253, 0.92));
  border: 1px solid rgba(72, 150, 185, 0.26);
}
body:has(main .about-hero) .dark-band {
  background: linear-gradient(135deg, #0d2b4f, #114c78 52%, #1692ad);
  border: 1px solid rgba(126, 201, 219, 0.3);
}
body:has(main .about-hero) .dark-band h2,
body:has(main .about-hero) .dark-band h3 { color: #eaf7ff; }
body:has(main .about-hero) .dark-band .muted { color: #cce8f5; }
body:has(main .about-hero) .leader-card {
  border-color: rgba(83, 152, 184, 0.28);
  background: linear-gradient(180deg, #ffffff, #f4fbff);
}

/* ── Visual stack (mock dashboard) ──────────────────── */
.visual-stack {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(17, 185, 197, .22), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(90, 125, 224, .22), transparent 34%),
    linear-gradient(140deg, #0b1f39, #123d72 45%, #1198b3);
  border: 1px solid rgba(188, 225, 233, 0.2);
  margin-top: 1rem;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 0.8px, transparent 0.8px);
  background-size: 3px 3px;
  opacity: .14;
  pointer-events: none;
}

.mock-card {
  position: absolute;
  background: rgba(247, 252, 252, .95);
  border: 1px solid rgba(166, 197, 202, .55);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(4, 12, 18, .26);
}
.mock-card.main {
  width: 76%; height: 62%;
  left: 8%; top: 15%;
  padding: 0.75rem;
  transform: rotate(-3deg);
}
.mock-card.side {
  width: 44%; height: 44%;
  right: 5%; bottom: 9%;
  padding: 0.65rem;
  transform: rotate(5deg);
}
.mock-line {
  height: 8px; border-radius: 999px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #8fb7c4, #d4e6ec);
}
.mock-line.short { width: 52%; }
.mock-line.mid   { width: 74%; }
.mock-line.long  { width: 92%; }
.mock-pill-row { display: flex; gap: 0.4rem; margin-top: 0.45rem; }
.mock-pill { width: 56px; height: 16px; border-radius: 999px; background: #d9eef0; }

/* ── Finance visual widgets ──────────────────────────── */
.finance-visual {
  margin-bottom: 1rem;
  border: 1px solid rgba(80, 96, 112, 0.26);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,240,208,.5), transparent 36%),
    linear-gradient(135deg, #fcfdff, #f4f7fb);
}
.finance-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}
.finance-head strong {
  font-family: Manrope, sans-serif;
  color: #11345a;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.finance-head span { color: #4a6b86; font-size: 0.8rem; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; margin-bottom: 0.55rem; }
.kpi {
  border: 1px solid rgba(130, 167, 198, .32);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  background: rgba(255,255,255,.78);
}
.kpi small { display: block; font-size: 0.7rem; color: #50718b; text-transform: uppercase; letter-spacing: 0.03em; }
.kpi strong { display: block; color: #14355d; font-family: Manrope, sans-serif; font-size: 1rem; }
.kpi span { font-size: 0.71rem; font-weight: 700; }

.sparkline {
  height: 32px;
  border: 1px solid rgba(120, 159, 193, .38);
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.6rem;
}
.sparkline span {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #11b9c5 0%, #1f5f98 45%, #11b9c5 100%);
  clip-path: polygon(0 62%, 12% 54%, 22% 58%, 36% 44%, 48% 48%, 63% 34%, 77% 42%, 100% 18%, 100% 100%, 0 100%);
}

.chart-block {
  border: 1px solid rgba(120, 159, 193, .32);
  border-radius: 10px;
  padding: 0.45rem 0.45rem 0;
  background: rgba(255,255,255,.6);
  margin-bottom: 0.55rem;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.73rem; margin-bottom: 0.35rem; color: #274862;
}

.mini-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.5rem;
}
.mini-table .row {
  display: grid;
  grid-template-columns: 1.2fr .85fr .65fr;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 0.71rem;
  color: #3a3a3a;
}
.mini-table .row.head {
  border-top: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7a7a7a;
  font-size: 0.66rem;
}

/* Status colors */
.up   { color: #0d6f6a; }
.down { color: #b04f46; }
.flat { color: #5d7082; }
.warn { color: #a77708; }
.good { color: #237d33; }
.bad  { color: #b13c2d; }
.muted { color: var(--muted); }

.pill-good, .pill-warn, .pill-bad {
  display: inline-block; border-radius: 999px;
  padding: 0.1rem 0.38rem; font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pill-good { color: #165d28; background: #dff5e5; border: 1px solid #9cd3a8; }
.pill-warn { color: #765005; background: #fff3d8; border: 1px solid #ebcb82; }
.pill-bad  { color: #7f2419; background: #fee3e0; border: 1px solid #e8a6a0; }

.action-flags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.action-flags span {
  font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.03em;
  font-weight: 700; color: #4f4f4f;
  border: 1px solid #dfded9; background: #f5f5f3;
  border-radius: 999px; padding: 0.22rem 0.46rem;
}
.flag-good { color: #165d28 !important; border-color: #9cd3a8 !important; background: #e3f6e8 !important; }
.flag-warn { color: #765005 !important; border-color: #ebcb82 !important; background: #fff4de !important; }
.flag-bad  { color: #7f2419 !important; border-color: #e8a6a0 !important; background: #fee7e5 !important; }

.variance-bars { display: grid; gap: 0.32rem; margin-bottom: 0.45rem; }
.v-row { display: grid; grid-template-columns: .9fr 1.3fr .45fr; gap: 0.32rem; align-items: center; }
.v-row label { margin: 0; font-size: 0.68rem; color: #315068; font-weight: 700; }
.v-row em { font-size: 0.67rem; font-style: normal; text-align: right; color: #315068; }
.v-bar { height: 9px; width: var(--w); border-radius: 999px; }
.v-bar.good { background: linear-gradient(90deg, #1e9d55, #4bc678); }
.v-bar.warn { background: linear-gradient(90deg, #d79a15, #f1bf40); }
.v-bar.bad  { background: linear-gradient(90deg, #c54636, #e46f5f); }

/* ── Section title ───────────────────────────────────── */
.section-title {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

/* ── Metric (ai-band) ────────────────────────────────── */
.metric {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: rgba(255,255,255,.04);
}
.metric strong { display: block; font-family: Manrope, sans-serif; font-size: 1.3rem; color: #fff; }
.metric span { color: #c9d9dc; font-size: 0.84rem; }

/* ── Sketch label ────────────────────────────────────── */
.sketch-label {
  margin: 0 0 0.45rem;
  font-size: 0.66rem; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 800; color: #9ec1d7;
}
.story-sketch {
  width: 100%; max-height: 180px; object-fit: contain;
  border: 1px dashed rgba(158, 193, 215, .38);
  border-radius: 10px; padding: 0.45rem; margin-bottom: 0.65rem;
  background: rgba(255,255,255,.05);
  filter: grayscale(1) contrast(1.25) brightness(1.35);
}

/* ── Mini note card ──────────────────────────────────── */
.mini-note { background: rgba(255,255,255,.88); }
.hero-note-inline { /* just a layout slot, inherits card styles */ }

/* ── Forms ───────────────────────────────────────────── */
.form-row { margin-bottom: 1rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--ink); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35,131,226,.1); }
textarea { min-height: 120px; resize: vertical; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer p { margin: 0 0 0.25rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-layout         { grid-template-columns: 1fr; }
  .about-hero          { grid-template-columns: 1fr; }
  .two-column-feature  { grid-template-columns: 1fr; }
  .hero-mid-row        { grid-template-columns: 1fr; }
  .split               { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --pad: 1rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-full { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  .hero-kaboom { grid-template-columns: 1fr; }
  .hero-bg-sketch { opacity: .14; }
  .hero-bg-right { width: 300px; right: -40px; top: 220px; }
  .kpi-row { grid-template-columns: 1fr; }
  .mini-table .row { grid-template-columns: 1fr; }
  .header-wrap { flex-wrap: wrap; justify-content: center; padding: 0.75rem var(--pad); }
  .nav-left { width: 100%; flex-direction: column; gap: 0.6rem; }
  .brand-prominent { width: 100%; justify-content: center; }
  .social-panel, .header-panel {
    left: 50%; right: auto;
    transform: translateX(-50%);
  }
}
