/* ============================================================
   Salvis AI | salvisai.com
   Theme: single dark page, deep navy + brass amber (default: ink)
   Alternates (preview with ?theme=...):
     paper:    warm off-white + ink navy + dashboard blue (light)
     clay:     blue-gray near-black + terracotta
     cobalt:   deep ink blue + cobalt
     forest:   deep green + bone + amber
     graphite: warm near-black + ember
   Type: Bricolage Grotesque (display) + Instrument Sans (body)
   Shape rule: buttons are pills, cards are 18px, inputs are 10px
   ============================================================ */

:root,
[data-theme="cobalt"] {
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 32px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 4px 12px rgba(0, 0, 0, 0.35), 0 32px 80px rgba(0, 0, 0, 0.5);
  --bg0: #070d18;          /* page base */
  --bg1: #0a1220;          /* section base */
  --raised: #0f1a2e;       /* raised section tint */
  --panel: #142138;        /* cards & panels */
  --text: #e9edf5;
  --dim: rgba(233, 237, 245, 0.64);
  --faint: rgba(233, 237, 245, 0.55);
  --line: rgba(233, 237, 245, 0.10);
  --line-strong: rgba(233, 237, 245, 0.18);
  --accent: #5b9dff;       /* cobalt */
  --accent-hi: #7fb3ff;
  --on-accent: #06101f;
  --accent-soft: rgba(91, 157, 255, 0.13);
  --accent-line: rgba(91, 157, 255, 0.32);
  --pos: #59d3a2;          /* success mint */
  --pos-soft: rgba(89, 211, 162, 0.14);
  --stream: rgba(233, 237, 245, 0.18);
}

[data-theme="graphite"] {
  --bg0: #131211;          /* page base */
  --bg1: #161413;          /* section base */
  --raised: #1b1917;       /* raised section tint */
  --panel: #211e1b;        /* cards & panels */
  --text: #efeae2;
  --dim: rgba(239, 234, 226, 0.62);
  --faint: rgba(239, 234, 226, 0.55);
  --line: rgba(239, 234, 226, 0.10);
  --line-strong: rgba(239, 234, 226, 0.18);
  --accent: #f06a3d;       /* ember */
  --accent-hi: #ff8459;
  --on-accent: #230d05;
  --accent-soft: rgba(240, 106, 61, 0.12);
  --accent-line: rgba(240, 106, 61, 0.32);
  --pos: #7bcb9f;          /* success mint */
  --pos-soft: rgba(123, 203, 159, 0.14);
  --stream: rgba(239, 234, 226, 0.20);
}

[data-theme="clay"] {
  --bg0: #12151a;          /* blue-gray near-black */
  --bg1: #14181e;
  --raised: #1a1f27;
  --panel: #202631;
  --text: #eceef2;
  --dim: rgba(236, 238, 242, 0.63);
  --faint: rgba(236, 238, 242, 0.55);
  --line: rgba(236, 238, 242, 0.10);
  --line-strong: rgba(236, 238, 242, 0.18);
  --accent: #e8745a;       /* terracotta */
  --accent-hi: #ff8f73;
  --on-accent: #26100a;
  --accent-soft: rgba(232, 116, 90, 0.12);
  --accent-line: rgba(232, 116, 90, 0.32);
  --pos: #6fcf9f;
  --pos-soft: rgba(111, 207, 159, 0.14);
  --stream: rgba(236, 238, 242, 0.18);
}

