/* ═══════════════════════════════════════════════════════════════
   TABTRICKLE — v2 design system
   Derived from the Tab a0 keycap logo kit (see docs/brand-asset-inventory.md).

   Colour rule that generates this entire layout:
     lime #BCEE09 on ink   = 14.5:1  → accent on dark surfaces
     lime #BCEE09 on white =  1.37:1 → NEVER lime type on light
     ink on lime fill      = 14.5:1  → primary buttons
   So: ink sections carry the lime; light sections carry ink type and use
   lime only as a solid fill behind dark text.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ─── Kit palette ─── */
  --ink:        #0A0A0A;
  --key:        #121212;
  --key-edge:   #1F1F1F;
  --lime:       #BCEE09;
  --lime-deep:  #93BC00;
  --silver:     #A8AAAC;
  --paper:      #F5F6F7;
  --paper-raise:#FFFFFF;
  --ink-soft:   #3A3A3C;

  /* Text tiers */
  --on-dark-strong: #F5F6F7;
  --on-dark-body:   #C9CBCD;   /* 11.2:1 on ink */
  --on-dark-muted:  #999999;   /* 4.6:1 on ink — contrast-verified floor */
  --on-light-strong:#0A0A0A;
  --on-light-body:  #3A3A3C;   /* 10.4:1 on paper */
  --hairline-dark:  #1E1E1E;
  --hairline-light: #E2E4E6;

  /* ─── Legacy aliases (blog.css + not-yet-migrated templates) ─── */
  --green: var(--lime);
  --green-dim: var(--lime-deep);
  --green-glow: rgba(188, 238, 9, 0.18);
  --copper: var(--silver);
  --copper-dim: var(--on-dark-muted);
  --black: #000000;
  --dark: var(--ink);
  --grey: var(--silver);
  --grey-mid: #999999;
  --white: var(--on-dark-strong);
  --off-white: var(--on-dark-body);
  --bg-light: var(--paper);
  --bg-dark: var(--ink);
  --text-on-light: var(--on-light-strong);
  --text-on-dark: var(--on-dark-body);

  /* Type */
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Space */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 12px;
  --radius-sm: 8px;

  /* Keycap depth */
  --cap-lift: 0 4px 0 var(--lime-deep), 0 7px 18px rgba(0,0,0,.35);
  --cap-press: 0 1px 0 var(--lime-deep), 0 2px 6px rgba(0,0,0,.3);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-display);
  background: var(--ink);
  color: var(--on-dark-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }
