/* =============================================================================
   ZeroSettle v4 — "Calm infrastructure for ambitious revenue teams"
   Evolution layer over the zs26 system (css/redesign.css). Loaded LAST so it
   wins on source order. Scoped under .zs26 to match existing specificity.

   Adds: v4 tokens, bigger grotesk type, ink-primary CTAs + green accents,
   refined floating-glass nav, environmental-image system, ordered-dither
   surfaces (paired with js/dither.js), scroll reveals + parallax (js/motion.js),
   floating scroll cue, Autopilot live matrix, 3x2 dither-hover outcome grid,
   and intentional ultra-wide (>1920px) behavior. Full light + dark support.
   Honors prefers-reduced-motion throughout.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens --- */
.zs26 {
  /* warm paper canvas (v4) */
  --canvas: #F7F7F4;
  --paper-2: #EFEFEB;

  /* greens — v4 vocabulary (brand-green as lume accent, deep for text/hover) */
  --brand-green: #1FBA78;
  --green-mineral: #6D9A78;
  --green-deep-v4: #2E5B3C;

  /* dither / expressive spectral hints (used inside fields + hovers only) */
  --d-blue: #B9D8FF;
  --d-peach: #F6C6B4;
  --d-pink: #F3A7DC;
  --d-violet: #B8A9F4;
  --d-yellow: #F5E991;

  /* v4 glass (formalised) */
  --glass-blur: 20px;
  --glass-sat: 150%;
  --glass-v4: rgba(255, 255, 255, .72);
  --glass-v4-bd: rgba(16, 18, 16, .08);

  /* v4 shape + rhythm */
  --r-v4: clamp(18px, 1.35vw, 30px);
  --r-v4-sm: clamp(13px, .85vw, 20px);
  --gutter-v4: clamp(20px, 3.4vw, 96px);
  --section-v4: clamp(88px, 9vw, 200px);

  /* motion */
  --ease-v4: cubic-bezier(.22, 1, .36, 1);
  --dur-rev: 720ms;

  /* content maxima (ultra-wide aware) */
  --maxw-v4: 1240px;      /* readable content */
  --maxw-v4-wide: 1520px; /* wide product surfaces */
  --maxw-v4-atmos: 2400px; /* atmospheric / image fields */
  --measure: 46rem;       /* body copy line length */
}
[data-theme="dark"] .zs26 {
  --canvas: #0A0B0A;
  --paper-2: #131513;
  --green-mineral: #7FB08C;
  --green-deep-v4: #4E8A63;
  --glass-v4: rgba(20, 22, 20, .60);
  --glass-v4-bd: rgba(255, 255, 255, .10);
}

/* ------------------------------------------------------------- container --- */
.zs26 .v4-shell {
  width: min(100% - (var(--gutter-v4) * 2), var(--maxw-v4-wide));
  margin-inline: auto;
}
.zs26 .v4-shell.is-readable { max-width: var(--maxw-v4); }
.zs26 .v4-shell.is-atmos {
  width: min(100% - (var(--gutter-v4) * 2), var(--maxw-v4-atmos));
}
.zs26 .v4-section { padding-block: var(--section-v4); }

/* --------------------------------------------------------------- type ------ */
/* Larger, calmer grotesk headlines. Keeps Söhne (already loaded). */
.zs26 .v4-display {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 600;
  text-wrap: balance;
}
.zs26 .v4-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.028em;
  font-weight: 600;
  text-wrap: balance;
}
.zs26 .v4-lede {
  margin: 0;
  max-width: var(--measure);
  font-size: clamp(1.12rem, 1.35vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -.014em;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
.zs26 .v4-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: clamp(12px, .74vw, 14px);
  line-height: 1;
  font-weight: 560;
  letter-spacing: -.005em;
  font-family: var(--font);
  text-transform: none;
}
.zs26 .v4-kicker .dot { position: relative; top: -0.5px; }
.zs26 .v4-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-green) 22%, transparent);
}

