/* ─────────────────────────────────────────────────────────────────────────────
   eBerry Ledger — Marketing brand kit
   The single source of truth for the marketing suite. Every asset (website,
   one-pagers, sales deck) links to this file so the brand stays identical
   everywhere. Tokens are lifted verbatim from the product's own design system
   (src/app/globals.css): warm ink-on-paper neutrals, one quiet teal accent,
   three semantic status colors. The marketing must feel like the product.

   To rename the brand: find/replace "eBerry Ledger" across /marketing.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  /* Paper & ink neutrals (warm-cool slate) — from the product */
  --paper: #fbfbfa;
  --surface: #ffffff;
  --surface-2: #f5f6f7;
  --border: #e4e6e9;
  --border-strong: #cfd3d8;
  --ink: #1a1d21;
  --ink-muted: #5b6470;
  --ink-subtle: #8a929c;

  /* Quiet accent — deep, trustworthy teal */
  --accent: #1f6f78;
  --accent-hover: #195a62;
  --accent-soft: #e8f1f2;
  --accent-ink: #0d3b40;

  /* Semantic status — reserved for proof points, never decoration */
  --ok: #2f7d4f;
  --ok-soft: #e6f2ea;
  --warn: #9a6700;
  --warn-soft: #fbf1da;
  --bad: #b3261e;
  --bad-soft: #fbe9e8;

  /* Ink-on-dark, for deep sections and the deck */
  --night: #11201f;
  --night-2: #16302d;
  --night-ink: #eef2f1;
  --night-muted: #9fb3b0;

  --radius: 0.5rem;
  --radius-lg: 0.875rem;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 31, 0.04), 0 1px 1px rgba(16, 32, 31, 0.03);
  --shadow-md: 0 6px 24px -8px rgba(16, 32, 31, 0.12), 0 2px 6px -2px rgba(16, 32, 31, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(16, 32, 31, 0.22);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "tnum" 1, "cv01" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

.tnum { font-variant-numeric: tabular-nums; }

/* ── Type scale ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 650; }
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
}
.h1 { font-size: clamp(2rem, 4vw, 3rem); }
.h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-muted); line-height: 1.5; }
.eyebrow {
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.85rem;
}
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-subtle); }
.serif { font-family: var(--font-serif); }

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.grid { display: grid; gap: 1.25rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ── Brand mark ─────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand__glyph {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.brand__glyph--lg { width: 44px; height: 44px; border-radius: 11px; font-size: 1.3rem; }
.brand__name b { font-weight: 720; }
.brand__name span { color: var(--ink-subtle); font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.8rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn--light:hover { background: rgba(255,255,255,0.2); }
.btn--lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card--pad { padding: 1.75rem; }
.card__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }

/* ── Badges / chips ─────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--surface); color: var(--ink-muted);
}
.chip--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }

/* ── Stat ───────────────────────────────────────────────────────────────────── */
.stat__num { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { color: var(--ink-muted); font-size: 0.92rem; margin-top: 0.4rem; }

/* ── Rules & misc ───────────────────────────────────────────────────────────── */
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.kicker-line { width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead-quote { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 450; letter-spacing: -0.01em; }

/* Dark surface helper */
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .muted, .on-night .stat__label { color: var(--night-muted); }
.on-night .eyebrow { color: #79c7cd; }
.on-night .card { background: var(--night-2); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.on-night .card p { color: var(--night-muted); }
.on-night .hr { background: rgba(255,255,255,0.1); }

@media print {
  .no-print { display: none !important; }
}