/* Lime ring is invisible on paper — use ink on light surfaces. */
.section-light :focus-visible, .btn-primary:focus-visible { outline-color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--ink);
  padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ─── Layout primitives ─── */
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container-narrow { width: min(760px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 480px) { .container, .container-narrow { width: min(1180px, 100% - 2rem); } }

.section { padding: var(--section-y) 0; }
.section-dark  { background: var(--ink);  color: var(--on-dark-body); }
.section-key   { background: var(--key);  color: var(--on-dark-body); }
.section-light { background: var(--paper); color: var(--on-light-body); }
.section-light h1, .section-light h2, .section-light h3, .section-light h4 { color: var(--on-light-strong); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-key h1, .section-key h2, .section-key h3, .section-key h4 { color: var(--on-dark-strong); }

/* ─── Type scale ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.15rem); font-weight: 800; letter-spacing: -0.033em; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.012em; }
p  { text-wrap: pretty; }

.lede { font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.6; max-width: 62ch; }
.measure { max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.15rem;
}
.section-light .eyebrow { color: var(--ink-soft); }
.eyebrow-rule::before {
  content: ""; display: inline-block;
  width: 26px; height: 2px; background: currentColor;
  vertical-align: middle; margin-right: .7rem;
}

.section-head { max-width: 66ch; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.section-head p { margin-top: 1rem; font-size: 1.06rem; }

/* ═══════════════ KEYCAP CONTROLS ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 1.02rem 1.75rem;
  border: 0; border-radius: 10px;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--lime); color: var(--ink);
  box-shadow: var(--cap-lift);
  border-top: 1px solid rgba(255,255,255,.55);
}
.btn-primary:hover { background: #C8F529; }
.btn-primary:active { transform: translateY(3px); box-shadow: var(--cap-press); }

.btn-ghost {
  background: transparent; color: var(--on-dark-strong);
  box-shadow: inset 0 0 0 1px #2E2E30, 0 3px 0 #141416;
  border-top: 1px solid rgba(255,255,255,.09);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--lime), 0 3px 0 #141416; color: var(--lime); }
.btn-ghost:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--lime); }

.section-light .btn-ghost { color: var(--on-light-strong); box-shadow: inset 0 0 0 1px #CFD2D5, 0 3px 0 #DDE0E3; }
.section-light .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink), 0 3px 0 #DDE0E3; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .btn, .btn:active { transition: none; transform: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

.textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--lime); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.textlink:hover { border-bottom-color: currentColor; }
.section-light .textlink { color: var(--ink); border-bottom-color: rgba(10,10,10,.28); }
.section-light .textlink:hover { border-bottom-color: var(--ink); }

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(10,10,10,.94); border-bottom-color: var(--hairline-dark); }
.site-header nav {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .85rem 0;
}
@media (max-width: 480px) { .site-header nav { width: min(1180px, 100% - 2rem); } }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
/* The wordmark is 8 keycaps wide — below ~32px tall the legends stop reading. */
.nav-logo picture { display: block; line-height: 0; }
/* 44px, not 34px: the keycap bevel, brushed metal and cast shadow are the
   brand, and below ~40px tall there aren't enough pixels for any of it to
   read — the mark flattens into a green smudge. */
/* aspect-ratio is pinned to the master (1876x295) rather than left to the
   decoded file. Each generated width rounds its height independently
   (220/35 = 6.286, 440/69 = 6.377), so with width:auto the header box changed
   size depending on which srcset candidate won — a real CLS regression. */
.nav-logo img { height: 44px; width: auto; aspect-ratio: 1876 / 295; }
.nav-logo .nav-logo-mark { display: none; }
.nav-logo .nav-logo-mark img { height: 40px; width: 40px; aspect-ratio: 1 / 1; }
.nav-logo-text { display: none; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links > a {
  font-size: .93rem; font-weight: 550;
  color: var(--on-dark-body);
  padding: .55rem .78rem; border-radius: 8px;
  transition: color .18s ease, background-color .18s ease;
}
.nav-links > a:hover { color: var(--on-dark-strong); background: rgba(255,255,255,.05); }
.nav-links > a.nav-active { color: var(--lime); }

.nav-cta {
  margin-left: .55rem;
  background: var(--lime); color: var(--ink) !important;
  font-weight: 700; font-size: .9rem;
  padding: .7rem 1.15rem !important; border-radius: 9px;
  box-shadow: 0 3px 0 var(--lime-deep);
  border-top: 1px solid rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.nav-cta:hover { background: #C8F529 !important; }
.nav-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lime-deep); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px; border-radius: 8px;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--on-dark-strong); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }

@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-logo img { height: 38px; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--key);
    border-top: 1px solid var(--hairline-dark);
    border-bottom: 1px solid var(--hairline-dark);
    padding: .6rem 1rem 1.35rem;
    max-height: calc(100dvh - 62px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a { padding: .95rem .5rem; font-size: 1.02rem; border-radius: 0; border-bottom: 1px solid var(--hairline-dark); }
  .nav-links > a:last-child { border-bottom: 0; }
  .nav-cta { margin: 1rem .5rem 0; text-align: center; }
}
@media (max-width: 560px) {
  .nav-logo .nav-logo-full { display: none; }
  .nav-logo .nav-logo-mark { display: block; }
}
@media (prefers-reduced-motion: reduce) { .nav-links, .nav-toggle span { transition: none; } }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  padding: calc(var(--section-y) + 4.5rem) 0 var(--section-y);
  background: radial-gradient(120% 80% at 82% 8%, rgba(188,238,9,.07), transparent 58%), var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero-title { margin-bottom: 1.35rem; }
.hero-sub { font-size: clamp(1.06rem, 1.75vw, 1.3rem); color: var(--on-dark-body); max-width: 54ch; margin-bottom: 2.1rem; }
.hero-actions { margin-bottom: 1.6rem; }
.hero-note { font-size: .92rem; color: var(--on-dark-muted); display: flex; align-items: center; gap: .5rem; }
.hero-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media video, .hero-media img {
  width: 100%; height: auto; border-radius: var(--radius); background: var(--key);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px var(--hairline-dark);
}

/* ─── Keycap enquiry-flow composition (replaces the old stock hero video) ─── */
.flowcap {
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) 1.25rem;
  background: linear-gradient(180deg, #141416, #0D0D0F);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 0 1px var(--hairline-dark);
}
.flowcap-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }

.fcap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem .9rem; border-radius: 9px;
  background: #1A1A1D; color: var(--on-dark-body);
  font-size: .82rem; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 0 0 1px #2A2A2E, 0 3px 0 #08080A;
  border-top: 1px solid rgba(255,255,255,.07);
}
.fcap-core {
  background: #17171A; color: var(--on-dark-strong);
  font-size: .92rem; padding: 1rem 1.35rem; text-align: center; white-space: normal;
  box-shadow: inset 0 0 0 1px #33381C, 0 4px 0 #08080A;
  border-top: 1px solid rgba(188,238,9,.28);
}
.fcap-out {
  background: var(--lime); color: var(--ink);
  font-size: .92rem; padding: 1rem 1.35rem; white-space: normal; text-align: center;
  box-shadow: 0 4px 0 var(--lime-deep), 0 8px 20px rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.55);
}

