/* ============================================================
   FOX PAY — Design tokens & styles
   Warm institutional fintech. Geometric / technical / grid-like.
   ============================================================ */

:root {
  /* Warm institutional palette */
  --paper:       #FAF8F3;
  --paper-2:     #F3EFE6;
  --paper-3:     #ECE6D8;
  --ink:         #17150F;
  --ink-2:       #35302696;  /* used via rgba below mostly */
  --ink-soft:    #3A352B;
  --muted:       #79715F;
  --muted-2:     #9A917F;
  --line:        #E3DCCC;
  --line-strong: #D2C9B4;

  /* Single disciplined accent — the "fox" terracotta */
  --accent:        #C8451E;
  --accent-deep:   #9E330F;
  --accent-tint:   #F6E4DA;
  --accent-tint-2: #EFD9CB;

  /* Dark warm panel (contrast section) */
  --dark:        #16140F;
  --dark-2:      #1F1C15;
  --dark-line:   #322D22;
  --on-dark:     #F4F0E6;
  --on-dark-mut: #A79E89;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

/* ---- Accessibility ---- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  padding: 12px 18px; border-radius: 4px; text-decoration: none;
  box-shadow: 0 12px 30px -14px rgba(23,21,15,0.6);
  transform: translateY(-160%); opacity: 0; pointer-events: none;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); opacity: 1; pointer-events: auto; outline-offset: 2px; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---- Shared type utilities ---- */
.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mono-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
}
.mono-eyebrow.on-dark { color: #E8A07F; }
.mono-eyebrow.on-dark::before { background: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

.display {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 46ch;
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.02); }

.btn-on-dark { background: var(--on-dark); color: var(--dark); }
.btn-on-dark:hover { background: var(--accent); color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn-ghost-dark:hover { border-color: var(--on-dark); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
body.scrolled .site-header {
  box-shadow: 0 14px 30px -26px rgba(23,21,15,0.6);
  border-bottom-color: var(--line-strong);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 30px; height: 30px; }
.brand .mark path, .brand .mark line { stroke: var(--accent); }
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.wordmark .pay { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 14.5px; color: var(--ink-soft); font-weight: 450;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 2px;
  overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 9px; color: var(--muted); letter-spacing: 0.06em;
  transition: all 0.2s var(--ease); font-family: inherit;
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

.menu-btn {
  display: none;
  width: 40px; height: 40px; flex: none;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 2px; cursor: pointer; padding: 0;
  transition: border-color 0.2s var(--ease);
}
.menu-btn:hover { border-color: var(--ink); }
.menu-bars { position: relative; display: block; width: 18px; height: 12px; }
.menu-bars span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.18s var(--ease), top 0.28s var(--ease);
}
.menu-bars span:nth-child(1) { top: 0; }
.menu-bars span:nth-child(2) { top: 5px; }
.menu-bars span:nth-child(3) { top: 10px; }
body.nav-open .menu-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
body.nav-open .menu-bars span:nth-child(2) { opacity: 0; }
body.nav-open .menu-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 28%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 78% 28%, #000 0%, transparent 72%);
  opacity: 0.55;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(28px, 4.5vw, 60px) clamp(64px, 9vw, 128px);
}
.hero-copy { max-width: 620px; }
.hero-copy .display { margin: 22px 0 26px; }
.hero-copy .display .accent { color: var(--accent); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px 8px;
  margin-top: 40px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--paper) 70%, #fff);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* hero visual — live orchestration console */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 34vw, 440px);
}
.console {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: color-mix(in srgb, var(--paper) 38%, #fff);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: clamp(14px, 1.7vw, 20px);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 34px 64px -40px rgba(23,21,15,0.5),
    0 10px 24px -18px rgba(23,21,15,0.32);
}
.console .card-grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 90% at 82% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 82% 0%, #000 0%, transparent 78%);
}
.console-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 14px; margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.console-head .ch-title { color: var(--ink-soft); font-weight: 500; }
.console-head .live { display: inline-flex; align-items: center; gap: 7px; color: #1F8A5B; letter-spacing: 0.08em; }
.console-head .live .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #1F8A5B;
  box-shadow: 0 0 0 0 rgba(31,138,91,0.5); animation: pulse 2.4s infinite;
}

.feed { position: relative; z-index: 1; list-style: none; display: flex; flex-direction: column; }
.feed-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.feed-row:last-child { border-bottom: 0; }
.fr-ico {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--paper); color: var(--accent);
}
.fr-ico svg { width: 20px; height: 20px; }
.fr-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fr-body b { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.fr-body small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.fr-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px; border: 1px solid transparent;
}
.fr-status .st-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.fr-status.ok { color: #1F6E48; background: #E6F2EA; border-color: #BFE0CC; }
.fr-status.ok .st-dot { background: #1F8A5B; box-shadow: 0 0 0 0 rgba(31,138,91,0.5); animation: pulse 2.6s infinite; }
.fr-status.route { color: #8A5A2A; background: #F6EBDC; border-color: #E6CFAE; }
.fr-status.route .st-dot { background: var(--accent); }

.console-foot {
  position: relative; z-index: 1;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.cf-metric { display: flex; flex-direction: column; gap: 2px; }
.cf-metric b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.cf-metric small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* feed entrance — transform-only stagger (content always visible; safe if the
   animation clock is throttled in a hidden/capture context) */
html.anim-ready .hero-visual:not(.in) .feed-row { transform: translateY(10px); }
html.anim-ready .hero-visual.in .feed-row { transition: transform 0.55s var(--ease); transition-delay: calc(0.09s * var(--i) + 0.1s); }

/* ---- live quotes panel (reuses .console / .feed / .fr-*) ---- */
.console .feed-row { padding: 7px 2px; gap: 10px; }
.console .fr-ico { width: 34px; height: 34px; border-radius: 8px; }
.console .fr-body b { font-size: 13.5px; }
.console .fr-body small { font-size: 11px; }
.fr-ico .code {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.01em; color: var(--accent-deep);
}
.feed-group-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 2px 6px; margin-top: 2px;
}
.feed-group-label:first-child { padding-top: 8px; }
.fr-body .sub-extra { color: var(--muted-2); }
/* daily variation chip */
.q-var {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  white-space: nowrap; color: var(--muted); justify-self: end;
}
.q-var.up { color: #1F6E48; }
.q-var.down { color: var(--accent-deep); }
/* neutral "reference" badge (not live) */
.fr-status.ref { color: var(--muted); background: var(--paper-3); border-color: var(--line-strong); }
.fr-status.ref .st-dot { background: var(--muted-2); }
/* source / updated note replacing the metrics footer */
.console-note {
  position: relative; z-index: 1;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--muted-2); line-height: 1.5;
}
.console-note .cn-upd { color: var(--muted); }
.console-note #q-updated { color: var(--ink-soft); }

@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(31,138,91,0.45);} 70%{ box-shadow: 0 0 0 9px rgba(31,138,91,0);} 100%{ box-shadow:0 0 0 0 rgba(31,138,91,0);} }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-head { max-width: 720px; }
.section-head .section-title { margin-top: 18px; }
.section-head .lead { margin-top: 18px; max-width: 60ch; }

/* index label like "01 / 02" */
.index-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
}
.index-label b { color: var(--accent-deep); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { border-bottom: 1px solid var(--line); }

.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(56px, 6vw, 92px);
}
.product + .product { border-top: 1px solid var(--line); }
.product.reverse .product-media { order: -1; }

