/*
 * RepVen — landing page
 *
 * Identidade: laranja #ff7e33 do logo do sistema sobre azul-tinta profundo, com verde-limão
 * para "pago/liberado" e vermelho para "vencido". Tipografia igual à do sistema (Sora + Inter),
 * auto-hospedada em woff2 variável.
 *
 * Ordem do arquivo: fontes -> tokens -> base -> utilitários -> cabeçalho -> seções (na ordem da
 * página) -> barra do celular -> modal de contato -> rodapé -> responsivo -> motion reduzido.
 */

/* Fontes ---------------------------------------------------------------- */

@font-face {
  font-family: "Inter var";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora var";
  src: url("assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Tokens ---------------------------------------------------------------- */

:root {
  --font-body: "Inter var", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora var", "Sora", "Inter var", ui-sans-serif, system-ui, sans-serif;

  /* Laranja do logo RepVen */
  --brand: #ff7e33;
  --brand-strong: #f06a1c;
  --brand-deep: #c9500c;
  --brand-soft: #fff1e7;
  --brand-ring: rgba(255, 126, 51, 0.32);

  /* Azul-tinta: fundo das seções escuras e cor do texto */
  --ink: #0b1220;
  --ink-2: #111c31;
  --ink-3: #1b2a45;
  --ink-line: rgba(255, 255, 255, 0.12);
  --ink-soft: rgba(255, 255, 255, 0.68);

  /* Claro */
  --paper: #f6f7fb;
  --card: #ffffff;
  --line: #e3e7f0;
  --line-strong: #cdd4e4;
  --text: #121a2b;
  --text-2: #4a5468;
  --text-3: #6b7589;

  /* Situações (iguais às do sistema) */
  --ok: #15803d;
  --ok-bg: #e7f7ec;
  --late: #be123c;
  --late-bg: #fdeaef;
  --warn: #a16207;
  --warn-bg: #fdf4e3;
  --lime: #a9e34b;
  --info: #1d4ed8;
  --info-bg: #e8eeff;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06), 0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow: 0 2px 6px rgba(11, 18, 32, 0.06), 0 14px 34px -12px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 30px 70px -28px rgba(11, 18, 32, 0.45);
  --shadow-brand: 0 18px 44px -16px rgba(255, 126, 51, 0.6);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv05" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-modal {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 3.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
}

h3 {
  font-size: 1.1875rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.section-head-light p {
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 0.75rem;
}

.section-head-light .eyebrow {
  color: var(--brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* Botões ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 0.8rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1.05rem 1.9rem;
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
}

.btn-brand {
  background: var(--brand);
  color: #2a1203;
  box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
  background: #ff9154;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: var(--ink-3);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.btn-whats {
  background: #25d366;
  color: #04301a;
}

.btn-whats:hover {
  background: #3ddd79;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-brand {
  fill: currentColor;
  stroke: none;
}

/* Entradas suaves ------------------------------------------------------- */

.reveal.is-armed {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-armed.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* Etiquetas de situação -------------------------------------------------- */

.pill {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.pill-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill-open {
  background: #eef1f7;
  color: var(--text-2);
}

.pill-late {
  background: var(--late-bg);
  color: var(--late);
}

.pill-partial {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill-closed {
  background: #eef1f7;
  color: var(--text-3);
}

.pill-brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.pill-info {
  background: var(--info-bg);
  color: var(--info);
}

/* Cabeçalho -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.96);
  border-bottom-color: var(--ink-line);
}

.header-inner {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.brand b {
  color: var(--brand);
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: #fff;
  border-bottom-color: var(--brand);
}

.main-nav .nav-login {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-login {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.header-login:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Fundo: malha de pontos sumindo para baixo + brilho laranja do logo. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 75%);
}

.hero::after {
  top: -30%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 126, 51, 0.3) 0%, transparent 62%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(255, 126, 51, 0.12);
  border: 1px solid var(--brand-ring);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--ink-soft);
}

.hero-lead b {
  color: #fff;
  font-weight: 600;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-facts {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.hero-facts li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  background: rgba(169, 227, 75, 0.16) url("assets/check-lime.svg") center / 0.72rem no-repeat;
}

/* Hero visual: a cópia do pedido em PDF sendo lida e virando pedido ------- */

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.scan-card {
  position: relative;
  background: #fdfdfb;
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.15rem 1.25rem;
  overflow: hidden;
}

.scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line-strong);
}

.scan-head span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scan-head strong {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* Linhas "escaneadas" do documento: ilustração, sem texto real. */
.scan-lines {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.scan-lines i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ecf3, #f3f5f9);
}

.scan-lines i:nth-child(2n) {
  width: 86%;
}

.scan-lines i:nth-child(3n) {
  width: 64%;
}

.scan-lines i.is-strong {
  height: 10px;
  width: 42%;
  background: linear-gradient(90deg, #d7dce8, #e6eaf2);
}

.scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  top: -42%;
  background: linear-gradient(180deg, transparent, rgba(255, 126, 51, 0.16) 72%, rgba(255, 126, 51, 0.85));
  border-bottom: 2px solid var(--brand);
  animation: scan 3.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: -42%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  72% {
    top: 100%;
    opacity: 1;
  }
  86%,
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* O resultado da leitura: campos já preenchidos. */
.extract-card {
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius-lg);
  /* Faixa laranja no topo por inset: acompanha o arredondamento do cartão. */
  box-shadow: var(--shadow-lg), inset 0 3px 0 var(--brand);
  padding: 1.25rem 1.15rem 1.1rem;
}

.extract-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.extract-head .icon {
  color: var(--brand);
  stroke-width: 2.4;
}

.extract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
  margin: 0;
}

.extract-grid div {
  min-width: 0;
}

.extract-grid dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.extract-grid dd {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: fieldIn 0.5s ease both;
}

.extract-grid div:nth-child(2) dd {
  animation-delay: 0.1s;
}

.extract-grid div:nth-child(3) dd {
  animation-delay: 0.2s;
}

.extract-grid div:nth-child(4) dd {
  animation-delay: 0.3s;
}

.extract-grid div:nth-child(5) dd {
  animation-delay: 0.4s;
}

.extract-grid div:nth-child(6) dd {
  animation-delay: 0.5s;
}

@keyframes fieldIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.extract-foot {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.extract-foot b {
  font-family: var(--font-display);
  color: var(--text);
}

/* Cartão da comissão, sobreposto ao canto. */
.pulse-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.95rem 1.05rem;
  color: #fff;
}

.pulse-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(169, 227, 75, 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(169, 227, 75, 0);
  }
}

.pulse-card ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: 0.875rem;
}

.pulse-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.pulse-card b {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pulse-card .t-ok {
  color: var(--lime);
}

.pulse-card .t-late {
  color: #ff8098;
}

.pulse-bar {
  display: flex;
  gap: 3px;
  margin-top: 0.85rem;
  height: 6px;
}

.pulse-bar i {
  display: block;
  width: var(--w);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.pulse-bar i:first-child {
  background: var(--lime);
}

/* Segundo pedaço = comissão retida por atraso, no mesmo vermelho da lista. */
.pulse-bar i:nth-child(2) {
  background: #ff8098;
}

/* Faixa sob o hero ------------------------------------------------------- */

.hero-strip {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  color: rgba(255, 255, 255, 0.72);
}

.hero-strip ul {
  margin: 0;
  padding-block: 1.1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  justify-content: center;
  font-size: 0.875rem;
}

.hero-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-strip .icon {
  color: var(--brand);
}

/* Perguntas que a planilha não responde ---------------------------------- */

.questions {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.questions-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.questions-head h2 span {
  color: var(--brand-deep);
}

.questions-head p {
  margin-top: 1rem;
  color: var(--text-2);
}

.question-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  counter-reset: q;
}

.question-list li {
  counter-increment: q;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem 1.25rem 3.9rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.question-list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 1.4rem;
  top: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  font-variant-numeric: tabular-nums;
}

.question-list .q {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.question-list .a {
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.question-list .a b {
  color: var(--brand-deep);
  font-weight: 700;
}

/* O caminho do pedido ---------------------------------------------------- */

.road {
  --dot: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: road;
}

.road-step {
  position: relative;
  counter-increment: road;
  padding-top: 2.5rem;
}

/* Trilho: linha contínua ligando as etapas, com o marcador de cada uma. */
.road-step::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: 0;
  right: -1.5rem;
  height: 2px;
  background: var(--line-strong);
}

.road-step:last-child::before {
  right: 0;
}

.road-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--c, var(--brand));
}

.road-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c, var(--brand-deep));
  margin-bottom: 0.5rem;
}

.road-step h3 {
  font-size: 1.0625rem;
}

.road-step p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.road-out {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  border-top: 1px dashed var(--line-strong);
  padding-top: 0.55rem;
}

[data-road].is-armed .road-step {
  opacity: 0;
  transform: translateY(14px);
}

[data-road].is-armed.is-visible .road-step {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-road].is-armed.is-visible .road-step:nth-child(2) {
  transition-delay: 0.1s;
}

[data-road].is-armed.is-visible .road-step:nth-child(3) {
  transition-delay: 0.2s;
}

[data-road].is-armed.is-visible .road-step:nth-child(4) {
  transition-delay: 0.3s;
}

/* Comissão do mundo real: abas + extrato -------------------------------- */

.commission {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.commission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.commission-copy h2 {
  max-width: 24rem;
}

.commission-copy > p {
  margin-top: 1rem;
  color: var(--text-2);
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.scenario-tabs button {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.scenario-tabs button:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.scenario-tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Explicação da aba escolhida: painel claro, sem borda de destaque. */
.scenario-explain {
  margin-top: 1.15rem;
  min-height: 5.5rem;
  font-size: 0.9375rem;
  color: #6b3a18;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.extra-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.extra-list li {
  position: relative;
  padding-left: 1.5rem;
}

.extra-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

/* Extrato (janela do sistema, ilustrativa) */
.ledger {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ledger-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  font-weight: 500;
}

.ledger-dots {
  display: flex;
  gap: 5px;
}

.ledger-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.ledger-dots i:first-child {
  background: var(--brand);
}

.ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper), var(--card));
}

.ledger-summary small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ledger-summary b {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ledger-summary b.pill {
  font-size: 0.75rem;
  display: inline-block;
  margin-top: 0.3rem;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ledger-table th,
.ledger-table td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}

.ledger-table thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--paper);
}

.ledger-table td:nth-child(1),
.ledger-table td:nth-child(3),
.ledger-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
}

