/* HustleCalcs Design System — Ledger Edition */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:ital,wght@0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, Helvetica Neue, Arial, sans-serif;
  background: #f5f1e8;
  color: #1a1714;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --bg:         #f5f1e8;
  --paper:      #fbf7ee;
  --ink:        #1a1714;
  --muted:      #6b6359;
  --muted-light:#9d9488;
  --chip:       #ede8da;
  --chip-hover: #ddd5c4;
  --border:     rgba(26,23,20,0.18);
  --accent:     #ff5e3a;
  --shadow-sm:  0 1px 4px rgba(26,23,20,0.08);
  --shadow-md:  0 2px 12px rgba(26,23,20,0.10);
  --shadow-lg:  0 4px 24px rgba(26,23,20,0.12);

  /* legacy aliases — keeps calc pages working */
  --black:        #1a1714;
  --white:        #fbf7ee;
  --body-gray:    #6b6359;
  --muted-gray:   #9d9488;
  --chip-gray:    #ede8da;
  --hover-gray:   #ddd5c4;
  --hover-light:  #f2edde;
  --shadow-light: var(--shadow-sm);
  --shadow-medium:var(--shadow-md);
  --shadow-float: 0 2px 8px rgba(26,23,20,0.10);
  --radius-card:    8px;
  --radius-featured:12px;
  --radius-pill:    999px;
  --radius-circle:  50%;
  --container:    1136px;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: #1a1714;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
