/* Versão azul: paleta derivada do logo Cloudfleet.
   Layout: bandas escuras em azul-marinho com cortes diagonais entre seções,
   tipografia display pesada e um "console" de transações como peça central. */
:root {
  --ink-950: #06101d;
  --ink-900: #0a1828;
  --ink-800: #102338;
  --ink-700: #18324f;
  --ink-600: #264a70;
  --line: rgba(150, 200, 255, 0.15);
  --text: #f2f7fd;
  --muted: #a8bed8;
  --faint: #7d94b0;
  --violet: #2a9bea;
  --flare: #1d63c6;
  --signal: #38b6f2;
  --mint: #3ddcb4;
  --paper: #f3f8fd;
  --paper-ink: #0a1828;
  --paper-muted: #4c6280;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);

  --radius: 14px;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink-950);
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * max(24px, env(safe-area-inset-left, 0px)));
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--flare) 70%, transparent) 62%);
  padding-inline: 0.06em;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font: 600 var(--step-0)/1 var(--font-body);
  padding: 0.95em 1.4em;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--signal);
  color: var(--ink-950);
  box-shadow: 4px 4px 0 var(--flare);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--flare); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--flare); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--violet); background: rgba(42, 155, 234, 0.12); }

/* ---------- Navegação ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--ink-950) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.3rem/1 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { display: block; height: 36px; width: auto; }
.footer-logo { display: block; height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 0.7em 1.1em; font-size: 0.92rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-950);
    border-bottom: 1px solid var(--line);
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav-links .nav-cta { margin-top: 8px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(42, 155, 234, 0.35), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(29, 99, 198, 0.18), transparent 70%),
    var(--ink-950);
  padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; }
/* O eyebrow fica dentro do h1 (palavra-chave no título), mas mantém o visual de antes */
.hero h1 .eyebrow { display: block; margin-bottom: 24px; font-weight: 400; line-height: 1.6; text-wrap: wrap; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 34ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-note { font-size: var(--step--1); color: var(--faint); font-family: var(--font-mono); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Console de transações */
.console {
  min-width: 0;
  background: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 10px 10px 0 var(--ink-700);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
  color: var(--faint);
}
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-600); flex: none; }
.console-bar i:nth-child(1) { background: var(--flare); }
.console-bar i:nth-child(2) { background: var(--signal); }
.console-bar i:nth-child(3) { background: var(--mint); }
.console-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  flex: none;
}
.console-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

.console-body { padding: 18px 18px 8px; display: grid; gap: 14px; }
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.flow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.flow-step b { color: var(--text); font-weight: 600; font-size: 0.78rem; }
.flow-step small { font-size: 0.7rem; color: var(--faint); }
.flow-step.active { border-color: var(--violet); background: rgba(42, 155, 234, 0.14); color: var(--text); }

.ledger { display: grid; gap: 2px; }
.ledger-head, .ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 6px;
}
.ledger-head { color: var(--faint); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ledger-row { color: var(--muted); }
.ledger-row .v { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
.ledger-row.neg .v { color: var(--flare); }
.ledger-row.total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; color: var(--text); font-weight: 600; }
.ledger-row.total .v { color: var(--mint); }
.ledger-row.flash { animation: flash 0.9s ease; }
@keyframes flash { from { background: rgba(56, 182, 242, 0.18); } to { background: transparent; } }

.console-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px 14px;
  color: var(--faint);
  font-size: 0.72rem;
  border-top: 1px solid var(--line);
}
.console-foot .ok { color: var(--mint); }
.console-foot .warn { color: var(--signal); }

/* ---------- Faixa de integrações ---------- */
/* A faixa fica entre a diagonal do hero (64px) e a da seção clara (48px): o padding compensa as duas
   para o conteúdo ficar centralizado na faixa visível */
.integrations {
  padding-block: 32px 40px;
  position: relative;
}
.integrations p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--text);
  margin-bottom: 24px;
}
.integrations p b { color: var(--signal); font-weight: inherit; }
/* Linhas laterais em degradê para ancorar o título no centro da faixa */
.integrations p::before,
.integrations p::after {
  content: "";
  flex: 0 1 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal));
}
.integrations p::after { background: linear-gradient(90deg, var(--signal), transparent); }
@media (max-width: 600px) {
  .integrations p::before,
  .integrations p::after { display: none; }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--ink-800);
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); font-weight: 800; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 58ch; }