.ledger-table td:nth-child(1) {
  font-weight: 600;
}

.ledger-table tbody tr:last-child td {
  border-bottom: 0;
}

.ledger-table tr.is-child td:first-child {
  padding-left: 2rem;
  position: relative;
  color: var(--text-2);
}

.ledger-table tr.is-child td:first-child::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.8rem;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
}

.ledger-table tr.is-muted td {
  color: var(--text-3);
}

.ledger-table tr.is-group td {
  background: var(--brand-soft);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.ledger-table tr.is-new {
  animation: rowIn 0.45s ease both;
}

@keyframes rowIn {
  from {
    background: var(--brand-soft);
    opacity: 0.2;
  }
  to {
    background: transparent;
    opacity: 1;
  }
}

.ledger-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
}

.ledger > .demo-note {
  padding: 0 1rem 1rem;
  margin-top: 0.75rem;
}

/* Leitura do PDF --------------------------------------------------------- */

.pdf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.pdf-copy h2 span {
  color: var(--brand-deep);
}

.pdf-copy > p {
  margin-top: 1rem;
  color: var(--text-2);
}

.field-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.field-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.field-list b {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 7px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.pdf-aside {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
}

.pdf-aside h3 {
  font-size: 1.25rem;
  color: #fff;
}

.pdf-aside p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.pdf-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  counter-reset: pdf;
}

