/* =========================================================
   Hexa Clima — Site para prefeituras · V2
   Implementação do handoff "Brand System V2 + Landing".
   Medidas em px seguem o README do handoff (1440 e 390).
   ========================================================= */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: var(--t-16);
  font-weight: var(--peso-texto);
  line-height: var(--lh-texto);
  color: var(--texto);
  background: var(--hc-n0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link-claro); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--fonte-titulo); margin: 0; letter-spacing: var(--tracking-titulo); color: var(--texto); }
h1 { font-size: var(--t-61); font-weight: var(--peso-titulo); line-height: var(--lh-titulo); text-wrap: balance; }
h2 { font-size: var(--t-39); font-weight: var(--peso-subtitulo); line-height: 1.15; text-wrap: balance; }
h3 { font-size: var(--t-18); font-weight: var(--peso-subtitulo); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: none; box-shadow: var(--foco); border-radius: var(--r-6); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--hc-n0); padding: 8px 14px; border-radius: var(--r-8); }
.skip-link:focus { left: 8px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter-desktop)); margin-inline: auto; }

.dark { background: var(--hc-noite); color: var(--texto-inverso-2); }
.dark h1, .dark h2, .dark h3 { color: var(--texto-inverso); }
.dark strong { color: var(--texto-inverso); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--fonte-texto); font-size: var(--t-16); font-weight: 600; line-height: 1;
  border-radius: var(--r-12); border: 1.5px solid transparent; padding: 0 20px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn-md { height: 44px; }
.btn-lg { height: 54px; padding: 0 28px; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--hc-profundo); color: var(--hc-n0); }
.btn-primary:hover, .btn-primary:active { background: var(--hc-profundo-hover); }
.dark .btn-primary { background: var(--hc-hexa); }
.dark .btn-primary:hover, .dark .btn-primary:active { background: var(--hc-profundo); }
.btn-outline { background: transparent; color: var(--hc-ceu); border-color: var(--contorno-escuro); }
.btn-outline:hover { background: rgba(0, 179, 240, 0.10); }

/* ---------- Tipografia de apoio ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase; color: var(--hc-profundo); line-height: 1.3;
}
.dark .eyebrow { color: var(--hc-ceu); }
.label { font-size: var(--t-12); font-weight: 700; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--texto-legenda); }
.big-num { font-family: var(--fonte-titulo); font-size: var(--t-49); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--hc-profundo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.footnote { font-size: 13px; color: var(--texto-legenda); line-height: 1.55; }

/* ---------- Seções ---------- */
.section { padding: var(--secao-desktop) 0; }
.section--paper { background: var(--hc-papel); }
.section-head { display: grid; gap: var(--s-4); max-width: 820px; margin-bottom: var(--s-14); }
.section-head > p:not(.eyebrow) { font-size: var(--t-18); color: var(--texto-apoio); line-height: var(--lh-texto); }
.section-head--tight { margin-bottom: var(--s-8); }
.dark .section-head > p:not(.eyebrow) { color: var(--texto-inverso-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }

/* ---------- Card ---------- */
.card { background: var(--hc-n0); border: 1px solid var(--borda); border-radius: var(--r-16); padding: var(--s-8); box-shadow: var(--sombra-1); }
.card--paper { background: var(--hc-papel); border-color: transparent; box-shadow: none; }
.card--stripe { border-top: 4px solid var(--hc-hexa); padding-top: 28px; display: grid; align-content: start; gap: 10px; }
.card--stripe p:last-child { font-size: var(--t-14); color: var(--texto-apoio); line-height: 1.55; }
.stripe-num { font-size: var(--t-25); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--hc-profundo); }