p  { color: var(--muted); font-size: 1rem; line-height: 1.6; }
a  { color: #1a1714; text-decoration: underline; }
a:visited { color: #1a1714; }
strong { font-weight: 600; color: #1a1714; }

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-logo { text-decoration: none; }
.nav-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-chips::-webkit-scrollbar { display: none; }
.nav-chip {
  background: var(--chip);
  color: #1a1714;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.nav-chip:hover  { background: var(--chip-hover); color: #1a1714; text-decoration: none; }
.nav-chip.active { background: #1a1714; color: var(--paper); }
.nav-cta {
  background: #1a1714;
  color: var(--paper);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.82; color: var(--paper); text-decoration: none; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-auth-btn { white-space: nowrap; }
.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-circle);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #1a1714;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  background: var(--chip);
  color: #1a1714;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1     { margin-bottom: 20px; }
.hero p      { font-size: 1.0625rem; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero-stat {
  background: var(--paper);
  border-radius: var(--radius-featured);
  padding: 22px;
  border: 1px solid var(--border);
}
.hero-stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  color: #1a1714;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--muted-light); font-weight: 500; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn-primary  { background: #1a1714; color: var(--paper) !important; }
.btn-primary:hover { opacity: 0.84; color: var(--paper) !important; text-decoration: none; }
.btn-secondary { background: var(--paper); color: #1a1714; border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--chip); color: #1a1714; text-decoration: none; }
.btn-accent   { background: var(--accent); color: #fff !important; }
.btn-accent:hover { opacity: 0.88; text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 28px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: rgba(26,23,20,0.28); }
.card-featured {
  border-radius: var(--radius-featured);
  padding: 32px;
}
.card-label {
  display: inline-block;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p  { font-size: 0.875rem; margin-bottom: 20px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1714;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}
.card-link:hover { opacity: 0.6; }

/* ─── Calculator Grid ────────────────────────────────────── */
.calc-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.calc-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Calculator Widget ──────────────────────────────────── */
.calc-widget {
  background: var(--paper);
  border-radius: var(--radius-featured);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.calc-widget h2 { font-size: 1.625rem; margin-bottom: 8px; }
.calc-widget .desc { font-size: 0.9375rem; color: var(--muted); margin-bottom: 28px; }
.calc-field { margin-bottom: 18px; }
.calc-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1714;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9375rem;
  color: #1a1714;
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: #1a1714;
  box-shadow: 0 0 0 3px rgba(26,23,20,0.07);
}
.calc-field .hint { font-size: 0.75rem; color: var(--muted-light); margin-top: 4px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.calc-result {
  background: #1a1714;
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-top: 28px;
  display: none;
}
.calc-result.visible { display: block; }
.calc-result-label { font-size: 0.8125rem; color: rgba(251,247,238,0.55); margin-bottom: 8px; }
.calc-result-value {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--paper);
}
.calc-result-sub { font-size: 0.8125rem; color: rgba(251,247,238,0.6); }

.calc-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.calc-result-item {
  background: #1a1714;
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 20px;
  display: none;
}
.calc-result-item.visible { display: block; }
.calc-result-item .calc-result-label { font-size: 0.75rem; color: rgba(251,247,238,0.5); margin-bottom: 6px; }
.calc-result-item .calc-result-value {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.1;
}

.calc-divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ─── Section Heading ────────────────────────────────────── */
.section-heading { margin-bottom: 40px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p { max-width: 600px; }
.section-heading .pill-label {
  display: inline-block;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─── SEO Content Block ──────────────────────────────────── */
.content-block { max-width: 720px; margin: 0 auto; }
.content-block h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.content-block h3 { font-size: 1.125rem; margin: 28px 0 10px; }
.content-block p  { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.content-block ul { padding-left: 20px; margin-bottom: 16px; }
.content-block ul li { color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.content-block .formula-box {
  background: #1a1714;
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  margin: 20px 0;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item { border-top: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question { font-size: 0.9375rem; font-weight: 600; color: #1a1714; margin-bottom: 8px; }
.faq-answer   { font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ─── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-light); text-decoration: none; }
.breadcrumb a:hover { color: #1a1714; }
.breadcrumb span { color: #1a1714; font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: #1a1714;
  color: var(--paper);
  padding: 56px 0 28px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 26px; margin-bottom: 14px; filter: invert(1) sepia(1) saturate(0) brightness(2); }
.footer-brand p { color: rgba(251,247,238,0.45); font-size: 0.8125rem; max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-family: 'Inter Tight', sans-serif; font-size: 0.75rem; font-weight: 700; color: var(--paper); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: rgba(251,247,238,0.45); font-size: 0.8125rem; text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(251,247,238,0.10);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: rgba(251,247,238,0.35); font-size: 0.75rem; }
.footer-bottom a { color: rgba(251,247,238,0.35); font-size: 0.75rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ─── Utility ────────────────────────────────────────────── */
.text-muted   { color: var(--muted-light); }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px;  } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px;  } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }
.proj-table-wrap { overflow-x: auto; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1119px) {
  .hero-inner  { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats  { grid-template-columns: repeat(4, 1fr); }
  .calc-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-chips    { display: none; }
  .nav-right    { display: none; }
  .nav-menu-btn { display: flex; }
  .hero { padding: 56px 0 48px; }
  .hero-stats  { grid-template-columns: repeat(2, 1fr); }
  .calc-grid   { grid-template-columns: 1fr; }
  .calc-grid-2 { grid-template-columns: 1fr; }
  .calc-row    { grid-template-columns: 1fr; }
  .calc-results-grid { grid-template-columns: 1fr; min-height: unset; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .calc-widget { padding: 24px; }
  .section { padding: 56px 0; }
  .proj-table { font-size: 0.75rem; }
  .proj-table th, .proj-table td { padding: 8px 10px; }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .calc-widget { padding: 16px; }
  .calc-row { gap: 10px; }
  .calc-result-value { font-size: 2rem; }
  .content-block { padding: 0 4px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Mobile Nav Overlay ─────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 20px 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 13px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1714;
  text-decoration: none;
  border-radius: var(--radius-card);
  transition: background 0.15s;
}
.mobile-nav a:hover { background: var(--chip); }

/* ─── Ad Placeholder ─────────────────────────────────────── */
.ad-slot {
  background: var(--chip);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-size: 0.75rem;
  min-height: 80px;
  margin: 28px 0;
  border: 1px dashed var(--border);
}

/* ─── Visual Components ──────────────────────────────────── */

/* Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 0.75rem; font-weight: 500; color: var(--muted); min-width: 140px; text-align: right; }
.bar-track { flex: 1; height: 8px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.bar-fill  { height: 100%; background: #1a1714; border-radius: 999px; transition: width 0.4s ease; min-width: 2px; }
.bar-fill.light { background: var(--muted-light); }
.bar-value { font-size: 0.75rem; font-weight: 700; color: #1a1714; min-width: 72px; }

/* Gauge / Score */
.gauge-wrap  { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; }
.gauge-arc   { position: relative; width: 140px; height: 70px; overflow: hidden; }
.gauge-arc::before { content:''; position:absolute; inset:0; border-radius:140px 140px 0 0; border:14px solid var(--chip); border-bottom:none; }
.gauge-needle { position:absolute; bottom:0; left:50%; width:3px; height:60px; background:#1a1714; transform-origin:bottom center; border-radius:999px; transition: transform 0.5s ease; }
.gauge-score  { font-family:'Instrument Serif',serif; font-size:2rem; font-weight:400; color:#1a1714; }
.gauge-label  { font-size:0.75rem; color:var(--muted-light); font-weight:500; }

/* Projection Table */
.proj-table { width:100%; border-collapse:collapse; margin-top:20px; font-size:0.875rem; }
.proj-table th { background:#1a1714; color:var(--paper); padding:10px 14px; text-align:left; font-weight:600; font-size:0.75rem; letter-spacing:0.04em; }
.proj-table td { padding:10px 14px; border-bottom:1px solid var(--border); color:var(--muted); }
.proj-table tr:last-child td { border-bottom:none; }
.proj-table tr:hover td { background:var(--chip); }
.proj-table .profit   { color:#1a1714; font-weight:700; }
.proj-table .loss     { color:var(--muted-light); }
.proj-table .milestone { background:var(--chip); }
.proj-table .milestone td { font-weight:600; color:#1a1714; }

/* Metric Strip */
.metric-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:20px 0; }
.metric-tile  { background:var(--paper); border-radius:var(--radius-card); border:1px solid var(--border); padding:16px 18px; }
.metric-tile-label { font-size:0.6875rem; font-weight:600; color:var(--muted-light); margin-bottom:6px; text-transform:uppercase; letter-spacing:0.06em; }
.metric-tile-value { font-family:'Instrument Serif',serif; font-size:1.5rem; font-weight:400; color:#1a1714; line-height:1; }
.metric-tile-sub   { font-size:0.75rem; color:var(--muted-light); margin-top:4px; }
.metric-tile.dark  { background:#1a1714; }
.metric-tile.dark .metric-tile-label { color:rgba(251,247,238,0.45); }
.metric-tile.dark .metric-tile-value { color:var(--paper); }
.metric-tile.dark .metric-tile-sub   { color:rgba(251,247,238,0.4); }

/* Scenario Cards */
.scenario-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:20px 0; }
.scenario-card { border:1px solid var(--border); border-radius:var(--radius-featured); padding:20px; text-align:center; cursor:pointer; transition:all 0.2s; background:var(--paper); }
.scenario-card:hover, .scenario-card.active { border-color:#1a1714; background:#1a1714; }
.scenario-card:hover *, .scenario-card.active * { color:var(--paper) !important; }
.scenario-card-label { font-size:0.6875rem; font-weight:600; color:var(--muted-light); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
.scenario-card-value { font-family:'Instrument Serif',serif; font-size:1.5rem; font-weight:400; color:#1a1714; }
.scenario-card-sub   { font-size:0.75rem; color:var(--muted-light); margin-top:4px; }

/* Split Panel */
.split-panel { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
.split-panel-item { background:var(--chip); border-radius:var(--radius-card); padding:18px; border:1px solid var(--border); }
.split-panel-item h4 { font-size:0.875rem; margin-bottom:12px; }

/* Cash Timeline */
.cash-timeline { margin:20px 0; }
.cash-timeline-title { font-size:0.6875rem; font-weight:600; color:var(--muted-light); text-transform:uppercase; letter-spacing:0.07em; margin-bottom:10px; }
.cash-bars { display:flex; gap:3px; align-items:flex-end; height:76px; max-width:100%; overflow:hidden; }
.cash-bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; }
.cash-bar-fill { width:100%; border-radius:3px 3px 0 0; background:#1a1714; min-height:2px; transition:height 0.3s; }
.cash-bar-fill.danger { background:var(--accent); }
.cash-bar-fill.empty  { background:var(--chip); }
.cash-bar-month { font-size:0.55rem; color:var(--muted-light); font-weight:500; }

/* Result Badge */
.result-badge { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; font-size:0.75rem; font-weight:600; }
.result-badge.good { background:#1a1714; color:var(--paper); }
.result-badge.warn { background:var(--chip); color:#1a1714; }
.result-badge.bad  { border:1px solid var(--muted-light); color:var(--muted-light); }

/* Divider with label */
.divider-label { display:flex; align-items:center; gap:12px; margin:24px 0; }
.divider-label span { font-size:0.6875rem; font-weight:600; color:var(--muted-light); white-space:nowrap; text-transform:uppercase; letter-spacing:0.07em; }
.divider-label::before, .divider-label::after { content:''; flex:1; height:1px; background:var(--border); }

/* Range Slider */
.range-wrap { position:relative; }
.range-wrap input[type=range] { width:100%; -webkit-appearance:none; height:3px; border-radius:999px; background:var(--chip); outline:none; border:none; padding:0; cursor:pointer; }
.range-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#1a1714; cursor:pointer; border:2px solid var(--bg); box-shadow:0 0 0 1px #1a1714; }
.range-value { position:absolute; right:0; top:-22px; font-size:0.75rem; font-weight:700; color:#1a1714; }

@media (max-width:768px) {
  .scenario-grid { grid-template-columns:1fr; }
  .split-panel   { grid-template-columns:1fr; }
  .bar-label { min-width:80px; font-size:0.7rem; max-width:100px; overflow:hidden; text-overflow:ellipsis; }
}

/* ═══════════════════════════════════════════════════════════
   LEDGER SHARED LAYOUT — l-nav, l-footer (matches index.html)
   ══════════════════════════════════════════════════════════ */
:root {
  --max: 1440px;
  --pad: 56px;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter Tight', system-ui, sans-serif;
}

/* ─── Ledger Nav ─────────────────────────────────────────── */
.l-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.l-nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.l-nav-logo { text-decoration: none; }
.l-nav-logo img { height: 28px; width: auto; display: block; }
.l-nav-links {
  display: flex; gap: 36px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ink);
}
.l-nav-links a { text-decoration: none; color: var(--ink); transition: opacity .15s; }
.l-nav-links a:hover { opacity: .55; }
.l-nav-right { display: flex; align-items: center; gap: 20px; }
.l-nav-login {
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px;
  text-decoration: none; color: var(--ink); transition: opacity .15s;
}
.l-nav-login:hover { opacity: .55; }
.l-nav-cta {
  background: var(--ink); color: var(--paper);
  border: none; padding: 10px 22px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 1.5px;
  text-decoration: none; display: inline-block;
  transition: opacity .15s; border-radius: 0;
}
.l-nav-cta:hover { opacity: .75; color: var(--paper); text-decoration: none; }
.l-nav-hamburger {
  display: none; background: none; border: 1px solid var(--ink);
  width: 40px; height: 40px; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink); cursor: pointer; border-radius: 0;
}

/* ─── Ledger Mobile Nav ──────────────────────────────────── */
.l-mobile-nav {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 99;
  flex-direction: column; padding: 32px var(--pad);
  border-top: 1px solid var(--ink); overflow-y: auto;
}
.l-mobile-nav.open { display: flex; }
.l-mobile-nav a {
  font-family: var(--mono); font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 18px 0; border-bottom: 1px dotted var(--muted);
  color: var(--ink); text-decoration: none;
}
.l-mobile-nav a:last-child { border-bottom: none; }

/* ─── Ledger Footer ──────────────────────────────────────── */
.l-footer { padding: 80px var(--pad) 40px; background: var(--ink); color: var(--paper); }
.l-footer-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; }
.l-footer-tagline { font-family: var(--serif); font-size: clamp(28px, 4vw, 56px); font-style: italic; color: var(--paper); }
.l-footer-meta { font-family: var(--mono); font-size: 11px; color: #999; letter-spacing: 1px; }
.l-footer-index {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  border-top: 1px solid #333; padding-top: 32px;
}
.l-footer-cat-title {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 16px;
}
.l-footer-calc {
  font-family: var(--serif); font-size: 14px; padding: 5px 0;
  border-bottom: 1px dotted #333; color: #bbb; display: block;
  text-decoration: none; transition: color .15s;
}
.l-footer-calc:hover { color: #fff; }
.l-footer-bottom {
  margin-top: 48px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: #777; letter-spacing: 1px;
  flex-wrap: wrap; gap: 12px;
}
.l-footer-bottom a { color: #777; text-decoration: none; }
.l-footer-bottom a:hover { color: #fff; }

/* ─── Ledger Responsive ──────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .l-footer-index { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad: 28px; }
}
@media (max-width: 680px) {
  :root { --pad: 20px; }
  .l-nav-links { display: none; }
  .l-nav-hamburger { display: flex; }
  .l-footer-index { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .l-footer-bottom { flex-direction: column; gap: 8px; }
  .l-footer-top { flex-direction: column; gap: 8px; }
}
@media (max-width: 400px) {
  .l-footer-index { grid-template-columns: 1fr; }
}
