/* Trimmus v3 — audit positioning. White, ink, one green. Geist + Geist Mono. */

:root {
  --bg: #ffffff;
  --ink: #111413;
  --ink-soft: #3c4341;
  --muted: #6b7370;
  --line: #e9ecea;
  --line-strong: #d5dad7;
  --green: #16a34a;
  --green-deep: #15803d;
  --green-wash: #f0fdf4;
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); font-size: 0.85em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; line-height: 1;
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green-deep); color: #ffffff; }
.btn-primary:hover { background: #11652f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

::selection { background: var(--green-wash); color: var(--green-deep); }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo svg { width: 20px; height: 20px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ── Hero ── */
.hero { padding: 110px 0 90px; }
.hero h1 { font-size: 58px; max-width: 17ch; }
.hero h1 .g { color: var(--green-deep); }
.hero-sub { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }
.hero-ctas { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.hero-fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-fine code { font-family: var(--font-mono); font-size: 13px; background: #f4f6f5; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }

/* Hero audit dashboard */
.audit { margin-top: 64px; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #ffffff; box-shadow: 0 1px 2px rgba(17, 20, 19, 0.04), 0 18px 40px -24px rgba(17, 20, 19, 0.22); }
.audit-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.audit-head .t { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.audit-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-wash); flex: none; }
.audit-head .mo { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.audit-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--green-deep); background: var(--green-wash); border: 1px solid #bfe8d2; border-radius: 100px; padding: 5px 12px; }
.audit-cols, .audit-row, .audit-foot { display: grid; grid-template-columns: 1.4fr 2fr 88px; gap: 24px; align-items: center; padding: 12px 22px; }
.audit-cols { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.audit-cols .r { text-align: right; }
.audit-row { padding: 15px 22px; border-bottom: 1px solid var(--line); }
.audit-feat { display: flex; flex-direction: column; gap: 3px; }
.audit-feat b { font-weight: 500; font-size: 14.5px; }
.audit-feat .tag { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.audit-bar { display: flex; align-items: center; gap: 14px; }
.audit-bar .track { flex: 1; height: 8px; background: #eef1ef; border-radius: 100px; overflow: hidden; }
.audit-bar .fill { display: block; height: 100%; background: var(--ink); border-radius: 100px; width: var(--w, 0%); }
@media (prefers-reduced-motion: no-preference) {
  .audit-bar .fill { width: 0; animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .audit-row:nth-child(2) .fill { animation-delay: 0.06s; }
  .audit-row:nth-child(3) .fill { animation-delay: 0.12s; }
  .audit-row:nth-child(4) .fill { animation-delay: 0.18s; }
  @keyframes grow { to { width: var(--w, 0%); } }
}
.audit-bar .spend { font-family: var(--font-mono); font-size: 13px; min-width: 60px; text-align: right; }
.audit-saved { font-family: var(--font-mono); font-size: 13px; color: var(--green-deep); font-weight: 500; text-align: right; }
.audit-foot { background: #fafbfb; border-top: 1px solid var(--line-strong); padding: 18px 22px; }
.audit-foot .lab { font-size: 13px; color: var(--muted); }
.audit-foot .flow { font-family: var(--font-mono); font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.audit-foot .flow .from { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.audit-foot .flow .to { color: var(--ink); font-weight: 500; }
.audit-foot .delta { font-family: var(--font-mono); font-size: 20px; color: var(--green-deep); font-weight: 600; text-align: right; white-space: nowrap; }

/* ── Sections ── */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.section h2 { font-size: 38px; margin-top: 14px; max-width: 24ch; }
.section .lede { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 56ch; line-height: 1.6; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 56px; }
.step .n { font-family: var(--font-mono); font-size: 13px; color: var(--green-deep); }
.step h3 { font-size: 20px; margin: 12px 0 8px; font-weight: 600; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.step code { font-family: var(--font-mono); font-size: 13px; background: #f4f6f5; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* Proof */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; align-items: center; }
.proof-list { display: flex; flex-direction: column; }
.proof-item { padding: 22px 0; border-top: 1px solid var(--line); }
.proof-item:last-child { border-bottom: 1px solid var(--line); }
.proof-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.proof-item p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; max-width: 44ch; }
.receipt { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; font-family: var(--font-mono); }
.receipt-head { padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.receipt-body { padding: 16px 18px 18px; font-size: 13px; line-height: 2.1; }
.rr { display: flex; justify-content: space-between; }
.rr .k { color: var(--muted); }
.rr.total { border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 8px; }
.rr.total .v { color: var(--green-deep); font-weight: 600; }

/* Calculator */
.calc { margin-top: 56px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden; }
.calc-in { padding: 40px 44px; display: flex; flex-direction: column; gap: 34px; }
.calc-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.calc-spend { font-family: var(--font-mono); font-size: 34px; display: block; margin-bottom: 4px; font-weight: 500; }
input[type="range"].slider { width: 100%; appearance: none; -webkit-appearance: none; height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--green) var(--fill, 30%), var(--line-strong) var(--fill, 30%)); outline: none; margin: 12px 0 4px; }
input[type="range"].slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; border: 2px solid var(--green); cursor: pointer; box-shadow: 0 1px 3px rgba(17, 20, 19, 0.18); }
input[type="range"].slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #ffffff; border: 2px solid var(--green); cursor: pointer; }
.scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.seg button { flex: 1; padding: 11px 8px; background: #ffffff; border: 0; border-left: 1px solid var(--line); font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--ink); color: #ffffff; font-weight: 500; }
.calc-out { background: var(--green-wash); border-left: 1px solid var(--line); padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.calc-out .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-deep); }
.calc-big { font-family: var(--font-mono); font-size: 44px; font-weight: 500; line-height: 1; color: var(--green-deep); letter-spacing: -0.01em; }
.calc-big small { font-size: 18px; }
.calc-sub { font-size: 14.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.calc-sub b { color: var(--ink); font-weight: 600; }
.calc-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; margin-top: 56px; }
.plan { padding: 34px 32px 36px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:first-child { border-left: 0; }
.plan .plan-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.plan .badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-wash); border: 1px solid #bfe8d2; border-radius: 3px; padding: 2px 7px; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin-top: 18px; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan .cap { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { font-size: 14px; color: var(--ink-soft); padding-left: 20px; position: relative; line-height: 1.5; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green-deep); font-size: 13px; }
.plan .btn { width: 100%; }
.pricing-fine { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Two teams (finance + eng) */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; margin-top: 56px; }
.team { padding: 36px 38px 40px; border-left: 1px solid var(--line); }
.team:first-child { border-left: 0; }
.team .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); }
.team h3 { font-size: 23px; margin: 14px 0 18px; font-weight: 600; }
.team ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.team li { font-size: 15px; color: var(--ink-soft); line-height: 1.55; padding-left: 24px; position: relative; }
.team li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--green-deep); font-family: var(--font-mono); }

/* FAQ */
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--ink); letter-spacing: -0.012em; }
.faq-q:hover { color: var(--green-deep); }
.faq-icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--muted); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.open .faq-icon::before { background: var(--green-deep); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.28s ease; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; max-width: 66ch; padding-bottom: 26px; }

/* Final CTA */
.final { border-top: 1px solid var(--line); padding: 110px 0 120px; text-align: center; }
.final h2 { font-size: 44px; max-width: 22ch; margin: 14px auto 0; }
.final .lede { margin: 18px auto 0; max-width: 46ch; }
.cta-form { margin: 36px auto 0; display: flex; gap: 10px; max-width: 440px; }
.cta-form input { flex: 1; border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--font-sans); font-size: 15px; padding: 12px 16px; outline: none; color: var(--ink); }
.cta-form input:focus { border-color: var(--green); }
.final .fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cta-thanks { margin: 36px auto 0; font-family: var(--font-mono); font-size: 14px; color: var(--green-deep); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer .logo { font-size: 15px; }
.footer .logo svg { width: 16px; height: 16px; }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 42px; }
  .bill { grid-template-columns: 1fr; gap: 28px; }
  .bill-delta { text-align: left; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .proof-grid { grid-template-columns: 1fr; gap: 40px; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: 0; }
  .teams { grid-template-columns: 1fr; }
  .team { border-left: 0; border-top: 1px solid var(--line); }
  .team:first-child { border-top: 0; }
  .audit-cols, .audit-row, .audit-foot { grid-template-columns: 1.2fr 1.6fr 72px; gap: 14px; padding-left: 16px; padding-right: 16px; }
  .audit-bar { gap: 10px; }
  .audit-bar .spend { min-width: 52px; font-size: 12px; }
  .faq-q { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .final h2 { font-size: 34px; }
}

/* ── Cookie / GDPR consent banner ── */
.consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  background: #ffffff; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 18px 22px; box-shadow: 0 8px 30px rgba(17, 20, 19, 0.12);
}
.consent-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { padding: 9px 18px; font-size: 14px; }
.consent-link { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* ── Legal pages (privacy, terms) ── */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; }
.legal .updated { margin-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.legal .intro { margin-top: 24px; font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.legal h2 { font-size: 22px; margin-top: 46px; }
.legal h3 { font-size: 16px; margin-top: 26px; }
.legal p { margin-top: 14px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.75; }
.legal ul { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.legal li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.legal a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal code { font-family: var(--font-mono); font-size: 0.92em; background: #f4f6f5; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); line-height: 1.6; }
.legal th { font-weight: 600; color: var(--ink); background: #fafbfb; }

@media (max-width: 900px) {
  .consent { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-actions { justify-content: flex-end; }
  .legal h1 { font-size: 32px; }
}
