/* =================================================================
   AURE DIGITAL — Landing Page Saúde
   Marca: Montserrat · roxo #7433db · magenta #bc3eff · pixel quadrado
   Estrutura "sanduíche": faixas escuras (hero / entregáveis / CTA / rodapé)
   com miolo claro. Signature = o quadradinho magenta (pixel).
   ================================================================= */

:root {
  /* Cores oficiais (Branding Book) */
  --purple: #7433db;
  --purple-700: #6222c4;
  --purple-800: #521aa6;
  --magenta: #bc3eff;

  /* Tema CLARO (saúde). Base lavanda clara substitui o antigo fundo escuro. */
  --base: #ece4f9;          /* fundo lavanda clara (era o "escuro") */
  --ink: #0b0710;           /* mantido só p/ mídia (moldura do vídeo) */
  --ink-2: #140b1e;
  --ink-3: #1b0f2a;

  /* Claros */
  --paper: #ffffff;         /* seções "card" brancas flutuando sobre a base */
  --paper-2: #ffffff;
  --paper-line: rgba(23, 10, 36, 0.10);

  /* Texto (tudo sobre claro agora) */
  --t-ink: #170a24;         /* títulos */
  --t-body: #4c445a;        /* corpo */
  --t-on-dark: #170a24;     /* antes branco; agora escuro (seções viraram claras) */
  --t-on-dark-soft: #5a5170;
  --line-dark: rgba(188, 62, 255, 0.28);

  /* Sistema */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --wrap: 1160px;
  --pad-x: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 8vw, 112px);
  --shadow-card: 0 18px 50px -24px rgba(23, 10, 36, 0.30);
  --shadow-form: 0 30px 70px -38px rgba(90, 55, 150, 0.30);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------- Base ----------------------------- */
* { box-sizing: border-box; }

/* garante que o atributo [hidden] vença regras de display de classe
   (ex.: .form { display: grid }) — usado no estado de sucesso do form */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--t-ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.06; }

p { margin: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --------------------- Signature: pixel quadrado --------------------- */
.pixel {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--magenta);
  border-radius: 2px;
  box-shadow: 0 0 0 4px rgba(188, 62, 255, 0.12);
}

/* Eyebrow / selo — rótulo maiúsculo com tracking largo (padrão do branding book) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--magenta);
  border-radius: 2px;
  flex: 0 0 auto;
}
.eyebrow--magenta { color: var(--magenta); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(116, 51, 219, 0.9);
}
.btn--primary:hover {
  background: var(--magenta);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px rgba(188, 62, 255, 0.75);
}
.btn--lg { padding: 18px 36px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* CTA do topo (nav) */
.btn--nav {
  padding: 11px 20px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--t-ink);
  border: 1.5px solid var(--paper-line);
  white-space: nowrap;
}
.btn--nav:hover { background: var(--purple); border-color: var(--purple); color: #fff; transform: translateY(-1px); }

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 34px; width: auto; }
.nav__logo-img--dark { display: none; } /* tema claro: usa sempre a logo p/ fundo claro */

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav__links a { color: var(--t-on-dark-soft); transition: color 0.15s var(--ease); }
.nav__links a:hover { color: var(--t-ink); }
.nav .btn--nav { margin-left: 8px; }

/* estado rolado → barra clara sólida + logo escura
   (sem backdrop-filter: mais leve/estável ao rolar em telas fracas) */
.nav[data-state="scrolled"] {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--paper-line);
  box-shadow: 0 10px 30px -22px rgba(23, 10, 36, 0.5);
}
.nav[data-state="scrolled"] .nav__logo-img--dark { display: none; }
.nav[data-state="scrolled"] .nav__logo-img--light { display: block; }
.nav[data-state="scrolled"] .nav__links a { color: var(--t-body); }
.nav[data-state="scrolled"] .nav__links a:hover { color: var(--t-ink); }
.nav[data-state="scrolled"] .btn--nav {
  color: var(--t-ink);
  border-color: var(--paper-line);
}
.nav[data-state="scrolled"] .btn--nav:hover { color: #fff; border-color: var(--purple); }

/* ======================= Section scaffolding ======================= */
.section { position: relative; padding-block: var(--section-y); }
.section--paper { background: var(--paper); color: var(--t-ink); }
.section--dark { background: var(--base); color: var(--t-ink); }
.section--divide { border-top: 1px solid var(--paper-line); }

/* transição "lift": a seção sobe sobre a anterior com o topo arredondado,
   revelando a cor de trás nos cantos (usado nas trocas de cor entre seções) */
.section--lift {
  --lift-r: clamp(26px, 3.4vw, 46px);
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--lift-r));
  border-top-left-radius: var(--lift-r);
  border-top-right-radius: var(--lift-r);
}
/* garante que fundos/texturas respeitem o canto arredondado */
.section--lift.section--paper,
.section--lift.section--dark { overflow: hidden; }