/* Dores: seção clara, como uma pausa na página */
.section-light {
  background: var(--paper);
  color: var(--paper-ink);
  clip-path: polygon(0 48px, 100% 0, 100% calc(100% - 48px), 0 100%);
  padding-block: clamp(110px, 13vw, 170px);
}
.section-light .eyebrow { color: #1a6fcf; }
.section-light .section-head p { color: var(--paper-muted); }
.section-light .mark { background: linear-gradient(transparent 62%, rgba(56, 182, 242, 0.85) 62%); }

.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 2px solid var(--paper-ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--paper-ink);
  min-width: 0;
}
.pain-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: var(--signal);
}
.pain-icon svg { width: 26px; height: 26px; }
.pain h3 { font-size: var(--step-1); font-weight: 700; }
.pain p { color: var(--paper-muted); }
.pain code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #1a6fcf;
  background: #e5f1fd;
  border-radius: 6px;
  padding: 6px 8px;
  justify-self: start;
}
@media (max-width: 900px) { .pains { grid-template-columns: 1fr; } }

/* Arquitetura */
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  counter-reset: layer;
}
.layer {
  position: relative;
  padding: 32px 28px 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-900));
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}
.layer:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.layer:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.layer + .layer { border-left: none; }
.layer-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-950);
  background: var(--signal);
  border-radius: 999px;
  padding: 4px 10px;
  justify-self: start;
  font-weight: 700;
}
.layer:nth-child(2) .layer-num { background: var(--flare); }
.layer:nth-child(3) .layer-num { background: var(--mint); }
.layer h3 { font-size: var(--step-2); font-weight: 700; }
.layer > p { color: var(--muted); }
.layer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.layer li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.layer li::before { content: "→"; color: var(--violet); flex: none; }
.layer:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--ink-850, var(--ink-800));
  border-top: 1px solid var(--violet);
  border-right: 1px solid var(--violet);
  z-index: 2;
}
@media (max-width: 900px) {
  .layers { grid-template-columns: 1fr; }
  .layer:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .layer:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .layer + .layer { border-left: 1px solid var(--line); border-top: none; }
  .layer:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -15px;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* Diferenciais */
.section-alt { background: var(--ink-950); }
.diffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.diff {
  background: var(--ink-950);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-items: start;
  min-width: 0;
}
.diff svg { width: 36px; height: 36px; color: var(--violet); grid-row: span 2; }
.diff h3 { font-size: var(--step-1); font-weight: 700; }
.diff p { color: var(--muted); grid-column: 2; }
@media (max-width: 760px) { .diffs { grid-template-columns: 1fr; } }

/* Casos de uso */
.cases { display: grid; gap: 24px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  font: 600 0.95rem/1 var(--font-body);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--violet); }
.tab[aria-selected="true"] {
  background: var(--text);
  color: var(--ink-950);
  border-color: var(--text);
}
.case {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.case-copy { display: grid; gap: 18px; min-width: 0; }
.case-copy h3 { font-size: var(--step-2); font-weight: 700; }
.case-copy > p { color: var(--muted); }
.case-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.case-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.case-copy li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 4px;
  background: var(--signal);
  box-shadow: 3px 3px 0 var(--flare);
}
.case-code {
  min-width: 0;
  background: var(--ink-950);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.case-code header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.case-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  font-variant-ligatures: none;
  color: var(--text);
}
.tok-k { color: var(--flare); }
.tok-f { color: var(--signal); }
.tok-s { color: var(--mint); }
.tok-c { color: var(--faint); font-style: italic; }
.tok-n { color: #9fd4ff; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }

/* Implantação */
.rollout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
}
.phase {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  align-content: start;
  gap: 16px;
  background: var(--ink-900);
  min-width: 0;
}
.phase-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--faint);
}
.phase-tag b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font: 800 1.2rem/1 var(--font-display);
  color: var(--ink-950);
  background: var(--signal);
  flex: none;
}
.phase:nth-child(2) .phase-tag b { background: var(--mint); }
.phase h3 { font-size: var(--step-2); font-weight: 700; }
.phase p { color: var(--muted); }
.phase ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.phase li::marker { color: var(--violet); }
@media (max-width: 760px) { .rollout { grid-template-columns: 1fr; } }