[data-theme="paper"] {
  --bg0: #f7f5f0;          /* warm paper */
  --bg1: #f1eee7;
  --raised: #ebe7dd;
  --panel: #ffffff;
  --text: #1b2233;         /* ink navy */
  --dim: rgba(27, 34, 51, 0.66);
  --faint: rgba(27, 34, 51, 0.52);
  --line: rgba(27, 34, 51, 0.12);
  --line-strong: rgba(27, 34, 51, 0.22);
  --accent: #2c5fe0;       /* dashboard blue, deepened for contrast on light */
  --accent-hi: #2452c4;    /* hover darkens on light */
  --on-accent: #ffffff;
  --accent-soft: rgba(44, 95, 224, 0.10);
  --accent-line: rgba(44, 95, 224, 0.30);
  --pos: #158a5c;
  --pos-soft: rgba(21, 138, 92, 0.12);
  --stream: rgba(27, 34, 51, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 24px rgba(27, 34, 51, 0.08);
  --shadow-deep: 0 4px 12px rgba(27, 34, 51, 0.10), 0 28px 60px rgba(27, 34, 51, 0.18);
}

/* paper (light) needs the white-glass surfaces re-tinted to ink */
[data-theme="paper"] .site-nav { background: rgba(27, 34, 51, 0.04); }
[data-theme="paper"] .nav-pill { background: rgba(27, 34, 51, 0.08); }
[data-theme="paper"] .btn-ghost:hover { background: rgba(27, 34, 51, 0.05); }
[data-theme="paper"] .modal-close { background: rgba(27, 34, 51, 0.08); }
[data-theme="paper"] .modal-close:hover { background: rgba(27, 34, 51, 0.16); }
[data-theme="paper"] .point-icon {
  background: rgba(27, 34, 51, 0.05);
  border-color: rgba(27, 34, 51, 0.12);
  color: var(--accent);
}
[data-theme="paper"] .modal-form-side {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(27, 34, 51, 0.10);
}
[data-theme="paper"] .btn-primary {
  box-shadow: 0 2px 8px rgba(27, 34, 51, 0.14), 0 8px 28px var(--accent-soft);
}

[data-theme="forest"] {
  --bg0: #0b1310;          /* page base */
  --bg1: #0e1713;          /* section base */
  --raised: #121d17;       /* raised section tint */
  --panel: #17251e;        /* cards & panels */
  --text: #ece7da;         /* bone */
  --dim: rgba(236, 231, 218, 0.62);
  --faint: rgba(236, 231, 218, 0.55);
  --line: rgba(236, 231, 218, 0.10);
  --line-strong: rgba(236, 231, 218, 0.18);
  --accent: #f0b441;       /* work-light amber */
  --accent-hi: #ffc75e;
  --on-accent: #201607;
  --accent-soft: rgba(240, 180, 65, 0.12);
  --accent-line: rgba(240, 180, 65, 0.30);
  --pos: #74cd9c;          /* success mint */
  --pos-soft: rgba(116, 205, 156, 0.14);
  --stream: rgba(236, 231, 218, 0.20);
}

[data-theme="ink"] {
  --bg0: #0a101d;          /* page base: deep navy + brass amber */
  --bg1: #0d1524;
  --raised: #122036;
  --panel: #16263f;
  --text: #eceef4;
  --dim: rgba(236, 238, 244, 0.64);
  --faint: rgba(236, 238, 244, 0.55);
  --line: rgba(236, 238, 244, 0.10);
  --line-strong: rgba(236, 238, 244, 0.18);
  --accent: #f2b13e;       /* brass amber */
  --accent-hi: #ffc95e;
  --on-accent: #221503;
  --accent-soft: rgba(242, 177, 62, 0.12);
  --accent-line: rgba(242, 177, 62, 0.34);
  --pos: #59d3a2;
  --pos-soft: rgba(89, 211, 162, 0.14);
  --stream: rgba(236, 238, 244, 0.18);
}

:root {
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-card: 18px;
  --r-input: 10px;
  --wrap: 1160px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* browser scroll-anchoring fights the scrubbed hero transforms and can
     strand the page a few px shy of the top; anchoring off fixes it */
  overflow-anchor: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.wrap-narrow { max-width: 800px; }
.wrap-mid { max-width: 960px; }

/* reveal defaults: visible without JS, hidden only when JS will animate */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js.reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  padding-block: 14px;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(9, 13, 11, 0.86); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg0) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.header-inner { display: flex; align-items: center; gap: 28px; }
.brand {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.brand-dot { color: var(--accent); }
/* pill nav with sliding hover highlight (nav-header pattern) */
.site-nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
}
.nav-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  opacity: 0;
  pointer-events: none;
}
.site-nav a {
  position: relative;
  color: var(--dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
}

/* ============================================================
   BUTTONS  (pill)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 8px 28px var(--accent-soft);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 14px 36px var(--accent-soft);
}
.btn-arrow {
  display: inline-flex;
  width: 17px; height: 17px;
  transition: transform 0.2s ease;
}
.btn-arrow svg { width: 100%; height: 100%; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--faint);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-lg { padding: 18px 32px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(40px, 6vh, 72px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
#streams { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  right: -240px; top: -300px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 62%);
  filter: blur(40px);
}

.hero-center {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 17em;
}
.hero h1 .w { display: inline-block; }
.lede {
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--dim);
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* --- hero media: the custom CRM dashboard (3D tilt flattens on scroll) --- */
.hero-media-wrap {
  position: relative;
  margin-top: clamp(40px, 6vh, 68px);
  perspective: 1400px;
}
.hero-media {
  margin: 0;
  transform-style: preserve-3d;
  background: var(--panel);
  border: 3px solid var(--line-strong);
  border-radius: 26px;
  padding: 10px 10px 0;
  /* aceternity container-scroll layered shadow */
  box-shadow:
    0 9px 20px rgba(0, 0, 0, 0.29),
    0 37px 37px rgba(0, 0, 0, 0.26),
    0 84px 50px rgba(0, 0, 0, 0.15),
    0 149px 60px rgba(0, 0, 0, 0.04),
    0 0 90px var(--accent-soft);
}
.browser-chrome {
  display: flex;
  gap: 6px;
  padding: 5px 8px 11px;
}
.browser-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-card) - 8px) calc(var(--r-card) - 8px) 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
}
.media-caption {
  padding: 13px 6px 14px;
  font-size: 13.5px;
  color: var(--faint);
  text-align: center;
}
.status-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pos);
  background: var(--pos-soft);
  border: 1px solid rgba(116, 205, 156, 0.32); /* fallback for browsers without color-mix */
  border: 1px solid color-mix(in srgb, var(--pos) 32%, transparent);
  padding: 8px 14px;
  border-radius: 999px;
}
.status-chip svg { width: 13px; height: 13px; }