/* base arredondada: a seção clara termina com o canto arredondado,
   revelando o fundo escuro (--ink do body) atrás — fecha o "card" claro */
.section--round-b {
  --lift-r: clamp(26px, 3.4vw, 46px);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: var(--lift-r);
  border-bottom-right-radius: var(--lift-r);
}

.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--wide { max-width: 760px; }
.section__head .eyebrow { margin-bottom: 18px; }

.section__title {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section--dark .section__title { color: var(--t-ink); }

.section__lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--t-body);
  max-width: 62ch;
}
.section--dark .section__lead { color: var(--t-on-dark-soft); }

.section__cta { margin-top: clamp(38px, 5vw, 56px); }

.hl { color: var(--magenta); }
.hl-ink {
  color: var(--purple);
  /* mantém a expressão junta onde couber, sem forçar overflow no mobile */
  white-space: nowrap;
}
@media (max-width: 640px) {
  .hl-ink { white-space: normal; }
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  background: var(--base);
  color: var(--t-ink);
  padding-top: clamp(102px, 11vw, 130px);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
/* textura de marca: linhas diagonais + brilho sutil (flat, discreto) */
.hero__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(188, 62, 255, 0.10), transparent 70%),
    radial-gradient(50% 50% at 0% 20%, rgba(116, 51, 219, 0.08), transparent 70%);
}
.hero__texture::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 42%;
  height: 70%;
  background-image: repeating-linear-gradient(
    -45deg, rgba(116, 51, 219, 0.08) 0 2px, transparent 2px 22px
  );
  -webkit-mask-image: linear-gradient(-45deg, transparent 30%, #000);
  mask-image: linear-gradient(-45deg, transparent 30%, #000);
  opacity: 0.5;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-template-areas:
    "head form"
    "bullets form";
  grid-template-rows: min-content 1fr;
  align-items: start;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 26px;
}
.hero__head { grid-area: head; align-self: start; }
.hero__form { grid-area: form; align-self: start; }
.hero__bullets { grid-area: bullets; align-self: start; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero__sub {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--t-on-dark-soft);
  max-width: 46ch;
}
.hero__sub strong { color: var(--purple); font-weight: 700; }

/* (card de promessa ROAS removido — ROAS 7 agora está no próprio H1) */

.hero__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--t-ink);
}

/* --------------------------- Form card --------------------------- */
.formcard {
  background: var(--paper-2);
  color: var(--t-ink);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--shadow-form);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.formcard__title { font-size: 1.28rem; font-weight: 800; }
.formcard__sub {
  margin-top: 5px;
  font-size: 0.88rem;
  color: var(--t-body);
}
.form { margin-top: 14px; display: grid; gap: 8px; }
.form .btn--primary { padding: 12px 22px; margin-top: 3px; }

.field { display: grid; gap: 3px; }
.field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--t-ink);
}
.field input,
.field select {
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--t-ink);
  padding: 9px 12px;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius);
  background: #fbfafe;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  width: 100%;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237433db' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input::placeholder { color: #a79fb3; }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116, 51, 219, 0.14);
}
.field--invalid input,
.field--invalid select {
  border-color: #d63b6b;
  background: #fdf5f8;
}
.field__error {
  font-size: 0.76rem;
  font-weight: 600;
  color: #cf305f;
  min-height: 0;
}

.formcard__note {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--t-body);
}
.lock {
  width: 13px; height: 13px; flex: 0 0 auto;
  border: 1.6px solid var(--purple);
  border-radius: 3px 3px 4px 4px;
  position: relative;
}
.lock::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 6px;
  border: 1.6px solid var(--purple);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