/* CTA / contato */
.contact {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(29, 99, 198, 0.28), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(42, 155, 234, 0.35), transparent 70%),
    var(--ink-950);
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding-block: clamp(120px, 14vw, 180px) clamp(72px, 10vw, 120px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-copy { display: grid; gap: 20px; min-width: 0; }
.contact-copy h2 { font-size: var(--step-3); font-weight: 800; }
.contact-copy p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.contact-copy ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-copy li { display: flex; gap: 10px; color: var(--text); }
.contact-copy li::before { content: "✓"; color: var(--mint); font-weight: 700; }

.form {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: 10px 10px 0 var(--flare);
  min-width: 0;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--paper-ink);
  background: #fff;
  border: 2px solid #cfdeef;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  color-scheme: light;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(42, 155, 234, 0.25);
}
.field input[aria-invalid="true"] { border-color: #d6245c; }
.field .err, .captcha .err, .form-status { color: #c21c54; font-size: 0.82rem; min-height: 1em; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
/* Turnstile: ocupa a linha inteira; a altura mínima evita salto de layout enquanto o widget carrega */
.captcha { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; }
.cf-turnstile { min-height: 65px; }
/* Honeypot anti-spam: fora da tela, mas não display:none (bots ignoram campos ocultos) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .btn { grid-column: 1 / -1; justify-content: center; }
.form[aria-busy="true"] .btn { opacity: 0.7; cursor: progress; }
.form-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--paper-muted); }
.form-success {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  text-align: center;
  padding: 24px 8px;
}
.form-success h3 { font-size: var(--step-2); }
.form-success p { color: var(--paper-muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* Rodapé */
.site-footer {
  background: var(--ink-950);
  border-top: 1px solid var(--line);
  padding-block: 40px;
  color: var(--faint);
  font-size: var(--step--1);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--text); }

/* Abas viram uma faixa rolável no celular */
@media (max-width: 640px) {
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    padding-inline: max(16px, env(safe-area-inset-left, 0px));
    padding-bottom: 4px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}
.nav-links .nav-cta { color: var(--ink-950); }
.nav-links .nav-cta:hover { color: var(--ink-950); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Prova no hero */
.proof-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  justify-self: start;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(69, 224, 176, 0.08);
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  transition: border-color 0.15s ease;
}
.proof-chip:hover { border-color: var(--mint); }
.proof-chip b { color: var(--text); font-weight: 600; }
.proof-chip s { color: var(--faint); }
.proof-chip strong { color: var(--mint); }

/* Resultados */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.case-study {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(69, 224, 176, 0.18), transparent 70%),
    var(--ink-800);
  border: 1px solid var(--line);
  min-width: 0;
}
.case-client {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.big-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.big-number s {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  color: var(--faint);
  text-decoration-color: var(--flare);
  text-decoration-thickness: 4px;
}
.big-number .arrow { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); color: var(--violet); }
.big-number strong { font-size: clamp(3.4rem, 2rem + 5vw, 5.5rem); color: var(--mint); font-weight: 800; }
.case-study h3 { font-size: var(--step-2); font-weight: 700; }
.case-study p { color: var(--muted); }
.case-study .btn { justify-self: start; margin-top: 6px; }

.calc {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 10px 10px 0 var(--violet);
  min-width: 0;
  scroll-margin-top: 90px;
}
.calc h3 { font-size: var(--step-2); font-weight: 700; }
.calc-intro { color: var(--paper-muted); font-size: 0.95rem; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-fields input { font-variant-numeric: tabular-nums; }
.calc-out {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #d8e5f3;
  border-radius: 12px;
  overflow: hidden;
}
.calc-out > div { background: #fff; padding: 14px 16px; display: grid; gap: 4px; }
.calc-out dt { font-size: 0.82rem; color: var(--paper-muted); }
.calc-out dd {
  margin: 0;
  font: 700 1.35rem/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.calc-out .calc-total { grid-column: 1 / -1; background: var(--ink-900); }
.calc-out .calc-total dt { color: var(--muted); }
.calc-out .calc-total dd { color: var(--signal); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); }
.calc-note { font-size: 0.8rem; color: var(--paper-muted); }
@media (max-width: 960px) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc-fields, .calc-out { grid-template-columns: 1fr; } }

/* Segurança */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sec-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  min-width: 0;
}
.sec-card h3 { font-size: var(--step-1); font-weight: 700; }
.sec-card p { color: var(--muted); font-size: 0.95rem; }
.sec-feature {
  grid-column: span 3;
  padding: clamp(24px, 4vw, 40px);
  border-color: var(--mint);
  background:
    radial-gradient(60% 120% at 100% 50%, rgba(69, 224, 176, 0.16), transparent 70%),
    var(--ink-800);
}
.sec-feature h3 { font-size: var(--step-2); }
.sec-feature p { font-size: var(--step-0); max-width: 62ch; }
.sec-badge {
  justify-self: start;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-950);
  background: var(--mint);
  border-radius: 999px;
  padding: 5px 12px;
}
@media (max-width: 900px) {
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .sec-feature { grid-column: span 2; }
}
@media (max-width: 560px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-feature { grid-column: auto; }
}