.flowcap-wire {
  display: block; width: 2px; height: 34px; margin: .55rem 0;
  background: #26262A; border-radius: 2px;
  position: relative; overflow: hidden;
}
.flowcap-caption { margin-top: 1.5rem; font-size: .8rem; color: var(--on-dark-muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .flowcap-wire::after {
    content: ""; position: absolute; left: 0; right: 0;
    height: 16px; top: -16px;
    background: linear-gradient(180deg, transparent, var(--lime), transparent);
    animation: wireFlow 2.6s cubic-bezier(.55,0,.45,1) infinite;
  }
  .flowcap-wire-2::after { animation-delay: .55s; }
}
@keyframes wireFlow { to { top: 100%; } }

@media (max-width: 380px) {
  .flowcap-row { flex-direction: column; align-items: stretch; }
  .fcap { white-space: normal; text-align: center; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: calc(var(--section-y) + 2rem); }
  /* Copy leads on narrow screens. The flow diagram is decorative — putting it
     first pushed the headline below the fold, so a mobile visitor met a
     diagram before learning what Tabtrickle is. */
  .hero-media { max-width: 520px; margin-inline: auto; width: 100%; }
}

/* ═══════════════ MOMENTS (the problem) ═══════════════ */
/* 6 items — pin to 3 columns at desktop and 2 at tablet so the grid always
   fills complete rows. auto-fit resolved to 4 columns here and left two dead
   cells in the second row. */
.moments-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--hairline-light);
  border: 1px solid var(--hairline-light); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 620px)  { .moments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .moments-grid { grid-template-columns: repeat(3, 1fr); } }
.moment { background: var(--paper); padding: 1.85rem 1.6rem; }
.moment-when { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7rem; }
.moment p { font-size: 1.02rem; color: var(--on-light-body); }
.moment strong { color: var(--on-light-strong); font-weight: 650; }
.moments-after { margin-top: 2.5rem; font-size: 1.1rem; max-width: 62ch; color: var(--on-light-body); }
.moments-after strong { color: var(--on-light-strong); }

/* ═══════════════ HOW IT WORKS ═══════════════ */
.steps { display: grid; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--key); padding: 2rem 1.6rem; position: relative; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 1.1rem;
  border-radius: 9px; background: var(--ink);
  color: var(--lime); font-weight: 700; font-size: .95rem;
  box-shadow: inset 0 0 0 1px #2A2A2C, 0 2px 0 #0A0A0A;
  border-top: 1px solid rgba(255,255,255,.07);
}
.step h3 { margin-bottom: .6rem; }
.step p { font-size: .98rem; color: var(--on-dark-body); }
.handoff { margin-top: 2rem; padding: 1.5rem 1.7rem; background: var(--key); border-radius: var(--radius); border-left: 3px solid var(--lime); }
.handoff p { color: var(--on-dark-body); max-width: 68ch; }
.handoff strong { color: var(--on-dark-strong); }