/* --- trust strip --- */
.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: clamp(44px, 6vh, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 13.5px;
  color: var(--dim);
  line-height: 1.4;
  display: block;
  max-width: 13em;
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat { text-align: center; }
  .stat-label { margin-inline: auto; }
}

/* ============================================================
   SECTIONS (one dark theme, tint steps only)
   ============================================================ */
.section { position: relative; padding-block: clamp(76px, 11vh, 130px); background: var(--bg1); }
.section-raised { background: var(--raised); }
.section-deep { background: var(--bg0); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 22em;
}
.section-lede {
  font-size: clamp(16px, 1.45vw, 18.5px);
  color: var(--dim);
  max-width: 40em;
  margin-bottom: clamp(38px, 5vh, 56px);
}

/* ============================================================
   THE LEAKS
   ============================================================ */
.leak-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(28px, 4vh, 40px);
}
.leak-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.leak-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.leak-card .cell-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 16px;
}
.leak-card .cell-icon svg { width: 21px; height: 21px; }
.leak-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 8px;
}
.leak-card p { font-size: 14.5px; color: var(--dim); }
@media (max-width: 1020px) {
  .leak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .leak-grid { grid-template-columns: 1fr; }
}
.leak-note {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--dim);
  max-width: 46em;
}
.leak-note strong { color: var(--text); }

/* ============================================================
   THE MATH (stats band + leak calculator)
   ============================================================ */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(44px, 6vh, 64px);
}
.fact {
  border-top: 2px solid var(--accent-line);
  padding-top: 20px;
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.fact-label {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.5;
  max-width: 20em;
  margin-bottom: 8px;
}
.fact-label strong { color: var(--accent-hi); }
.fact-src { font-size: 12.5px; color: var(--faint); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; gap: 26px; }
}

