/* ════════════════════════════════════════════════════════════
   Licitato — Landing Page v4
   Clean build. Anchored on the Design System tokens
   (colors_and_type.css is imported first in the HTML).
   Aesthetic spirit kept from v3: editorial, dark hero, factual,
   chevron as the signature of "the chain". Orange = the only pop.
   ════════════════════════════════════════════════════════════ */

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

:root {
  /* Runtime-tunable hooks (driven by the Tweaks panel) */
  --accent:        var(--brand-teal-soft);   /* hero eyebrow / accent      */
  --accent-bright: var(--brand-teal-bright);
  --accent-glow:   rgba(14,150,174,.20);

  /* Local editorial scale (a touch larger than DS base for landing impact) */
  --maxw: 1240px;
  --gutter: clamp(24px, 5vw, 64px);

  /* Dark surfaces (hero / breath sections / CTA) */
  --d-bg:   #0B1828;             /* deepest navy                 */
  --d-bg-2: #0E2138;
  --d-fg:   rgba(255,255,255,.92);
  --d-fg-2: rgba(255,255,255,.60);
  --d-fg-3: rgba(255,255,255,.40);
  --d-hair: rgba(255,255,255,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6;
  color: var(--ink-700); background: var(--white);
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-teal-soft); color: var(--ink-900); }

/* keyboard focus — always visible (quality floor) */
:focus-visible {
  outline: 2.5px solid var(--accent-bright);
  outline-offset: 3px; border-radius: 3px;
}

/* ─────────────────────────────────────────────
   REVEAL  (capture-safe: static end-state + a
   one-shot .anim class the JS removes after play)
   ───────────────────────────────────────────── */
.r   { opacity: 0; transform: translateY(26px); }
.r.in { opacity: 1; transform: none; }
.r.anim { animation: rvl .8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rvl { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* stagger helper */
.r.d1 { animation-delay: .08s; }
.r.d2 { animation-delay: .16s; }
.r.d3 { animation-delay: .24s; }
.r.d4 { animation-delay: .32s; }
.r.d5 { animation-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1 !important; transform: none !important; }
  .r.anim { animation: none !important; }
}

/* ─────────────────────────────────────────────
   SHARED PRIMITIVES
   ───────────────────────────────────────────── */
.v4-wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }

/* Section index — mono dossier eyebrow with a chevron tick */
.v4-ix {
  display: inline-flex; align-items: center; gap: 11px;
  font: 600 12px/1 var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-teal);
  margin-bottom: 22px;
}
.v4-ix::before {
  content: ''; width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.v4-ix.on-dark { color: var(--accent-bright); }

/* Buttons */
.v4-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--r-md);
  font: 600 16px/1 var(--font-ui); letter-spacing: .005em;
  cursor: pointer; border: none; position: relative;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  background: var(--cta-orange); color: #fff;
  box-shadow: 0 10px 26px rgba(255,115,1,.26);
}
.v4-btn .arr { width: 18px; height: 18px; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.v4-btn.lg .arr { width: 20px; height: 20px; }
.v4-btn.sm .arr { width: 15px; height: 15px; }
.v4-btn:hover { background: var(--cta-orange-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255,115,1,.34); }
.v4-btn:hover .arr { transform: translateX(4px); }
.v4-btn:active { transform: translateY(0); }
.v4-btn.sm { padding: 11px 20px; font-size: 14px; }
.v4-btn.lg { padding: 18px 38px; font-size: 18px; }

/* ─────────────────────────────────────────────
   GLOBAL TEXTURE — film grain (fixed overlay)
   ───────────────────────────────────────────── */
.v4-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: overlay;
}

/* ─────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────── */
.v4-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .35s var(--ease-out), backdrop-filter .35s, box-shadow .35s, padding .35s;
}
.v4-nav.solid {
  background: rgba(11,24,40,.82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding-top: 13px; padding-bottom: 13px;
}
.v4-nav-logo { display: flex; align-items: center; }
.v4-nav-logo img { height: 30px; display: block; }
.v4-nav-cta { display: inline-flex; }
.v4-nav-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.v4-nav-link {
  font: 600 14px/1 var(--font-ui); color: rgba(255,255,255,.82);
  letter-spacing: -.01em; white-space: nowrap; transition: color .2s var(--ease-out);
}
.v4-nav-link:hover { color: #fff; }
@media (max-width: 620px) { .v4-nav-link { display: none; } }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.v4-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: flex; align-items: center;
  padding: 132px var(--gutter) 92px;
  background:
    linear-gradient(158deg, var(--d-bg) 0%, #0C2138 38%, var(--brand-blue-deep) 78%, #02437F 100%);
  background-color: var(--d-bg);
}
/* glow blobs */
.v4-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 84% 22%, var(--accent-glow) 0%, transparent 46%),
    radial-gradient(circle at 6% 86%, rgba(0,91,171,.22) 0%, transparent 44%);
}
/* chevron constellation */
.v4-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../assets/logo/hero-marks.png') no-repeat center right / cover;
  opacity: .34;
}
.v4-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(40px, 5vw, 76px); align-items: center;
}
.v4-hero-copy { max-width: 600px; }
.v4-hero .v4-ix { color: var(--accent-bright); margin-bottom: 26px; }
.v4-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 700;
  line-height: 1.06; letter-spacing: -.03em;
  color: #fff; text-wrap: balance; margin-bottom: 26px;
}
.v4-hero h1 .soft { color: var(--accent); }
.v4-hero-sub {
  font-size: clamp(17px, 1.4vw, 20px); line-height: 1.62;
  color: var(--d-fg-2); max-width: 540px; margin-bottom: 38px;
  text-wrap: pretty;
}
.v4-hero-sub strong { color: rgba(255,255,255,.86); font-weight: 600; }
.v4-hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.v4-hero-note {
  font: 500 13.5px/1.4 var(--font-ui); color: var(--d-fg-3);
  display: flex; align-items: center; gap: 8px;
}
.v4-hero-note::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-teal-bright); box-shadow: 0 0 10px var(--brand-teal-bright);
}