/* ═══════════════ CAPABILITIES ═══════════════ */
.cap-lead {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.62fr);
  gap: clamp(2rem,4vw,3.5rem); align-items: start;
  padding: clamp(2rem, 3.5vw, 3rem);
  background: var(--paper-raise); border-radius: var(--radius);
  border: 1px solid var(--hairline-light); margin-bottom: 2.25rem;
}
@media (max-width: 860px) { .cap-lead { grid-template-columns: 1fr; } }
.cap-lead-badge {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--lime); padding: .4rem .75rem; border-radius: 6px; margin-bottom: 1.1rem;
}
.cap-lead h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: .9rem; }
.cap-lead p { color: var(--on-light-body); margin-bottom: 1.5rem; }
.cap-lead-list { list-style: none; display: grid; gap: .7rem; }
.cap-lead-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; color: var(--on-light-body); }
.cap-lead-list li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: .22rem; border-radius: 5px; background: var(--lime); box-shadow: inset 0 -2px 0 var(--lime-deep); }

.cap-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 620px)  { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }
.cap { background: var(--paper-raise); border: 1px solid var(--hairline-light); border-radius: var(--radius-sm); padding: 1.6rem 1.45rem; transition: border-color .2s ease, transform .2s ease; }
.cap:hover { border-color: #C6C9CC; transform: translateY(-2px); }
.cap h4 { font-size: 1.06rem; margin-bottom: .45rem; }
.cap p { font-size: .95rem; color: var(--on-light-body); }
@media (prefers-reduced-motion: reduce) { .cap:hover { transform: none; } }

/* ═══════════════ INDUSTRIES ═══════════════ */
.industries-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 640px)  { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }
.industry { background: var(--key); border-radius: var(--radius); padding: 1.9rem 1.7rem; border: 1px solid var(--hairline-dark); }
.industry h3 { margin-bottom: .8rem; }
.industry-missed { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); margin-bottom: .5rem; }
.industry p { font-size: .98rem; color: var(--on-dark-body); }