/* ---------- Ícones inline ---------- */
.icon { display: inline-flex; color: var(--hc-hexa); flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
.icon-48 { width: 48px; height: 48px; }
.icon-32 { width: 32px; height: 32px; }

/* ---------- Lista com hexágono ---------- */
.hex-list { display: grid; gap: 12px; }
.hex-list li { position: relative; padding-left: 26px; font-size: var(--t-16); line-height: 1.5; color: var(--texto); }
.hex-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 14px; height: 16px; background: var(--hc-hexa);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-list--dark li { color: var(--texto-inverso-2); }
.hex-list--dark li::before { background: var(--hc-ceu); }
.hex-list--cols { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
.hex-list--cols li { font-size: var(--t-14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--hc-n0); border-bottom: 1px solid var(--borda-sutil);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand img { height: 38px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { font-size: var(--t-14); font-weight: 600; color: var(--texto-apoio); text-decoration: none; transition: color var(--dur-1) var(--ease); }
.site-nav a:hover { color: var(--hc-profundo); }
.header-cta { margin-left: 12px; }
.only-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; border-radius: var(--r-8); }
.nav-toggle span { display: block; height: 2px; background: var(--texto); border-radius: 2px; margin: 5px 0; transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s-24) 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16.2v32.4L28 64.8 0 48.6V16.2Z M28 64.8V97' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 20%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 560px; gap: var(--s-20); align-items: center; }
.hero h1 { margin: var(--s-6) 0 var(--s-6); }
.hero-lead { font-size: 19px; line-height: var(--lh-texto); color: var(--texto-inverso-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-10) 0 var(--s-12); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-10); margin: 0; padding-top: var(--s-6); border-top: 1px solid var(--linha-escura-2); }
.hero-stats dt { font-size: var(--t-31); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--texto-inverso); font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 4px 0 0; font-size: 13px; color: var(--texto-inverso-2); }
.hero-visual figcaption, .devices figcaption { margin-top: var(--s-3); font-size: var(--t-12); color: var(--hc-n500); text-align: right; }
.hero-shot { width: 100%; height: auto; border-radius: var(--r-20); border: 1px solid var(--linha-escura-2); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4); }

/* ---------- Credenciais ---------- */
.credentials { background: var(--hc-papel); padding: 28px 0; border-bottom: 1px solid var(--borda-sutil); }
.credentials-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-8); }
.credentials-list li { display: flex; align-items: center; gap: 10px; font-size: var(--t-14); color: var(--texto-apoio); }
.credentials-list img { width: 16px; height: auto; }
.credentials-list strong { color: var(--texto); }
.credentials-list a { color: inherit; text-decoration-color: var(--hc-hexa); text-underline-offset: 3px; }
.credentials-list a:hover strong { color: var(--hc-profundo); }

/* ---------- Problema ---------- */
.problem-card { display: grid; align-content: start; gap: var(--s-5); }
.problem-card > div { display: grid; gap: 10px; }
.problem-card p:not(.big-num) { font-size: 15px; line-height: 1.55; color: var(--texto-apoio); }

/* ---------- Solução ---------- */
.layer-card { display: grid; align-content: start; gap: var(--s-6); }
.layer-card > div { display: grid; gap: 10px; }
.layer-card h3 { font-size: 22px; line-height: 1.25; }
.layer-card p:not(.label) { font-size: 15px; line-height: 1.6; color: var(--texto-apoio); }
.layer-card .label { color: var(--hc-grafite); }

/* ---------- Secretarias ---------- */
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--borda-sutil); margin-bottom: var(--s-12); }
.tab-list button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--texto-apoio);
  background: none; border: 0; padding: 12px 14px 14px; cursor: pointer; position: relative;
  transition: color var(--dur-1) var(--ease);
}
.tab-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; transition: background var(--dur-2) var(--ease); }
.tab-list button:hover { color: var(--hc-profundo); }
.tab-list button[aria-selected="true"] { color: var(--hc-profundo); font-weight: 700; }
.tab-list button[aria-selected="true"]::after { background: var(--hc-profundo); }
.tab-panel { display: grid; grid-template-columns: 1fr 520px; gap: var(--s-16); align-items: center; }
.tab-panel[hidden] { display: none; }
.panel-copy { display: grid; gap: var(--s-5); }
.panel-title { display: flex; align-items: center; gap: var(--s-3); font-size: 25px; line-height: 1.2; }
.panel-copy > p { font-size: var(--t-18); line-height: var(--lh-texto); color: var(--texto-apoio); }
.panel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-2); }
.panel-metrics > div { border-top: 2px solid var(--hc-hexa); padding-top: var(--s-4); display: grid; gap: 6px; }
.metric-num { font-size: var(--t-31); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: var(--hc-profundo); font-variant-numeric: tabular-nums; }
.panel-metrics p:not(.metric-num) { font-size: 13px; line-height: 1.5; color: var(--texto-apoio); }

.screen-frame { background: var(--hc-noite); border-radius: var(--r-20); padding: var(--s-6); box-shadow: var(--sombra-3); }
.screen-frame img { width: 100%; height: auto; max-height: 540px; object-fit: cover; object-position: top; border-radius: var(--r-12); margin-inline: auto; }
.screen-frame--phone img { width: 220px; max-height: none; border-radius: 28px; border: 6px solid var(--hc-tinta); }
.screen-frame figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-top: var(--s-4); font-size: var(--t-12); color: var(--texto-inverso-2); line-height: 1.45; }
.screen-frame figcaption a { color: var(--hc-ceu); font-weight: 600; white-space: nowrap; text-decoration: none; }
.screen-frame figcaption a:hover { text-decoration: underline; }