/* O marcador é absoluto: em grid, o <strong> e o texto solto viram itens separados. */
.pdf-steps li {
  counter-increment: pdf;
  position: relative;
  padding-left: 2.6rem;
  min-height: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.pdf-steps li::before {
  content: counter(pdf);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: rgba(255, 126, 51, 0.16);
  border: 1px solid var(--brand-ring);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

.pdf-steps strong {
  color: #fff;
  font-weight: 600;
}

.pdf-aside .demo-note {
  color: rgba(255, 255, 255, 0.5);
}

/* Módulos ---------------------------------------------------------------- */

.modules {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.module-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 1rem;
}

.module-icon .icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 1.8;
}

.module-card h3 {
  font-size: 1.0625rem;
}

.module-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.module-card ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.module-card li {
  position: relative;
  padding-left: 0.95rem;
}

.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Relatórios ------------------------------------------------------------- */

.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.report-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.report-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.report-list b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.report-list span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.formats {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

.formats span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

/* Gráfico ilustrativo da curva ABC */
.abc-chart {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem 1.1rem;
}

.abc-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.abc-head strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.abc-head span {
  font-size: 0.75rem;
  color: var(--text-3);
}

.abc-rows {
  display: grid;
  gap: 0.7rem;
}

.abc-row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 5rem;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
}

.abc-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}

