:root {
  --paper: #f7f8f5;
  --ink: #17231c;
  --muted: #566159;
  --line: #dce2d9;
  --green: #21643f;
  --dark: #101a14;
  --lime: #c2e894;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(18px, 4.5vw, 44px); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #529eff; outline-offset: 4px; }
section[id] { scroll-margin-top: 6rem; }
section { padding: clamp(3rem, 6vw, 5rem) 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: 1rem; letter-spacing: -.015em; }
.eyebrow { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-note { color: var(--muted); font-size: .875rem; line-height: 1.6; margin-top: 1rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 30; padding: .6rem 1rem; background: white; }
.skip-link:focus { top: .5rem; }
header { position: sticky; top: 0; z-index: 20; background: #f7f8f5f5; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { min-height: 80px; display: flex; align-items: center; gap: 1.5rem; }
.brand-image { display: block; position: relative; width: 100px; height: 40px; overflow: hidden; background: white; border-radius: 3px; flex-shrink: 0; }
.brand-image img { position: absolute; width: 162%; height: auto; max-width: none; left: -26%; top: -83%; }
.nav nav { display: flex; gap: 1.5rem; margin-right: auto; }
.nav a { text-decoration: none; }
.nav nav a, .sign-in { font-size: .875rem; }
.nav nav a:hover, .sign-in:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; border: 1px solid var(--ink); border-radius: 6px; padding: .75rem 1.25rem; font: 600 .9375rem/1.4 system-ui, sans-serif; text-decoration: none; text-align: center; }
.btn.solid { background: var(--dark); color: white; }
.btn.solid:hover { background: var(--green); }
.sales-hero { background: var(--dark); color: #f3f6ee; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-rows: min-content min-content 1fr; grid-template-areas: 'heading metric' 'start metric' 'body metric'; gap: 0 3rem; align-items: start; }
.hero-heading { grid-area: heading; }
.hero-start { grid-area: start; }
.hero-body { grid-area: body; }
.hero-metric { grid-area: metric; align-self: center; padding: 2rem; background: #edf2e6; color: var(--ink); border-radius: 8px; }
.sales-hero .hero-metric .eyebrow { color: var(--green); }
.hero-metric > p:not(.eyebrow) { color: var(--muted); font-size: .875rem; }
.hero-metric > a { display: inline-block; margin-top: 1.25rem; font-size: .875rem; }
.spend-demo { margin: 1.25rem 0; }
.spend-controls { display: flex; gap: .25rem; padding: .25rem; background: #dfe7d7; border-radius: 5px; }
.spend-controls button { flex: 1; min-height: 44px; padding: .5rem; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: 500 .8125rem var(--mono); cursor: pointer; }
.spend-controls button[aria-pressed="true"] { background: var(--green); color: white; }
.spend-controls button:hover { box-shadow: inset 0 0 0 1px var(--green); }
.spend-grid { position: relative; height: 96px; margin: 1.25rem 0 .75rem; background: #d4dfcb; overflow: hidden; }
.spend-used { width: 12.414%; height: 100%; background: var(--green); transition: width .35s ease, background .35s ease; }
.spend-grid::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(to right, transparent 0 calc(12.5% - 4px), #edf2e6 calc(12.5% - 4px) 12.5%), repeating-linear-gradient(to bottom, transparent 0 8px, #edf2e6 8px 12px); }
.routing-off .spend-used { width: 100%; background: #788570; }
.spend-result { display: flex; justify-content: space-between; align-items: baseline; font-size: .875rem; color: var(--muted); }
.spend-result strong { font: 500 1.75rem var(--mono); letter-spacing: -.06em; color: var(--green); }
.routing-off .spend-result strong { color: var(--muted); }
.sales-hero .eyebrow { color: #b3c99f; margin-bottom: 1.5rem; }
.sales-hero h1 { font-size: clamp(3rem, 4.5vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
.accent { color: var(--lime); }
.hero-sub { color: #b8c5b9; font-size: 1.125rem; max-width: 58ch; margin: 1.5rem 0 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.google-sign-in { gap: .75rem; background: white; border-color: #dadce0; color: #1f1f1f; }
.google-sign-in:hover { background: #f2f2f2; }
.google-sign-in svg { flex-shrink: 0; }
.other-sign-in { display: inline-block; margin-top: .75rem; color: #b8c5b9; font-size: .875rem; }
.sales-hero .btn.solid, .install .btn.solid { background: var(--lime); border-color: var(--lime); color: #15221a; }
.sales-hero .btn.solid:hover, .install .btn.solid:hover { background: #ddf7b9; }
.sales-hero .btn.ghost { background: #202d23; border-color: #3b493b; color: #f1f5ed; }
.sales-hero .btn.ghost:hover { background: #354637; }
.zeros { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font-size: .875rem; color: #adbdac; }
.zeros span::before { content: '✓ '; color: var(--lime); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.benefit-grid article { min-width: 0; padding-top: 1.25rem; border-top: 1px solid #aebda7; }
.benefit-grid .eyebrow { color: var(--green); }
.benefit-grid h2 { font-size: 1.5rem; max-width: 18ch; }
.benefit-grid p:last-child { color: var(--muted); margin-top: 1rem; }
.cost-story { background: #edf2e6; }
.cost-proof { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 4rem; }
.proof-number { color: var(--green); font-size: clamp(4rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.065em; }
.proof-number span { display: block; font-size: 1.125rem; line-height: 1.5; letter-spacing: 0; margin: .25rem 0 .75rem; }
.cost-proof > div > p:last-child { color: var(--muted); }
.savings-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 3.75rem; align-items: center; gap: 1rem; font-size: .875rem; }
.savings-row + .savings-row { margin-top: 1rem; }
.savings-row strong { font-family: var(--mono); text-align: right; }
.savings-track { height: 28px; background: #dfe7d7; border-radius: 2px; overflow: hidden; }
.savings-fill { height: 100%; width: 100%; background: #a7b49d; }
.routed { color: var(--green); }
.routed .savings-fill { width: 12.414%; background: var(--green); }
details { margin-top: 1rem; font-size: .875rem; color: var(--muted); }
summary { cursor: pointer; padding: .5rem 0; text-underline-offset: 4px; }
summary:hover { text-decoration: underline; }
details p { margin-top: .75rem; }
.install { background: var(--dark); color: #f1f5ed; }
.install-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 4rem; }
.install-intro .eyebrow { color: #b3c99f; }
.install-intro h2 { max-width: 12ch; }
.install-intro > p:not(.eyebrow) { color: #b8c5b9; margin-top: 1rem; }
.install-intro .btn { margin-top: 1.5rem; }
.install-steps { list-style: none; counter-reset: install; }
.install-steps li { position: relative; padding-left: 2rem; counter-increment: install; }
.install-steps li::before { content: counter(install, decimal-leading-zero); position: absolute; top: 0; left: 0; font: .875rem/1.4 var(--mono); color: var(--lime); }
.install-steps li + li { margin-top: 1.5rem; }
.install-steps h3 { margin-bottom: .65rem; }
.cmd { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: #17251b; border: 1px solid #43533c; border-radius: 4px; }
code { font-family: var(--mono); font-size: .875rem; }
.cmd code { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.copy-btn { flex-shrink: 0; min-width: 60px; min-height: 44px; padding: .4rem .6rem; border: 1px solid #52624b; border-radius: 3px; background: transparent; color: #e9e8e2; font: .875rem var(--mono); cursor: pointer; }
.copy-btn:hover { background: #e9e8e2; color: var(--dark); }
.install-steps p { color: #b8c5b9; font-size: .875rem; margin-top: .5rem; }
.setup-options { margin: 1.5rem 0 0 2rem; padding-top: .75rem; border-top: 1px solid #354730; color: #b8c5b9; }
.setup-options code, .install-steps p code { color: #e5efd9; }
footer { border-top: 1px solid #354730; padding: 1.5rem 0; background: var(--dark); color: #b8c5b9; font-size: .875rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; }
footer span { color: #f1f5ed; font-weight: 700; font-size: 1.2rem; }
@media (max-width: 850px) {
  .hero-layout { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: 'heading' 'start' 'metric' 'body'; }
  .hero-metric { margin-top: 1.75rem; padding: 1.25rem 1.5rem; }
  .hero-metric .proof-number { font-size: 4rem; }
  .sales-hero .hero-metric .eyebrow { margin-bottom: .5rem; }
  .hero-metric .foot-note, .hero-metric > a { margin-top: .5rem; }
  .nav { gap: 1rem; min-height: 70px; }
  .benefit-grid { gap: 1.5rem; }
  .cost-proof, .install-layout { gap: 2rem; }
  .install-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; padding-top: .65rem; padding-bottom: .65rem; gap: .75rem; }
  .brand-image { margin-right: auto; }
  .nav nav { order: 3; width: 100%; justify-content: center; gap: 2rem; }
  .nav > .btn { padding: .5rem .75rem; font-size: .875rem; }
  .sales-hero h1 { font-size: clamp(2.65rem, 8vw, 3.5rem); }
  .sales-hero h1 br { display: none; }
  .hero-sub { font-size: 1.0625rem; }
  .benefit-grid, .cost-proof { grid-template-columns: 1fr; }
  .benefit-grid { gap: 2rem; }
  .benefit-grid h2 { max-width: none; }
  .cost-proof { gap: 1.5rem; }
  .savings-row { gap: .6rem; }
  section[id] { scroll-margin-top: 8rem; }
}
@media (max-width: 380px) {
  .nav { gap: .5rem; }
  .cmd { flex-wrap: wrap; }
  .cmd code { flex-basis: 100%; }
  .copy-btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spend-used { transition: none; } }