.product-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.2rem); line-height: 0.8;
  color: var(--accent); letter-spacing: -0.04em;
  -webkit-text-stroke: 1px var(--accent); color: transparent;
}
.product-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 14px 0 16px;
  letter-spacing: -0.025em;
}
.product-copy .lead { max-width: 48ch; }
.product-features { list-style: none; margin-top: 28px; display: grid; gap: 2px; }
.product-features li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.product-features li:last-child { border-bottom: 1px solid var(--line); }
.product-features .feat-k {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep);
  letter-spacing: 0.04em; padding-top: 2px;
}
.product-features .feat-v b { font-weight: 600; }
.product-features .feat-v span { color: var(--muted); display: block; font-size: 14px; margin-top: 2px; }
.product-cta { margin-top: 30px; }

/* media card (light product) */
.media-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.media-card .card-grid {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px;
}
.media-card-inner { position: relative; z-index: 1; }

/* Flow diagram (Intermediação) */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.flow-node {
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 16px 12px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
}
.flow-node .ico { width: 26px; height: 26px; margin: 0 auto 9px; }
.flow-node.core { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flow-node.core .ico path, .flow-node.core .ico line { stroke: var(--accent); }
.flow-node b { display: block; font-size: 12.5px; color: inherit; font-weight: 600; margin-bottom: 2px; }
.flow-node small { color: var(--muted); }
.flow-node.core small { color: var(--on-dark-mut); }
.flow-arrow svg { width: 34px; height: 18px; }
.flow-arrow svg path { stroke: var(--accent); stroke-width: 2; fill: none; }
.flow-arrow .dot {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: flowdot 2s var(--ease) infinite;
}
@keyframes flowdot {
  0%   { transform: translateX(-12px); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateX(12px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flow-arrow .dot { animation: none; } }
.flow-meta {
  margin-top: 22px; display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px;
}
.flow-meta b { color: var(--ink); }

/* ============================================================
   DARK PRODUCT PANEL (Agentes de Investimento)
   ============================================================ */
.dark-panel { background: var(--dark); color: var(--on-dark); border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.dark-panel .product + .product { border-top-color: var(--dark-line); }
.dark-panel .lead { color: var(--on-dark-mut); }
.dark-panel .product-num { -webkit-text-stroke: 1px var(--accent); color: transparent; }
.dark-panel .product-features li { border-color: var(--dark-line); }
.dark-panel .product-features li:last-child { border-bottom-color: var(--dark-line); }
.dark-panel .product-features .feat-v span { color: var(--on-dark-mut); }
.dark-panel .index-label { color: var(--on-dark-mut); }
.dark-panel .index-label b { color: #E8A07F; }

.agent-card {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 4px; padding: clamp(22px, 3vw, 34px); position: relative; overflow: hidden;
}
.agent-card .card-grid {
  position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background-image:
    linear-gradient(var(--dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 30px 30px;
}
.agent-head {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-mut);
  border-bottom: 1px solid var(--dark-line); padding-bottom: 14px; margin-bottom: 18px;
}
.agent-head .live { display: inline-flex; align-items: center; gap: 7px; color: #6FCF97; }
.agent-head .live .pulse { width: 6px; height: 6px; border-radius: 50%; background: #6FCF97; animation: pulse2 2.4s infinite; }
@keyframes pulse2 { 0%{box-shadow:0 0 0 0 rgba(111,207,151,.5);}70%{box-shadow:0 0 0 8px rgba(111,207,151,0);}100%{box-shadow:0 0 0 0 rgba(111,207,151,0);} }

/* allocation bars */
.alloc { position: relative; z-index: 1; display: grid; gap: 14px; }
.alloc-row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 14px; }
.alloc-row .name { font-size: 13.5px; color: var(--on-dark); }
.alloc-row .name small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--on-dark-mut); letter-spacing: 0.05em; }
.alloc-bar { height: 8px; background: #2A2519; border-radius: 999px; overflow: hidden; }
.alloc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); transition: width 1.2s var(--ease); }
.alloc-bar i.b2 { background: linear-gradient(90deg, #6B5B3A, #C9A24A); }
.alloc-bar i.b3 { background: linear-gradient(90deg, #3A5A52, #5FAE96); }
.alloc-row .pct { font-family: var(--font-mono); font-size: 13px; text-align: right; color: var(--on-dark); }
.agent-foot {
  position: relative; z-index: 1; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-mut); letter-spacing: 0.05em;
}
.agent-foot b { color: var(--on-dark); }

/* ============================================================
   FRENTE 03 — PRODUTOS VIA PARCEIROS
   ============================================================ */
.partners { border-bottom: 1px solid var(--line); }

/* partner model band */
.partner-model {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.pm-step {
  display: flex; flex-direction: column; gap: 4px;
  padding: 4px 6px;
}
.pm-step .pm-k {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.pm-step.core .pm-k { color: var(--accent-deep); }
.pm-step .pm-s {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
}
.pm-arrow { display: flex; align-items: center; }
.pm-arrow svg { width: 28px; height: 16px; }
.pm-arrow svg path { stroke: var(--accent); stroke-width: 2; fill: none; }

/* vertical cards */
.verticals {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vertical-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.vertical-card[href]:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -28px rgba(23,21,15,0.45); }
.vc-go { margin-left: auto; color: var(--accent); transition: transform 0.25s var(--ease); }
.vertical-card[href]:hover .vc-go { transform: translateX(4px); }
.vc-head {
  display: flex; align-items: center; gap: 13px;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}
.vc-tag {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent-deep);
  border-radius: 3px;
}
.vc-head h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: -0.02em; line-height: 1.1;
}
.vc-list { list-style: none; display: flex; flex-direction: column; }
.vc-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.vc-list li:last-child { border-bottom: 0; }
.vc-list b {
  display: block; font-weight: 600; font-size: 15px; color: var(--ink);
  margin-bottom: 3px;
}
.vc-list span {
  display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45;
}
.partners-note {
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  color: var(--muted); display: flex; align-items: center; gap: 9px;
}
.partners-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---- status badge (active / roadmap) — hidden by request ---- */
.status-badge { display: none !important; }
.status-badge.__legacy {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px 3px 7px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge .st-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.status-badge.active { color: #1F6E48; background: #E6F2EA; border-color: #BFE0CC; }
.status-badge.active .st-dot { background: #1F8A5B; box-shadow: 0 0 0 0 rgba(31,138,91,0.5); animation: pulse 2.6s infinite; }
.status-badge.roadmap { color: #8A6A2A; background: #F6EEDC; border-color: #E6D6AE; }
.status-badge.roadmap .st-dot { background: #C79A3A; }
/* on dark contexts, if ever used */
.dark-panel .status-badge.active { background: #14251C; border-color: #2A4636; color: #74C79A; }
.dark-panel .status-badge.roadmap { background: #25210F; border-color: #463E1F; color: #D2AE5C; }

/* ---- capability icon (home list + detail) ---- */
.cap-ico, .vc-ico {
  flex: none; color: var(--accent);
  display: grid; place-items: center;
}
.cap-ico svg, .vc-ico svg { width: 100%; height: 100%; }

/* home vc-list: now icon + body with status row */
.vc-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.vc-ico {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--paper);
}
.vc-ico svg { width: 18px; height: 18px; }
.vc-li-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.vc-li-row b { font-weight: 600; font-size: 15px; color: var(--ink); }
/* override the generic `.vc-list span { display:block }` for the helper spans */
.vc-list .vc-ico { display: grid; }
.vc-list .vc-li-row { display: flex; }
.vc-list .vc-li-row b { display: inline-flex; }
.vc-list .status-badge { display: inline-flex; width: auto; }

/* detail caps: icon tile replaces number */
.cap-item { grid-template-columns: auto 1fr; }
.cap-ico {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--paper-2);
}
.cap-ico svg { width: 24px; height: 24px; }
.cap-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 5px; }
.cap-title-row b { margin-bottom: 0; }

@media (max-width: 980px) {
  .verticals { grid-template-columns: 1fr; gap: 16px; }
  .partner-model { grid-template-columns: 1fr; gap: 16px; }
  .partner-model .pm-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ============================================================
   VERTICAL DETAIL PAGE
   ============================================================ */
.subhero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.subhero .hero-grid-bg { opacity: 0.45; -webkit-mask-image: radial-gradient(120% 100% at 90% 10%, #000 0%, transparent 70%); mask-image: radial-gradient(120% 100% at 90% 10%, #000 0%, transparent 70%); }
.subhero-inner { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 80px); }

.crumb {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
  margin-bottom: 30px;
}
.crumb a { color: var(--muted); transition: color 0.2s; }
.crumb a:hover { color: var(--accent-deep); }
.crumb .sep { color: var(--line-strong); }
.crumb .here { color: var(--ink); }

.subhero-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.subhero-tag {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.6rem);
  width: clamp(76px, 9vw, 112px); height: clamp(76px, 9vw, 112px); flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--accent); color: var(--accent-deep);
  border-radius: 6px; letter-spacing: -0.02em;
}
.subhero-copy { max-width: 720px; }
.subhero-copy .mono-eyebrow { margin-bottom: 16px; }
.subhero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; }
.subhero-copy .lead { margin-top: 18px; max-width: 56ch; }
.subhero-ideal {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.subhero-ideal .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

/* capabilities — 2-col detailed list */
.caps { padding-block: clamp(56px, 7vw, 96px); }
.caps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.caps-grid {
  margin-top: 26px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.cap-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.cap-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); padding-top: 3px; letter-spacing: 0.05em; }
.cap-body b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 5px; }
.cap-body span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* other verticals cross-links */
.other-verts { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.ov-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ov-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 24px 26px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ov-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ov-card .ov-l { display: flex; align-items: center; gap: 16px; }
.ov-card .ov-tag { font-family: var(--font-mono); font-weight: 500; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--accent-deep); }
.ov-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.ov-card .arr { color: var(--accent); transition: transform 0.25s var(--ease); }
.ov-card:hover .arr { transform: translateX(4px); }

@media (max-width: 720px) {
  .caps-grid { grid-template-columns: 1fr; gap: 0; }
  .ov-grid { grid-template-columns: 1fr; }
  .subhero-head { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL DOCUMENT PAGES (termos / privacidade / conformidade)
   ============================================================ */
.legal-doc { padding-block: clamp(40px, 5vw, 72px); }
.legal-doc .container { max-width: 880px; }
.legal-doc .doc-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.03em; line-height: 1.7;
  margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.legal-doc .doc-meta b { color: var(--ink); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.legal-toc a {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px;
  color: var(--ink-soft);
}
.legal-toc a:hover { border-color: var(--accent); color: var(--accent-deep); }
.legal-doc section { scroll-margin-top: 90px; }
.legal-doc h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em;
  margin: 44px 0 14px; display: flex; align-items: baseline; gap: 12px;
}
.legal-doc h2:first-of-type { margin-top: 4px; }
.legal-doc h2 .num { font-family: var(--font-mono); font-size: 0.7em; color: var(--accent-deep); }
.legal-doc h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin: 26px 0 10px; letter-spacing: -0.01em; }
.legal-doc p { color: var(--ink-soft); margin-bottom: 14px; max-width: 74ch; }
.legal-doc ul { margin: 0 0 16px; padding-left: 22px; color: var(--ink-soft); }
.legal-doc li { margin-bottom: 8px; max-width: 72ch; }
.legal-doc a:not(.legal-toc a) { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .doc-note {
  margin-top: 40px; padding: 18px 20px; border-radius: 6px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); line-height: 1.6;
}

/* ============================================================
   CLOSING CTA
   ============================================================ */
.cta-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.cta-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end;
  padding-block: clamp(64px, 8vw, 112px);
}
.cta-inner h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; }
.cta-inner h2 .accent { color: var(--accent); }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-actions .btn { width: 100%; justify-content: space-between; }
.cta-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }

/* ---- contact form variant ---- */
.cta-contact .cta-inner { grid-template-columns: 1fr 1.05fr; align-items: start; gap: clamp(32px, 5vw, 72px); }
.cta-contact .cta-copy .lead { max-width: 42ch; }

.contact-form {
  display: grid; gap: 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 32px);
}
.contact-form .field { display: grid; gap: 6px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: 11px 13px; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.contact-form textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.contact-form input.invalid,
.contact-form textarea.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.contact-form .btn { margin-top: 4px; justify-content: center; }
.form-alt { display: flex; gap: 12px; flex-wrap: wrap; }
.form-alt .btn { margin-top: 0; flex: 1; min-width: 160px; }
.form-alt:empty { display: none; }
.form-status { font-family: var(--font-mono); font-size: 12.5px; min-height: 1.1em; letter-spacing: 0.02em; }
.form-status.ok { color: #1F6E48; }
.form-status.err { color: var(--accent-deep); }
.form-fineprint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 980px) {
  .cta-contact .cta-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-form .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark); padding-block: clamp(56px, 6vw, 84px) 36px; }
.footer .mark path, .footer .mark line { stroke: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark { color: var(--on-dark); }
.footer-brand .wordmark .pay { color: var(--on-dark-mut); }
.footer-brand p { color: var(--on-dark-mut); font-size: 14px; margin-top: 16px; max-width: 32ch; }
.footer-company {
  font-style: normal;
  margin-top: 20px;
  display: grid;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--on-dark-mut);
  letter-spacing: 0.02em;
}
.footer-company .fc-name { color: var(--on-dark); letter-spacing: 0.04em; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--on-dark); padding: 6px 0; opacity: 0.82; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: #E8A07F; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-mut); letter-spacing: 0.03em;
  line-height: 1.7;
}
.footer-bottom .legal { max-width: 70ch; }

/* ============================================================
   REVEAL ANIMATION
   Content is VISIBLE by default. Under anim-ready, not-yet-revealed
   elements are hidden — but OPACITY is never transitioned, so the
   moment an element gets `.in` its opacity flips to 1 instantly and
   can never freeze mid-fade at 0 (the failure mode in throttled /
   capture rendering contexts). Only the harmless `transform` slide is
   transitioned; if that freezes, content is still fully visible, just
   slightly offset.
   ============================================================ */
.reveal { opacity: 1; transform: none; }
html.anim-ready .reveal:not(.in) { opacity: 0; transform: translateY(22px); }
html.anim-ready .reveal.in { transition: transform 0.6s var(--ease); }
html.anim-ready .reveal.d1.in { transition-delay: 0.06s; }
html.anim-ready .reveal.d2.in { transition-delay: 0.12s; }
html.anim-ready .reveal.d3.in { transition-delay: 0.18s; }
/* escape hatch for static capture */
html.reveal-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .console-head .live .pulse,
  .fr-status .st-dot,
  .status-badge .st-dot { animation: none; }
  html.anim-ready .hero-visual .feed-row { transition: none; transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; min-height: 0; width: 100%; max-width: 440px; margin-inline: auto; }
  .product, .product.reverse .product-media { grid-template-columns: 1fr; }
  .product.reverse .product-media { order: 0; }
  .product-media { margin-top: 8px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-actions .btn { width: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: color-mix(in srgb, var(--paper) 97%, #fff);
    backdrop-filter: saturate(1.1) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 18px;
    box-shadow: 0 26px 44px -30px rgba(23,21,15,0.55);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s var(--ease);
    z-index: 49;
  }
  body.nav-open .nav { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: 16px; min-height: 44px; display: flex; align-items: center; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav .nav-cta {
    margin-top: 12px; display: flex; align-items: center; gap: 10px; justify-content: center;
    background: var(--ink); color: var(--paper); border-radius: 3px;
    border-bottom: 0; min-height: 50px; font-weight: 500; padding: 0 20px;
  }
  .nav .nav-cta .arr { transition: transform 0.25s var(--ease); }
  .header-actions .btn-desktop { display: none; }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .alloc-row { grid-template-columns: 110px 1fr 42px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
}

/* ---- phones ---- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .hero-inner { padding-block: 0 8px; gap: 32px; }
  .hero-ctas { margin-top: 28px; }
  .hero-ctas .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-chips { margin-top: 30px; padding-top: 18px; }
  .console { border-radius: 10px; }
  .console-foot { gap: 6px; }
  .cf-metric b { font-size: 1.15rem; }
  .section-head .lead, .lead { max-width: none; }
  .product-num { font-size: 3.4rem; }
  .product-features li { grid-template-columns: 1fr; gap: 4px; }
  .product-features .feat-k { padding-top: 0; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; justify-content: space-between; }
  .vertical-card { padding: 24px 20px 8px; }
  .subhero-tag { width: 64px; height: 64px; font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .lang-toggle button { padding: 7px 10px; }
}

/* ============================================================
   FINISH — microinteractions & tactile states
   ============================================================ */
.btn-primary, .btn-accent { box-shadow: 0 10px 24px -16px rgba(23,21,15,0.45); }
.btn:active { transform: scale(0.985); }
.vertical-card:active, .ov-card:active, .cta-actions .btn:active { transform: scale(0.99); }

@media (hover: hover) {
  .btn-primary:hover, .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -16px rgba(200,69,30,0.45); }
  .btn-on-dark:hover { transform: translateY(-1px); }
  .nav .nav-cta:hover .arr { transform: translateX(4px); }
  .lang-toggle button:hover:not(.active) { color: var(--ink); }
  .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* keep tap targets comfortable on coarse pointers */
@media (pointer: coarse) {
  .footer-col a { padding: 9px 0; }
  .legal-toc a { padding: 9px 14px; }
  .lang-toggle button { padding: 9px 12px; }
}