/* ── HERO LAYOUT VARIANTS (Tweaks) ── */
html[data-hero="mockLeft"] .v4-hero-inner { grid-template-columns: 1fr 1.04fr; }
html[data-hero="mockLeft"] .v4-hero-copy { order: 2; }
html[data-hero="mockLeft"] .v4-hero-visual { order: 1; }
html[data-hero="stacked"] .v4-hero { padding-top: 120px; }
html[data-hero="stacked"] .v4-hero-inner { grid-template-columns: 1fr; gap: 52px; justify-items: center; text-align: center; }
html[data-hero="stacked"] .v4-hero-copy { max-width: 760px; }
html[data-hero="stacked"] .v4-hero .v4-ix { margin-left: auto; margin-right: auto; }
html[data-hero="stacked"] .v4-hero-sub { margin-left: auto; margin-right: auto; }
html[data-hero="stacked"] .v4-hero-cta { justify-content: center; }
html[data-hero="stacked"] .v4-hero-visual { width: 100%; max-width: 720px; }

/* ─────────────────────────────────────────────
   HERO INTERACTIVE DEMO — toggle ETP | TR
   Two layered cards (form ↔ bridge ↔ output) · clock-driven typing.
   ───────────────────────────────────────────── */
.v4-hero-visual { position: relative; width: 100%; }
.hm {
  position: relative; width: 100%; max-width: 560px; margin-left: auto;
  --hm-accent: var(--accent, #6BCBE1);
}

/* toggle (teal — never orange) */
.hm-toggle {
  position: relative; display: flex; width: 154px; margin: 0 0 20px auto; padding: 4px;
  border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hm-tab {
  position: relative; z-index: 1; flex: 1; appearance: none; border: 0; background: none; cursor: pointer;
  font: 700 12px/1 var(--font-mono); letter-spacing: .1em; text-align: center;
  color: rgba(255,255,255,.6); padding: 9px 0; border-radius: 999px; transition: color .24s var(--ease-out);
}
.hm-tab.on { color: #08243A; }
.hm-tab:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }
.hm-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: linear-gradient(180deg, #6BCBE1, #1AA4BC);
  box-shadow: 0 4px 14px rgba(14,150,174,.5); transition: transform .36s var(--ease-in-out);
}
.hm-thumb[data-v="tr"] { transform: translateX(100%); }

/* layered stage */
.hm-stage { position: relative; }
.hm-card { position: absolute; box-sizing: border-box; border-radius: var(--r-lg); border: 1px solid var(--ink-100); background: #fff; }
.hm-out {
  position: relative; margin-left: auto; width: 62%; z-index: 1; overflow: hidden;
  background: var(--ink-50); box-shadow: 0 20px 44px rgba(4,18,34,.34);
}
.hm-form {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 48%;
  z-index: 3; padding: 17px 18px; overflow: hidden;
  background: #fff; box-shadow: 0 28px 56px rgba(4,18,34,.5);
}
.hm-form::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  border-radius: 0; background: linear-gradient(90deg, var(--hm-accent), transparent 80%);
}

/* bridge chevron — the inference, at the seam */
.hm-bridge {
  position: absolute; z-index: 4; left: calc(48% - 19px); top: calc(50% - 19px);
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--hm-accent); box-shadow: 0 8px 20px rgba(4,18,34,.32), 0 0 0 1px var(--ink-100);
  opacity: 0; transform: scale(.35);
  transition: opacity .42s var(--ease-out), transform .58s cubic-bezier(.34,1.56,.64,1);
}
.hm-bridge svg { width: 16px; height: 16px; }
.hm-bridge.show { opacity: 1; transform: scale(1); animation: hmBridgeRing 1s var(--ease-out) .1s; }
@keyframes hmBridgeRing {
  0%   { box-shadow: 0 8px 20px rgba(4,18,34,.32), 0 0 0 1px var(--ink-100); }
  42%  { box-shadow: 0 10px 24px rgba(4,18,34,.34), 0 0 0 11px rgba(14,150,174,.2); color: var(--brand-teal-deep); }
  100% { box-shadow: 0 8px 20px rgba(4,18,34,.32), 0 0 0 1px var(--ink-100); color: var(--hm-accent); }
}

/* form content */
.hm-card-head { font: 700 9.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-teal); margin-bottom: 14px; }
.hm-rows { display: flex; flex-direction: column; gap: 13px; }
.hm-row, .hm-frow { display: flex; flex-direction: column; gap: 5px; transition: opacity .3s var(--ease-out); }
.hm-q { font: 500 10.5px/1.3 var(--font-ui); color: var(--ink-500); }
.hm-a {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%;
  font: 600 12px/1.3 var(--font-ui); color: var(--ink-900);
  background: var(--ink-50); border: 1px solid var(--ink-100); border-radius: var(--r-sm); padding: 6px 9px;
}
.hm-flabel { display: inline-flex; align-items: center; gap: 7px; font: 500 10.5px/1.3 var(--font-ui); color: var(--ink-500); }
.hm-fval { font: 600 13px/1.3 var(--font-ui); color: var(--ink-900); min-height: 17px; }
.hm-badge { font: 700 8px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-teal); background: var(--brand-teal-mist); padding: 3px 6px; border-radius: var(--r-xs); }
.hm-ck { width: 15px; height: 15px; border-radius: 50%; flex: none; background: var(--success); display: inline-flex; align-items: center; justify-content: center; }
.hm-ck svg { width: 9px; height: 9px; }
.hm-caret { display: inline-block; width: 2px; height: 13px; vertical-align: -2px; margin-left: 1px; background: var(--hm-accent); animation: caret 1.05s step-end infinite; }
@keyframes caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ETP output (solutions) */
.hm-pane { box-sizing: border-box; padding: 18px 18px 16px 20%; }
.hm-out-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hm-kicker { font: 700 9px/1 var(--font-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--brand-teal); }
.hm-seal { font: 600 9px/1 var(--font-mono); color: var(--ink-400); background: var(--white); border: 1px solid var(--ink-100); padding: 4px 7px; border-radius: var(--r-xs); white-space: nowrap; }
.hm-out-title { font: 700 16px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--ink-900); margin-bottom: 15px; }
.hm-sols { display: flex; flex-direction: column; gap: 9px; }
.hm-sol {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-md);
  opacity: 0; transform: translateY(9px);
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out), border-color .3s, box-shadow .3s, background .3s;
}
.hm-sol.in { opacity: 1; transform: none; }
.hm-sol.dim { opacity: .46; }
.hm-sol.chosen { opacity: 1; border-color: var(--hm-accent); background: var(--brand-teal-mist); box-shadow: 0 0 0 1px var(--hm-accent), 0 12px 24px rgba(14,150,174,.2); }
.hm-sol-ic { width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.hm-sol-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-300); }
.hm-sol.chosen .hm-sol-ic { background: var(--brand-teal); border-radius: 50%; }
.hm-sol.chosen .hm-sol-ic svg { width: 11px; height: 11px; }
.hm-sol-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hm-sol-t { font: 600 12px/1.34 var(--font-ui); color: var(--ink-900); }
.hm-sol-tag { align-self: flex-start; white-space: nowrap; font: 700 8.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--brand-teal-deep); background: var(--white); border: 1px solid var(--hm-accent); padding: 4px 7px; border-radius: var(--r-xs); }

