/* Log Spend Auditor — static site design system.
   No external fonts, scripts, images or requests. */
:root {
  --bg: #07090d;
  --bg-alt: #0a0e14;
  --surface: #0e141c;
  --surface-2: #121a24;
  --line: #1b2634;
  --line-2: #273649;
  --text: #e9eff6;
  --muted: #9dadbf;
  --faint: #7c8ea3;
  --accent: #34d399;
  --accent-2: #6ee7b7;
  --accent-ink: #04130c;
  --accent-soft: rgba(52, 211, 153, .12);
  --amber: #f3c35f;
  --red: #f58a8a;
  --blue: #86bbff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -22px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(52, 211, 153, .35), 0 24px 60px -24px rgba(52, 211, 153, .35);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 26px; height: 26px; color: var(--accent); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 13, .94); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 17px var(--mono); letter-spacing: .005em; }
.brand:hover { color: var(--text); }
.mark { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--accent-soft); border: 1px solid rgba(52, 211, 153, .35); color: var(--accent); font: 700 14px var(--mono); }
header.site nav { margin-left: auto; }
header.site nav ul { display: flex; gap: 4px; }
header.site nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
header.site nav a:hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent;
  font: 700 15.5px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); }
.btn-sm:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-primary { background: linear-gradient(180deg, #4be3ab, var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 28px -10px rgba(52, 211, 153, .55), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn-primary:hover { background: linear-gradient(180deg, #7bf0c1, #46dba2); color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(52, 211, 153, .65), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.btn-ghost { background: rgba(255, 255, 255, .02); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(0); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none; width: 760px; height: 560px; right: -160px; top: -140px;
  background: radial-gradient(closest-side, rgba(52, 211, 153, .16), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--muted); font: 600 12.5px var(--mono); letter-spacing: .04em; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 22px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; max-width: 56ch; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.cta-center { justify-content: center; }
.price-note { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.price-note strong { color: var(--text); font-weight: 600; }
.price-note.center { justify-content: center; margin-left: auto; margin-right: auto; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 18px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); color: var(--text); padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.avail { margin: 0; color: var(--muted); font-size: 14.5px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--faint); font: 600 12px var(--mono); letter-spacing: .03em; }
.pill.ok { color: var(--accent); border-color: rgba(52, 211, 153, .45); background: var(--accent-soft); }

/* ---------- terminal ---------- */
.terminal { min-width: 0; margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: #080c11; box-shadow: var(--shadow), 0 0 80px -30px rgba(52, 211, 153, .35); overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.terminal:hover { border-color: rgba(52, 211, 153, .4); box-shadow: var(--shadow), 0 0 90px -24px rgba(52, 211, 153, .45); }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--faint); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a4d; display: block; }
.dots i:first-child { background: #5b3b3b; } .dots i:nth-child(2) { background: #5b5237; } .dots i:last-child { background: #2f5546; }
.term-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-tag { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--accent); font-size: 11px; white-space: nowrap; }
.terminal pre { margin: 0; padding: 20px 20px 22px; font: 13.5px/1.7 var(--mono); color: #c8d6e3; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal pre:focus-visible { outline-offset: -3px; }
.terminal .p { color: var(--accent); } .terminal .cmd { color: #fff; font-weight: 700; } .terminal .opt { color: var(--blue); }
.terminal .h { color: #9fb3c8; } .terminal .num { color: #fff; font-weight: 600; } .terminal .dim { color: #6f8196; }
.terminal .row { display: grid; grid-template-columns: 2ch 25ch 15ch 1fr; padding-left: 2ch; white-space: normal; }
.terminal .row .g { text-align: right; }
.terminal .bad { color: var(--red); font-weight: 600; } .terminal .rev { color: var(--amber); font-weight: 600; }
.terminal figcaption { padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--surface); color: var(--faint); font-size: 13px; line-height: 1.5; }

/* ---------- sections ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.section.alt { background: var(--bg-alt); }
.eyebrow { margin: 0 0 14px; font: 700 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 16px; max-width: 30ch; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 64ch; margin: 0 0 40px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 15px; margin: 26px 0 0; max-width: 78ch; }
.note.center { text-align: center; max-width: 70ch; margin-left: auto; margin-right: auto; }
.fine { margin: 14px 0 0; text-align: center; color: var(--faint); font-size: 13.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.split .section-lead { margin-bottom: 26px; }
.points { display: grid; gap: 16px; }
.points li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.points .ic { margin-top: 3px; color: var(--accent); }
.points strong { color: var(--text); }
.viz { margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.viz svg { display: block; width: 100%; height: auto; }
.viz figcaption { margin-top: 10px; color: var(--faint); font-size: 13px; }
.viz .grid-lines path { stroke: var(--line); stroke-width: 1; fill: none; }
.viz .area { fill: rgba(245, 138, 138, .08); stroke: none; }
.viz .line-ingest { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; }
.viz .line-value { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; }
.viz .pt { fill: var(--red); } .viz .pt2 { fill: var(--accent); }
.viz .lbl { font: 600 12px var(--mono); fill: var(--faint); }
.viz .lbl.a { fill: var(--red); } .viz .lbl.b { fill: var(--accent); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s ease, transform .2s ease; }
.steps li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -23px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--accent)); }
.num-badge { position: absolute; top: 20px; right: 22px; font: 700 13px var(--mono); color: var(--faint); }
.steps .ic-lg { margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); font: 600 12.5px var(--mono); }

/* ---------- Community vs Pro ---------- */
.editions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 24px; align-items: stretch; }
.edition { position: relative; display: flex; flex-direction: column; padding: 34px 32px 30px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); min-width: 0; transition: border-color .2s ease, transform .2s ease; }
.edition:hover { transform: translateY(-2px); }
.edition.pro { background: linear-gradient(180deg, #10201c 0%, var(--surface) 46%); border-color: rgba(52, 211, 153, .55); box-shadow: var(--glow); }
.edition header { margin-bottom: 20px; }
.edition h3 { font-size: 22px; margin-bottom: 2px; }
.tagline { margin: 0 0 18px; color: var(--muted); }
.price { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.amount { font: 800 46px/1.05 var(--sans); letter-spacing: -.03em; }
.price .sub { color: var(--muted); font-size: 15px; }
.price .sub s { color: var(--faint); }
.ribbon { position: absolute; top: 24px; right: 24px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 12px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.meta-list li { padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(52, 211, 153, .3); color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
ul.check { margin: 0 0 28px; flex: 1; }
ul.check li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); color: #d3deea; }
ul.check li:first-child { border-top: 0; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- security ---------- */
.boundary { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; margin: 0 0 24px; }
.zone { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); min-width: 0; }
.zone-local { border-color: rgba(52, 211, 153, .4); background: linear-gradient(180deg, rgba(52, 211, 153, .06), var(--surface)); }
.zone-license { border-style: dashed; }
.zone-title { margin: 0 0 16px; font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.zone-license .zone-title { color: var(--faint); }
.zone-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.node { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font: 600 14px var(--mono); color: var(--text); }
.node .ic { color: var(--accent); }
.node-main { border-color: rgba(52, 211, 153, .6); box-shadow: 0 0 0 4px var(--accent-soft); }
.node-dash { border-style: dashed; }
.node-dash .ic { color: var(--faint); }
.arrow { color: var(--faint); font: 600 18px var(--mono); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; min-width: 0; }
.card:hover { border-color: rgba(52, 211, 153, .4); transform: translateY(-2px); }
.card .ic-lg { margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- platforms ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.platform { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); opacity: .9; }
.platform.live { border-color: rgba(52, 211, 153, .5); background: linear-gradient(180deg, rgba(52, 211, 153, .07), var(--surface)); opacity: 1; box-shadow: var(--glow); }
.platform h3 { margin-bottom: 10px; font-size: 21px; }
.platform .pill { margin-bottom: 14px; }
.platform p { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.platform.live p { color: var(--text); }

/* ---------- final CTA ---------- */
.final { position: relative; overflow: hidden; padding: 100px 0; text-align: center; background: var(--bg-alt); }
.final::before { content: ""; position: absolute; left: 50%; top: -120px; width: 900px; height: 420px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(52, 211, 153, .17), transparent 72%); }
.final-inner { position: relative; }
.final h2 { margin-left: auto; margin-right: auto; max-width: 20ch; }
.final .section-lead { margin: 0 auto 32px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 15px; background: var(--bg); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.foot-brand { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 16px var(--mono); }
.legal { margin: 0 0 8px; max-width: 62ch; font-size: 14px; color: var(--faint); }
.site-foot .links { display: grid; gap: 10px; }
.site-foot .links a { color: var(--muted); text-decoration: none; }
.site-foot .links a:hover { color: var(--accent-2); text-decoration: underline; }

/* ---------- legal pages (privacy, terms) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.doc .note { margin: 0 0 28px; color: var(--faint); }
.doc h2 { font-size: 23px; max-width: none; margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: #cdd9e5; max-width: 72ch; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin: 9px 0; padding-left: 4px; }
.doc li::marker { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boundary { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { top: auto; bottom: -23px; right: auto; left: 50%; width: 2px; height: 22px; background: linear-gradient(180deg, var(--line-2), var(--accent)); }
  .editions { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  header.site { position: static; }
  .bar { flex-wrap: wrap; }
  .nav-cta { margin-left: auto; }
  header.site nav { order: 3; flex-basis: 100%; margin-left: -12px; }
  header.site nav ul { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 16.5px; }
  .hero { padding: 44px 0 44px; }
  .lead { font-size: 17.5px; }
  .cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .final { padding: 68px 0; }
  .cards { grid-template-columns: 1fr; }
  .edition { padding: 28px 22px 24px; }
  .ribbon { top: 18px; right: 18px; }
  .terminal pre { padding: 16px 14px 18px; }
  .term-tag { display: none; }
  .brand { font-size: 13.5px; gap: 7px; }
  .mark { min-width: 28px; height: 28px; }
  .nav-cta { padding: 8px 9px; font-size: 13px; letter-spacing: -.01em; }
  header.site nav a { padding: 7px 10px; font-size: 14.5px; }
  .bar { gap: 8px 10px; }
  .terminal pre { font-size: 12.5px; }
  .terminal .row { grid-template-columns: 2ch 1fr auto; padding-left: 0; margin: 2px 0 8px; }
  .terminal .row .n { grid-column: 2 / -1; }
  .terminal .row .dim { grid-row: 1 / span 2; }
  .terminal .row .bad, .terminal .row .rev { grid-column: 2; }
  .terminal .row .g { grid-column: 3; }
  .flow { flex-direction: column; align-items: flex-start; }
  .arrow { transform: rotate(90deg); margin-left: 14px; }
  .viz { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .steps li:hover, .edition:hover { transform: none; }
}
