/* Binary Volt site styles. No framework, no web fonts: fast and CSP-friendly. */
:root {
  --ink: #0b0f0e;
  --text: #26302d;
  --muted: #4a5753;
  --paper: #ffffff;
  --wash: #f4f8f7;
  --line: #dbe3e1;
  --volt: #01947f;
  --volt-ink: #0a6053;
  --volt-bright: #05bda2;
  --volt-tint: #e6f6f3;
  --rb: #115e59;
  --rb-coral: #f2704f;
  --rb-tint: #fbf7f0;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(11 15 14 / 6%), 0 8px 24px rgb(11 15 14 / 6%);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--volt-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--volt-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 64px; width: 192px; object-fit: contain; display: block; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-list a:hover, .nav-list a[aria-current="page"] { background: var(--volt-tint); color: var(--volt-ink); }
.menu-button { display: none; min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .menu-button { display: inline-flex; align-items: center; gap: 8px; }
  .site-nav { position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav[hidden] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .nav-list a { padding: 14px 12px; }
}
@media (min-width: 761px) { .site-nav[hidden] { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 6px 18px rgb(1 148 127 / 30%); }
.btn-volt { background: var(--volt-ink); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--volt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.wash { background: var(--wash); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--volt-ink); margin-bottom: 12px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); background:
  radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--volt-bright) 18%, transparent), transparent 70%),
  radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--volt) 10%, transparent), transparent 70%); }
.hero .binary { position: absolute; right: -40px; top: 40px; font: 700 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--volt); opacity: .14; white-space: pre; pointer-events: none; user-select: none; }
@media (max-width: 1180px) { .hero .binary { display: none; } }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 4px; }
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-card .logo { height: 56px; width: auto; align-self: flex-start; }
.product-card .actions { margin-top: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--wash); }
.badge.live { border-color: color-mix(in srgb, var(--volt) 40%, transparent); background: var(--volt-tint); color: var(--volt-ink); }
.badge.dev { border-color: color-mix(in srgb, var(--rb-coral) 45%, transparent); background: color-mix(in srgb, var(--rb-coral) 10%, var(--paper)); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px; background: var(--volt-tint); border: 2px solid var(--volt); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 68px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ink); color: var(--paper); }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.figure figcaption { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.note { border-left: 4px solid var(--volt); background: var(--volt-tint); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.pricing { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing table { width: 100%; border-collapse: collapse; }
.pricing th, .pricing td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing th { background: var(--wash); color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* Long-form legal and policy pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.prose .meta { color: var(--muted); }
.prose nav ol { columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .prose nav ol { columns: 1; } }
.prose .note { margin: 1.2em 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--wash); padding: 48px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--volt-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* Analytics consent */
.consent { position: fixed; inset: auto 16px 16px 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgb(0 0 0 / 18%); padding: 20px; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; margin-bottom: 6px; }
.consent p { margin-bottom: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}
@media (forced-colors: active) {
  .btn, .badge, .card { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .consent, .menu-button { display: none !important; }
}

.bv-brand { display: inline-block; max-width: 100%; }
.bv-brand img { display: block; width: 210px; height: auto; }
@media (max-width: 480px) { .brand .logo-img { width: 156px; height: 52px; } }

.product-demo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #101c19; border: 1px solid var(--line); border-radius: var(--radius); }