/* ═══════════════ PROOF ═══════════════ */
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; margin-bottom: 2.25rem; }
@media (min-width: 640px)  { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-item { background: var(--paper-raise); border: 1px solid var(--hairline-light); border-radius: var(--radius-sm); padding: 1.7rem 1.5rem; }
.proof-item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.proof-item p { font-size: .96rem; color: var(--on-light-body); }
.proof-honest { padding: 1.5rem 1.7rem; border-radius: var(--radius); background: var(--paper-raise); border: 1px dashed #C6C9CC; }
.proof-honest p { color: var(--on-light-body); max-width: 70ch; }
.proof-honest strong { color: var(--on-light-strong); }

/* ═══════════════ REACTIVATION + CALCULATOR ═══════════════ */
.react-intro { margin-bottom: 2.5rem; }
.calc-wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
@media (max-width: 900px) { .calc-wrap { grid-template-columns: 1fr; } }

.dbr-calculator {
  background: var(--key); border: 1px solid var(--hairline-dark);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.15rem);
  box-shadow: 0 18px 44px rgba(0,0,0,.4);
}
.dbr-calc-title { font-size: 1.3rem; margin-bottom: .4rem; }
.dbr-calc-sub { font-size: .95rem; color: var(--on-dark-muted); margin-bottom: 1.9rem; }

.dbr-calc-input { margin-bottom: 1.6rem; }
.dbr-calc-input label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .65rem; font-size: .95rem; color: var(--on-dark-body); }
.dbr-calc-value { font-weight: 700; font-size: 1.06rem; color: var(--lime); font-variant-numeric: tabular-nums; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: #26262A; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--lime); border-top: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 3px 0 var(--lime-deep), 0 4px 10px rgba(0,0,0,.45);
  transition: transform .12s ease, box-shadow .12s ease;
}
input[type="range"]::-webkit-slider-thumb:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lime-deep); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--lime); box-shadow: 0 3px 0 var(--lime-deep), 0 4px 10px rgba(0,0,0,.45); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #26262A; }
input[type="range"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { input[type="range"]::-webkit-slider-thumb { transition: none; } }

.dbr-calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius-sm); overflow: hidden; margin: 1.9rem 0 1.1rem; }
@media (max-width: 380px) { .dbr-calc-results { grid-template-columns: 1fr; } }
.dbr-calc-result { background: var(--ink); padding: 1.3rem 1.2rem; }
.dbr-calc-result-label { font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .5rem; }
.dbr-calc-result-value { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; color: var(--on-dark-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dbr-calc-result-headline .dbr-calc-result-value { color: var(--lime); }
.dbr-calc-disclaimer { font-size: .85rem; line-height: 1.55; color: var(--on-dark-muted); }

.dbr-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }
.dbr-guarantee { font-size: 1.05rem; color: var(--on-dark-body); margin-bottom: 1.1rem; }
.dbr-guarantee strong { color: var(--on-dark-strong); }
.react-note { color: var(--on-dark-body); margin-bottom: 1.1rem; max-width: 56ch; }
.faq-more { margin-top: 1.75rem; }

.cap-lead-aside { background: var(--paper); border-radius: var(--radius-sm); padding: 1.6rem 1.5rem; }
.cap-lead-aside-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .9rem; }
.cap-lead-channels { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.1rem; }
.cap-lead-channels li {
  font-size: .95rem; font-weight: 600; color: var(--on-light-strong);
  background: var(--paper-raise); border-radius: 8px; padding: .65rem .85rem;
  box-shadow: inset 0 0 0 1px var(--hairline-light), 0 2px 0 #E7E9EB;
}
.cap-lead-aside-note { font-size: .88rem; color: var(--on-light-body); }

/* Numbered steps on a light surface (/system/ "the four parts") */
.steps-light { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width: 700px)  { .steps-light { grid-template-columns: repeat(2, 1fr); } }
.step-light {
  background: var(--paper-raise); border: 1px solid var(--hairline-light);
  border-radius: var(--radius); padding: 1.9rem 1.75rem;
}
.step-light-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 34px; padding: 0 .6rem; margin-bottom: 1.1rem;
  border-radius: 8px; background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: .9rem; letter-spacing: .02em;
  box-shadow: 0 3px 0 var(--lime-deep); border-top: 1px solid rgba(255,255,255,.5);
}
.step-light h3 { margin-bottom: .65rem; }
.step-light p { color: var(--on-light-body); font-size: .98rem; margin-bottom: 1rem; }

/* "What it covers" row — replaces the removed unverified stats band */
.cover-row { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .cover-row { grid-template-columns: repeat(3, 1fr); } }
.cover-item { background: var(--ink); padding: 1.85rem 1.7rem; }
.cover-item-title { font-size: 1.1rem; margin-bottom: .55rem; color: var(--lime); }
.cover-item p { color: var(--on-dark-body); font-size: .97rem; }

/* ═══════════════ FOUNDER ═══════════════ */
.founder { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: clamp(1.5rem,3vw,2.5rem); align-items: start; }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }
.founder-photo { width: 168px; height: 168px; border-radius: var(--radius); object-fit: cover; box-shadow: 0 0 0 1px var(--hairline-light); }
.founder p { color: var(--on-light-body); margin-bottom: 1rem; }
.founder p:last-of-type { margin-bottom: 1.5rem; }
.founder strong { color: var(--on-light-strong); }

/* ═══════════════ FAQ ═══════════════ */
.faq-list { display: grid; gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); border-radius: var(--radius); overflow: hidden; }
.faq-row { background: var(--key); padding: 1.65rem 1.7rem; }
.faq-row h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.faq-row p { font-size: .98rem; color: var(--on-dark-body); max-width: 72ch; }