/* text link with a nudging arrow — "Learn more →" */
.zs26 .v4-learnmore {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-weight: 560; font-size: clamp(.95rem, 1vw, 1.05rem); letter-spacing: -.01em;
  color: var(--green-deep-v4); text-decoration: none;
  transition: gap .3s var(--ease-v4), color .3s var(--ease-v4);
}
.zs26 .v4-learnmore:hover { gap: 11px; color: var(--brand-green); }
[data-theme="dark"] .zs26 .v4-learnmore { color: var(--green-mineral); }
[data-theme="dark"] .zs26 .v4-learnmore:hover { color: var(--brand-green); }

/* ------------------------------------------------------------- buttons ----- */
/* v4: ink-primary CTA with green-deep hover (fixes green-on-white contrast). */
.zs26 .btn.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  border-color: transparent;
  box-shadow: var(--e2);
}
.zs26 .btn.btn-primary:hover {
  background: var(--green-deep-v4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--e3);
}
[data-theme="dark"] .zs26 .btn.btn-primary {
  background: var(--ink);
  color: #06140D;
}
[data-theme="dark"] .zs26 .btn.btn-primary:hover { color: #fff; }
.zs26 .btn.btn-secondary {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-color: var(--hairline-2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.zs26 .btn.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ------------------------------------------ shared body-class uplift (v4) -- */
/* Reconcile the two legacy eyebrow variants (subpage ALL-CAPS green vs homepage
   mono kicker) into one calm kicker pill, site-wide. */
.zs26 .eyebrow {
  /* block-level flex + auto margins => centers inside .section-center heroes
     (which center the block, not the text); .hero-split overrides margin to keep it left */
  display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content;
  margin-inline: auto;
  min-height: 34px; padding: 0 15px; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--hairline);
  color: var(--ink-2); font-family: var(--font); font-size: clamp(12px, .74vw, 13.5px);
  line-height: 1; font-weight: 560; letter-spacing: -.005em; text-transform: none;
}
[data-theme="dark"] .zs26 .eyebrow { background: var(--surface-2); }
.zs26 .eyebrow .ve-idx { color: var(--brand-green); font-weight: 640; font-variant-numeric: tabular-nums; margin-right: 2px; }

/* Subpage hero titles + section titles scale into the v4 register (capped, comfortable). */
.zs26 .section-lead .hero-title, .zs26 .hero-title {
  font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 600;
}
.zs26 .section-title { letter-spacing: -.026em; }
/* subpage hero headers center via margin-auto, not text-align — set it so the
   inline-flex kicker/eyebrow centers with the title */
.zs26 .section-lead .section-center { text-align: center; }

/* Ultra-wide comfort for standard content containers (kept readable, not stretched). */
@media (min-width: 2200px) { .zs26 .container { max-width: 1560px; } }
@media (min-width: 3400px) { .zs26 .container { max-width: 1840px; } }

/* --------------------------------------------------- floating glass nav ---- */
/* Evolve the existing .nav-inner pill: warmer translucency, hairline, blur. */
.zs26 .nav-inner {
  background: var(--glass-v4);
  border-color: var(--glass-v4-bd);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: 0 10px 42px rgba(18, 25, 20, .07);
  max-width: var(--maxw-v4-wide);
}
.zs26 .nav-solid .nav-inner { box-shadow: 0 14px 52px rgba(18, 25, 20, .12); }
.zs26 .nav-dropdown-trigger, .zs26 .nav-links > a { letter-spacing: -.006em; }

/* --------------------------------------------------------- glass surface --- */
.zs26 .v4-glass {
  background: var(--glass-v4);
  border: 1px solid var(--glass-v4-bd);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--r-v4);
  box-shadow: var(--e2);
}
/* dark glass overlay used over photography */
.zs26 .v4-glass-dark {
  background: linear-gradient(180deg, rgba(14, 20, 16, .5), rgba(14, 20, 16, .74));
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-radius: var(--r-v4);
  color: #fff;
}

/* ------------------------------------------------- ordered-dither field ---- */
/* Canvas is drawn by js/dither.js; CSS positions + masks it. */
.zs26 .zs-dither {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}
.zs26 .v4-dither-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  -webkit-mask-image: radial-gradient(155% 145% at 50% 58%, #000 34%, transparent 100%);
          mask-image: radial-gradient(155% 145% at 50% 58%, #000 34%, transparent 100%);
}
/* static, script-free / reduced-motion fallback field (very light) */
.zs26 .v4-dither-fallback {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 22% 96%, color-mix(in srgb, var(--brand-green) 22%, transparent), transparent 62%),
    radial-gradient(56% 42% at 82% 90%, color-mix(in srgb, var(--green-mineral) 24%, transparent), transparent 64%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 80%, #000 40%, transparent 90%);
          mask-image: radial-gradient(120% 90% at 50% 80%, #000 40%, transparent 90%);
}
@media (prefers-reduced-motion: no-preference) {
  .zs26 .has-dither .v4-dither-fallback { display: none; }
}

/* ------------------------------------------------------ environmental ------ */
.zs26 .v4-env {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-v4);
  isolation: isolate;
  background: var(--paper-2);
}
.zs26 .v4-env img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
  will-change: transform;
}
.zs26 .v4-env::after { /* legibility gradient for overlaid tags */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 18, 14, .34) 100%);
}
.zs26 .v4-env-tag {
  position: absolute; left: clamp(14px, 1.6vw, 28px); bottom: clamp(14px, 1.6vw, 28px);
  right: clamp(14px, 1.6vw, 28px); z-index: 2;
  padding: 14px 18px; border-radius: var(--r-v4-sm);
}
.zs26 .v4-env-tag small {
  display: block; font-size: 11px; font-weight: 620; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 5px;
}
.zs26 .v4-env-tag strong { font-weight: 560; font-size: clamp(14px, 1vw, 16px); color: #fff; letter-spacing: -.01em; }

/* ------------------------------------------------------------ scroll cue --- */
.zs26 .v4-scroll-cue {
  position: absolute; left: 50%; bottom: clamp(20px, 3vh, 40px);
  transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  background: var(--glass-v4); border: 1px solid var(--glass-v4-bd);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); box-shadow: var(--e1);
  transition: opacity .4s var(--ease-v4), transform .4s var(--ease-v4);
}
.zs26 .v4-scroll-cue svg { width: 17px; height: 17px; }
.zs26 .v4-scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .zs26 .v4-scroll-cue { animation: v4Bob 2.4s var(--ease-v4) infinite; }
}
@keyframes v4Bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* --------------------------------------------------- reveals + parallax ---- */
/* Default = fully visible (no-JS / reduced-motion safe). Only the inline head
   snippet `if(no-reduced-motion) html.classList.add('v4-anim')` opts a page into
   the hidden->reveal behaviour, so content is never invisible when JS is off. */