.calc {
  background:
    radial-gradient(130% 120% at 88% 0%, var(--accent-soft) 0%, transparent 52%),
    var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-card);
}
.calc-head h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.calc-head p { color: var(--dim); font-size: 15.5px; max-width: 44em; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(26px, 3.5vh, 38px);
  align-items: center;
}
.calc-controls { display: grid; gap: 30px; }
.calc-slider { display: grid; gap: 14px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dim);
}
.calc-label output {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line-strong) var(--fill, 50%));
  outline: none;
  cursor: pointer;
}
.calc-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-hi);
  border: 4px solid var(--bg0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-line);
  transition: transform 0.15s ease;
}
.calc-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-slider input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-hi);
  border: 4px solid var(--bg0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-line);
}
.calc-slider input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.calc-slider input[type="range"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.calc-results { text-align: center; }
.calc-year-label { font-size: 15px; color: var(--dim); margin-bottom: 2px; }
.calc-year-num {
  font-family: var(--font-display);
  /* floor sized so the max slider output ($3,647,592) fits a 320px screen */
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.calc-year-unit { font-size: 0.42em; font-weight: 600; color: var(--dim); margin-left: 4px; }
.calc-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}
.calc-card {
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg0) 50%, transparent);
}
.calc-card .calc-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.calc-card .calc-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calc-card .calc-num em { font-style: normal; font-size: 0.55em; font-weight: 600; color: var(--dim); }
.calc-card .calc-note { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.calc-without { border-color: rgba(238, 93, 108, 0.4); }
.calc-without .calc-num { color: #f2788a; }
.calc-with {
  border-color: rgba(89, 211, 162, 0.35); /* fallback for browsers without color-mix */
  border-color: color-mix(in srgb, var(--pos) 35%, transparent);
}
.calc-with .calc-num { color: var(--pos); }
.calc-fine {
  margin-top: clamp(22px, 3vh, 30px);
  max-width: 62em;
}
.calc-fine > summary {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.calc-fine > summary::-webkit-details-marker { display: none; }
.calc-fine > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex: none;
}
.calc-fine[open] > summary::before { transform: rotate(45deg); }
.calc-fine > summary:hover { color: var(--text); }
.calc-fine > p {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.6;
}
/* two lanes inside the calculator: money, then the operation (hours) */
.meter + .meter {
  margin-top: clamp(30px, 4.5vh, 48px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}
.meter-lane {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dim);
}
.meter .calc-grid { margin-top: clamp(20px, 2.6vh, 28px); }
.calc-sub {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--dim);
  line-height: 1.5;
  max-width: 30em;
}
.calc-results { margin-inline: auto; }
.meter[data-lane="ops"] .calc-year-num { color: var(--pos); }
.meter[data-lane="ops"] .calc-sub b,
.meter[data-lane="ops"] .calc-sub span { color: var(--text); }
/* the operation lane reads green to match its audit lane + the pos accent */
.meter[data-lane="ops"] .calc-slider input[type="range"] {
  background: linear-gradient(90deg, var(--pos) var(--fill, 50%), var(--line-strong) var(--fill, 50%));
}
.meter[data-lane="ops"] .calc-slider input[type="range"]::-webkit-slider-thumb {
  background: var(--pos);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--pos-soft);
}
.meter[data-lane="ops"] .calc-slider input[type="range"]::-moz-range-thumb {
  background: var(--pos);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--pos-soft);
}
.meter[data-lane="ops"] .calc-slider input[type="range"]:focus-visible {
  outline-color: var(--pos);
}
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-results { text-align: left; }
  .calc-vs { text-align: left; }
}
@media (max-width: 480px) {
  .calc-vs { grid-template-columns: 1fr; }
}

/* ============================================================
   AUDIT (one mixed board, two color-coded lanes)
   ============================================================ */