/* ═══════════════ FINAL CTA ═══════════════ */
.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p { margin: 0 auto 2rem; max-width: 56ch; font-size: 1.08rem; }
.final-cta .btn-row { justify-content: center; }
.final-cta-band { text-align: center; padding: var(--section-y) 0; background: var(--key); }
.final-cta-band h2 { margin-bottom: 1rem; }
.final-cta-band p { margin: 0 auto 2rem; max-width: 56ch; }

/* ═══════════════ FOOTER ═══════════════ */
.footer-strap { background: var(--lime); color: var(--ink); text-align: center; font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; padding: .95rem 1rem; }
.site-footer { background: #060606; border-top: 1px solid var(--hairline-dark); padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-inner { width: min(1180px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 480px) { .footer-inner { width: min(1180px, 100% - 2rem); } }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.35fr 1.35fr; gap: clamp(1.75rem,3vw,3rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-col > a { font-size: .93rem; color: var(--on-dark-muted); transition: color .18s ease; }
.footer-col > a:hover { color: var(--lime); }
.footer-col-title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-strong); margin-bottom: .5rem; }
.footer-logo { height: 36px; width: auto; aspect-ratio: 1876 / 295; margin-bottom: .55rem; }
.footer-text { font-size: .93rem; color: var(--on-dark-muted); max-width: 30ch; }
.footer-address { font-size: .9rem; color: var(--on-dark-muted); line-height: 1.75; font-style: normal; }
.footer-address a { color: var(--on-dark-body); }
.footer-address a:hover { color: var(--lime); }
.footer-socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.footer-socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 9px; color: var(--on-dark-muted);
  background: var(--key); box-shadow: inset 0 0 0 1px #232326;
  transition: color .18s ease, background-color .18s ease, transform .12s ease;
}
.footer-socials a:hover { color: var(--lime); background: #17171A; }
.footer-socials a:active { transform: translateY(1px); }
.footer-credit { width: min(1180px,100% - 3rem); margin: 3rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--hairline-dark); font-size: .85rem; color: var(--on-dark-muted); text-align: center; }