.zs26 .v4-reveal, .zs26 .v4-reveal-scale { opacity: 1; transform: none; }
.v4-anim .zs26 .v4-reveal { opacity: 0; transform: translateY(26px); }
.v4-anim .zs26 .v4-reveal-scale { opacity: 0; transform: translateY(26px) scale(.99); }
.v4-anim .zs26 .v4-reveal.is-in,
.v4-anim .zs26 .v4-reveal-scale.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-rev) var(--ease-v4), transform var(--dur-rev) var(--ease-v4);
}
.v4-anim .zs26 [data-reveal-delay] { transition-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .zs26 .v4-reveal, .zs26 .v4-reveal-scale { opacity: 1 !important; transform: none !important; }
  .zs26 .v4-env img, .zs26 .v4-ap-stage > img { transform: none !important; }
}

/* -------------------------------------------------- Autopilot live matrix -- */
.zs26 .v4-ap-stage {
  position: relative; overflow: hidden; border-radius: var(--r-v4); isolation: isolate;
  min-height: clamp(560px, 62vw, 820px);
}
.zs26 .v4-ap-stage > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06); will-change: transform; z-index: 0;
}
.zs26 .v4-ap-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 16, 12, .38), rgba(10, 16, 12, .62));
}
.zs26 .v4-ap-objective {
  position: absolute; z-index: 2; top: clamp(16px, 2vw, 30px); left: clamp(16px, 2vw, 30px);
  width: min(560px, 62%); padding: clamp(18px, 1.6vw, 26px);
}
.zs26 .v4-ap-objective .ol {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 620;
  letter-spacing: .02em; color: rgba(255,255,255,.82); margin-bottom: 14px;
}
.zs26 .v4-ap-objective .ol::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(31,186,120,.18); }
.zs26 .v4-ap-objective p.obj {
  margin: 0; font-size: clamp(15px, 1.15vw, 20px); line-height: 1.4; color: #fff; letter-spacing: -.01em; font-weight: 460;
}
.zs26 .v4-ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.zs26 .v4-ap-chip {
  padding: 9px 12px; border-radius: var(--r-v4-sm); background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14); min-width: 0;
}
.zs26 .v4-ap-chip small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.zs26 .v4-ap-chip b { font-size: 13px; font-weight: 560; color: #fff; }
.zs26 .v4-ap-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.zs26 .v4-ap-tags span { font-size: 12px; padding: 6px 11px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.86); }

