/* ==========================================================================
   AFA Engenharia — afa.services/engenharia (PT-BR).
   Paleta do Kit AFA (02-site/afa.tokens.json), mesma família visual da raiz e do /engineering.
   Maquetes 3D: SVG montado e animado por scripts.js (motor próprio, sem biblioteca).
   ========================================================================== */

:root {
  --grafite: #0A0B0E;
  --superficie: #121620;
  --ciano: #00D2FF;
  --azul: #0066FF;
  --azul-profundo: #102A43;
  --branco: #FFFFFF;
  --cinza: #A0AEC0;
  --borda: #1F2937;

  --text: #E6EAF0;
  --text-soft: #A0AEC0;
  --panel: rgba(14, 17, 24, .92);
  --sheet: #0C0E13;
  --alert: #FF7A6B;

  --font: 'Outfit', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--grafite);
  color: var(--text);
  font: 400 18px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ciano); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--branco); }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ciano); color: var(--grafite); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ciano); color: var(--grafite); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* --- TIPOGRAFIA COMUM ------------------------------------------------------ */
.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  color: var(--ciano); margin: 0 0 18px;
}
.label::before { content: "// "; color: var(--azul); }
h2 {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 600;
  letter-spacing: -.015em; margin: 0 0 20px; color: var(--branco); max-width: 24ch;
}
.intro { max-width: 720px; margin: 0 0 48px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; font: 500 16px var(--font);
  text-decoration: none; border: 1px solid var(--borda); color: var(--branco);
  background: rgba(18, 22, 32, .7); transition: border-color .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn:hover { border-color: var(--ciano); color: var(--branco); }
.btn-primary { background: var(--azul); border-color: var(--azul); }
.btn-primary:hover { background: #0a74ff; border-color: var(--ciano); }

/* --- CABEÇALHO ------------------------------------------------------------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.top.is-solid, .top.menu-open { background: rgba(10, 11, 14, .9); border-bottom-color: var(--borda); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: block; margin-right: auto; line-height: 0; }
.brand img { width: 127px; height: 40px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  color: var(--text-soft); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 6px;
  transition: color .2s;
}
.menu a:hover, .menu a.is-active { color: var(--branco); }
.menu a.menu-cta { color: var(--branco); border: 1px solid rgba(0, 210, 255, .45); margin-left: 8px; }
.menu a.menu-cta:hover { border-color: var(--ciano); background: rgba(0, 210, 255, .08); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--borda); border-radius: 8px; background: none; cursor: pointer; position: relative; }
.menu-toggle i, .menu-toggle i::before, .menu-toggle i::after {
  position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--branco); content: ""; transition: transform .25s, opacity .25s;
}
.menu-toggle i { top: 20px; }
.menu-toggle i::before { left: 0; top: -6px; }
.menu-toggle i::after { left: 0; top: 6px; }
.menu-open .menu-toggle i { background: transparent; }
.menu-open .menu-toggle i::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle i::after { transform: translateY(-6px) rotate(-45deg); }

/* --- HERO ------------------------------------------------------------------ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(68px + clamp(24px, 5vh, 64px)) 0 clamp(40px, 6vh, 72px);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 {
  font-size: clamp(34px, 3.4vw, 50px); line-height: 1.1; font-weight: 600;
  letter-spacing: -.025em; margin: 0 0 22px; color: var(--branco);
}
.hero h1 span { display: block; }
.hero h1 .soft { color: #7D8BA0; }
.hero .lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; font-weight: 300; max-width: 600px; margin: 0 0 28px; }
.hero .lead strong { font-weight: 500; color: var(--branco); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0;
  font-family: var(--mono); font-size: 13px; color: var(--text-soft);
}
.facts li::before { content: "▪ "; color: var(--ciano); }
.hero-fig { margin: 0; position: relative; }
.hero-fig svg { width: 100%; height: auto; overflow: visible; }
.hero-fig figcaption, .fig figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--text-soft); margin-top: 10px; min-height: 22px;
}
.hero-fig figcaption { justify-content: center; text-align: center; }
.fig-n { color: var(--ciano); margin-right: 8px; }
.hint { color: #6B7688; }
.no-js .hint { display: none; }

/* --- SEÇÕES ---------------------------------------------------------------- */
section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.alt { background: linear-gradient(#0C0E13, #0A0B0E); border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }

/* frases dos clientes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--borda); border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.quote { background: var(--grafite); padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; margin: 0; }
.quote p { font-size: 20px; line-height: 1.45; font-weight: 300; color: var(--branco); margin: 0; }
.quote a { font-family: var(--mono); font-size: 12px; text-decoration: none; letter-spacing: .03em; }
.quote a::before { content: "→ "; }
.after-quotes { margin: 36px 0 0; max-width: 720px; color: var(--text-soft); }

/* --- SOLUÇÕES (cards com maquete) ------------------------------------------ */
.sols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sol {
  display: flex; flex-direction: column;
  border: 1px solid var(--borda); border-radius: 10px; background: var(--panel);
  transition: border-color .3s;
}
.sol:hover, .sol.is-on { border-color: rgba(0, 210, 255, .4); }
.sol .fig { margin: 14px 14px 0; }
.sol-body { padding: 18px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sol-body .label { margin-bottom: 10px; }
.sol h3 { font-size: 22px; line-height: 1.25; font-weight: 600; color: var(--branco); margin: 0 0 10px; letter-spacing: -.01em; }
.sol-body > p { font-size: 16px; line-height: 1.6; color: var(--text-soft); margin: 0 0 14px; }
.eg-title { font-family: var(--mono); font-size: 11px; color: #6B7688; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.eg { list-style: none; padding: 0; margin: 0 0 16px; }
.eg li { position: relative; padding-left: 20px; margin-bottom: 6px; color: var(--text); font-size: 15px; line-height: 1.5; }
.eg li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--ciano); }
.gets { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.gets li {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-soft);
  border: 1px solid var(--borda); border-radius: 4px; padding: 2px 8px; background: rgba(18, 22, 32, .6);
}

/* folha de desenho com a maquete */
.fig { margin: 0; position: relative; }
.fig-sheet {
  position: relative; border: 1px solid var(--borda); border-radius: 6px;
  background: radial-gradient(circle at 1px 1px, #1B2432 .9px, transparent 1.1px) 0 0 / 18px 18px, var(--sheet);
}
.fig-sheet::before, .fig-sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--ciano); pointer-events: none; }
.fig-sheet::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.fig-sheet::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.fig svg { width: 100%; height: auto; }
.fig-sheet .m3 { overflow: hidden; border-radius: 6px; }
.fig figcaption { margin-top: 8px; font-size: 11.5px; }
.fig-play {
  font: 400 11px var(--mono); color: var(--text-soft); background: none; letter-spacing: .04em;
  border: 1px solid var(--borda); border-radius: 4px; padding: 3px 8px; cursor: pointer; white-space: nowrap;
}
.fig-play:hover { color: var(--branco); border-color: var(--ciano); }
/* sem JS não há maquete: fica só o texto */
.no-js [data-scene] { display: none; }

/* peças das maquetes (SVG gerado por scripts.js) */
.m3 { overflow: visible; }
.m3 path { vector-effect: non-scaling-stroke; }
.m3 .ln { fill: none; stroke: #2E4460; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.m3 .ln-c { fill: none; stroke: var(--ciano); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m3 .ln-a { fill: none; stroke: var(--alert); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m3 .ln-w { fill: none; stroke: #8593A8; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.m3 .ln-d { fill: none; stroke: var(--ciano); stroke-width: 1.1; stroke-dasharray: 4 4; stroke-linecap: round; }
.m3 .ln-g { fill: none; stroke: #4C5D74; stroke-width: 1; stroke-dasharray: 3 4; stroke-linecap: round; }
/* pulso correndo por uma trilha (pathLength = 1) */
.m3 .run { fill: none; stroke: var(--ciano); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .045 .955; animation: run 2.4s linear infinite; }
@keyframes run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.paused .m3 .run, .m3.paused .run { animation-play-state: paused; }
.m3 .sh { fill: rgba(0, 0, 0, .42); }
.m3 .pk { fill: var(--ciano); }
.m3 .pk-w { fill: var(--branco); }
.m3 .pk-a { fill: var(--alert); }
.m3 .tag text { font: 500 10.5px var(--mono); fill: #C9D3E0; letter-spacing: .02em; }
.m3 .tag.c text { fill: var(--ciano); }
.m3 .tag.a text { fill: var(--alert); }
.m3 .tag line { stroke: #4C5D74; stroke-width: 1; }
.m3 .tag circle { fill: var(--ciano); }
.m3 .tag.a circle { fill: var(--alert); }
.m3 .hot { cursor: pointer; }

/* --- POR QUE (comparação) --------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.side { border: 1px solid var(--borda); border-radius: 10px; background: var(--panel); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; }
.side.us { border-color: rgba(0, 210, 255, .35); }
.side h3 { font-size: 22px; font-weight: 600; color: var(--branco); margin: 0 0 10px; }
.side > p { color: var(--text-soft); font-size: 17px; margin: 0 0 18px; }
.side .fig { margin-top: auto; }
.meter { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-family: var(--mono); font-size: 12px; color: var(--text-soft); }
.meter b { display: flex; gap: 3px; }
.meter i { display: block; width: 18px; height: 8px; border: 1px solid #34425A; border-radius: 2px; transition: background .3s, border-color .3s; }
.meter i.on { background: var(--ciano); border-color: var(--ciano); }
.side:not(.us) .meter i.on { background: #7C8AA0; border-color: #7C8AA0; }
.diffs { display: flex; flex-wrap: wrap; gap: 10px 32px; list-style: none; padding: 0; margin: 40px 0 0; font-size: 18px; color: var(--branco); }
.diffs li { position: relative; padding-left: 28px; }
.diffs li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--ciano); border-bottom: 2px solid var(--ciano); transform: rotate(-45deg); }

/* --- COMO FUNCIONA --------------------------------------------------------- */
.who-key { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0 0 36px; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }
.who-key li { display: flex; align-items: center; gap: 8px; }
.pip { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #34425A; }
.pip.vc { border-color: var(--branco); }
.pip.af { border-color: var(--ciano); }
.pip.fa { border-color: var(--azul); }
.who-key .pip { background: currentColor; }
.who-key .pip.vc { color: var(--branco); }
.who-key .pip.af { color: var(--ciano); }
.who-key .pip.fa { color: var(--azul); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--azul-profundo), var(--borda)); }
.step { position: relative; padding-top: 40px; counter-increment: step; }
.step::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border: 2px solid var(--azul-profundo); background: var(--grafite); border-radius: 3px;
  transition: border-color .6s, box-shadow .6s, background .6s;
}
.step.is-lit::before { border-color: var(--ciano); background: rgba(0, 210, 255, .18); box-shadow: 0 0 14px rgba(0, 210, 255, .5); }
.step h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--branco); margin: 0 0 8px; }
.step h3::before { content: "0" counter(step) " "; display: block; font: 400 12px var(--mono); color: var(--ciano); margin-bottom: 4px; }
.step p { color: var(--text-soft); margin: 0 0 14px; font-size: 16px; line-height: 1.55; }
.by { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.by li { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-soft); border: 1px solid var(--borda); border-radius: 999px; padding: 2px 9px 2px 6px; }
.by .pip { width: 8px; height: 8px; }
.by .af .pip { background: var(--ciano); border-color: var(--ciano); }
.by .fa .pip { background: var(--azul); border-color: var(--azul); }
.by .vc .pip { background: var(--branco); border-color: var(--branco); }
.promise { margin: 44px 0 0; max-width: 760px; color: var(--text-soft); border-left: 2px solid var(--azul-profundo); padding: 2px 0 2px 16px; }
.promise strong { color: var(--branco); font-weight: 500; }

/* --- EQUIPE ---------------------------------------------------------------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; }
.person { border: 1px solid var(--borda); border-radius: 10px; background: var(--panel); padding: 24px 26px; }
.person-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mono-mark {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; position: relative;
  border: 1px solid #34425A; border-radius: 6px; font: 500 15px var(--mono); color: var(--branco); letter-spacing: .06em;
}
.mono-mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--ciano); }
.person.fa .mono-mark::after { background: var(--azul); }
.person h3 { font-size: 20px; font-weight: 600; color: var(--branco); margin: 0; line-height: 1.25; }
.role { font-family: var(--mono); font-size: 12px; color: var(--ciano); margin: 2px 0 0; }
.person.fa .role { color: #5C9DFF; }
.person > p { font-size: 16px; line-height: 1.6; color: var(--text-soft); margin: 0 0 14px; }
.person > p.does { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text-soft); margin: 0; }
.does::before { content: "// "; color: var(--azul); }
.person > p.more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; font-family: var(--mono); font-size: 13px; }
.more a { text-decoration: none; }
.more a::after { content: " →"; }

/* --- PERGUNTAS ------------------------------------------------------------- */
.faq { max-width: 860px; border-top: 1px solid var(--borda); }
.faq details { border-bottom: 1px solid var(--borda); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-size: 19px; font-weight: 500; color: var(--branco); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 22px var(--mono); color: var(--ciano); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-soft); margin: 0 0 22px; max-width: 720px; }

/* --- CONTATO --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-grid > div > p { color: var(--text-soft); max-width: 480px; }
.mail {
  display: inline-block; font-size: clamp(22px, 3vw, 32px); font-weight: 600; color: var(--branco);
  text-decoration: none; border-bottom: 2px solid var(--ciano); line-height: 1.2; margin: 8px 0 20px; word-break: break-all;
}
.mail:hover { color: var(--ciano); }
.channels { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; }
.channels span { color: var(--text-soft); display: inline-block; min-width: 116px; }
.channels a { text-decoration: none; }

/* formulário padrão dos sites (form.afa-form → FormSubmit) */
.afa-form {
  display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--borda); border-radius: 8px; background: var(--panel);
}
.afa-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.afa-form label, .afa-form legend { display: grid; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-soft); letter-spacing: .04em; text-transform: uppercase; }
.afa-form label small, .afa-form legend small { text-transform: none; letter-spacing: 0; opacity: .7; }
.afa-form input, .afa-form textarea {
  width: 100%; font: 400 16px/1.5 var(--font); color: var(--branco);
  background: var(--grafite); border: 1px solid var(--borda); border-radius: 6px; padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.afa-form textarea { resize: vertical; min-height: 130px; }
.afa-form input::placeholder, .afa-form textarea::placeholder { color: #6B7688; }
.afa-form input:focus, .afa-form textarea:focus { outline: none; border-color: var(--ciano); box-shadow: 0 0 0 3px rgba(0, 210, 255, .15); }
.afa-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.afa-form button { justify-self: start; }
.afa-form button:disabled { opacity: .6; cursor: wait; }
.form-status { font-family: var(--mono); font-size: 13px; color: var(--ciano); margin: 0; min-height: 1.4em; }
.afa-form.is-error .form-status { color: #FF8A8A; }
.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { display: block; margin-bottom: 8px; padding: 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 7px 13px; border: 1px solid var(--borda); border-radius: 999px;
  font: 400 15px var(--font); color: var(--text-soft); cursor: pointer; text-transform: none; letter-spacing: 0;
  transition: border-color .2s, color .2s, background .2s;
}
.chip span:hover { color: var(--branco); }
.chip input:checked + span { border-color: var(--ciano); color: var(--branco); background: rgba(0, 210, 255, .1); }
.chip input:focus-visible + span { outline: 2px solid var(--ciano); outline-offset: 2px; }

/* --- RODAPÉ ---------------------------------------------------------------- */
footer { border-top: 1px solid var(--borda); padding: 28px 0 40px; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--text-soft); }
footer a:hover { color: var(--branco); }

/* botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 9; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* página curta (obrigado) */
.done { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 64px; }
.done h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; font-weight: 600; color: var(--branco); margin: 0 0 20px; letter-spacing: -.02em; }
.done p { max-width: 560px; color: var(--text-soft); margin-bottom: 32px; }
.done p.label { color: var(--ciano); margin-bottom: 18px; }

/* --- entrada suave --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --- TELAS MÉDIAS / CELULAR ------------------------------------------------ */
@media (max-width: 1100px) {
  .sols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
}
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 11, 14, .97); border-bottom: 1px solid var(--borda); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .menu-open .menu { display: flex; }
  .menu a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--borda); border-radius: 0; }
  .menu a.menu-cta { margin: 16px 0 0; border-radius: 8px; text-align: center; border: 1px solid var(--ciano); }
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-fig { max-width: 640px; margin: 8px auto 0; width: 100%; }
}
@media (max-width: 860px) {
  .compare, .team { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero-fig .m3 .tag text { font-size: 17px; }
  .sols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 28px 40px; }
  .step::before { top: 6px; }
  .steps::after { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--azul-profundo), var(--borda)); z-index: -1; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .quote p { font-size: 18px; }
  .afa-form .row { grid-template-columns: 1fr; }
  .afa-form button { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .m3 .run { animation: none; stroke-dasharray: none; opacity: .35; }
}