/* ---------- Sala de situação ---------- */
.situation-grid { display: grid; grid-template-columns: 420px 1fr; gap: var(--s-20); align-items: center; }
.situation-copy { display: grid; gap: var(--s-5); justify-items: start; }
.situation-copy > p:not(.eyebrow) { font-size: var(--t-18); color: var(--texto-inverso-2); }
.situation-copy .hex-list { margin: var(--s-2) 0 var(--s-4); }
.devices { position: relative; height: 520px; }
.laptop { position: absolute; top: 0; left: 0; width: 620px; }
.laptop-screen { background: var(--hc-noite-3); border-radius: 16px 16px 0 0; padding: 14px 14px 0; }
.laptop-screen img { width: 592px; height: 372px; object-fit: cover; object-position: top left; border-radius: 4px 4px 0 0; }
.laptop-base { height: 18px; margin: 0 -30px; background: var(--hc-n800); border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.phone { position: absolute; right: 0; bottom: 36px; width: 220px; height: 456px; border: 8px solid var(--hc-tinta); border-radius: 32px; overflow: hidden; background: var(--hc-tinta); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.chat-card { position: absolute; left: 20px; bottom: 36px; width: 340px; background: var(--hc-noite-2); border: 1px solid var(--linha-escura-2); border-radius: 14px; padding: var(--s-4); display: grid; gap: 10px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.chat-label { font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--hc-n500); }
.chat-bubble { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; max-width: 90%; }
.chat-bubble--user { justify-self: end; background: var(--hc-hexa); color: var(--hc-n0); border-bottom-right-radius: 4px; }
.chat-bubble--bot { background: var(--hc-noite-3); color: var(--texto-inverso-2); border-bottom-left-radius: 4px; }
.devices figcaption { position: absolute; right: 0; bottom: 0; }

/* ---------- Resultados ---------- */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--borda); border: 1px solid var(--borda); border-radius: var(--r-16); overflow: hidden; }
.results > div { background: var(--hc-n0); padding: var(--s-8); display: grid; align-content: start; gap: 12px; }
.results p:not(.big-num) { font-size: 15px; line-height: 1.5; color: var(--texto-apoio); }
#resultados .footnote { margin-top: var(--s-5); max-width: 820px; }

/* ---------- Implantação ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); }
.steps li { display: grid; align-content: start; gap: var(--s-5); }
.steps li > div { display: grid; gap: 10px; }
.steps h3 { font-size: var(--t-20); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--texto-apoio); }
.hex-num {
  display: grid; place-items: center; width: 50px; height: 56px;
  font-size: var(--t-20); font-weight: 800; color: var(--hc-n0); background: var(--hc-hexa);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- Contratação ---------- */
.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-20); align-items: start; }
.dossier { background: var(--hc-papel); border-radius: var(--r-16); padding: var(--s-8); display: grid; gap: var(--s-5); }
.dossier h3 { font-size: var(--t-18); }
.paths { display: grid; gap: var(--s-4); }
.path-card { padding: 28px; display: grid; gap: 8px; }
.path-card h3 { font-size: var(--t-20); }
.path-card p:not(.label) { font-size: 15px; line-height: 1.6; color: var(--texto-apoio); }

/* ---------- Ciência ---------- */
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-20); align-items: start; }
.science-copy { display: grid; gap: var(--s-5); }
.science-copy p { font-size: 17px; line-height: 1.65; color: var(--texto-apoio); }
.science-copy strong { color: var(--texto); }
.science-copy .science-doi { font-size: var(--t-14); color: var(--texto-legenda); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: var(--s-20); align-items: start; }
.faq details { border-top: 1px solid var(--borda); }
.faq details:last-child { border-bottom: 1px solid var(--borda); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-size: var(--t-18); font-weight: 700; line-height: 1.35; color: var(--texto);
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: currentColor; transition: transform var(--dur-2) var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { color: var(--hc-profundo); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--hc-profundo); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 48px 24px 0; font-size: var(--t-16); line-height: var(--lh-texto); color: var(--texto-apoio); }

