/* Volume / Rate / Mix — public marketing site styles.
   Self-hosted (CSP 'self'), brand green #217346, responsive, theme-aware. */
:root {
  --green: #217346;
  --green-dark: #14532d;
  --green-tint: #ecfdf3;
  --green-line: #bbf7d0;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; margin: 0 0 14px; }
h2 { font-size: clamp(23px, 3.4vw, 31px); letter-spacing: -0.01em; margin: 44px 0 14px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
strong { color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { background: var(--green); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; }
.brand .brand-sub { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--body); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--green); text-decoration: none; }
.nav a.btn, .nav a.btn:hover { color: #fff; } /* keep button text white over the green fill */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 9px; border: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid var(--green-line); }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 58px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 11fr 9fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.hero p.lead { font-size: 19px; color: var(--body); margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.hero-shot { margin: 0; }
.hero-shot .pp-waterfall { border-bottom: none; padding-bottom: 14px; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}
.trust { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--green-dark); background: var(--green-tint); border: 1.5px solid var(--green-line); border-left: 4px solid var(--green); border-radius: 8px; padding: 11px 15px; }

/* Sections */
section { padding: 6px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.lead-center { text-align: center; max-width: 700px; margin: 0 auto 8px; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 26px 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card h3 { margin-top: 0; }
.card .ico { font-size: 22px; color: var(--green); margin-bottom: 6px; display: block; }
.card p { margin-bottom: 0; font-size: 15px; }

/* Steps */
.steps { counter-reset: step; margin: 22px 0; }
.step { position: relative; padding: 0 0 18px 52px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step h3 { margin: 4px 0 4px; }
.step p { margin-bottom: 0; }

/* Formula / example blocks */
.formula { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14.5px; color: var(--ink); overflow-x: auto; }
.callout { background: var(--green-tint); border: 1px solid var(--green-line); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 18px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.faq-item p:last-child { margin-bottom: 0; }

/* Prose lists */
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* CTA band */
.cta-band { text-align: center; padding: 52px 0; }
.cta-band h2 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 34px 0; margin-top: 50px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--body); }

/* Breadcrumb */
.crumb { font-size: 13.5px; color: var(--muted); margin: 26px 0 4px; }
.crumb a { color: var(--muted); }

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 24px; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f5f9; --body: #cbd5e1; --muted: #94a3b8;
    --line: #1e293b; --bg: #0b1220; --bg-soft: #0f1a2e;
    --green-tint: #0f2a1c; --green-line: #14532d;
  }
  .site-header { background: rgba(11,18,32,0.9); }
  .brand .mark { background: var(--green); }
}

/* Product preview mockup (bridge + pivot) — kept light like a screenshot */
.product-preview { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.09); background: #fff; }
.pp-caption { text-align: center; font-size: 13.5px; color: var(--muted); margin: 12px 0 6px; }
.pp-waterfall { padding: 16px 20px 8px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.pp-wf-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
.pp-wf-title { font-size: 15px; font-weight: 700; color: #111827; }
.pp-wf-sub { font-size: 11px; color: #6b7280; display: block; margin-top: 1px; }
.pp-wf-toggle { display: flex; border: 1px solid #e5e7eb; border-radius: 4px; overflow: hidden; }
.pp-wf-toggle span { padding: 3px 10px; font-size: 10px; font-weight: 500; color: #6b7280; background: #fff; }
.pp-wf-toggle span:first-child { border-right: 1px solid #e5e7eb; }
.pp-wf-toggle span.active { background: #111827; color: #fff; }
.pp-wf-chart svg { width: 100%; height: auto; display: block; }
.pp-pivot { background: #fff; overflow-x: auto; }
.pp-pivot table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.pp-pivot th { background: #f9f9f9; color: #374151; font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 12px; text-align: right; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.pp-pivot th:first-child { text-align: left; }
.pp-pivot td { padding: 7px 12px; text-align: right; border-bottom: 1px solid #f0f0f0; font-variant-numeric: tabular-nums; color: #374151; white-space: nowrap; }
.pp-pivot td:first-child { text-align: left; color: #111827; }
.pp-pivot tr.pp-total td { font-weight: 700; background: #f3f4f6; border-top: 1.5px solid #9ca3af; }
.pp-pivot tr.pp-l0 td { font-weight: 600; }
.pp-pivot tr.pp-l1 td:first-child { padding-left: 30px; }
.pp-tog { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-right: 6px; font-size: 10px; font-weight: 600; color: #6b7280; border: 1px solid #d1d5db; border-radius: 2px; background: #fff; }
.pp-pos { color: #059669; }
.pp-neg { color: #dc2626; }