/* ═══════════════ COOKIE BANNER ═══════════════ */
#cookie-consent {
  position: fixed; inset: auto 0 0 0; z-index: 150;
  background: var(--key); border-top: 1px solid var(--hairline-dark);
  padding: 1.15rem 1rem; display: none;
  box-shadow: 0 -10px 30px rgba(0,0,0,.4);
}
.cookie-inner { width: min(1180px,100% - 2rem); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-inner p { font-size: .87rem; line-height: 1.55; color: var(--on-dark-body); max-width: 74ch; }
.cookie-inner p a { color: var(--lime); text-decoration: underline; }
.cookie-buttons { display: flex; gap: .65rem; flex-shrink: 0; }
.cookie-btn { padding: .7rem 1.15rem; border: 0; border-radius: 9px; font-weight: 650; font-size: .9rem; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.cookie-btn-reject { background: transparent; color: var(--on-dark-body); box-shadow: inset 0 0 0 1px #2E2E30; }
.cookie-btn-reject:hover { color: var(--on-dark-strong); box-shadow: inset 0 0 0 1px #45454A; }
.cookie-btn-accept { background: var(--lime); color: var(--ink); box-shadow: 0 3px 0 var(--lime-deep); border-top: 1px solid rgba(255,255,255,.5); }
.cookie-btn-accept:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--lime-deep); }
@media (max-width: 700px) { .cookie-buttons { width: 100%; } .cookie-btn { flex: 1; } }

/* ═══════════════ MOTION ═══════════════ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-rise { opacity: 0; transform: translateY(14px); animation: heroRise .72s cubic-bezier(.22,.61,.36,1) forwards; }
  .hero-rise-1 { animation-delay: .04s; }
  .hero-rise-2 { animation-delay: .13s; }
  .hero-rise-3 { animation-delay: .22s; }
  .hero-rise-4 { animation-delay: .31s; }
  .hero-rise-5 { animation-delay: .40s; }
}
@keyframes heroRise { to { opacity: 1; transform: none; } }

/* ═══════════════ LEGACY / NOT-YET-MIGRATED PAGE STYLES ═══════════════
   Service landing pages, About, FAQ and /system/ still use the v1 class
   names. These keep them coherent under the v2 palette until their markup
   is migrated. */

.keyline-frame { border-radius: var(--radius); overflow: hidden; }

.section-label { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--lime); margin-bottom: 1rem; }
.hero-label { color: var(--lime); }

.home-hero { padding: calc(var(--section-y) + 4.5rem) 0 var(--section-y); }
.home-hero-copy, .home-hero-video { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.home-hero-heading { margin-bottom: 1.25rem; }
.home-hero-sub { font-size: 1.15rem; max-width: 56ch; margin-bottom: 2rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); font-weight: 700;
  padding: 1.02rem 1.75rem; border-radius: 10px;
  box-shadow: var(--cap-lift); border-top: 1px solid rgba(255,255,255,.55);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hero-cta-btn:active { transform: translateY(3px); box-shadow: var(--cap-press); }

.system-flow { position: relative; }
.flow-spine, .flow-node, .flow-tracker { display: none; }

.service-stage { padding: var(--section-y) 0; border-bottom: 1px solid var(--hairline-dark); }
.service-stage-inner {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(2rem,4vw,3.5rem); align-items: center;
}
@media (max-width: 900px) { .service-stage-inner { grid-template-columns: 1fr; } }
.service-stage-copy h2 { margin-bottom: 1rem; }
.service-stage-copy p { margin-bottom: 1.1rem; color: var(--on-dark-body); max-width: 60ch; }
.service-stage-image-wrap { max-width: 480px; }
.service-stage-image { width: 100%; height: auto; border-radius: var(--radius); }
.service-stage-reverse .service-stage-image-wrap { order: -1; }
@media (max-width: 900px) { .service-stage-reverse .service-stage-image-wrap { order: 0; } }
.stage-more-link { margin-top: .5rem; }
.stage-more-link a { color: var(--lime); font-weight: 600; }

.cta-button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); font-weight: 650;
  padding: .95rem 1.6rem; border-radius: 10px; margin-top: .5rem;
  box-shadow: 0 4px 0 var(--lime-deep); border-top: 1px solid rgba(255,255,255,.5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--lime-deep); }
.cta-button-secondary { background: transparent; color: var(--on-dark-strong); box-shadow: inset 0 0 0 1px #2E2E30, 0 3px 0 #141416; }
.cta-button-secondary:hover { box-shadow: inset 0 0 0 1px var(--lime), 0 3px 0 #141416; color: var(--lime); }

.leak-band { padding: var(--section-y) 0; text-align: center; }
.leak-band-intro { font-size: 1.3rem; color: var(--on-dark-strong); margin-bottom: 2.5rem; }
.leak-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.leak-stat { display: flex; flex-direction: column; gap: .4rem; }
.stat-number { font-size: 2.6rem; font-weight: 800; color: var(--lime); }
.stat-label { font-size: .95rem; color: var(--on-dark-muted); max-width: 22ch; }

.dbr-calculator-wrap { width: min(1180px, 100% - 3rem); margin: var(--section-y) auto 0; }

.trust-strip { width: min(1180px, 100% - 3rem); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; padding: var(--section-y) 0; }
.trust-photo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; }
.trust-text { font-size: 1.08rem; color: var(--on-dark-body); max-width: 60ch; margin-bottom: .6rem; }
.trust-link { color: var(--lime); font-weight: 600; }

/* The About header carries a portrait alongside the copy. The landing-page /
   more-info header does not — giving it the same two-column grid squeezed the
   h1 into the 260px photo column. Keep them separate. */
.about-header, .more-info-header {
  width: min(1180px,100% - 3rem); margin-inline: auto;
  padding: calc(var(--section-y) + 4rem) 0 var(--section-y);
}
.about-header {
  display: grid; grid-template-columns: minmax(0,1fr) 260px;
  gap: clamp(2rem,4vw,3.5rem); align-items: center;
}
@media (max-width: 800px) { .about-header { grid-template-columns: 1fr; } }

.more-info-header h1 { margin-bottom: 1.25rem; max-width: 20ch; }
.more-info-header > p { color: var(--on-dark-body); max-width: 64ch; font-size: 1.08rem; }
.about-header-copy h1 { margin-bottom: 1.25rem; }
.about-header-copy p { color: var(--on-dark-body); max-width: 60ch; margin-bottom: 1rem; }
.about-photo { width: 100%; max-width: 260px; border-radius: var(--radius); }
.about-story, .about-principles, .about-close, .explainers, .faq-groups { width: min(1180px,100% - 3rem); margin-inline: auto; padding-bottom: var(--section-y); }
.about-story p, .about-close p { color: var(--on-dark-body); max-width: 68ch; margin-bottom: 1.1rem; }
.about-story h2, .about-principles h2, .about-close h2, .explainers h2, .faq-groups h2 { margin-bottom: 1.5rem; }
.about-principles { display: grid; gap: 1rem; }
.principle { background: var(--key); border-radius: var(--radius); padding: 1.6rem 1.5rem; border: 1px solid var(--hairline-dark); }
.principle-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--lime); margin-bottom: .5rem; }
.principle p { color: var(--on-dark-body); }
.about-close-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
/* Closing CTA band. Needs its own container — it sits directly under <main>
   on the landing pages, so without one it rendered full-bleed to x=0. */