.zs26 .v4-matrix {
  position: absolute; z-index: 2; right: clamp(16px, 2vw, 30px); bottom: clamp(16px, 2vw, 30px);
  left: clamp(16px, 2vw, 30px); padding: clamp(14px, 1.3vw, 20px);
}
.zs26 .v4-matrix-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.zs26 .v4-matrix-head strong { color: #fff; font-weight: 620; font-size: clamp(14px, 1vw, 16px); }
.zs26 .v4-matrix-head span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.72); }
.zs26 .v4-matrix-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); }
@media (prefers-reduced-motion: no-preference) { .zs26 .v4-matrix-head span::before { animation: v4Pulse 1.9s ease-in-out infinite; } }
@keyframes v4Pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,186,120,.5); } 70% { box-shadow: 0 0 0 6px rgba(31,186,120,0); } }

.zs26 .v4-matrix-grid { display: grid; grid-template-columns: minmax(96px, 1.4fr) repeat(4, minmax(60px, 1fr)); gap: 6px; }
.zs26 .v4-cell { padding: 10px 10px; border-radius: 10px; min-height: 52px; font-size: 12.5px; color: #fff; }
.zs26 .v4-cell.head { color: rgba(255,255,255,.6); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; min-height: 0; padding: 4px 10px; }
.zs26 .v4-cell.prod { color: rgba(255,255,255,.92); font-weight: 560; display: flex; align-items: center; }
.zs26 .v4-cell.exp { position: relative; padding-left: 22px; background: rgba(255,255,255,.05); transition: background .5s var(--ease-v4), transform .4s var(--ease-v4); }
.zs26 .v4-cell.exp::before { content: ""; position: absolute; left: 9px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); }
.zs26 .v4-cell small { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255,255,255,.62); }
.zs26 .v4-cell[data-state="running"] { background: rgba(134,177,229,.20); }
.zs26 .v4-cell[data-state="running"]::before { background: #a9d3ff; box-shadow: 0 0 0 4px rgba(169,211,255,.10); }
.zs26 .v4-cell[data-state="winner"] { background: rgba(31,186,120,.22); }
.zs26 .v4-cell[data-state="winner"]::before { background: #5fe0a0; }
.zs26 .v4-cell[data-state="stopped"] { background: rgba(238,167,148,.16); }
.zs26 .v4-cell[data-state="stopped"]::before { background: #f2b39f; }
.zs26 .v4-cell[data-state="queued"]::before { background: rgba(255,255,255,.42); }
.zs26 .v4-cell.is-updating { transform: scale(.975); background: rgba(245,233,145,.18); }
.zs26 .v4-matrix-reason { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.zs26 .v4-matrix-reason .rk { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); padding-top: 2px; }
.zs26 .v4-matrix-reason p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.82); transition: opacity .35s var(--ease-v4); }
.zs26 .v4-matrix-reason b { color: #fff; font-weight: 640; }

/* ------------------------------------------------ 3x2 dither-hover grid ----- */
.zs26 .v4-outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1vw, 18px); }
.zs26 .v4-outcome {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(300px, 26vw, 380px);
  border-radius: var(--r-v4); border: 1px solid var(--hairline);
  background: var(--surface); padding: clamp(20px, 1.6vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .5s var(--ease-v4), border-color .5s var(--ease-v4), box-shadow .5s var(--ease-v4);
}
.zs26 .v4-outcome:hover, .zs26 .v4-outcome:focus-within { transform: translateY(-4px); border-color: var(--hairline-2); box-shadow: var(--e3); }
.zs26 .v4-outcome .zs-dither {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0;
  transition: opacity .65s var(--ease-v4);
  -webkit-mask-image: radial-gradient(145% 145% at 50% 50%, #000 0%, #000 46%, transparent 100%);
          mask-image: radial-gradient(145% 145% at 50% 50%, #000 0%, #000 46%, transparent 100%);
}
.zs26 .v4-outcome:hover .zs-dither, .zs26 .v4-outcome:focus-within .zs-dither, .zs26 .v4-outcome.is-touch-active .zs-dither { opacity: 1; }
.zs26 .v4-outcome-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.zs26 .v4-outcome-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 560; letter-spacing: -.01em; }
.zs26 .v4-outcome-num { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--ink-3); font-weight: 620; }
.zs26 .v4-outcome-arrow { opacity: 0; transform: translateX(-4px); transition: opacity .4s var(--ease-v4), transform .4s var(--ease-v4); color: var(--ink); }
.zs26 .v4-outcome:hover .v4-outcome-arrow, .zs26 .v4-outcome:focus-within .v4-outcome-arrow { opacity: 1; transform: none; }
.zs26 .v4-outcome-body { position: relative; z-index: 2; }
.zs26 .v4-outcome-body strong { display: block; font-size: clamp(1.15rem, 1.4vw, 1.5rem); font-weight: 560; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.1; }
.zs26 .v4-outcome-body span { color: var(--ink-2); font-size: clamp(.95rem, 1vw, 1.05rem); line-height: 1.5; }
/* soft bottom scrim (edgeless, full-width) — lifts the card text off the dither
   on hover without any visible rectangle/cut-off */
.zs26 .v4-outcome::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 68%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    var(--surface) 2%,
    color-mix(in srgb, var(--surface) 62%, transparent) 42%,
    transparent 100%);
  opacity: 0; transition: opacity .55s var(--ease-v4);
}
.zs26 .v4-outcome:hover::after,
.zs26 .v4-outcome:focus-within::after,
.zs26 .v4-outcome.is-touch-active::after { opacity: 1; }