/* ---------- Formulário ---------- */
.contact-grid { display: grid; grid-template-columns: 420px 1fr; gap: var(--s-20); align-items: start; }
.contact-grid .hex-list li { color: var(--texto-apoio); }
.contact-form {
  background: var(--hc-papel); border: 1px solid var(--borda); border-radius: var(--r-20); padding: var(--s-10);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
}
.field { display: grid; gap: 6px; align-content: start; }
.field--full, .form-alert { grid-column: 1 / -1; }
.field-pair { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); }
.field label { font-size: var(--t-14); font-weight: 600; color: var(--texto); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--t-16); font-weight: 500; color: var(--texto);
  background: var(--hc-n0); border: 1.5px solid var(--borda); border-radius: var(--r-12);
  padding: 0 14px; height: 46px; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233E4B5A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--hc-n500); font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hc-hexa); box-shadow: var(--foco); }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--hc-papel); color: var(--hc-n500); }
.field-msg { font-size: var(--t-12); line-height: 1.4; color: var(--texto-legenda); min-height: 0; }
.field-msg:empty { display: none; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--erro); }
.field.is-error .field-msg { color: var(--erro); }
.field.is-valid input { border-color: var(--sucesso); padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%2319A974' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field.is-valid .field-msg { color: var(--sucesso-texto); }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--t-14); font-weight: 500; color: var(--texto-apoio); cursor: pointer; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check-box { flex-shrink: 0; width: 22px; height: 22px; border: 1.5px solid var(--borda); border-radius: 4px; background: var(--hc-n0); display: grid; place-items: center; transition: all var(--dur-1) var(--ease); }
.check input:checked + .check-box { background: var(--hc-profundo); border-color: var(--hc-profundo); }
.check input:checked + .check-box::after { content: ""; width: 6px; height: 11px; border: solid var(--hc-n0); border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg); }
.check input:focus-visible + .check-box { box-shadow: var(--foco); }
.field--check.is-error .check-box { border-color: var(--erro); box-shadow: 0 0 0 3px rgba(198, 54, 42, 0.20); }