/* estado de sucesso */
.formcard__success { text-align: center; padding: 26px 8px 12px; }
.formcard__success h3 { font-size: 1.35rem; font-weight: 800; }
.formcard__success p { margin-top: 10px; color: var(--t-body); font-size: 0.96rem; }
.formcard__success-mark {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(116, 51, 219, 0.12);
  position: relative;
}
.formcard__success-mark::after {
  content: "";
  width: 20px; height: 11px;
  border-left: 3.5px solid var(--purple);
  border-bottom: 3.5px solid var(--purple);
  transform: translateY(-2px) rotate(-45deg);
  border-radius: 1px;
}

/* ============================== DORES ============================== */
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}
.pain__tick {
  display: block;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(188, 62, 255, 0.12);
  position: relative;
  margin-bottom: 18px;
}
.pain__tick::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px; height: 10px;
  background: var(--magenta);
  border-radius: 2px;
}
.pain__title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.pain p { color: var(--t-body); font-size: 0.98rem; }

/* ============================= PILARES ============================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  position: relative;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--magenta);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pillar__glyph {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--purple);
  letter-spacing: -0.04em;
  display: block;
}
.pillar__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 14px 0 10px;
}
.pillar p { color: var(--t-body); font-size: 0.98rem; }

/* =========================== ENTREGÁVEIS =========================== */
.section--deliver { overflow: hidden; }
.deliver__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(45% 60% at 100% 100%, rgba(116, 51, 219, 0.08), transparent 70%);
}
.deliver {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.deliver li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  color: var(--t-ink);
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}
.deliver__ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(188, 62, 255, 0.13);
  color: var(--magenta);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.deliver__ic svg { width: 22px; height: 22px; }
.deliver li:hover {
  border-color: var(--magenta);
  background: rgba(188, 62, 255, 0.07);
  transform: translateY(-2px);
}
.deliver li:hover .deliver__ic { background: var(--magenta); color: #fff; }

/* =========================== METODOLOGIA =========================== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--purple), rgba(116, 51, 219, 0.15));
}
.phase {
  position: relative;
  padding: 0 0 34px 44px;
}
.phase:last-child { padding-bottom: 0; }
.phase__node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px; height: 16px;
  background: var(--paper);
  border: 3px solid var(--purple);
  border-radius: 3px;
  z-index: 1;
}
.phase__node--result {
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 0 6px rgba(188, 62, 255, 0.16);
}
.phase__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.phase__when {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}
.phase__tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--t-body);
  padding: 3px 10px;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-pill);
}
.phase__title { font-size: 1.28rem; font-weight: 800; margin-bottom: 12px; }
.phase__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.phase__list li {
  position: relative;
  padding-left: 20px;
  color: var(--t-body);
  font-size: 0.99rem;
}
.phase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px; height: 7px;
  background: var(--magenta);
  border-radius: 2px;
}

/* Fase 4 — destaque */
.phase--result .phase__body {
  background: linear-gradient(180deg, rgba(116, 51, 219, 0.06), rgba(188, 62, 255, 0.05));
  border: 1px solid rgba(116, 51, 219, 0.22);
  border-left: 3px solid var(--magenta);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-top: 4px;
}
.phase__when--result { color: var(--magenta); }
.phase__tag--result {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}
.phase__result-text { color: var(--t-body); font-size: 1.04rem; }

/* =========================== PROVA SOCIAL =========================== */
.proof {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.proof__intro { max-width: 600px; }
.proof__intro .eyebrow { margin-bottom: 18px; }
.proof__lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--t-body);
  max-width: 44ch;
}
.proof__brands { margin-top: 32px; }
.proof__brands-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t-body);
  margin-bottom: 16px;
}
.proof__brands-row { overflow: visible; }
.proof__brands-track { display: flex; flex-wrap: wrap; }
.proof__brands-track .brand-chip { margin: 0 14px 14px 0; }
.proof__brands-track > [aria-hidden="true"] { display: none; } /* cópias só aparecem no carrossel mobile */
.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  min-width: 168px;
  flex: 0 0 auto;
  padding: 8px 24px;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px -18px rgba(23, 10, 36, 0.35);
}
/* tamanho por logo (horizontais cabem pela largura; quadradas pela altura) */
.brand-chip img { width: auto; height: auto; display: block; }
.brand-chip--neo img { max-width: 128px; max-height: 94px; }
.brand-chip--hospital img { max-width: 152px; max-height: 108px; }
.brand-chip--operamed img { max-width: 160px; max-height: 74px; }
.brand-chip--ph {
  background: rgba(116, 51, 219, 0.05);
  border: 1.5px dashed rgba(116, 51, 219, 0.4);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}