.abc-row i {
  display: block;
  height: 0.6rem;
  border-radius: 999px;
  width: var(--w);
  background: var(--brand);
}

.abc-row.is-b i {
  background: #ffb184;
}

.abc-row.is-c i {
  background: var(--line-strong);
}

.abc-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.abc-legend {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.abc-legend span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.abc-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: var(--brand);
}

.abc-legend span:nth-child(2) i {
  background: #ffb184;
}

.abc-legend span:nth-child(3) i {
  background: var(--line-strong);
}

/* Controle --------------------------------------------------------------- */

.control {
  background: var(--ink);
  color: #fff;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.control-panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.control-panel h3 {
  color: #fff;
  font-size: 1.0625rem;
}

.control-panel > p {
  margin-top: 0.45rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.panel-foot {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.perm-table {
  width: 100%;
  margin-top: 1.1rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.perm-table th,
.perm-table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid var(--ink-line);
  text-align: center;
}

.perm-table thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.perm-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #fff;
}

.perm-table .on {
  color: var(--lime);
  font-weight: 600;
}

.perm-table .off {
  color: rgba(255, 255, 255, 0.35);
}

.audit-log {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.audit-log li {
  display: grid;
  gap: 0.1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--ink-line);
}

.audit-log time {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}

.audit-log b {
  color: #fff;
}

.audit-log span {
  color: var(--brand);
  font-size: 0.75rem;
}

.hide-demo {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.hide-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink-line);
}

.hide-row b {
  font-family: var(--font-display);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hide-demo.is-hidden .money {
  color: transparent;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.75);
  user-select: none;
}