.audit-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dim);
  border: 1px solid var(--line);
  background: var(--panel); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  padding: 9px 16px;
  border-radius: 999px;
}
.lane-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lane-dot-money { background: var(--accent); box-shadow: 0 0 10px var(--accent-soft); }
.lane-dot-ops { background: var(--pos); box-shadow: 0 0 10px var(--pos-soft); }
.audit-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.audit-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--panel); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  transition: border-color 0.3s ease, background 0.3s ease;
}
/* lane marker: a colored tab on the cell's left edge */
.audit-cell::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 999px;
  transition: height 0.35s ease;
}
.audit-cell[data-lane="money"]::before { background: var(--accent); }
.audit-cell[data-lane="ops"]::before { background: var(--pos); }
.audit-cell.lit::before { height: 60%; }
.audit-cell.lit { background: var(--panel); }
.audit-cell[data-lane="money"].lit { border-color: var(--accent-line); }
.audit-cell[data-lane="ops"].lit {
  border-color: rgba(89, 211, 162, 0.32); /* fallback for browsers without color-mix */
  border-color: color-mix(in srgb, var(--pos) 32%, transparent);
}
.audit-cell[data-lane="money"].lit .cell-icon { color: var(--accent); }
.audit-cell[data-lane="ops"].lit .cell-icon { color: var(--pos); }
.cell-icon {
  display: inline-flex;
  width: 21px; height: 21px;
  color: var(--faint);
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.cell-icon svg { width: 100%; height: 100%; }
@media (max-width: 1020px) {
  .audit-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .audit-board { grid-template-columns: 1fr; }
}

.audit-deliverable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-soft), transparent 65%);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 40px);
}
.audit-deliverable h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  margin-bottom: 10px;
}
.audit-deliverable p { color: var(--dim); max-width: 44em; font-size: 15.5px; }
.audit-deliverable .btn { flex-shrink: 0; }

/* ============================================================
   BENTO (what we build)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.bento-cell {
  grid-column: span 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.bento-cell:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bento-wide { grid-column: span 2; }
.bento-tint {
  background:
    radial-gradient(120% 140% at 12% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--panel);
  border-color: var(--accent-line);
}
/* kokonutd bento: icon in a rounded tile */
.bento-cell .cell-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 18px;
}
.bento-cell .cell-icon svg { width: 23px; height: 23px; }
.bento-cell:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 22px 48px rgba(0, 0, 0, 0.45);
}
.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 10px;
}
.bento-cell p { font-size: 14.5px; color: var(--dim); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-list li {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 12px;
  border-radius: 999px;
}
.bento-media-cell .cell-shot {
  margin-top: 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: left top;
}

/* ============================================================
   EASE (you don't run it) — efficiency + ease-of-use band
   ============================================================ */
.ease .section-lede { margin-bottom: clamp(30px, 4.5vh, 48px); }
.ease-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.ease-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.ease-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.ease-card .cell-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--pos-soft);
  border: 1px solid var(--pos-soft);
  color: var(--pos);
  margin-bottom: 16px;
}
.ease-card .cell-icon svg { width: 22px; height: 22px; }
.ease-card h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 650;
  line-height: 1.25;
  margin-bottom: 9px;
}
.ease-card p { font-size: 14px; color: var(--dim); line-height: 1.5; }
@media (max-width: 900px) {
  .ease-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .ease-grid { grid-template-columns: 1fr; }
}

/* "also on the shelf" workflow ideas */
.shelf {
  margin-top: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: clamp(24px, 3.5vw, 36px);
}
.shelf h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 16px;
}
.shelf-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.shelf-chips li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 999px;
}
.shelf-note { color: var(--dim); font-size: 15.5px; max-width: 50em; }
@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ============================================================
   TIMELINE (how it works)
   ============================================================ */
.timeline { position: relative; display: flex; gap: clamp(24px, 4vw, 48px); }
.timeline-track {
  position: relative;
  width: 3px;
  border-radius: 999px;
  background: var(--line);
  flex-shrink: 0;
  margin-top: 8px;
}
.timeline-beam {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--pos));
  transform-origin: top;
}
.js .timeline-beam { transform: scaleY(0); }
.js.reduced-motion .timeline-beam { transform: scaleY(1); }
.timeline-steps { display: grid; gap: clamp(36px, 6vh, 60px); }
.tstep { position: relative; max-width: 36em; }
/* modern-timeline: icon circle markers sitting on the track */
.tstep-marker {
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 48px) - 1.5px - 23px);
  top: 4px;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--raised);
  border: 2px solid var(--line-strong);
  color: var(--faint);
  z-index: 1;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, transform 0.2s ease;
}
.tstep-marker svg { width: 21px; height: 21px; }
.tstep:hover .tstep-marker { transform: scale(1.06); }
.tstep.active .tstep-marker {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--panel);
}
.tstep-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s ease;
}
.tstep.active .tstep-body { border-color: var(--accent-line); }
.tstep-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.tstep h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 650;
  margin-bottom: 10px;
}
.tstep p { color: var(--dim); font-size: 15.5px; }
@media (max-width: 560px) {
  .tstep-marker { display: none; }
}