/* .cta-card / .cta-section are intentionally DARK panels — var(--ink) bg flips to
   light in dark mode (white text on light = unreadable). Pin them dark in both themes. */
.zs26 .cta-card, [data-theme="dark"] .zs26 .cta-card { background: #0E120F; color: #fff; }
.zs26 .cta-card .cta-title, .zs26 .cta-card .cta-desc,
.zs26 .cta-card h2, .zs26 .cta-card p { color: #fff; }

/* --------------------------------------------------------- ultra-wide ------ */
@media (min-width: 1921px) {
  .zs26 { --gutter-v4: clamp(96px, 7vw, 260px); }
  .zs26 .v4-display { font-size: clamp(3.8rem, 3.6vw, 5.2rem); }
  .zs26 .v4-title { font-size: clamp(2.6rem, 2.4vw, 3.6rem); }
  .zs26 .v4-lede { font-size: clamp(1.25rem, 1vw, 1.5rem); }
}
@media (min-width: 3200px) {
  .zs26 { --gutter-v4: clamp(200px, 8vw, 460px); }
  .zs26 .v4-shell.is-atmos { max-width: 3200px; }
}

/* -------------------------------------------- reusable detail-page parts ---- */
/* centered section header (kicker + title + lede) */
.zs26 .v4-head { text-align: center; max-width: 820px; margin-inline: auto; margin-bottom: clamp(36px, 4vw, 64px); }
.zs26 .v4-head .v4-title { margin: 16px auto 0; }
.zs26 .v4-head .v4-lede { margin: 18px auto 0; }

/* numbered "how it works" step cards — flex-wrap centers the last row so 6→3+3
   (no orphaned left-aligned gap); items grow to fill each row, cap so orphans don't balloon */
.zs26 .v4-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 1.4vw, 24px); }
.zs26 .v4-steps > .v4-step { flex: 1 1 300px; max-width: 420px; min-width: 0; }
.zs26 .v4-step { border: 1px solid var(--hairline); border-radius: var(--r-v4); background: var(--surface); padding: clamp(22px, 1.8vw, 30px); transition: transform .32s var(--ease-v4), border-color .32s var(--ease-v4), box-shadow .32s var(--ease-v4); }
.zs26 .v4-step:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 38%, var(--hairline)); box-shadow: var(--e3); }
.zs26 .v4-step:hover .n { background: var(--green-tint); border-color: transparent; }
.zs26 .v4-step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--paper-2); border: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums; font-weight: 640; font-size: 14px; color: var(--green-deep-v4); margin-bottom: 16px;
}
.zs26 .v4-step h3 { margin: 0 0 8px; font-size: clamp(1.08rem, 1.25vw, 1.3rem); font-weight: 560; letter-spacing: -.02em; }
.zs26 .v4-step p { margin: 0; color: var(--ink-2); font-size: clamp(.95rem, 1vw, 1.05rem); line-height: 1.5; }