/* TR output (document) */
.hm-doc { box-sizing: border-box; padding-left: 20%; padding-bottom: 6px; }
.hm-doc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 13px 0; border-bottom: 1px solid var(--ink-100); }
.hm-doc-title { font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-900); }
.hm-doc-seal { font: 500 9.5px/1 var(--font-mono); color: var(--brand-teal); background: var(--brand-teal-mist); padding: 4px 7px; border-radius: var(--r-xs); white-space: nowrap; }
.hm-doc-body { padding: 14px 16px 0 0; }
.hm-doc-h { font: 700 10px/1.3 var(--font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-900); margin-bottom: 10px; transition: opacity .3s var(--ease-out); }
.hm-doc-p { font: 500 11.5px/1.62 var(--font-ui); color: var(--ink-700); margin-bottom: 9px; transition: opacity .3s var(--ease-out); }
.hm-doc-p b { color: var(--ink-900); font-weight: 700; }
.hm-hl { background: rgba(14,150,174,.13); color: var(--brand-teal-deep); padding: 0 3px; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── animation intensity (Tweaks) ── */
html[data-anim="subtle"] .hm-bridge { transition: opacity .3s var(--ease-out); transform: scale(1); }
html[data-anim="subtle"] .hm-bridge.show { animation: none; }
html[data-anim="subtle"] .hm-caret { animation: none; opacity: 1; }
html[data-anim="expressive"] .v4-hero::before { animation: heroGlow 9s var(--ease-in-out) infinite; }
@keyframes heroGlow { 0%,100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .hm-caret, .hm-bridge.show, .hm-thumb, .hm-sol, .hm-row, .hm-frow, .hm-doc-h, .hm-doc-p { animation: none !important; transition: none !important; }
  .hm-bridge { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   STICKY MOBILE CTA
   ───────────────────────────────────────────── */
.v4-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11,24,40,.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--d-hair);
  transform: translateY(120%); transition: transform .4s var(--ease-out);
}
.v4-sticky.show { transform: translateY(0); }
.v4-sticky .v4-btn { width: 100%; justify-content: center; }

/* ═════════════════════════════════════════════
   SECTION SYSTEM (shared)
   ═════════════════════════════════════════════ */
.v4-sec { position: relative; padding: clamp(44px, 5vw, 74px) var(--gutter); }
.v4-sec-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.v4-sec.dark { background: linear-gradient(180deg, #15375C 0%, #0F2B49 100%); color: var(--d-fg); }

/* blueprint texture (light sections) — faint blue grid w/ edge falloff */
.v4-blueprint::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,91,171,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,91,171,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(130% 92% at 50% -8%, #000 26%, transparent 80%);
  mask-image: radial-gradient(130% 92% at 50% -8%, #000 26%, transparent 80%);
}

/* shared headline scale */
.v4-h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.7vw, 50px); line-height: 1.08;
  letter-spacing: -.026em; color: var(--ink-900); text-wrap: balance;
}
.v4-sec.dark .v4-h2 { color: #fff; }
.v4-lead {
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.55;
  color: var(--ink-500); margin-top: 16px; max-width: 940px; text-wrap: pretty;
}

/* ─────────────────────────────────────────────
   SECTION 2 — O PROBLEMA
   ───────────────────────────────────────────── */
.v4-prob-head { max-width: 980px; }
.v4-prob-head .v4-lead { color: var(--ink-500); }

/* the diptych — two forces in tension */
.v4-axes {
  margin-top: clamp(34px, 4vw, 54px);
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative; border-top: 1.5px solid var(--ink-100);
}
.v4-axis { padding: clamp(24px, 2.4vw, 34px) clamp(24px, 3vw, 44px); }
.v4-axis:first-child { padding-left: 0; border-right: 1.5px solid var(--ink-100); }
.v4-axis:last-child { padding-right: 0; }
.v4-axis-h {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 1.85vw, 25px); line-height: 1.16;
  letter-spacing: -.015em; color: var(--ink-900); margin-bottom: 12px;
}
.v4-axis-h .n {
  flex: none;
  width: 27px; height: 27px; border-radius: var(--r-xs);
  background: var(--brand-teal-mist); color: var(--brand-teal-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 13px/1 var(--font-mono);
}
.v4-axis p { font-size: 15.5px; line-height: 1.62; color: var(--ink-700); }
.v4-mark {
  color: var(--brand-teal-deep); font-weight: 700; padding: 0 1px; border-radius: 1px;
  background: linear-gradient(transparent 58%, rgba(107,203,225,.45) 0);
}

/* volume — text only (chips removed per user) */

/* pull-quote — emotional anchor (discreet) */
.v4-pull {
  position: relative; margin: clamp(32px, 4vw, 52px) 0 0;
  max-width: 700px; padding: 3px 0 3px 20px;
  border-left: 3px solid var(--brand-teal);
}
.v4-pull q {
  display: block; quotes: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(18px, 2vw, 25px); line-height: 1.22;
  letter-spacing: -.015em; color: var(--ink-900); text-wrap: balance;
}
.v4-pull q::before { content: '\201C'; color: var(--brand-teal); }
.v4-pull q::after  { content: '\201D'; color: var(--brand-teal); }
.v4-pull cite {
  display: block; margin-top: 8px; font-style: normal;
  font: 500 13px/1.5 var(--font-ui); color: var(--ink-500);
}

/* fecho — concession (small) → the turn (big), no divider, no chevron */
.v4-close {
  margin-top: clamp(40px, 4.2vw, 58px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.v4-close-lead {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.2vw, 17px); line-height: 1.3;
  letter-spacing: -.01em; color: var(--ink-500);
}
.v4-close-turn {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.85vw, 37px); line-height: 1.12;
  letter-spacing: -.02em; color: #003E7E; text-wrap: balance;
}

/* ─────────────────────────────────────────────
   SECTION 3 — O JEITO DE HOJE NÃO FECHA (dark)
   ───────────────────────────────────────────── */
/* faint dot grid for dark sections */
.v4-dots::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 0%, #000 28%, transparent 82%);
  mask-image: radial-gradient(125% 90% at 50% 0%, #000 28%, transparent 82%);
}
.v4-s3-head { max-width: 960px; }
.v4-s3-chi { color: var(--accent-bright); }

.v4-paths {
  margin-top: clamp(34px, 4vw, 56px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.6vw, 22px);
}
.v4-path {
  position: relative;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--d-hair); border-radius: var(--r-lg);
  padding: clamp(22px, 2.2vw, 30px);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
}
.v4-path:hover {
  transform: translateY(-3px);
  border-color: rgba(107,203,225,.32); background: rgba(255,255,255,.055);
}
.v4-path-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.v4-path-n { font: 700 13px/1 var(--font-mono); color: var(--accent-bright); letter-spacing: .04em; flex: none; }
.v4-path-h h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 1.7vw, 23px); line-height: 1.14;
  letter-spacing: -.012em; color: #fff;
}
.v4-pl { display: flex; gap: 12px; align-items: flex-start; }
.v4-pl + .v4-pl { margin-top: 13px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.07); }
.v4-pl-ico { flex: none; width: 19px; height: 19px; margin-top: 2px; }
.v4-pl-ico svg { width: 100%; height: 100%; }
.v4-pl.good .v4-pl-ico { color: var(--accent-bright); }
.v4-pl.bad  .v4-pl-ico { color: rgba(255,255,255,.34); }
.v4-pl p { font-size: 14.5px; line-height: 1.6; color: var(--d-fg-2); }
.v4-pl .lbl { font-weight: 700; }
.v4-pl.good .lbl { color: var(--accent-bright); }
.v4-pl.bad  .lbl { color: rgba(255,255,255,.85); }

