/* ==========================================================================
   APSJ Tech — folha de estilo única (mobile-first)
   Ordem: fontes · tokens · base · layout · componentes · seções · páginas ·
          formulário · rodapé · utilitários · breakpoints (600 / 900 / 1200)
   ========================================================================== */

/* ---------- Fontes (IBM Plex Sans, SIL OFL — hospedada localmente) ---------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Cores da marca (extraídas do logotipo) */
  --blue: #015DA3;        /* azul da marca — links, ícones, faixas */
  --blue-dark: #014A82;   /* hover de links */
  --blue-light: #699DFE;  /* só decoração sobre fundo escuro */
  --yellow: #FFD600;      /* exclusivo de conversão */
  --yellow-hover: #EBC500;

  /* Apoio */
  --navy: #0B2545;
  --text: #1A2332;
  --text-2: #5B6676;
  --on-dark: #FFFFFF;
  --on-dark-2: #C9D4E5;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --tint: #E8EEF7;
  --border: #E3E8EF;
  --success: #15803D;
  --success-bg: #ECFDF3;
  --error: #B91C1C;
  --error-bg: #FEF2F2;

  /* Tipografia */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --fs-body: 1.0625rem;  /* 17px */
  --fs-small: .9375rem;  /* 15px */
  --fs-eyebrow: .8125rem;/* 13px */

  /* Espaçamento (base 8px) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: 4rem;
  --gutter: 1.25rem;
  --container: 75rem; /* 1200px */
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 4rem;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--blue);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-dark); }
strong { font-weight: 600; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy); }

.icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.icon-sm { width: 1.125rem; height: 1.125rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark-2); }
.section-brand { background: var(--blue); color: #E3EDFF; }
.section-dark h2, .section-dark h3,
.section-brand h2, .section-brand h3 { color: var(--on-dark); }

.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.section-head p { color: var(--text-2); font-size: 1.125rem; margin-top: var(--s4); }
.section-dark .section-head p, .section-brand .section-head p { color: inherit; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s3);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-dark .eyebrow, .section-brand .eyebrow { color: var(--yellow); }

.grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.prose { max-width: 42rem; }
.prose p { color: var(--text-2); }
.lead { font-size: 1.1875rem; color: var(--text-2); max-width: 40rem; }

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  padding: var(--s3) var(--s4); background: var(--navy); color: #fff; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s3); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 3rem; padding: .75rem 1.375rem;
  font: 600 1rem/1.2 var(--font);
  text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 1.125rem; height: 1.125rem; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-hover); color: var(--navy); }
.btn-secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--tint); color: var(--blue-dark); border-color: var(--blue-dark); }
.section-dark .btn-secondary, .section-brand .btn-secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.section-dark .btn-secondary:hover, .section-brand .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-weight: 600; text-decoration: none; color: var(--blue);
}
.link-arrow .icon { width: 1.125rem; height: 1.125rem; transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }
.section-dark .link-arrow, .section-brand .link-arrow { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand img { width: 2.5rem; height: 2.5rem; border-radius: 6px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 1.1875rem; }
.brand-name span { font-size: .75rem; color: var(--text-2); }

.nav-desktop { display: none; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-right: -.5rem;
  background: none; border: 0; border-radius: var(--radius); color: var(--navy); cursor: pointer;
}
.menu-toggle .icon { width: 1.625rem; height: 1.625rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; padding: var(--s5) var(--gutter) var(--s7);
  overflow-y: auto;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile ul { list-style: none; margin-bottom: var(--s6); }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) 0; font-size: 1.25rem; font-weight: 600; color: var(--navy); text-decoration: none;
}
.nav-mobile a[aria-current="page"] { color: var(--blue); }
.nav-mobile .btn { width: 100%; margin-bottom: var(--s3); }
.nav-mobile .nav-contact { margin-top: var(--s5); color: var(--text-2); font-size: var(--fs-small); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s7) var(--s8); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 { margin-bottom: var(--s5); max-width: 18ch; }
.hero .lead { margin-bottom: var(--s6); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  margin-top: var(--s5); font-size: var(--fs-small); color: var(--text-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-meta .icon { width: 1.125rem; height: 1.125rem; color: var(--blue); }

/* Ilustração: checklist de saúde da TI */
.health {
  background: var(--navy); color: var(--on-dark-2);
  border-radius: 16px; padding: var(--s5);
  max-width: 28rem; width: 100%; justify-self: center;
}
.health-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.health-title { color: #fff; font-weight: 600; font-size: 1rem; }
.health-tag { font-size: .75rem; font-weight: 600; color: var(--navy); background: var(--yellow); padding: .2rem .55rem; border-radius: 999px; }
.health ul { list-style: none; display: grid; gap: var(--s2); }
.health li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3);
  padding: .75rem .875rem; background: rgba(255,255,255,.06); border-radius: var(--radius);
  font-size: .9375rem;
}
.health li strong { color: #fff; font-weight: 600; }
.health .st { font-size: .8125rem; }
.health .ok { color: var(--blue-light); }
.health .warn { color: var(--yellow); }
.health .dot { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; }
.health .dot.ok { background: rgba(105,157,254,.16); }
.health .dot.warn { background: rgba(255,214,0,.14); }
.health .dot .icon { width: 1rem; height: 1rem; }
.health-foot { margin-top: var(--s4); font-size: .8125rem; color: var(--on-dark-2); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--s5);
  transition: border-color .15s ease;
}
.card:hover, .card:focus-within { border-color: var(--blue); }
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--text-2); font-size: var(--fs-small); }
.card .link-arrow { margin-top: auto; padding-top: var(--s4); font-size: var(--fs-small); }
.card-icon {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: var(--s4);
  background: var(--tint); color: var(--blue); border-radius: var(--radius);
}
.card-icon .icon { width: 1.5rem; height: 1.5rem; }
.card-plain { border: 0; padding: 0; background: none; }
.card-plain:hover { border: 0; }