.proof__media {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.proof__caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t-body);
  text-align: center;
}
.proof__caption strong { color: var(--t-ink); font-weight: 700; }
.proof__video {
  width: min(330px, 82vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-form);
  border: 1px solid rgba(116, 51, 219, 0.25);
}
.proof__video iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 860px) {
  .proof { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 34px; }
  .proof__intro { width: 100%; min-width: 0; max-width: 100%; }
  .proof__lead { max-width: 100%; margin-inline: auto; }

  /* carrossel contínuo das marcas (não empilha) */
  .proof__brands { width: 100%; min-width: 0; }
  .proof__brands-row { overflow: hidden; width: 100%; min-width: 0; }
  .proof__brands-track {
    flex-wrap: nowrap;
    width: max-content;
    animation: brands-marquee 22s linear infinite;
  }
  .proof__brands-track .brand-chip { margin: 0 14px 0 0; }
  .proof__brands-track > [aria-hidden="true"] { display: inline-flex; }
}
@keyframes brands-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .proof__brands-track { animation: none; }
  .proof__brands-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================ CTA FINAL ============================ */
.cta-final { overflow: hidden; }
.cta-final__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(188, 62, 255, 0.09), transparent 70%),
    radial-gradient(42% 55% at 10% 100%, rgba(116, 51, 219, 0.08), transparent 70%);
}
.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}
.cta-final .eyebrow { margin-bottom: 20px; }
.cta-final__title {
  font-size: clamp(1.95rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--t-ink);
}
.cta-final__text {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--t-body);
  max-width: 52ch;
}
.cta-final .btn { margin-top: 34px; }

/* ============================== RODAPÉ ============================== */
.footer { background: var(--base); padding-block: 48px; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--paper-line);
}
.footer__logo img { height: 40px; width: auto; }
.footer__mail {
  color: var(--t-ink);
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.15s var(--ease);
}
.footer__mail:hover { color: var(--purple); }
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--t-on-dark-soft);
}
.footer__legal a { color: var(--purple); font-weight: 600; }

/* ======================= JORNADA DO PACIENTE ======================= */
.journey { overflow: hidden; }
.journey__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(52% 60% at 50% -5%, rgba(188, 62, 255, 0.07), transparent 70%);
}
.journey .wrap { position: relative; z-index: 1; }

/* fluxo com medalhões de ícone conectados por uma linha (Tráfego → … → Financeiro) */
.journey__flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.jstep {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.jstep__node {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 17px;
  background: linear-gradient(150deg, #7433db, #bc3eff);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px -10px rgba(188, 62, 255, 0.65);
}
.jstep__node svg { width: 27px; height: 27px; }
.jstep__num {
  position: absolute;
  top: -9px;
  left: calc(50% + 12px);
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--magenta);
  color: var(--purple);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 2;
}
/* linha de fluxo entre os medalhões */
.jstep:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: calc(50% + 31px);
  width: calc(100% - 62px);
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), rgba(116, 51, 219, 0.4));
  z-index: 0;
}
.jstep__label { color: var(--t-ink); font-size: 1.06rem; font-weight: 700; margin-bottom: 6px; }
.jstep__desc { color: var(--t-on-dark-soft); font-size: 0.82rem; line-height: 1.4; }

@media (max-width: 900px) {
  .journey__flow { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .jstep {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 20px;
    text-align: left;
    padding: 0 0 26px;
    align-items: start;
  }
  .jstep__node { margin: 0; }
  .jstep__num { left: -9px; top: -9px; }
  .jstep__label { grid-column: 2; margin-top: 6px; }
  .jstep__desc { grid-column: 2; }
  .jstep:not(:last-child)::after {
    top: 62px;
    left: 30px;
    width: 2px;
    height: calc(100% - 62px);
    background: linear-gradient(180deg, var(--magenta), rgba(116, 51, 219, 0.3));
  }
}

/* =========================== DASHBOARD =========================== */
.dash { overflow: hidden; }
.dash__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 50% -10%, rgba(188, 62, 255, 0.08), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(116, 51, 219, 0.07), transparent 70%);
}
.dash .wrap { position: relative; z-index: 1; }