.v4-s3-close {
  margin-top: clamp(30px, 3.5vw, 48px); padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--d-hair);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(17px, 1.8vw, 24px); line-height: 1.32;
  letter-spacing: -.015em; color: var(--d-fg-2); text-wrap: pretty;
}
.v4-s3-close .turn { color: #fff; }

@media (max-width: 720px) {
  .v4-paths { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   SECTION 4 — IMAGINE ASSIM (breath / transition)
   ───────────────────────────────────────────── */
.v4-imagine {
  text-align: center;
  padding-top: clamp(60px, 7vw, 100px); padding-bottom: clamp(48px, 5vw, 76px);
  background: radial-gradient(120% 86% at 50% 2%, var(--brand-teal-mist) 0%, rgba(107,203,225,.05) 40%, var(--white) 74%);
}
.v4-imagine .v4-sec-inner { max-width: 900px; }
.v4-imagine .v4-ix { justify-content: center; margin-bottom: 24px; }
.v4-imagine-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.07;
  letter-spacing: -.03em; color: var(--ink-900); text-wrap: balance;
}
.v4-imagine-flow {
  display: flex; justify-content: center; gap: 8px;
  margin: clamp(28px, 3.6vw, 44px) 0; color: var(--brand-teal);
}
.v4-imagine-flow span { display: inline-flex; width: 24px; height: 24px; }
.v4-imagine-flow svg { width: 100%; height: 100%; }
@keyframes flowPulse { 0%,100% { opacity: .3; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }
.v4-imagine-flow span { animation: flowPulse 2.4s var(--ease-in-out) infinite; }
.v4-imagine-flow span:nth-child(2) { animation-delay: .2s; }
.v4-imagine-flow span:nth-child(3) { animation-delay: .4s; }
.v4-imagine-body { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.v4-imagine-body p {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6;
  color: var(--ink-700); text-wrap: pretty;
}
@media (prefers-reduced-motion: reduce) {
  .v4-imagine-flow span { animation: none; opacity: .8; }
}

/* ─────────────────────────────────────────────
   SECTION 5 — O QUE É O LICITATO (3 steps)
   ───────────────────────────────────────────── */
.v4-prod-cat { display: flex; gap: 18px; align-items: center; max-width: 1000px; }
.v4-prod-mark {
  flex: none; width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
}
.v4-prod-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.v4-prod-cat p {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(21px, 2.5vw, 33px); line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink-900); text-wrap: balance;
}
.v4-prod-cat .name { color: var(--brand-teal-deep); }

.v4-steps {
  margin-top: clamp(40px, 4.5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.2vw, 52px);
}
.v4-step { position: relative; }
.v4-step-n {
  font-family: var(--font-display); font-weight: 700; font-size: 23px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand-teal); color: var(--brand-teal-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.v4-step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.18;
  letter-spacing: -.01em; color: var(--ink-900); margin-bottom: 11px;
}
.v4-step > p { font-size: 15.5px; line-height: 1.64; color: var(--ink-700); }
/* step connector — dashed stepper line echoing the chain's convergence dashes */
.v4-steps { position: relative; }
.v4-step { z-index: 1; }
.v4-steps::before {
  content: ''; position: absolute; top: 25px; height: 2px; z-index: 0;
  left: 25px; right: calc((100% - 2 * clamp(28px, 3.2vw, 52px)) / 3 - 25px);
  background: repeating-linear-gradient(90deg, var(--ink-200) 0 5px, transparent 5px 11px);
}

@media (max-width: 760px) {
  .v4-steps { grid-template-columns: 1fr; gap: 30px; }
  .v4-step-n { margin-bottom: 16px; }
  .v4-steps::before { display: none; }
}

/* ─────────────────────────────────────────────
   SECTION 6 — A CONTRATAÇÃO DÁ CERTO (value + chain)
   ───────────────────────────────────────────── */
.v4-value { background: var(--ink-50); }
.v4-val-head { max-width: none; }
.v4-accent-ink { color: #036E89; }
.v4-val-bridge {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-500);
  margin-top: 16px; max-width: none; text-wrap: pretty;
}
.v4-themes { margin-top: clamp(38px, 4.6vw, 64px); display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.v4-theme {
  position: relative; cursor: pointer; overflow: hidden;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r-lg);
  padding: clamp(24px, 2.5vw, 36px) clamp(24px, 2.8vw, 44px);
  display: grid; grid-template-columns: 5fr 6fr; gap: 14px clamp(22px, 3vw, 50px); align-items: center;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base), transform var(--dur-base), background var(--dur-base);
}
.v4-theme::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px;
  background: var(--brand-teal); opacity: 0; transition: opacity var(--dur-base);
}
.v4-theme:not(.active) .v4-theme-n { color: var(--ink-300); }
.v4-theme:not(.active) h3 { color: var(--ink-700); }
.v4-theme.active { border-color: rgba(14,150,174,.38); box-shadow: 0 16px 40px rgba(0,91,171,.10); background: linear-gradient(180deg, rgba(107,203,225,.07), rgba(107,203,225,.02)); }
.v4-theme.active::before { opacity: 1; }
.v4-theme:focus-visible { outline: 2.5px solid var(--brand-teal-bright); outline-offset: 2px; }
.v4-theme-n { font: 700 13px/1 var(--font-mono); color: var(--brand-teal); display: block; grid-column: 1 / -1; margin-bottom: 0; }
.v4-theme h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(21px, 2.2vw, 29px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--ink-900); margin-bottom: 13px;
}
.v4-theme-val { font-size: 15.5px; line-height: 1.6; color: var(--ink-700); }
.v4-theme-lead { min-width: 0; }
.v4-theme-pts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.v4-theme-pts li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--ink-700); }
.v4-theme-pts .ic { flex: none; width: 16px; height: 16px; color: var(--brand-teal); margin-top: 3px; }
.v4-theme-pts .ic svg { width: 100%; height: 100%; }
/* theme 3 — full width with diagram */
.v4-theme.wide { grid-template-columns: 1fr; gap: clamp(30px, 3.5vw, 48px); }
.v4-theme-top { display: grid; grid-template-columns: 5fr 6fr; gap: 14px clamp(22px, 3vw, 50px); align-items: center; }