/* Valores */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  min-width: 0;
}
.price-card h3 { font-size: var(--step-1); font-weight: 700; }
.price-card p { color: var(--muted); font-size: 0.95rem; }
.price-card-feature {
  border-color: var(--mint);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(69, 224, 176, 0.14), transparent 70%),
    var(--ink-800);
}
.price-tag {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}
.price-card-feature .price-tag { color: var(--mint); }
.price-card .price-value {
  font: 800 var(--step-3)/1 var(--font-display);
  color: var(--text);
  padding-block: 4px 8px;
  border-bottom: 1px solid var(--line);
}
.price-value span { font-size: 0.45em; font-weight: 700; vertical-align: 0.6em; color: var(--muted); }
.price-value small { font: 500 0.95rem var(--font-body); color: var(--muted); }
.price-value .price-from { display: block; margin-bottom: 6px; }
.price-card .price-value-text { font-size: var(--step-2); padding-block: 0.3em 0.45em; }
.price-rule {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.price-rule h3 { font-size: var(--step-1); font-weight: 700; }
.price-rule p { color: var(--muted); }
.price-rule strong { color: var(--text); }
.price-rule .price-note { font-size: 0.8rem; color: var(--faint); }
@media (max-width: 1060px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }

/* Comparativo */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.cmp th, .cmp td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp thead th {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  background: var(--ink-950);
}
.cmp tbody th { font-weight: 500; color: var(--text); }
.cmp .cmp-us { background: rgba(42, 155, 234, 0.12); }
.cmp thead .cmp-us { background: var(--violet); color: #fff; }
.cmp-yes, .cmp-mid, .cmp-no { display: inline-flex; align-items: center; gap: 8px; }
.cmp-yes::before, .cmp-mid::before, .cmp-no::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.cmp-yes { color: var(--text); }
.cmp-yes::before { background: var(--mint); }
.cmp-mid { color: var(--muted); }
.cmp-mid::before { background: var(--signal); }
.cmp-no { color: var(--muted); }
.cmp-no::before { background: var(--flare); }

.cta-band {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ink-800);
  border: 1px dashed var(--violet);
}
.cta-band p { color: var(--muted); max-width: 60ch; }
.cta-band strong { color: var(--text); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq { display: grid; gap: 10px; min-width: 0; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-950);
}
.faq details[open] { border-color: var(--violet); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 400 1.5rem/1 var(--font-mono);
  color: var(--signal);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* WhatsApp */
.wa-float {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #0b2e1a;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 520px) {
  .wa-float { padding: 14px; }
  .wa-float span { display: none; }
}
.proof-chip s, .proof-chip strong { white-space: nowrap; }

/* Assinatura Grupo Neture */
.footer-neture {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.footer-neture a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.neture-logo { display: block; height: 34px; width: auto; opacity: 0.9; transition: opacity 0.15s ease; }
/* sobe o texto até a linha de base da palavra "neture" (fica a 8px do pé da imagem) */
.footer-neture a > span { position: relative; top: -8px; }
.footer-neture a:hover .neture-logo { opacity: 1; }

/* Versão azul: valores negativos e alertas mantêm um tom quente para não se confundirem com a marca */
:root { --danger: #ff6b6b; }
.ledger-row.neg .v { color: var(--danger); }
.cmp-no::before { background: var(--danger); }
.big-number s { text-decoration-color: var(--danger); }
.tok-k { color: #7cc4ff; }
.console-bar i:nth-child(1) { background: var(--danger); }
.console-bar i:nth-child(2) { background: #ffcd3c; }
.btn-primary { background: linear-gradient(135deg, #3ab8f3, #2a8fe0); color: #04101f; }
.nav-links .nav-cta, .nav-links .nav-cta:hover { color: #04101f; }