.form-actions { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--texto-legenda); }
.form-alert { border-radius: var(--r-12); padding: 14px 16px; font-size: var(--t-14); line-height: 1.5; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.form-alert::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: currentColor; -webkit-mask: var(--alert-icon) center / 20px no-repeat; mask: var(--alert-icon) center / 20px no-repeat; }
.form-alert.is-error { background: var(--erro-fundo); border-color: var(--erro); color: var(--erro-texto);
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-1 4h2v6H9Zm0 8h2v2H9Z'/%3E%3C/svg%3E"); }
.form-alert.is-success { background: var(--sucesso-fundo); border-color: var(--sucesso); color: var(--sucesso-texto);
  --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm-1.2 13L4.5 9.7l1.4-1.4 2.9 2.9 5.3-5.3 1.4 1.4Z'/%3E%3C/svg%3E"); }
.form-alert[hidden] { display: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--hc-noite); color: var(--texto-inverso-2); padding: var(--s-16) 0 var(--s-10); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-8); flex-wrap: wrap; padding-bottom: var(--s-8); border-bottom: 1px solid var(--linha-escura-2); }
.footer-brand { display: grid; gap: var(--s-3); }
.footer-brand img { height: 32px; width: auto; }
.footer-brand p { font-size: var(--t-14); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-nav a { font-size: var(--t-14); font-weight: 600; color: var(--texto-inverso-2); text-decoration: none; }
.footer-nav a:hover { color: var(--texto-inverso); }
.footer-nav .footer-live { color: var(--hc-ceu); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: var(--s-6); font-size: 13px; }
.footer-legal strong { color: var(--texto-inverso); font-weight: 600; }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr 460px; gap: var(--s-12); }
  .tab-panel { grid-template-columns: 1fr 440px; gap: var(--s-10); }
  .situation-grid { grid-template-columns: 1fr; }
  .devices { max-width: 720px; }
  .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .contract-grid, .science-grid { gap: var(--s-12); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  h1 { font-size: 36px; line-height: 1.08; }
  h2 { font-size: 27px; line-height: 1.2; }
  .container { width: min(var(--container), 100% - 2 * var(--gutter-mobile)); }
  .section { padding: var(--secao-mobile) 0; }
  .section-head { margin-bottom: 28px; gap: 12px; }
  .section-head > p:not(.eyebrow) { font-size: var(--t-16); }
  .big-num { font-size: var(--t-31); }

  /* header */
  .header-inner { gap: 12px; }
  .brand img { height: 29px; }
  .header-cta { margin-left: auto; height: 40px; padding: 0 16px; font-size: 15px; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter-mobile) 20px;
    background: var(--hc-n0); border-bottom: 1px solid var(--borda-sutil); box-shadow: var(--sombra-2);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
  }
  .site-nav a { font-size: var(--t-16); padding: 14px 0; border-bottom: 1px solid var(--borda-sutil); }
  .site-header.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* hero */
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero h1 { margin: var(--s-4) 0; }
  .hero-lead { font-size: var(--t-16); }
  .hero-ctas { flex-direction: column; margin: var(--s-6) 0 0; }
  .hero-ctas .btn { width: 100%; }
  /* ordem do protótipo mobile: texto → CTAs → ilustração → números */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .hero-visual { order: 1; margin-top: var(--s-8); }
  .hero-stats { order: 2; margin-top: var(--s-6); gap: var(--s-4); display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-stats dt { font-size: 22px; }
  .hero-stats dd { font-size: var(--t-12); }
  .hero-shot { border-radius: var(--r-16); }
  .hero-visual figcaption { text-align: left; }

  .credentials { padding: 20px 0; }
  .credentials-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .credentials-list li { font-size: 13px; align-items: flex-start; }
  .credentials-list img { margin-top: 3px; }

  /* cards viram lista */
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px; }
  .problem-card { grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
  .problem-card .big-num { white-space: normal; }
  .problem-card h3 { font-size: 15px; }
  .problem-card p:not(.big-num) { font-size: var(--t-14); }
  .layer-card { grid-template-columns: 40px 1fr; gap: 14px; }
  .layer-card .icon-48 { width: 32px; height: 32px; }
  .layer-card h3 { font-size: 17px; }
  .layer-card p:not(.label) { font-size: var(--t-14); }
  .card--stripe { padding-top: 18px; }

  /* tabs viram chips roláveis */
  .tab-list {
    border-bottom: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter-mobile) * -1) 24px;
    padding: 0 var(--gutter-mobile);
  }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab-list button { flex-shrink: 0; height: 40px; padding: 0 16px; border: 1px solid var(--borda); border-radius: var(--r-pill); font-size: var(--t-14); background: var(--hc-n0); }
  .tab-list button::after { display: none; }
  .tab-list button[aria-selected="true"] { background: var(--hc-profundo); border-color: var(--hc-profundo); color: var(--hc-n0); }
  .tab-panel { grid-template-columns: 1fr; gap: var(--s-6); }
  .panel-title { font-size: var(--t-20); }
  .panel-copy > p { font-size: var(--t-16); }
  .metric-num { font-size: 25px; }
  .screen-frame { padding: 16px; }
  .screen-frame img { max-height: 420px; }
  .situation-copy > p:not(.eyebrow) { font-size: var(--t-16); }
  .screen-frame figcaption { flex-direction: column; gap: 6px; }

  /* sala de situação: só o celular */
  .devices { height: auto; display: grid; justify-items: center; gap: 12px; }
  .laptop, .chat-card { display: none; }
  .phone { position: static; }
  .devices figcaption { position: static; text-align: center; }

  .results { grid-template-columns: 1fr 1fr; }
  .results > div { padding: 20px 18px; gap: 8px; }
  .results .big-num { font-size: 28px; }
  .results p:not(.big-num) { font-size: 13px; }

  .steps { grid-template-columns: 1fr; gap: var(--s-5); }
  .steps li { grid-template-columns: 44px 1fr; gap: var(--s-4); }
  .hex-num { width: 40px; height: 44px; font-size: var(--t-16); }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: var(--t-14); }

  .contract-grid, .science-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .dossier { padding: 20px; }
  .hex-list--cols { grid-template-columns: 1fr; }
  .path-card { padding: 20px; }
  .science-copy p { font-size: var(--t-16); }

  .faq summary { font-size: var(--t-16); padding: 18px 40px 18px 0; }
  .faq-body p { padding-right: 0; font-size: 15px; }

  .contact-form { grid-template-columns: 1fr; padding: 20px; gap: var(--s-4); }
  .field-pair { grid-template-columns: 90px 1fr; gap: 12px; }
  .form-actions .btn { width: 100%; }
  .form-note { width: 100%; text-align: center; }

  .site-footer { padding: 40px 0 32px; }
  .footer-top { flex-direction: column; gap: var(--s-5); }
  .footer-legal { flex-direction: column; }
}

@media (min-width: 600px) and (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .results { grid-template-columns: repeat(3, 1fr); }
}

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