/* chain diagram — ported from v3 (flowing particles), in a dark panel */
.v4-chainwrap {
  margin-top: clamp(22px, 2.6vw, 32px);
  background: linear-gradient(165deg, #143458 0%, #0E2742 100%);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 36px) clamp(22px, 2.4vw, 32px);
  position: relative; overflow: hidden;
}
.v4-chainwrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 22% 45%, rgba(14,150,174,.16) 0%, transparent 58%);
}
.cf-stage { position: relative; z-index: 1; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; }
.cf-stage::-webkit-scrollbar { display: none; }
.cf-stage-min { display: flex; align-items: center; min-width: 1000px; position: relative; }
/* inputs */
.cf-inputs { flex: none; width: 184px; height: 200px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.cf-input {
  height: 58px; box-sizing: border-box; position: relative;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.24);
  border-radius: var(--r-sm); padding: 9px 13px;
  display: flex; flex-direction: column; justify-content: center;
  transition: all .25s var(--ease-out);
}
.cf-input:hover { border-color: var(--brand-teal-soft); background: rgba(14,150,174,.12); transform: translateX(3px); }
.cf-input .t { font: 600 12.5px/1.25 var(--font-ui); color: #fff; }
.cf-input .d { font: 500 10.5px/1.3 var(--font-mono); color: rgba(255,255,255,.42); margin-top: 4px; }
.cf-input::after {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-teal-soft); box-shadow: 0 0 8px var(--brand-teal-soft);
}
/* converging lines */
.cf-converge { flex: none; width: 70px; height: 200px; }
.cf-converge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cf-converge path { fill: none; stroke: var(--brand-teal-soft); stroke-width: 1.6; stroke-dasharray: 5 9; opacity: .7; animation: cfdash 1s linear infinite; }
/* bypass arrow — secondary, dashed: convergence point → TR, skipping ETP */
.cf-bypass { position: absolute; left: 254px; top: 0; width: 260px; height: 200px; overflow: visible; z-index: 2; pointer-events: none; }
.cf-bypass-line { fill: none; stroke: var(--brand-teal-soft); stroke-width: 1.6; stroke-dasharray: 1.5 6; stroke-linecap: round; opacity: .58; animation: cfbypass 1.1s linear infinite; }
.cf-bypass-head { fill: var(--brand-teal-soft); opacity: .72; }
.cf-bypass-dot { fill: var(--brand-teal-soft); opacity: .75; }
/* chain nodes */
.cf-chain { flex: none; display: flex; align-items: center; }
.cf-node {
  flex: none; width: 122px; min-height: 90px; box-sizing: border-box;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-md); padding: 13px 14px;
  position: relative; transition: all .25s var(--ease-out);
}
.cf-node:hover { transform: translateY(-5px); background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.cf-node .step { position: absolute; top: 13px; right: 14px; font: 700 10px/1 var(--font-mono); color: rgba(255,255,255,.3); }
.cf-node .abbr { font: 700 21px/1 var(--font-display); letter-spacing: -.02em; color: var(--brand-teal-soft); margin-bottom: 5px; }
.cf-node .nm { font: 600 12px/1.3 var(--font-ui); color: #fff; margin-bottom: 0; }
.cf-node .d { font: 500 10.5px/1.45 var(--font-ui); color: rgba(255,255,255,.5); }
.cf-node.pub { width: 166px; background: rgba(14,150,174,.12); border-color: rgba(107,203,225,.35); }
.cf-node.pub .abbr { font-size: 18px; }
/* connectors + flowing particle */
.cf-conn { flex: none; width: 30px; height: 2px; background: rgba(255,255,255,.14); position: relative; align-self: center; }
.cf-conn::before { content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 6px solid rgba(255,255,255,.32); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.cf-dot { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--brand-teal-soft); transform: translateY(-50%); opacity: 0; animation: cfflow 1.8s linear infinite; }
@keyframes cfflow { 0% { left: 0; opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 100% { left: 23px; opacity: 0; } }
@keyframes cfdash { to { stroke-dashoffset: -28; } }
@keyframes cfbypass { to { stroke-dashoffset: -30; } }
/* caption (moat) */
.cf-caption { position: relative; z-index: 1; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font: 500 14px/1.6 var(--font-ui); color: rgba(255,255,255,.6); max-width: 720px; }
.cf-caption strong { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cf-dot, .cf-converge path, .cf-bypass-line { animation: none !important; } }

@media (max-width: 860px) {
  .v4-theme, .v4-theme-top { grid-template-columns: 1fr; gap: 20px; }
}
/* chain — vertical stack below wide desktop (no horizontal scroll / cutoff) */
@keyframes cfflowV { 0% { top: 0; opacity: 0; } 22% { opacity: 1; } 78% { opacity: 1; } 100% { top: 17px; opacity: 0; } }
@media (max-width: 1359px) {
  .cf-stage { overflow-x: visible; }
  .cf-stage-min { flex-direction: column; align-items: stretch; min-width: 0; gap: 8px; }
  .cf-inputs { width: auto; height: auto; gap: 8px; margin-bottom: 6px; }
  .cf-input { height: auto; }
  .cf-input::after { display: none; }
  .cf-converge { display: none; }
  .cf-bypass { display: none; }
  .cf-chain { flex-direction: column; align-items: stretch; }
  .cf-node, .cf-node.pub { width: auto; min-height: 0; }
  .cf-conn { width: 2px; height: 24px; align-self: center; }
  .cf-conn::before { right: 50%; top: auto; bottom: -1px; transform: translateX(50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid rgba(255,255,255,.32); border-bottom: 0; }
  .cf-dot { display: block; left: 50%; top: 0; transform: translateX(-50%); animation: cfflowV 1.8s linear infinite; }
}

/* ─────────────────────────────────────────────
   SECTION 7 — FAQ (accordion via native <details>)
   ───────────────────────────────────────────── */
#faq .v4-sec-inner { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.v4-faq-head { margin-bottom: 0; padding-top: 4px; }
.v4-faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) {
  #faq .v4-sec-inner { display: block; }
  .v4-faq-head { margin-bottom: clamp(22px, 3vw, 32px); padding-top: 0; }
}
.v4-faq-item {
  border: 1px solid var(--ink-100); border-radius: var(--r-md); background: var(--white);
  overflow: hidden; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.v4-faq-item[open] { border-color: rgba(14,150,174,.32); box-shadow: 0 12px 32px rgba(0,91,171,.08); }
.v4-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: clamp(17px, 1.9vw, 23px) clamp(20px, 2.2vw, 28px);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.3; color: var(--ink-900);
}
.v4-faq-item summary::-webkit-details-marker { display: none; }
.v4-faq-q { flex: 1; }
.v4-faq-ic { flex: none; width: 22px; height: 22px; color: var(--brand-teal); transition: transform var(--dur-base) var(--ease-out); }
.v4-faq-ic svg { width: 100%; height: 100%; }
.v4-faq-item[open] .v4-faq-ic { transform: rotate(90deg); }
.v4-faq-a { padding: 0 clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 26px); }
.v4-faq-a p { font-size: 15.5px; line-height: 1.7; color: var(--ink-700); max-width: 720px; }
.v4-faq-item[open] .v4-faq-a { animation: faqOpen .28s var(--ease-out); }
@keyframes faqOpen { from { transform: translateY(-6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .v4-faq-item[open] .v4-faq-a { animation: none; } }

/* ─────────────────────────────────────────────
   SECTION 8 — QUEM ESTÁ ATRÁS (dark band)
   ───────────────────────────────────────────── */
.v4-behind { text-align: left; }
.v4-behind .v4-sec-inner { max-width: var(--maxw); }
.v4-behind .v4-ix { justify-content: flex-start; margin-bottom: clamp(26px, 3.2vw, 44px); }
.v4-behind-grid {
  display: grid; grid-template-columns: 1.04fr 1fr;
  gap: clamp(30px, 5vw, 76px); align-items: start;
}
.v4-behind h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -.028em;
  color: #fff; margin: 0; text-wrap: balance;
}
.v4-behind p {
  font-size: clamp(16px, 1.45vw, 19px); line-height: 1.68; color: var(--d-fg-2);
  max-width: 540px; margin: 6px 0 0; text-wrap: pretty;
}
.v4-behind p b { color: var(--accent-bright); font-weight: 600; }
@media (max-width: 820px) {
  .v4-behind-grid { grid-template-columns: 1fr; gap: 18px; }
  .v4-behind p { max-width: none; margin-top: 0; }
}

/* ─────────────────────────────────────────────
   SECTION 9 — CTA FINAL (dark)
   ───────────────────────────────────────────── */
.v4-cta { text-align: center; position: relative; overflow: hidden; }
.v4-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 26%, var(--accent-glow) 0%, transparent 55%);
}
.v4-cta .v4-sec-inner { max-width: 820px; position: relative; z-index: 1; }
.v4-cta-mark { width: clamp(52px, 5vw, 62px); height: auto; margin: 0 auto clamp(18px, 2.2vw, 28px); display: block; }
.v4-cta h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -.03em;
  color: #fff; margin-bottom: 20px; text-wrap: balance;
}
.v4-cta-sub {
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--d-fg-2);
  max-width: 600px; margin: 0 auto 36px; text-wrap: pretty;
}
.v4-cta-actions { display: flex; justify-content: center; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.v4-footer { background: var(--d-bg); color: var(--d-fg-2); padding: clamp(48px, 5vw, 72px) var(--gutter) 0; }
.v4-footer-inner { max-width: var(--maxw); margin: 0 auto; }
.v4-footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-bottom: clamp(30px, 3.6vw, 44px); border-bottom: 1px solid var(--d-hair);
}
.v4-footer-logo img { height: 28px; display: block; }
.v4-footer-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.v4-footer-email { font: 500 15px/1 var(--font-ui); color: var(--d-fg-2); transition: color var(--dur-base); }
.v4-footer-email:hover { color: var(--accent-bright); }
.v4-footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 30px; font: 500 13px/1.5 var(--font-mono); color: var(--d-fg-3); letter-spacing: .02em;
}
@media (max-width: 600px) {
  .v4-footer-top { flex-direction: column; align-items: flex-start; gap: 22px; }
  .v4-footer-actions { width: 100%; }
}