/* simple capability bento (links out) — reuses .v4-outcome look without the dither.
   flex-wrap + centered last row so orphan cards center instead of leaving a right-gap */
.zs26 .v4-cap-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 1vw, 18px); }
.zs26 .v4-cap-grid > .v4-cap { flex: 1 1 260px; max-width: 380px; min-width: 0; }

/* Count-aware balance: when a step/cap grid holds 5, 6, or 9 items, pin it to 3 columns so rows read
   3+2 / 3+3 / 3+3+3 instead of an orphaned 4+2 / 4+1. 4-item grids keep their clean single row.
   max(260px, …) lets the same rule collapse to 2- then 1-up on narrow viewports. */
.zs26 .v4-steps:has(> .v4-step:nth-child(5):last-child) > .v4-step,
.zs26 .v4-steps:has(> .v4-step:nth-child(6):last-child) > .v4-step,
.zs26 .v4-steps:has(> .v4-step:nth-child(9):last-child) > .v4-step,
.zs26 .v4-cap-grid:has(> .v4-cap:nth-child(5):last-child) > .v4-cap,
.zs26 .v4-cap-grid:has(> .v4-cap:nth-child(6):last-child) > .v4-cap,
.zs26 .v4-cap-grid:has(> .v4-cap:nth-child(9):last-child) > .v4-cap {
  flex: 0 1 max(260px, calc(33.333% - 16px)); max-width: none;
}
.zs26 .v4-cap {
  position: relative; border: 1px solid var(--hairline); border-radius: var(--r-v4); background: var(--surface);
  padding: clamp(22px, 1.7vw, 30px); text-decoration: none; color: inherit; display: block;
  transition: transform .32s var(--ease-v4), border-color .32s var(--ease-v4), box-shadow .32s var(--ease-v4);
}
.zs26 a.v4-cap:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 38%, var(--hairline)); box-shadow: var(--e3); }
.zs26 .v4-cap h3 { margin: 0 0 8px; font-size: clamp(1.05rem, 1.2vw, 1.25rem); font-weight: 560; letter-spacing: -.02em; }
.zs26 .v4-cap p { margin: 0; color: var(--ink-2); font-size: clamp(.92rem, .98vw, 1.02rem); line-height: 1.5; }
.zs26 a.v4-cap::after { content: "→"; position: absolute; top: clamp(20px, 1.6vw, 28px); right: clamp(20px, 1.6vw, 28px); color: var(--ink-3); opacity: .5; transition: opacity .4s var(--ease-v4), transform .4s var(--ease-v4); }
.zs26 a.v4-cap:hover::after { opacity: 1; transform: translateX(3px); color: var(--ink); }
.zs26 .v4-cap h3 { padding-right: 26px; }

/* detail-page FAQ (native details; script.js animates .faq-* if present) */
.zs26 .v4-faq { max-width: 760px; margin-inline: auto; }