.more-info-close {
  width: min(1180px, 100% - 3rem); margin-inline: auto;
  padding-bottom: var(--section-y);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
}
@media (max-width: 480px) { .more-info-close { width: min(1180px, 100% - 2rem); } }
.more-info-close p { font-size: 1.15rem; color: var(--on-dark-strong); max-width: 40ch; margin: 0; }

.explainer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); gap: 1.15rem; }
.explainer-block { background: var(--key); border: 1px solid var(--hairline-dark); border-radius: var(--radius); padding: 1.75rem 1.6rem; }
.explainer-block h3 { margin-bottom: .6rem; }
.explainer-block p { color: var(--on-dark-body); font-size: .98rem; margin-bottom: .8rem; }

.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { margin-bottom: 1.25rem; }
.faq-item { background: var(--key); border: 1px solid var(--hairline-dark); border-radius: var(--radius-sm); padding: 1.5rem 1.6rem; margin-bottom: .85rem; }
.faq-item h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.faq-item p { color: var(--on-dark-body); font-size: .98rem; max-width: 72ch; }

.blog-strip { width: min(1180px,100% - 3rem); margin-inline: auto; padding-bottom: var(--section-y); }
.blog-strip h2 { margin-bottom: 1.5rem; }
.blog-strip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,270px),1fr)); gap: 1.15rem; }
.blog-strip-card { background: var(--key); border: 1px solid var(--hairline-dark); border-radius: var(--radius); padding: 1.6rem 1.5rem; transition: border-color .2s ease, transform .2s ease; }
.blog-strip-card:hover { border-color: #2E2E30; transform: translateY(-2px); }
.blog-strip-date { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.blog-strip-card h3 { margin: .5rem 0 .5rem; font-size: 1.08rem; }
.blog-strip-card p { font-size: .95rem; color: var(--on-dark-body); }
.blog-strip-link { display: inline-block; margin-top: 1.25rem; color: var(--lime); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .blog-strip-card:hover { transform: none; } }

.legal-page { width: min(820px,100% - 3rem); margin-inline: auto; padding: calc(var(--section-y) + 4rem) 0 var(--section-y); }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2.5rem 0 .9rem; }
.legal-page p, .legal-page li { color: var(--on-dark-body); margin-bottom: .9rem; }
.legal-page ul, .legal-page ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.legal-page a { color: var(--lime); text-decoration: underline; }
.legal-date { font-size: .9rem; color: var(--on-dark-muted); margin-bottom: 2rem; }
.legal-back { display: inline-block; margin-top: 2.5rem; color: var(--lime); font-weight: 600; }
.cookie-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .93rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--hairline-dark); color: var(--on-dark-body); }
.cookie-table th { color: var(--on-dark-strong); font-weight: 650; }