/* ── SECTION 2 responsive ── */
@media (max-width: 760px) {
  .v4-axes { grid-template-columns: 1fr; border-top: none; }
  .v4-axis { padding: 22px 0 24px !important; border-right: none !important; border-top: 1.5px solid var(--ink-100); }
  .v4-axis:first-child { border-top: 1.5px solid var(--ink-100); }
  .v4-pull { padding-left: 16px; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 980px) {
  .v4-hero-inner { grid-template-columns: 1fr; gap: 64px; }
  html[data-hero="mockLeft"] .v4-hero-copy { order: 1; }
  html[data-hero="mockLeft"] .v4-hero-visual { order: 2; }
  .v4-hero-visual { display: flex; justify-content: center; }
  .hm { margin: 0 auto; max-width: 480px; }
  .hm-toggle { margin: 0 auto 18px; }
}
@media (max-width: 640px) {
  .v4-nav { padding: 14px 18px; }
  .v4-nav-cta { display: none; }            /* sticky CTA takes over on mobile */
  .v4-hero { padding: 104px 22px 80px; min-height: auto; }
  .v4-hero::after { opacity: .22; }
  .hm { max-width: 100%; }
  .hm-stage { height: auto; display: flex; flex-direction: column; align-items: stretch; }
  .hm-card { position: static; width: 100%; }
  .hm-form { order: 0; top: auto; transform: none; height: auto; min-height: 0; }
  .hm-bridge { order: 1; position: relative; left: auto; top: auto; margin: -19px auto; opacity: 1; transform: rotate(90deg); transition: none; }
  .hm-bridge.show { transform: rotate(90deg); }
  .hm-out { order: 2; margin-left: 0; height: auto; min-height: 300px; padding-top: 6px; }
  .hm-pane { padding: 20px 18px 18px; }
  .hm-doc { padding-left: 0; }
  .hm-doc-bar { padding: 14px 16px 13px; }
  .hm-doc-body { padding: 14px 16px 0; }
  .v4-sticky { display: block; }
}
@media (max-width: 380px) {
  .hm { max-width: 100%; }
}

/* ═════════════════════════════════════════════
   CONTACT MODAL (lead capture)
   ═════════════════════════════════════════════ */
.cm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(11, 24, 40, .55);
  backdrop-filter: blur(4px);
  animation: cm-fade .22s var(--ease-out) both;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }

.cm-card {
  position: relative;
  width: 100%; max-width: 540px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-xl);
  padding: 40px 40px 30px;
  animation: cm-rise .28s var(--ease-out) both;
}
@keyframes cm-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.cm-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--ink-50); color: var(--ink-500);
  border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.cm-close:hover { background: var(--ink-100); color: var(--ink-900); }
.cm-close svg { width: 18px; height: 18px; }

.cm-head { margin-bottom: 22px; padding-right: 30px; }
.cm-head .v4-ix { margin-bottom: 14px; }
.cm-head h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-2xl); line-height: var(--lh-tight);
  letter-spacing: -.02em; color: var(--brand-blue); margin: 0 0 8px;
}
.cm-sub { font-size: var(--fs-base); line-height: 1.5; color: var(--ink-500); margin: 0; }

.cm-form { display: grid; gap: 16px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-field { display: grid; gap: 6px; text-align: left; }
.cm-field label { font: 600 13px/1.2 var(--font-ui); color: var(--ink-700); }
.cm-req { color: var(--cta-orange); }

.cm-input {
  font: 500 15px/1.3 var(--font-ui);
  padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--ink-200); background: #fff; color: var(--ink-900);
  width: 100%; box-sizing: border-box; transition: border-color .18s, box-shadow .18s;
}
.cm-input::placeholder { color: var(--ink-300); }
.cm-input:focus { outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 3px var(--brand-teal-mist); }
.cm-input.err { border-color: var(--danger); }
.cm-input.err:focus { box-shadow: 0 0 0 3px var(--danger-tint); }
.cm-textarea { resize: vertical; min-height: 84px; font-family: var(--font-ui); }
.cm-err { font: 500 12px/1.35 var(--font-ui); color: var(--danger); }

.cm-alert {
  font: 500 13.5px/1.45 var(--font-ui); color: var(--danger);
  background: var(--danger-tint); border: 1px solid rgba(210,69,69,.28);
  border-radius: var(--r-sm); padding: 11px 14px;
}

.cm-submit { width: 100%; justify-content: center; margin-top: 4px; }
.cm-submit[disabled] { opacity: .6; cursor: not-allowed; }
.cm-fine { font: 500 12px/1.45 var(--font-ui); color: var(--ink-300); text-align: center; margin: 2px 0 0; }

.cm-done { text-align: center; padding: 18px 6px 8px; display: grid; gap: 12px; justify-items: center; }
.cm-done-ic {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--success); border-radius: var(--r-pill); box-shadow: 0 10px 26px rgba(31,157,110,.28);
}
.cm-done-ic svg { width: 26px; height: 26px; }
.cm-done h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); color: var(--brand-blue); margin: 0; }
.cm-done p { color: var(--ink-500); margin: 0 0 8px; max-width: 380px; }

@media (max-width: 540px) {
  .cm-card { padding: 32px 22px 24px; border-radius: var(--r-lg); }
  .cm-row { grid-template-columns: 1fr; }
  .cm-head h3 { font-size: var(--fs-xl); }
}