/* ============================================================
   WHO (marquee)
   ============================================================ */
#who .section-title { margin-bottom: clamp(34px, 5vh, 52px); }
.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-block: 8px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-bottom: clamp(30px, 4vh, 44px);
}
.marquee::-webkit-scrollbar { display: none; }
/* drifts on its own; pause under the pointer so it can be read or swiped */
.marquee:hover .marquee-track,
.marquee:active .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.reduced-motion .marquee-track { animation: none; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
}
.who-note {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--dim);
  max-width: 44em;
}
.who-note strong { color: var(--text); }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: center;
}
.founder-photo {
  margin: 0;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card), 0 0 70px var(--accent-soft);
}
.founder-photo img { width: 100%; height: auto; }
@media (max-width: 760px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 320px; }
}
.founder-lead {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.founder > p:not(.founder-lead):not(.founder-sig) {
  color: var(--dim);
  font-size: clamp(16px, 1.5vw, 18px);
  margin-bottom: 18px;
  max-width: 44em;
}
.founder-sig {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-top: 30px;
  line-height: 1.4;
}
.founder-sig span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dim);
}
.founder-sig a { color: var(--accent); text-decoration: none; }
.founder-sig a:hover { text-decoration: underline; }

/* ============================================================
   FINAL CTA + FORM
   ============================================================ */
.section-cta { text-align: center; background: var(--bg0); overflow: hidden; }
.cta-glow {
  position: absolute;
  width: 1100px; height: 700px;
  left: 50%; top: -260px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.section-cta .section-lede { margin-inline: auto; }
.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.cta-title em { color: var(--accent); }

.audit-form {
  position: relative;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-card);
}
.hidden-field { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.form-field .optional { color: var(--faint); font-weight: 500; }
.form-field input,
.form-field select {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder { color: var(--faint); }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 13px; color: var(--faint); text-align: center; }
.alt-contact { position: relative; margin-top: 26px; font-size: 15px; color: var(--dim); }
.alt-contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
}
.alt-contact a:hover { border-bottom-color: var(--accent); }

/* ============================================================
   FOOTER (rising rounded sheet)
   ============================================================ */
.site-footer {
  background: var(--bg0);
  color: var(--dim);
  padding-top: clamp(24px, 4vh, 44px);
}
.footer-sheet {
  background: var(--raised);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  padding: clamp(36px, 5vh, 56px) clamp(24px, 4vw, 48px) 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-tag {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--dim);
  line-height: 1.5;
}
.footer-tag span {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--faint);
}
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-contact a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
  justify-self: start;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 20px;
  font-size: 13px;
  color: var(--faint);
  margin-inline: calc(-1 * clamp(24px, 4vw, 48px));
  padding-inline: clamp(24px, 4vw, 48px);
}
.footer-legal a { color: var(--faint); text-decoration: none; }
.footer-legal a:hover { color: var(--text); }
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   AUDIT MODAL (expands from the CTA button)
   ============================================================ */