/* Problemas */
.problem-list { list-style: none; display: grid; gap: var(--s3); grid-template-columns: minmax(0,1fr); }
.problem-list li {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding: var(--s4) var(--s5); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.problem-list .icon { color: var(--blue); margin-top: .125rem; }
.problem-list strong { display: block; color: var(--navy); }
.problem-list span { color: var(--text-2); font-size: var(--fs-small); }
.problem-close { margin-top: var(--s6); font-size: 1.125rem; font-weight: 600; color: var(--navy); max-width: 40rem; }

/* Comparativo */
.compare { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
.compare-col { border-radius: var(--radius-lg); padding: var(--s5); }
.compare-col h3 { font-size: 1.0625rem; margin-bottom: var(--s4); display: flex; align-items: center; gap: var(--s2); }
.compare-col ul { list-style: none; display: grid; gap: var(--s3); }
.compare-col li { display: flex; gap: var(--s3); font-size: var(--fs-small); }
.compare-col li .icon { width: 1.125rem; height: 1.125rem; margin-top: .2rem; }
.compare-old { background: var(--bg-alt); border: 1px solid var(--border); }
.compare-old h3 { color: var(--text-2); }
.compare-old li { color: var(--text-2); }
.compare-old li .icon { color: #8A94A3; }
.compare-new { background: var(--navy); color: var(--on-dark-2); }
.compare-new h3 { color: #fff; }
.compare-new li { color: #fff; }
.compare-new li .icon { color: var(--yellow); }

/* Ciclo (Monitorar → Acompanhar) */
.cycle { list-style: none; display: grid; gap: var(--s3); counter-reset: cyc; }
.cycle li {
  position: relative; counter-increment: cyc;
  padding: var(--s4) var(--s5) var(--s4) 4rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.cycle li::before {
  content: counter(cyc);
  position: absolute; left: var(--s5); top: var(--s4);
  width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 50%; font-size: .875rem; font-weight: 600;
}
.cycle strong { display: block; color: var(--navy); font-size: 1.0625rem; }
.cycle span { color: var(--text-2); font-size: var(--fs-small); }

/* Segmentos */
.segment { display: flex; gap: var(--s4); align-items: flex-start; }
.segment .card-icon { margin-bottom: 0; }
.segment h3 { font-size: 1.125rem; margin-bottom: var(--s1); }
.segment p { color: var(--text-2); font-size: var(--fs-small); }

/* Diferenciais */
.feature { display: flex; gap: var(--s4); }
.feature .icon { color: var(--yellow); margin-top: .15rem; }
.feature h3 { font-size: 1.0625rem; margin-bottom: var(--s1); }
.feature p { font-size: var(--fs-small); }

/* Como funciona */
.steps { list-style: none; display: grid; gap: 0; counter-reset: stp; position: relative; }
.steps li { position: relative; counter-increment: stp; padding: 0 0 var(--s6) 3.75rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(stp);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: #fff; color: var(--blue); border: 2px solid var(--blue); border-radius: 50%;
  font-weight: 600;
}
.steps li::after {
  content: ""; position: absolute; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0;
  width: 2px; background: var(--border);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.125rem; margin: .45rem 0 var(--s1); }
.steps p { color: var(--text-2); font-size: var(--fs-small); }

/* Faixa de CTA (diagnóstico / final) */
.cta-band { display: grid; gap: var(--s5); align-items: center; }
.cta-band h2 { margin-bottom: var(--s3); }
.cta-band p { max-width: 38rem; }
.cta-email { margin-top: var(--s4); font-size: var(--fs-small); }
.cta-email a { color: #fff; font-weight: 600; }
.cta-checks { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: var(--fs-small); }
.cta-checks li { display: inline-flex; align-items: center; gap: var(--s2); }
.cta-checks .icon { width: 1rem; height: 1rem; color: var(--yellow); }

/* Sobre (resumo) */
.about-split { display: grid; gap: var(--s6); }
.pillars { list-style: none; display: grid; gap: var(--s2); }
.pillars li { display: flex; align-items: baseline; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
.pillars li:last-child { border-bottom: 0; }
.pillars strong { min-width: 6.5rem; color: var(--navy); }
.pillars span { color: var(--text-2); font-size: var(--fs-small); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: var(--s4) 0; min-height: 3.5rem;
  font-weight: 600; color: var(--navy); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 1.25rem; height: 1.25rem; color: var(--blue); transition: transform .15s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: var(--s5); color: var(--text-2); max-width: 44rem; }

/* ---------- Páginas internas ---------- */
.page-hero { padding-block: var(--s7) var(--s7); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 22ch; margin-bottom: var(--s4); }
.page-hero .btn-group { margin-top: var(--s5); }
.breadcrumb { font-size: .875rem; color: var(--text-2); margin-bottom: var(--s4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: #8A94A3; }
.breadcrumb a { color: var(--text-2); }

/* Serviço detalhado */
.service-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.service-nav a {
  font-size: .875rem; font-weight: 600; text-decoration: none;
  padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--navy);
}
.service-nav a:hover { border-color: var(--blue); color: var(--blue); }
.service { display: grid; gap: var(--s5); padding-block: var(--s7); border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 1rem); }
.service:last-of-type { border-bottom: 0; }
.service-title { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s3); }
.service-title .card-icon { margin: 0; }
.service-sub { font-size: 1.1875rem; font-weight: 600; color: var(--navy); margin-bottom: var(--s3); }
.service p { color: var(--text-2); }
.checklist { list-style: none; display: grid; gap: var(--s3); }
.checklist li { display: flex; gap: var(--s3); align-items: flex-start; }
.checklist .icon { width: 1.25rem; height: 1.25rem; color: var(--blue); margin-top: .15rem; }
.service-note { font-size: var(--fs-small); color: var(--text-2); margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--bg-alt); border-radius: var(--radius); }
.tool-note { font-size: .875rem; color: var(--text-2); }

/* Planos */
.plans { display: grid; gap: var(--s4); }
.plan { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); background: #fff; }
.plan.featured { border: 2px solid var(--blue); }
.plan-badge { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--tint); color: var(--blue); padding: .2rem .6rem; border-radius: 999px; margin-bottom: var(--s3); }
.plan h3 { margin-bottom: var(--s2); }
.plan > p { color: var(--text-2); font-size: var(--fs-small); }
.plan dl { margin: var(--s4) 0 0; display: grid; gap: var(--s3); }
.plan dt { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.plan dd { margin: 0; }

/* Contato: info */
.contact-grid { display: grid; gap: var(--s6); }
.info-list { list-style: none; display: grid; gap: var(--s5); }
.info-list li { display: flex; gap: var(--s4); }
.info-list .card-icon { margin: 0; }
.info-list strong { display: block; color: var(--navy); }
.info-list span, .info-list a { font-size: var(--fs-small); }
.info-list span { color: var(--text-2); }
.mail-shortcuts { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--border); }
.mail-shortcuts h2 { font-size: 1.0625rem; margin-bottom: var(--s3); }
.mail-shortcuts ul { list-style: none; display: grid; gap: var(--s2); }
.mail-shortcuts a { font-size: var(--fs-small); }

/* Página simples (obrigado, privacidade, 404) */
.simple { padding-block: var(--s8); }
.simple .prose h2 { font-size: 1.375rem; margin: var(--s6) 0 var(--s3); }
.simple .prose ul { padding-left: 1.25rem; color: var(--text-2); margin-bottom: var(--s4); }
.simple .prose li { margin-bottom: var(--s2); }
.done-icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--success-bg); color: var(--success); margin-bottom: var(--s5); }
.done-icon .icon { width: 1.75rem; height: 1.75rem; }

/* ---------- Formulário ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s5); }
.form-card > h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.form-card > p { color: var(--text-2); font-size: var(--fs-small); margin-bottom: var(--s5); }
.form-grid { display: grid; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .875rem;
  font: 400 1rem/1.4 var(--font); color: var(--text);
  background: #fff; border: 1px solid #B8C2D0; border-radius: var(--radius);
  transition: border-color .15s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23015DA3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.125rem;
  padding-right: 2.5rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8A94A3; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,93,163,.25); border-radius: var(--radius); }
.field [aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field-hint { font-size: .8125rem; color: var(--text-2); }
.field-error { display: flex; align-items: center; gap: var(--s1); font-size: .875rem; color: var(--error); font-weight: 600; }
.field-error:empty { display: none; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 1rem; height: 1rem; border-radius: 50%; background: var(--error); color: #fff; font-size: .6875rem; }

.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-small); color: var(--text); }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--blue); flex-shrink: 0; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { padding: var(--s4); border-radius: var(--radius); font-size: var(--fs-small); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #F5C2C2; }
.form-status.is-success { background: var(--success-bg); color: var(--success); border: 1px solid #B7E4C7; }
.form-foot { font-size: .8125rem; color: var(--text-2); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding-block: var(--s8) var(--s5); font-size: var(--fs-small); }
.footer-grid { display: grid; gap: var(--s6); margin-bottom: var(--s7); }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--on-dark-2); }
.footer-tagline { margin-top: var(--s4); max-width: 22rem; }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; display: grid; gap: var(--s3); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: var(--s3); align-items: flex-start; }
.footer-contact .icon { width: 1.125rem; height: 1.125rem; color: var(--blue-light); margin-top: .2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--yellow); }

/* ---------- Barra fixa de CTA no celular ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--s2);
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .2s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; min-height: 2.875rem; }
.mobile-cta .btn-mail { flex: 0 0 3rem; padding: 0; }
body.has-mobile-cta { padding-bottom: 4.5rem; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-full { grid-column: 1 / -1; }
  .form-card { padding: var(--s6); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --section: 6rem; --header-h: 4.5rem; }
  .menu-toggle, .nav-mobile { display: none !important; }
  .nav-desktop { display: block; }
  .nav-desktop ul { list-style: none; display: flex; gap: var(--s1); }
  .nav-desktop a {
    display: block; padding: .5rem .875rem; border-radius: var(--radius);
    font-weight: 600; font-size: .9375rem; color: var(--navy); text-decoration: none;
  }
  .nav-desktop a:hover { background: var(--bg-alt); color: var(--blue); }
  .nav-desktop a[aria-current="page"] { color: var(--blue); }
  .header-cta { display: inline-flex; min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }
  .header-inner .brand { margin-right: auto; }

  .hero { padding-block: var(--s8) var(--s9); }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s8); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .problem-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cycle { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cycle li { padding: 4rem var(--s4) var(--s5); }
  .cycle li::before { left: var(--s4); top: var(--s5); }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
  .steps li { padding: 3.75rem 0 0; }
  .steps li::after { left: 2.5rem; right: calc(-1 * var(--s5)); top: calc(1.25rem - 1px); bottom: auto; width: auto; height: 2px; }
  .steps h3 { margin-top: 0; }
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s7); }
  .about-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
  .service { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s8); }
  .contact-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
  .contact-grid.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .page-hero { padding-block: var(--s8); }

  /* barra fixa só no celular */
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}

@media (min-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .mobile-cta, .site-footer, .btn, .skip-link { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}

/* ---------- Variações ---------- */
.cta-checks.on-light { color: var(--text-2); }
.cta-checks.on-light .icon { color: var(--blue); }
@media (min-width: 900px) {
  .steps.steps-vertical { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps.steps-vertical li { padding: 0 0 var(--s6) 3.75rem; }
  .steps.steps-vertical li:last-child { padding-bottom: 0; }
  .steps.steps-vertical li::after { left: calc(1.25rem - 1px); right: auto; top: 2.5rem; bottom: 0; width: 2px; height: auto; }
  .steps.steps-vertical h3 { margin-top: .45rem; }
}
.card-icon { flex-shrink: 0; }
.grid:has(> .segment), .grid:has(> .feature) { row-gap: var(--s6); column-gap: var(--s6); }

/* Cards de serviço mais compactos no celular: ícone ao lado do texto */
@media (max-width: 599px) {
  .grid-4 > .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s4); padding: 1.25rem; }
  .grid-4 > .card .card-icon { grid-row: 1 / 4; margin: 0; }
  .grid-4 > .card .link-arrow { padding-top: var(--s2); }
}