.hide-toggle {
  justify-self: start;
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hide-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hide-toggle[aria-pressed="true"] {
  color: var(--brand);
  border-color: var(--brand-ring);
}

.control-extras {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.control-extras li {
  padding-left: 1.5rem;
  position: relative;
}

.control-extras li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

.control-extras b {
  color: #fff;
}

/* Posicionamento --------------------------------------------------------- */

.stance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.stance-grid h2 s {
  text-decoration-color: var(--brand);
  text-decoration-thickness: 3px;
  color: var(--text-3);
}

.stance-grid h2 span {
  display: block;
  color: var(--brand-deep);
}

.stance-copy p + p {
  margin-top: 1rem;
}

.stance-copy p {
  color: var(--text-2);
}

/* Implantação ------------------------------------------------------------ */

.onboarding {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* Dúvidas ---------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: var(--line-strong);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 3rem 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-list p {
  padding: 0 1.2rem 1.2rem;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* CTA final -------------------------------------------------------------- */

.final-cta {
  position: relative;
  background: var(--brand);
  color: #2a1203;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 120% at 85% 0%, rgba(255, 255, 255, 0.4), transparent 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.final-cta h2 {
  color: #2a1203;
}

.final-cta p {
  margin-top: 0.85rem;
  color: rgba(42, 18, 3, 0.78);
}

.final-cta-actions {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.final-whatsapp {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2a1203;
  text-decoration-color: rgba(42, 18, 3, 0.4);
  text-underline-offset: 3px;
}

/* Barra fixa do celular --------------------------------------------------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ink-line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.mobile-cta.is-visible {
  transform: none;
}

.mobile-cta .btn {
  flex: 1;
  padding-inline: 1rem;
}

.mobile-cta .btn-whats {
  flex: 0 0 auto;
}

/* Modal de contato -------------------------------------------------------- */

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.contact-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  width: min(100%, 60rem);
  max-height: min(94vh, 54rem);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.is-open .contact-modal-panel {
  transform: none;
}

.contact-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-modal-close:hover {
  background: var(--paper);
  color: var(--text);
}

.contact-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.contact-side {
  background: var(--ink);
  color: #fff;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-side h2 {
  font-size: 1.375rem;
  color: #fff;
}

.contact-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  counter-reset: cside;
}

.contact-steps li {
  counter-increment: cside;
  position: relative;
  padding-left: 2.1rem;
  min-height: 1.4rem;
}

.contact-steps li::before {
  content: counter(cside);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(255, 126, 51, 0.18);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
}

.contact-steps strong {
  color: #fff;
  font-weight: 600;
}

.contact-side-whatsapp {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.contact-side-whatsapp a {
  display: block;
  margin-top: 0.3rem;
  color: var(--lime);
  font-weight: 600;
}

.contact-main {
  overflow-y: auto;
  padding: 2.25rem 1.9rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-wide {
  grid-column: 1 / -1;
}

.contact-form label > span,
.contact-choices legend {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.contact-form label > span em,
.contact-choices legend em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-3);
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.contact-form input:user-invalid {
  border-color: var(--late);
}

.contact-choices {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.contact-choices > div,
.contact-choices label {
  display: inline-flex;
}

.contact-choices label {
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.45rem 0.45rem 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.contact-choices label:hover {
  border-color: var(--brand);
}

.contact-choices input {
  accent-color: var(--brand);
  margin: 0;
}

.contact-choices label:has(input:checked) {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-deep);
  font-weight: 600;
}

.contact-choices.is-missing legend {
  color: var(--late);
}

.contact-choices.is-missing label {
  border-color: #f3b7c6;
}

/* Destaque calmo da próxima resposta pendente (não é erro). */
.contact-choices.is-next,
label.is-next {
  animation: nudge 1.4s ease;
}

@keyframes nudge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 126, 51, 0);
  }
  25%,
  65% {
    box-shadow: 0 0 0 4px var(--brand-ring);
  }
}

.contact-note {
  margin-top: 1.25rem;
}

.contact-note-toggle {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-note-toggle em {
  font-style: normal;
  font-weight: 400;
  color: var(--text-3);
}

.contact-message {
  display: block;
  margin-top: 0.6rem;
}

.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-turnstile:not(:empty) {
  margin-top: 1.1rem;
}

.contact-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.contact-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-2);
}

.contact-status.is-error {
  color: var(--late);
  font-weight: 500;
}

.contact-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
}

.contact-progress.is-done {
  color: var(--ok);
}

.contact-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

/* --done vem do script como fração (0 a 1): scaleX não causa reflow. */
.contact-progress-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(var(--done, 0));
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.contact-progress.is-done .contact-progress-bar i {
  background: var(--ok);
}

.contact-submit {
  width: 100%;
  padding-block: 0.95rem;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-privacy {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

.contact-success {
  text-align: center;
  padding: 2rem 0 1rem;
}

.contact-success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--ok-bg);
}

.contact-success-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-success p {
  margin-top: 0.6rem;
  color: var(--text-2);
}

.contact-protocol {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-3);
}

.contact-success-actions {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.contact-success-whatsapp {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-deep);
}

/* Rodapé ----------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--ink-soft);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 24rem;
}

.site-footer address {
  font-style: normal;
  display: grid;
  gap: 0.4rem;
}

.site-footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
  width: fit-content;
}

.site-footer a:hover {
  border-bottom-color: var(--brand);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-credit {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-credit img {
  height: 1.5rem;
  width: auto;
}

/* Responsivo ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-grid,
  .commission-grid,
  .pdf-grid,
  .reports-grid,
  .stance-grid,
  .faq-grid,
  .final-cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 3.5rem;
  }

  .module-grid,
  .control-grid,
  .steps,
  .control-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .road {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .road-step:nth-child(2n)::before {
    right: 0;
  }

  .pdf-grid .pdf-aside {
    order: 2;
  }

  .reports-grid .abc-chart {
    order: -1;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 3.6rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 1.0625rem;
  }

  .main-nav a:hover {
    border-bottom-color: var(--ink-line);
  }

  .main-nav .nav-login {
    display: block;
    color: var(--brand);
    font-weight: 600;
    border-bottom: 0;
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-login,
  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: 4.5rem;
  }

  .contact-modal-panel {
    grid-template-columns: minmax(0, 1fr);
    max-height: 96vh;
  }

  .contact-side {
    padding: 1.5rem 1.5rem 1.25rem;
    gap: 0.9rem;
  }

  .contact-side img,
  .contact-steps,
  .contact-side-whatsapp {
    display: none;
  }

  .contact-side h2 {
    font-size: 1.1875rem;
    padding-right: 2.5rem;
  }

  .contact-main {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

@media (max-width: 620px) {
  .module-grid,
  .control-grid,
  .steps,
  .control-extras,
  .road,
  .ledger-summary,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .road {
    gap: 0;
  }

  /* No celular o trilho vira vertical. */
  .road-step {
    padding: 0 0 1.75rem 2rem;
  }

  .road-step::before {
    top: var(--dot);
    bottom: -0.25rem;
    left: calc(var(--dot) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }

  .road-step:last-child::before {
    display: none;
  }

  .road-step::after {
    top: 0.15rem;
  }

  .ledger-summary {
    gap: 0.5rem;
  }

  .ledger-table th,
  .ledger-table td {
    padding: 0.55rem 0.7rem;
  }

  .ledger-table thead th:nth-child(2),
  .ledger-table tbody td:nth-child(2) {
    display: none;
  }

  .abc-row {
    grid-template-columns: 5.5rem minmax(0, 1fr) 4.2rem;
  }

  .question-list li {
    padding: 1.1rem 1.1rem 1.1rem 1.1rem;
  }

  .question-list li::before {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

/* Movimento reduzido ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scan-beam {
    display: none;
  }

  .reveal.is-armed {
    opacity: 1;
    transform: none;
  }
}

/* Etiqueta de situação na coluna da comissão: linha própria. */
.ledger-table td:last-child .pill {
  display: block;
  width: fit-content;
  margin-top: 0.25rem;
}

/* Rodapé do cartão de extração: a etiqueta cai para baixo em tela estreita. */
.extract-foot {
  flex-wrap: wrap;
}

/* `display` nas regras acima vence o atributo hidden do navegador: devolve a precedência. */
[hidden] {
  display: none !important;
}