.audit-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 2vw, 24px);
}
.audit-modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(760px, 100%);
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--accent-line);
  background: var(--raised);
  box-shadow: var(--shadow-deep);
  will-change: transform;
}
/* mesh-gradient feel, CSS only */
.modal-mesh {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  /* fallback for browsers without color-mix (renders the cobalt mesh) */
  background:
    radial-gradient(42% 55% at 22% 24%, rgba(91, 157, 255, 0.34) 0%, transparent 70%),
    radial-gradient(50% 62% at 82% 12%, rgba(60, 90, 200, 0.30) 0%, transparent 70%),
    radial-gradient(55% 60% at 68% 88%, rgba(30, 58, 138, 0.42) 0%, transparent 70%),
    radial-gradient(40% 48% at 8% 84%, rgba(91, 157, 255, 0.16) 0%, transparent 70%);
  /* theme-aware mesh: all four blobs derive from the accent */
  background:
    radial-gradient(42% 55% at 22% 24%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 70%),
    radial-gradient(50% 62% at 82% 12%, color-mix(in srgb, var(--accent-hi) 26%, transparent) 0%, transparent 70%),
    radial-gradient(55% 60% at 68% 88%, color-mix(in srgb, color-mix(in srgb, var(--accent) 55%, black) 46%, transparent) 0%, transparent 70%),
    radial-gradient(40% 48% at 8% 84%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%);
  animation: meshdrift 16s ease-in-out infinite alternate;
}
@keyframes meshdrift {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to { transform: translate(3%, -4%) rotate(4deg) scale(1.08); }
}
.reduced-motion .modal-mesh { animation: none; }
.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.20); }
.modal-close svg { width: 18px; height: 18px; }
.modal-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  height: 100%;
  padding: clamp(24px, 4vw, 48px);
  overflow-y: auto;
  align-items: center;
  /* "safe" keeps the top reachable when the form is taller than the panel */
  align-items: safe center;
}
.modal-info h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.modal-sub { color: var(--dim); font-size: 16.5px; margin-bottom: 30px; }
.modal-points { display: grid; gap: 20px; }
.modal-points li { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-hi);
}
.point-icon svg { width: 20px; height: 20px; }
.modal-points strong { display: block; font-size: 16px; margin-bottom: 2px; }
.modal-points li div span { font-size: 14px; color: var(--dim); line-height: 1.5; }
.modal-form-side {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.5vw, 32px);
  backdrop-filter: blur(10px);
}
.modal-form { display: grid; gap: 12px; }
.modal-form .form-row { gap: 12px; }
.modal-form .form-field { gap: 5px; }
.modal-form .form-field input,
.modal-form .form-field select {
  background: rgba(0, 0, 0, 0.4); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg0) 65%, transparent);
  padding: 11px 14px;
  font-size: 15px;
}
.modal-success { text-align: center; padding: 20px 6px; }
.success-badge {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--pos);
  color: #06281a;
  margin-bottom: 20px;
  box-shadow: 0 10px 32px var(--pos-soft);
}
.success-badge svg { width: 30px; height: 30px; }
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-success p { color: var(--dim); font-size: 15px; margin-bottom: 24px; }
@media (max-width: 900px) {
  .audit-modal { padding: 0; }
  .modal-panel { border-radius: 0; max-height: none; border: none; }
  .modal-grid { grid-template-columns: 1fr; align-items: start; padding-top: 72px; }
  .modal-info h2 { font-size: 30px; }
  .modal-points { display: none; }
}

/* ============================================================
   LEGAL PAGE (privacy)
   ============================================================ */
.legal-main {
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  padding: clamp(40px, 8vh, 90px) 20px;
}
.legal-card {
  max-width: 680px;
  margin-inline: auto;
}
.legal-back {
  display: inline-block;
  color: var(--dim);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 34px;
}
.legal-back:hover { color: var(--text); }
.legal-card h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}
.legal-updated { font-size: 13.5px; color: var(--faint); margin-bottom: 30px; }
.legal-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  margin-top: 34px;
  margin-bottom: 10px;
}
.legal-card p { color: var(--dim); font-size: 15.5px; margin-bottom: 14px; }
.legal-card a { color: var(--accent); }

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-main {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  text-align: center;
  padding: 40px 20px;
}
.thanks-card { max-width: 560px; }
.thanks-card .status-chip { margin-bottom: 28px; font-size: 14px; }
.thanks-card h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
}
.thanks-card p { color: var(--dim); margin-bottom: 30px; }

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