/* moldura de navegador */
.browser {
  margin: 0 auto;
  max-width: 1000px;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6fb;
  border: 1px solid rgba(188, 62, 255, 0.30);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e9ecf4;
  border-bottom: 1px solid rgba(23, 10, 36, 0.08);
}
.browser__dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd4e2; flex: 0 0 auto; }
.browser__dot:nth-child(1) { background: #f9a8a8; }
.browser__dot:nth-child(2) { background: #f7d38a; }
.browser__dot:nth-child(3) { background: #a9dcae; }
.browser__url {
  margin-left: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #7b8199;
  background: #f4f6fb;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser__screen { padding: clamp(16px, 2.4vw, 26px); background: #f4f6fb; }

/* UI do dashboard */
.dashui { display: grid; gap: 16px; }
.dashui__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi {
  background: #fff;
  border: 1px solid rgba(23, 10, 36, 0.07);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 22px -18px rgba(23, 10, 36, 0.4);
}
.kpi__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(116, 51, 219, 0.10);
  color: var(--purple);
}
.kpi__icon svg { width: 18px; height: 18px; }
.kpi__delta {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.kpi__delta--up { color: #15a34a; background: rgba(34, 197, 94, 0.14); }
.kpi__delta--down { color: #dc2626; background: rgba(239, 68, 68, 0.12); }
.kpi__label { font-size: 0.78rem; font-weight: 500; color: #6a6577; }
.kpi__value { font-size: 1.55rem; font-weight: 800; color: #170a24; letter-spacing: -0.02em; margin-top: 2px; }
.kpi--hero {
  background: linear-gradient(160deg, #7433db, #a12ff0);
  border-color: transparent;
}
.kpi--hero .kpi__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.kpi--hero .kpi__label { color: rgba(255, 255, 255, 0.82); }
.kpi--hero .kpi__value { color: #fff; }
.kpi--hero .kpi__delta--up { color: #eafff1; background: rgba(255, 255, 255, 0.20); }

/* gráficos */
.dashui__charts { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
.chartcard {
  background: #fff;
  border: 1px solid rgba(23, 10, 36, 0.07);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 22px -18px rgba(23, 10, 36, 0.4);
}
.chartcard__title { font-size: 0.98rem; font-weight: 800; color: #170a24; }
.chartcard__sub { font-size: 0.78rem; color: #8a8696; margin-top: 2px; margin-bottom: 12px; }
.areachart { width: 100%; height: auto; display: block; }
.areachart .grid { stroke: rgba(23, 10, 36, 0.08); stroke-width: 1; stroke-dasharray: 4 5; }
.areachart .fill { fill: rgba(116, 51, 219, 0.12); }
.areachart .line { fill: none; stroke: var(--purple); stroke-width: 2.5; stroke-linecap: round; }
.areachart .peak { fill: var(--magenta); }
.areachart .ax { fill: #a29dad; font-size: 9px; font-weight: 600; }

/* barras horizontais (palavras-chave) */
.bars { display: grid; gap: 11px; margin-top: 2px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bar__label { font-size: 0.8rem; font-weight: 600; color: #3f3a4c; }
.bar__val { font-size: 0.78rem; font-weight: 700; color: #6a6577; }
.bar__track { grid-column: 1 / -1; height: 8px; background: #eee9f6; border-radius: var(--radius-pill); overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, #7433db, #bc3eff); border-radius: var(--radius-pill); }

/* gráfico de linha (recebidas × perdidas) */
.linechart { width: 100%; height: auto; display: block; }
.linechart .grid { stroke: rgba(23, 10, 36, 0.08); stroke-width: 1; stroke-dasharray: 4 5; }
.linechart .l-receb { fill: none; stroke: #16a34a; stroke-width: 2.5; stroke-linecap: round; }
.linechart .l-perd { fill: none; stroke: #e0463f; stroke-width: 2.5; stroke-linecap: round; }
.linechart .d-receb { fill: #16a34a; }
.linechart .d-perd { fill: #e0463f; }
.linechart .ax { fill: #a29dad; font-size: 9px; font-weight: 600; }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: #6a6577; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* rosca (objetivos das chamadas) */
.donutwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { flex: 0 0 auto; }
.donut circle { fill: none; stroke-width: 15; }
.donut .track { stroke: #eee9f6; }
.donut__cv { font-size: 21px; font-weight: 800; fill: #170a24; }
.donut__cl { font-size: 8.5px; font-weight: 600; fill: #8a8696; letter-spacing: 0.04em; }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1 1 130px; }
.donut-legend li { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; }
.donut-legend .dl-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.donut-legend .dl-name { color: #3f3a4c; font-weight: 600; }
.donut-legend .dl-pct { margin-left: auto; color: #6a6577; font-weight: 700; }

/* callouts do dashboard */
.dash__callouts {
  list-style: none;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dash__callouts li { display: flex; gap: 14px; align-items: flex-start; }
.dash__callouts .pixel { margin-top: 6px; }
.dash__callouts strong { display: block; color: var(--t-ink); font-size: 1.02rem; font-weight: 700; }
.dash__callouts span:not(.pixel) { color: var(--t-on-dark-soft); font-size: 0.92rem; }
.dash__callouts .co-body { display: grid; gap: 3px; }

/* =========================== CASE NEO =========================== */
.case__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.case__media { margin: 0; }
.case__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 60%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-form);
  display: block;
}
.case__attrib { margin-top: 16px; }
.case__name { display: block; font-size: 1.35rem; font-weight: 800; color: var(--t-ink); letter-spacing: -0.01em; }
.case__role { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--t-body); }

.case__content .eyebrow { margin-bottom: 16px; }
.case__lead { margin-top: 16px; font-size: 1.05rem; color: var(--t-body); max-width: 54ch; }
.case__lead strong { color: var(--t-ink); font-weight: 700; }

/* tabela de evolução (antes vs. depois) */
.case__table { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.case__row {
  display: grid;
  grid-template-columns: 1.9fr 0.85fr 0.9fr 0.95fr;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.case__row--head {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-body);
}
.case__row--head span:not(:first-child) { text-align: right; }
.case__ind { font-size: 0.92rem; font-weight: 600; color: var(--t-ink); }
.case__val { text-align: right; font-variant-numeric: tabular-nums; }
.case__before { color: var(--t-body); font-weight: 600; }
.case__after { color: var(--t-ink); font-weight: 800; }
.case__delta { color: #16a34a; font-weight: 800; }

@media (max-width: 860px) {
  .case__grid { grid-template-columns: 1fr; }
  .case__media { max-width: 340px; margin-inline: auto; }
  .case__attrib { text-align: center; }
  .case__lead { max-width: 100%; }
}
@media (max-width: 560px) {
  .case__row--head { display: none; }
  .case__row { grid-template-columns: repeat(3, 1fr); gap: 6px 8px; padding: 14px 16px; }
  .case__ind { grid-column: 1 / -1; margin-bottom: 8px; }
  .case__val { text-align: left; }
  .case__val::before {
    display: block;
    content: attr(data-label);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--t-body);
    margin-bottom: 2px;
  }
}

/* ========================= Scroll reveal ========================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "bullets"
      "form";
    row-gap: 26px;
  }
  .hero__head { align-self: auto; }
  .hero__sub { max-width: 100%; }
  .pains, .pillars { grid-template-columns: 1fr; }
  .deliver { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .dashui__kpis { grid-template-columns: repeat(2, 1fr); }
  .dashui__charts { grid-template-columns: 1fr; }
  .dash__callouts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --section-y: clamp(52px, 12vw, 72px); }
  .deliver { grid-template-columns: 1fr; }
  .nav__inner { justify-content: space-between; gap: 12px; }
  .btn--nav { padding: 9px 15px; font-size: 0.8rem; }
  .hero { padding-top: 96px; }
  /* Hero mais leve no mobile: eyebrow e subtítulo menores; frase de abertura só no desktop */
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; gap: 8px; }
  .hero .eyebrow::before { width: 9px; height: 9px; }
  .hero__sub-intro { display: none; }
  .hero__sub { font-size: 0.92rem; margin-top: 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .formcard { padding: 20px; }
  .browser__screen { padding: 12px; }
  .kpi { padding: 13px; }
  .kpi__value { font-size: 1.3rem; }
}

/* micro-otimização: nav volta a aparecer o CTA em telas médias */
@media (min-width: 561px) and (max-width: 900px) {
  .nav__inner { justify-content: space-between; }
}