/* ----------------------------------------------- page composition parts ---- */
.zs26 .v4-hero {
  position: relative; min-height: 100svh;
  padding: clamp(150px, 14vw, 240px) 0 clamp(60px, 7vh, 120px);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(58% 46% at 50% 3%, color-mix(in srgb, var(--d-blue) 24%, transparent), transparent 60%),
    radial-gradient(46% 40% at 6% 62%, color-mix(in srgb, var(--d-violet) 15%, transparent), transparent 62%),
    var(--canvas);
}
.zs26 .v4-hero-copy { position: relative; z-index: 2; text-align: center; }
.zs26 .v4-hero-copy .v4-display { margin: 22px auto 0; max-width: 15ch; }
.zs26 .v4-hero-copy .v4-lede { margin: 26px auto 0; max-width: 56ch; }
.zs26 .v4-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.zs26 .v4-mini-calc {
  margin: 24px auto 0; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; color: var(--ink-2); background: var(--glass-v4); border: 1px solid var(--glass-v4-bd);
  border-radius: var(--r-pill); padding: 10px 20px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.zs26 .v4-mini-calc label { font-weight: 500; color: var(--ink-3); }
.zs26 .v4-mini-calc b { color: var(--ink); font-weight: 620; font-variant-numeric: tabular-nums; }
.zs26 .v4-mini-calc .f { display: inline-flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--hairline-2); }
.zs26 .v4-mini-calc .f input { width: auto !important; field-sizing: content; text-align: center; border: none; background: none; outline: none; font: inherit; color: inherit; padding: 0; min-width: 4ch; }

.zs26 .v4-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.zs26 .v4-split-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.zs26 .v4-split-points h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.zs26 .v4-split-points p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.zs26 .v4-imgstack { display: flex; flex-direction: column; gap: 14px; }
.zs26 .v4-imgstack .v4-env { aspect-ratio: 16 / 11; }
.zs26 .v4-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 721px) { .zs26 .v4-statgrid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.zs26 .v4-stat { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-v4-sm); padding: 18px; }
.zs26 .v4-stat small { display: block; color: var(--ink-3); font-size: 12.5px; margin-bottom: 8px; }
.zs26 .v4-stat b { font-size: clamp(1.7rem, 2.4vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zs26 .v4-stat p { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }

.zs26 .v4-ap-head { margin-bottom: clamp(28px, 3vw, 56px); text-align: center; }
.zs26 .v4-ap-head .v4-title { margin: 18px auto 0; max-width: 20ch; }
.zs26 .v4-ap-head .v4-lede { margin: 20px auto 0; text-align: center; }
.zs26 .v4-outcome-head { margin-bottom: clamp(28px, 3vw, 56px); }
.zs26 .v4-outcome-head .v4-title { margin-top: 18px; }

@media (max-width: 880px) { .zs26 .v4-split { grid-template-columns: 1fr; } .zs26 .v4-split-points { margin-top: 28px; } }

/* ---------------------------------------------------------- responsive ----- */
@media (max-width: 1024px) {
  .zs26 .v4-outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .zs26 .v4-ap-objective { width: min(600px, 82%); }
  .zs26 .v4-matrix-grid { grid-template-columns: minmax(88px, 1.3fr) repeat(4, minmax(52px, 1fr)); overflow-x: auto; }
}
@media (max-width: 720px) {
  .zs26 .v4-outcome-grid { grid-template-columns: 1fr; }
  .zs26 .v4-statgrid { grid-template-columns: 1fr; }
  .zs26 .v4-ap-stage { min-height: 0; display: flex; flex-direction: column; }
  .zs26 .v4-ap-objective, .zs26 .v4-matrix { position: static; width: auto; left: auto; right: auto; top: auto; bottom: auto; }
  .zs26 .v4-ap-objective { order: 1; margin: 12px; }
  .zs26 .v4-matrix { order: 2; margin: 0 12px 12px; }
  .zs26 .v4-ap-stage > img { position: absolute; }
  .zs26 .v4-matrix-reason p { font-size: 12px; }
}
