@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Peritus SST · Etapa 1 · Identidades preservadas
   Avaliações: verde técnico. Perícias: grafite e dourado. FAP: azul analítico.
   Componentes, navegação e comportamento compartilham a mesma base. */

:root {
  color-scheme: light;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #133a32;
  --muted: #536c64;
  --micro: #587066;
  --paper: #ffffff;
  --surface: #f4faf7;
  --surface-soft: #eaf4ef;
  --line: rgba(19, 58, 50, .12);
  --line-soft: rgba(19, 58, 50, .08);
  --line-strong: #b6cfc3;
  --accent: #08715f;
  --accent-hover: #075846;
  --accent-soft: #e5f4ed;
  --accent-line: #beded0;
  --focus: #08715f;
  --focus-ring: rgba(8, 113, 95, .13);
  --placeholder: #5c7469;
  --input-bg: #fcfefc;
  --header-bg: rgba(248, 253, 250, .94);
  --nav-bg: #edf5f0;
  --nav-active-bg: #0c624e;
  --nav-active-text: #ffffff;
  --button-bg: linear-gradient(135deg, #0f785e, #07553f);
  --button-hover-bg: linear-gradient(135deg, #0a644d, #064533);
  --button-text: #ffffff;
  --calculator-banner: radial-gradient(ellipse at 100% 0%, rgba(56, 171, 132, .22), transparent 65%), linear-gradient(120deg, #092e27, #124a3c);
  --banner-text: #ffffff;
  --banner-muted: #b8e5cf;
  --banner-line: rgba(174, 235, 200, .17);
  --banner-dot: #afe3a6;
  --result-bg: linear-gradient(135deg, #eff9f3, #e4f4ec);
  --result-line: #b6d9c8;
  --card-bg: linear-gradient(145deg, #ffffff, #f9fdfb);
  --card-hover-line: #9dc8b5;
  --footer-bg: #e9f3ed;
  --selection-bg: #c6e9d6;
  --selection-text: #103f30;
  --danger: #b42318;
  --danger-soft: #fff1f0;
  --danger-line: #f0ccc8;
  --success: #146140;
  --success-soft: #edf8f1;
  --success-line: #cde4d5;
  --info: #285a7a;
  --info-soft: #eef5fa;
  --info-line: #d5e4ee;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --shadow-xs: 0 1px 2px rgba(20, 37, 30, .04);
  --shadow-sm: 0 2px 4px rgba(20, 37, 30, .025), 0 10px 24px rgba(20, 37, 30, .04);
  --shadow: 0 2px 6px rgba(20, 37, 30, .025), 0 20px 60px -16px rgba(20, 37, 30, .12);
  --shadow-cta: 0 1px 2px rgba(16, 77, 61, .12), 0 6px 16px rgba(22, 99, 78, .16);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --section-space: clamp(64px, 8vw, 112px);
  --shell-width: 1280px;
  --page-gutter: 24px;
  --header-height: 80px;
  --ease: .2s ease-out;
}

/* Os três temas mantêm a personalidade do projeto original. */
body.theme-quant {
  color-scheme: light;
  --accent: #08715f;
  --surface: #f4faf7;
}

body.theme-forensic {
  color-scheme: dark;
  --ink: #f1f4f9;
  --muted: #b0bdcd;
  --micro: #9caec3;
  --paper: #121d2c;
  --surface: #0a111c;
  --surface-soft: #192638;
  --line: rgba(174, 194, 219, .16);
  --line-soft: rgba(174, 194, 219, .12);
  --line-strong: #43566d;
  --accent: #edbd72;
  --accent-hover: #f4cd93;
  --accent-soft: #30291f;
  --accent-line: #655034;
  --focus: #edbd72;
  --focus-ring: rgba(237, 189, 114, .14);
  --placeholder: #9eafc3;
  --input-bg: #0c1624;
  --header-bg: rgba(10, 17, 28, .95);
  --nav-bg: #121d2c;
  --nav-active-bg: #e8b563;
  --nav-active-text: #221b10;
  --button-bg: linear-gradient(135deg, #f2cc88, #dfa648);
  --button-hover-bg: linear-gradient(135deg, #f8daa3, #e9b764);
  --button-text: #221b10;
  --calculator-banner: radial-gradient(ellipse at 100% 0%, rgba(224, 173, 88, .1), transparent 65%), linear-gradient(120deg, #1a293c, #131f30);
  --banner-text: #f5f7fb;
  --banner-muted: #edbd72;
  --banner-line: rgba(237, 189, 114, .2);
  --banner-dot: #edbd72;
  --result-bg: linear-gradient(130deg, #29271f, #192232);
  --result-line: #685333;
  --card-bg: linear-gradient(145deg, #172438, #101a29);
  --card-hover-line: #806340;
  --footer-bg: #080e18;
  --selection-bg: #edbd72;
  --selection-text: #1c1820;
  --danger: #ffb5ae;
  --danger-soft: #38202a;
  --danger-line: #79424a;
  --success: #93e6b4;
  --success-soft: #15332b;
  --success-line: #326451;
  --info: #aed8ff;
  --info-soft: #1b2d43;
  --info-line: #3b5875;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .12);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, .08), 0 12px 30px -12px rgba(0, 0, 0, .3);
  --shadow: 0 2px 6px rgba(0, 0, 0, .1), 0 28px 70px -24px rgba(0, 0, 0, .45);
  --shadow-cta: 0 2px 3px rgba(0, 0, 0, .1), 0 8px 24px -7px rgba(226, 174, 89, .3);
}

body.theme-fap {
  color-scheme: light;
  --ink: #102c4b;
  --muted: #536b85;
  --micro: #536b84;
  --paper: #ffffff;
  --surface: #f1f6fc;
  --surface-soft: #e7eff9;
  --line: rgba(23, 60, 108, .12);
  --line-soft: rgba(23, 60, 108, .08);
  --line-strong: #b4c7df;
  --accent: #195c9b;
  --accent-hover: #134b82;
  --accent-soft: #e7f1fc;
  --accent-line: #bfd7f1;
  --focus: #2169ac;
  --focus-ring: rgba(33, 105, 172, .12);
  --placeholder: #58718c;
  --input-bg: #fcfdff;
  --header-bg: rgba(247, 250, 255, .95);
  --nav-bg: #edf3fb;
  --nav-active-bg: #164979;
  --nav-active-text: #ffffff;
  --button-bg: linear-gradient(135deg, #1b609d, #153b6a);
  --button-hover-bg: linear-gradient(135deg, #154e83, #102e54);
  --button-text: #ffffff;
  --calculator-banner: radial-gradient(ellipse at 100% 0%, rgba(68, 177, 223, .2), transparent 65%), linear-gradient(120deg, #102b4d, #164673);
  --banner-text: #ffffff;
  --banner-muted: #b2e7fa;
  --banner-line: rgba(154, 212, 244, .22);
  --banner-dot: #72d9f2;
  --result-bg: linear-gradient(135deg, #f0f6ff, #e4effc);
  --result-line: #b4cfea;
  --card-bg: linear-gradient(145deg, #ffffff, #f7faff);
  --card-hover-line: #9abde3;
  --footer-bg: #e5eef9;
  --selection-bg: #c7dff9;
  --selection-text: #10375d;
  --shadow-sm: 0 2px 4px rgba(24, 58, 100, .025), 0 12px 30px rgba(24, 58, 100, .045);
  --shadow: 0 2px 6px rgba(24, 58, 100, .035), 0 24px 64px -16px rgba(24, 58, 100, .15);
  --shadow-cta: 0 2px 3px rgba(13, 47, 86, .1), 0 8px 22px rgba(26, 83, 146, .18);
}

/* Reset e acessibilidade */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--surface); color: var(--ink); font: 400 1rem/1.65 var(--font); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, summary { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .6; }
button[aria-busy="true"] { cursor: progress; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
fieldset { min-width: 0; }
strong { font-weight: 700; }
::selection { background: var(--selection-bg); color: var(--selection-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.shell { width: min(var(--shell-width), calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
[data-calculator], [id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.field, .calculator-card, .calculator-body, .form-grid > *, .quant-grid > *, .forensic-grid > *, .dashboard-frame > * { min-width: 0; }

/* Navegação: mesma estrutura, com as cores de cada serviço */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: var(--header-bg); backdrop-filter: blur(16px); }
}
.header-row { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.brand { display: block; flex: 0 1 268px; min-width: 0; }
.brand img { width: 268px; height: 48px; object-fit: contain; object-position: left center; filter: none; opacity: 1; }
.main-nav { display: flex; align-items: center; gap: var(--space-1); padding: 5px; border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--nav-bg); }
.nav-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: var(--radius-sm); color: var(--muted); font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: all var(--ease); }
.nav-link-active, .nav-link[aria-current="page"] { color: var(--nav-active-text); background: var(--nav-active-bg); box-shadow: var(--shadow-xs); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--paper); transition: all var(--ease); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-soft); border-color: var(--line-strong); }

/* Tipografia, seções e ações */
.eyebrow, .mini-label { color: var(--accent); font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); }
.eyebrow::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.mini-label { display: block; margin-bottom: var(--space-2); }
/* Harmoniza as duas cores inline do HTML com seus respectivos temas. */
.process-panel > .mini-label, .analytics-head .mini-label { color: var(--accent) !important; }
.hero-title { margin: 22px 0 24px; max-width: 900px; color: var(--ink); font-size: clamp(2.5rem, 4.7vw, 4.75rem); font-weight: 700; line-height: 1.07; letter-spacing: -.055em; }
.hero-copy { margin: 0; max-width: 640px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.8; }
.benefit-list { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.check { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .6875rem; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; line-height: 1.5; text-align: center; transition: all var(--ease); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform var(--ease); }
.btn-primary { color: var(--button-text); background: var(--button-bg); border-color: rgba(0, 0, 0, .06); box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-secondary { color: var(--ink); border-color: var(--line-strong); background: var(--paper); box-shadow: var(--shadow-xs); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn:disabled { transform: none; box-shadow: none; }
.section-block { padding-block: var(--section-space); }
.section-heading { max-width: 740px; margin-bottom: var(--space-7); }
.section-heading h2, .faq-intro h2 { margin: 16px 0; font-size: clamp(1.875rem, 3.2vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.section-heading p, .faq-intro p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }

/* Estrutura das três landing pages */
.quant-hero, .forensic-hero, .fap-hero { position: relative; isolation: isolate; padding-block: var(--section-space); background: var(--surface); }
.quant-grid, .quant-grid-wide { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.quant-copy { padding-top: var(--space-6); }
.quant-copy .hero-title { font-size: clamp(2.75rem, 4.5vw, 4.5rem); }
.quant-copy .benefit-list { flex-direction: column; }
.calculator-card-large { width: 100%; max-width: none; }
.service-overview { background: var(--paper); border-block: 1px solid var(--line-soft); }
.quant-benefits, .trust-section { background: var(--surface); }
.trust-section { padding-top: 0; }
.quant-faq, .forensic-faq, .fap-faq { border-top: 1px solid var(--line-soft); background: var(--paper); }
.forensic-hero { padding-bottom: var(--space-8); }
.forensic-intro { max-width: 1000px; text-align: center; }
.forensic-intro .hero-title, .forensic-intro .hero-copy { margin-inline: auto; }
.forensic-intro .benefit-list, .forensic-intro .hero-actions { justify-content: center; }
.forensic-intro .hero-title { font-size: clamp(2.75rem, 5vw, 4.75rem); }
.case-status { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.status-chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-size: .75rem; font-weight: 500; }
.status-chip strong { margin-right: 4px; color: var(--accent); font-size: .6875rem; }
.forensic-workspace { padding: var(--space-5) 0 var(--section-space); }
.forensic-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: var(--space-7); align-items: start; }
.process-panel { padding: var(--space-6); border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.process-panel h2 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -.03em; }
.process-panel > p { margin: 0 0 var(--space-6); color: var(--muted); font-size: .875rem; }
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: phases; }
.timeline li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-4); padding-bottom: 28px; counter-increment: phases; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: counter(phases, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 6px; width: 1px; background: var(--line); }
.timeline h3 { margin: 1px 0 6px; font-size: .9375rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .8125rem; }
.fap-hero { padding-bottom: var(--space-7); }
.fap-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: var(--space-8); align-items: end; }
.fap-awareness { margin: 0 0 4px; }
.fap-dashboard { padding: var(--space-5) 0 var(--section-space); }
.dashboard-frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.fap-inputs { min-width: 0; border-right: 1px solid var(--line); }
.fap-inputs .calculator-card { border: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); box-shadow: none; }

/* Calculadoras e campos */
.calculator-card { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.calculator-head { position: relative; padding: 28px 32px; border-bottom: 1px solid var(--banner-line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--calculator-banner); }
.calculator-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--banner-muted); font-size: .6875rem; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.calculator-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--banner-dot); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.calculator-head h2 { margin: 0; color: var(--banner-text); font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -.035em; }
.calculator-body { padding: var(--space-6); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.form-grid-spaced { margin-block: var(--space-5); }
.field-full, .route-field { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.5; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); background: var(--input-bg); box-shadow: var(--shadow-xs); font-size: 1rem; line-height: 1.5; transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input[type="number"] { font-variant-numeric: tabular-nums; }
select { appearance: none; 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 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23708398' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select[multiple] { padding-right: 14px; background-image: none; }
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); cursor: pointer; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-ring); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus-visible, select[aria-invalid="true"]:focus-visible, textarea[aria-invalid="true"]:focus-visible { outline-color: var(--danger); box-shadow: 0 0 0 5px rgba(180, 35, 24, .1); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .65; background-color: var(--surface-soft); }
input[readonly], textarea[readonly] { background-color: var(--surface-soft); }
.field small, .hours-panel > small, .chemical-picker > small { display: block; margin-top: 7px; color: var(--micro); font-size: .75rem; line-height: 1.6; }
.field-error { margin-top: 8px; color: var(--danger); font-size: .8125rem; font-weight: 500; line-height: 1.5; }

/* Seleção dinâmica de avaliações e agentes químicos */
.service-builder { margin-bottom: var(--space-5); }
.service-select-field { margin-bottom: 14px; }
.service-add-row, .chemical-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.service-add-row .btn, .chemical-add .btn { min-height: 48px; }
.selected-services, .selected-chemicals { display: grid; gap: 10px; }
.selected-chemicals { margin-block: 14px; }
.selected-service, .chemical-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.selected-service { flex-wrap: wrap; }
.selected-service > div:first-child { display: grid; flex: 1 1 180px; min-width: 0; gap: 4px; }
.selected-service strong, .chemical-chip strong { font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.selected-service small, .chemical-chip small, .service-auto { color: var(--micro); font-size: .75rem; line-height: 1.5; }
.selected-service-actions { display: flex; align-items: center; gap: 12px; }
.selected-service-actions label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.selected-service-actions input { width: 76px; min-height: 44px; padding: 8px; }
.selected-service-actions button, .chemical-chip button, .modal-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--muted); font-size: 1.25rem; line-height: 1; transition: all var(--ease); }
.chemical-picker, .hours-panel { min-width: 0; margin: 0 0 var(--space-5); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.chemical-picker h3 { margin: 0 0 16px; font-size: .9375rem; }
.chemical-chip { background: var(--paper); }
.chemical-chip > span { display: grid; min-width: 0; gap: 4px; }
.chemical-empty { margin: 0; padding: 12px 0; color: var(--micro); font-size: .8125rem; }
.service-fieldset { margin: 0 0 var(--space-5); padding: 0; border: 0; }
.service-fieldset legend { margin-bottom: 12px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.service-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-check { display: flex; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--paper); cursor: pointer; transition: all var(--ease); }
.service-check input { margin: 2px 0 0; }
.service-check span { display: grid; gap: 4px; }
.service-check strong { font-size: .8125rem; }
.service-check small { color: var(--micro); font-size: .75rem; }
.service-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.service-check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 48px; align-items: center; gap: 10px; margin-bottom: 12px; }
.hours-row label { font-size: .8125rem; font-weight: 600; }
.hours-row span { color: var(--micro); font-size: .75rem; }

/* Município, geolocalização e rota: estados nativos preservados */
.distance-control { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.distance-control input { max-width: 160px; }
.distance-control span { color: var(--muted); font-size: .8125rem; }
.location-panel { margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.form-grid > .location-panel { margin: 0; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.location-actions .btn { flex: 1 1 160px; }
.route-button { min-height: 44px; padding: 10px 12px; font-size: .75rem; }
.location-panel strong { display: block; color: var(--ink); font-size: .875rem; font-variant-numeric: tabular-nums; }
.location-panel small { display: block; margin-top: 7px; color: var(--micro); font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
.location-panel small:empty { display: none; }

/* Resumo de investimento e memória de cálculo */
.result-panel, .fap-total { margin-top: var(--space-5); padding: var(--space-5); border: 1px solid var(--result-line); border-radius: 18px; background: var(--result-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.result-panel-detailed { margin-top: var(--space-5); }
.result-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-top > div { flex: 1 1 220px; min-width: 0; }
.result-label { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.6; }
.result-value { display: block; margin-top: 10px; color: var(--accent); font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-note { flex: 1 1 140px; max-width: 200px; padding-top: 2px; color: var(--micro); font-size: .6875rem; line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.metric { min-width: 0; min-height: 88px; padding: 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--paper); }
.metric span { display: block; color: var(--micro); font-size: .6875rem; line-height: 1.5; }
.metric strong { display: block; margin-top: 8px; color: var(--ink); font-size: .9375rem; line-height: 1.4; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calculation-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--accent-line); }
.calculation-details summary { padding-block: 6px; color: var(--ink); cursor: pointer; font-size: .8125rem; font-weight: 600; }
.calculation-details summary::marker { color: var(--muted); }
.calculation-details ul { display: grid; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.calculation-details li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: .75rem; line-height: 1.6; }
.calculation-details li span { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.calculation-details li strong { flex: 0 0 auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.result-flash { animation: resultFlash .32s ease-out; }
@keyframes resultFlash { from { opacity: .75; } to { opacity: 1; } }

/* Contato e feedback: seleção, carregamento, sucesso e erro */
.contact-panel { margin-top: 28px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.form-grid > .contact-panel { margin-top: 4px; }
.contact-panel h3 { margin: 0 0 8px; font-size: 1.0625rem; letter-spacing: -.025em; }
.contact-panel > p { margin: 0 0 22px; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--micro); cursor: pointer; font-size: .75rem; line-height: 1.6; }
.consent-row input { margin: 2px 0 0; }
.calculator-submit { width: 100%; min-height: 54px; margin-top: 24px; }
.proposal-feedback { margin-top: 16px; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
.proposal-feedback:empty { display: none; }
.proposal-feedback.is-loading { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.proposal-feedback.is-success { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.proposal-feedback.is-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.proposal-feedback a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.proposal-whatsapp { width: 100%; margin-top: 12px; }
.fine-print { margin: 14px 0 0; color: var(--micro); font-size: .6875rem; line-height: 1.8; text-align: center; }
.choice-panel { margin-top: 24px; padding: 20px; border: 1px solid var(--accent-line); border-radius: var(--radius-md); background: var(--accent-soft); }
.choice-panel h3 { margin: 0 0 8px; font-size: .9375rem; line-height: 1.5; }
.choice-panel p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.75; }

/* FAP: painel analítico e barras com largura controlada pelo JavaScript */
.fap-analytics { min-width: 0; padding: 32px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--surface); }
.analytics-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.analytics-head > div { flex: 1 1 220px; min-width: 0; }
.analytics-head h2 { margin: 0; font-size: 1.375rem; line-height: 1.4; letter-spacing: -.03em; }
.analytics-badge { padding: 6px 10px; border: 1px solid var(--accent-line); border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: .625rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.fap-total { margin-top: 28px; }
.theme-fap .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bar-chart { margin-top: 24px; padding: 24px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-xs); }
.bar-chart h3 { margin: 0 0 24px; font-size: .875rem; line-height: 1.5; }
.bar-row + .bar-row { margin-top: 24px; }
.bar-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.bar-label strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.bar-fill { height: 100%; min-width: 0; border-radius: inherit; transition: width .35s ease-out; }
.bar-current { background: linear-gradient(90deg, #164a8b, #208bbd); }
.bar-minimum { background: linear-gradient(90deg, #448fab, #7fc8db); }
.fap-disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--micro); font-size: .75rem; line-height: 1.7; }
.fap-disclaimer svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--muted); }

/* Diferenciais e serviços em composições Bento */
.awareness { margin-top: var(--space-6); padding: 22px 24px; border: 1px solid var(--line-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-xs); }
.awareness-content { padding: 0; }
.awareness h3 { margin: 0 0 8px; font-size: .9375rem; letter-spacing: -.02em; }
.awareness p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.75; }
.fap-intro .fap-awareness { margin-top: 0; }
.process-panel .awareness { background: var(--surface); box-shadow: none; }
.info-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.info-card { grid-column: span 4; position: relative; min-width: 0; padding: 30px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--shadow-sm); transition: border-color var(--ease), box-shadow var(--ease); }
.info-index { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); color: var(--accent); background: var(--accent-soft); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.info-card h3 { margin: 0 0 12px; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.025em; }
.info-card p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.quant-benefits .info-card { grid-column: span 3; }
.trust-section .info-card:nth-child(4n+1), .trust-section .info-card:nth-child(4n+4) { grid-column: span 7; }
.trust-section .info-card:nth-child(4n+2), .trust-section .info-card:nth-child(4n+3) { grid-column: span 5; }
.service-overview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.service-overview-grid .info-card { display: flex; flex-direction: column; grid-column: span 2; min-height: 220px; }
.service-overview-grid .info-card:nth-child(-n+2) { grid-column: span 3; }
.service-overview-grid .info-card strong { display: block; margin-top: auto; padding-top: 28px; color: var(--ink); font-size: .875rem; font-weight: 600; }

/* Perguntas frequentes */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item > h3 { margin: 0; }
.accordion-button { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 2px; border: 0; background: transparent; color: var(--ink); font-size: .9375rem; font-weight: 600; line-height: 1.6; text-align: left; transition: color var(--ease); }
.accordion-button span:last-child { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1.125rem; font-weight: 400; transition: all var(--ease); }
.accordion-button[aria-expanded="true"] span:last-child { transform: rotate(45deg); color: var(--ink); background: var(--surface-soft); }
.accordion-panel { padding: 0 48px 26px 2px; color: var(--muted); font-size: .875rem; line-height: 1.85; }
.accordion-panel[hidden] { display: none; }

/* Rodapé e contato flutuante compartilhados */
.footer { padding: 38px 0; border-top: 1px solid var(--line-soft); background: var(--footer-bg); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-right: 72px; }
.footer-brand { font-size: .8125rem; font-weight: 700; letter-spacing: -.02em; }
.footer small { max-width: 440px; color: var(--micro); font-size: .75rem; line-height: 1.7; }
.whatsapp-float { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; color: #fff; background: #117a4d; box-shadow: 0 8px 22px rgba(17, 122, 77, .23); transition: all var(--ease); }
.whatsapp-float svg { width: 26px; height: 26px; }
.whatsapp-float::before { content: attr(data-tooltip); position: absolute; right: calc(100% + 12px); width: max-content; max-width: min(220px, calc(100vw - 110px)); padding: 9px 12px; border-radius: var(--radius-sm); color: #fff; background: #111b2a; font-size: .75rem; font-weight: 500; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateX(4px); transition: all var(--ease); }
.whatsapp-float:focus-visible::before { opacity: 1; transform: translateX(0); }

/* Ambientes visuais: refinamento da composição original de cada página. */
.quant-hero { background: radial-gradient(ellipse at 8% 3%, rgba(134, 206, 176, .19), transparent 45%), radial-gradient(ellipse at 95% 12%, rgba(75, 161, 148, .07), transparent 40%), var(--surface); }
.quant-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 auto; height: 760px; background-image: linear-gradient(rgba(8, 113, 95, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 113, 95, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(#000, transparent 92%); }
.quant-copy .hero-title { font-weight: 800; }
.quant-copy .awareness { background: rgba(255, 255, 255, .8); }
.theme-quant .calculator-card { border-color: #bcd9ca; }
.quant-benefits { border-bottom: 1px solid var(--line-soft); }
.trust-section { padding-top: var(--space-8); }
.quant-faq { background: #eaf5ee; }
.service-overview-grid .info-card::before { content: ""; display: block; width: 46px; height: 46px; flex: 0 0 auto; margin-bottom: 22px; border: 1px solid var(--accent-line); border-radius: 13px; background: var(--accent-soft) var(--service-icon) center / 24px 24px no-repeat; }
.service-overview-grid .info-card:nth-child(1) { --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10v4m4-8v12m4-15v18m4-15v12m4-8v4' fill='none' stroke='%2308715f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.service-overview-grid .info-card:nth-child(2) { --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%2308715f' stroke-width='1.8'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M5 19l1.5-1.5m11-11L19 5' stroke='%2308715f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.service-overview-grid .info-card:nth-child(3) { --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 10 2-5h12l2 5v8H4v-8zm0 0h16M7 18v2m10-2v2M7 14h2m6 0h2' fill='none' stroke='%2308715f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.service-overview-grid .info-card:nth-child(4) { --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4 20 9-9m-2-7a6 6 0 0 0 8 8l-4-2-1-4-3-2ZM4 4v3M2.5 5.5h3M18 18v3m-1.5-1.5h3' fill='none' stroke='%2308715f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.service-overview-grid .info-card:nth-child(5) { --service-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 3h8m-6 0v7l-6 9a1 1 0 0 0 1 2h14a1 1 0 0 0 1-2l-6-9V3M7 16h10' fill='none' stroke='%2308715f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.service-overview-grid .info-card strong { color: var(--accent); }

.theme-forensic .brand img { filter: grayscale(1) invert(1); }
.theme-forensic .site-header { border-bottom-color: rgba(237, 189, 114, .15); }
.forensic-hero { background: radial-gradient(ellipse at 50% 0%, rgba(211, 158, 78, .16), transparent 58%), radial-gradient(ellipse at 100% 100%, rgba(69, 104, 152, .09), transparent 48%), var(--surface); }
.forensic-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; background: linear-gradient(118deg, transparent 24%, rgba(237, 189, 114, .045) 24.1%, transparent 24.3%), linear-gradient(62deg, transparent 76%, rgba(237, 189, 114, .045) 76.1%, transparent 76.3%); }
.forensic-intro .hero-title { max-width: 960px; font-size: clamp(2.75rem, 5.3vw, 5.25rem); line-height: 1.06; }
.forensic-intro .hero-copy { max-width: 650px; }
.status-chip { border-color: rgba(237, 189, 114, .24); border-radius: 10px; background: rgba(20, 30, 44, .78); color: #b8c6d8; }
.forensic-workspace { background: linear-gradient(180deg, #0a111c, #0d1623); }
.process-panel { border-color: var(--line); background: var(--card-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), var(--shadow-sm); }
.timeline li::before { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.timeline li:not(:last-child)::after { background: linear-gradient(var(--accent-line), var(--line)); }
.theme-forensic .calculator-card { border-color: #504632; }
.theme-forensic .result-panel .metric { border-color: var(--line); background: rgba(13, 24, 40, .75); }
.theme-forensic .calculator-submit { font-weight: 700; }
.forensic-faq { background: #101a29; }

.fap-hero { background: radial-gradient(ellipse at 95% 0%, rgba(106, 180, 231, .2), transparent 48%), linear-gradient(180deg, #f8fbff, #f1f6fc); }
.fap-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 auto 50%; height: 440px; background-image: linear-gradient(rgba(25, 92, 155, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 92, 155, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(#000, transparent); }
.fap-awareness { padding: 28px; border-color: #264e75; border-left-color: #72d9f2; border-radius: 18px; background: var(--calculator-banner); box-shadow: var(--shadow-sm); }
.fap-awareness h3 { color: var(--banner-text); }
.fap-awareness p { color: var(--banner-muted); }
.theme-fap .dashboard-frame { border-color: #bdd0e6; }
.fap-analytics { background: linear-gradient(145deg, #f3f8ff, #eaf2fc); }
.fap-total { border-color: #1a4875; background: var(--calculator-banner); box-shadow: 0 10px 25px -12px rgba(16, 43, 77, .3); }
.fap-total .result-label { color: var(--banner-muted); }
.fap-total .result-value { color: var(--banner-text); }
.theme-fap .metric { box-shadow: var(--shadow-xs); }
.fap-disclaimer { padding: 16px; border-left: 2px solid #70b8da; border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, .7); }
.fap-faq { background: #e7f0fb; }

/* Componentes opcionais: tabelas e dialog nativo.
   O CSS não abre modais nem modifica o fluxo de proposta existente. */
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.data-table { width: 100%; border-collapse: collapse; background: var(--paper); text-align: left; font-size: .8125rem; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--muted); background: var(--surface); font-size: .75rem; font-weight: 600; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table caption { padding: 16px; color: var(--ink); text-align: left; font-weight: 600; }
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(20, 37, 30, .2); }
dialog::backdrop { background: rgba(15, 23, 42, .36); backdrop-filter: blur(4px); }
dialog[open] { animation: panelIn .2s ease-out; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.03em; }
.modal-body { padding: 28px; }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 20px 28px 28px; border-top: 1px solid var(--line); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Interações somente em dispositivos com hover real */
@media (hover: hover) {
  .nav-link:not(.nav-link-active):not([aria-current="page"]):hover { color: var(--ink); background: var(--paper); }
  .nav-toggle:hover, .btn-secondary:hover { border-color: var(--accent); background: var(--surface); }
  .btn-primary:hover:not(:disabled) { background: var(--button-hover-bg); transform: translateY(-1px); box-shadow: var(--shadow-cta), 0 0 0 3px var(--accent-soft); }
  .btn-primary:hover:not(:disabled) svg { transform: translateX(2px); }
  .info-card:hover { border-color: var(--card-hover-line); box-shadow: var(--shadow); }
  .selected-service-actions button:hover, .chemical-chip button:hover { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); }
  .modal-close:hover { background: var(--surface-soft); color: var(--ink); }
  .service-check:hover { border-color: var(--accent); }
  .accordion-button:hover span:last-child { background: var(--surface-soft); color: var(--ink); }
  .whatsapp-float:hover { transform: translateY(-2px); background: #0c643e; }
  .whatsapp-float:hover::before { opacity: 1; transform: translateX(0); }
}

/* Responsividade: preserva ordem do DOM e todos os controles */
@media (min-width: 1101px) {
  .fap-inputs .calculator-head { border-top-right-radius: 0; }
}
@media (min-width: 1101px) and (min-height: 900px) {
  .quant-copy, .process-panel { position: sticky; top: calc(var(--header-height) + 28px); }
}
@media (max-width: 1100px) {
  .quant-grid, .quant-grid-wide, .forensic-grid, .fap-intro, .dashboard-frame { grid-template-columns: minmax(0, 1fr); }
  .quant-grid, .forensic-grid, .fap-intro { gap: 40px; }
  .quant-copy { max-width: 760px; padding-top: 0; }
  .quant-grid > .calculator-card { max-width: 780px; margin-inline: auto; }
  .quant-copy .benefit-list { flex-direction: row; }
  .forensic-grid > .calculator-card { width: 100%; }
  .fap-intro .fap-awareness { max-width: 600px; }
  .fap-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .fap-inputs .calculator-card { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .fap-analytics { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .quant-benefits .info-card { grid-column: span 6; }
}
@media (max-width: 960px) {
  :root { --header-height: 72px; }
  .brand { flex-basis: 240px; }
  .brand img { width: 240px; height: 44px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; top: calc(100% + 8px); left: var(--page-gutter); right: var(--page-gutter); display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .main-nav.nav-open { display: flex; animation: panelIn .2s ease-out; }
  .nav-link { min-height: 48px; justify-content: flex-start; padding-inline: 14px; white-space: normal; }
  .nav-link-active, .nav-link[aria-current="page"] { color: var(--nav-active-text); background: var(--nav-active-bg); box-shadow: none; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-intro { max-width: 680px; }
  .info-card { grid-column: span 6; }
  .service-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-overview-grid .info-card, .service-overview-grid .info-card:nth-child(-n+2) { grid-column: auto; }
  .service-overview-grid .info-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 16px; --header-height: 68px; --section-space: 64px; --radius-lg: 22px; }
  .header-row { gap: 12px; }
  .brand { flex-basis: 220px; }
  .brand img { width: 220px; height: 40px; }
  .hero-title, .quant-copy .hero-title, .forensic-intro .hero-title { font-size: clamp(2.25rem, 9.5vw, 3.5rem); letter-spacing: -.045em; }
  .hero-copy { font-size: 1rem; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .benefit-list, .quant-copy .benefit-list { flex-direction: column; gap: 12px; }
  .forensic-intro .benefit-list { align-items: flex-start; text-align: left; }
  .forensic-hero { padding-bottom: 40px; }
  .case-status { gap: 6px; }
  .status-chip { font-size: .6875rem; }
  .section-heading { margin-bottom: 28px; }
  .calculator-head, .calculator-body, .fap-analytics { padding: 24px 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .field-full, .route-field { grid-column: 1 / -1; }
  .service-add-row, .chemical-add { grid-template-columns: minmax(0, 1fr); }
  .service-add-row .btn, .chemical-add .btn { width: 100%; }
  .selected-service > div:first-child { flex-basis: 100%; }
  .selected-service-actions { width: 100%; justify-content: space-between; }
  .chemical-picker, .hours-panel, .location-panel, .choice-panel { padding: 16px; }
  .service-check-grid { grid-template-columns: minmax(0, 1fr); }
  .location-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .result-panel, .fap-total { padding: 20px 16px; }
  .result-top { flex-direction: column; gap: 12px; }
  .result-top > div, .result-note { flex: auto; }
  .result-note { max-width: none; }
  .result-value { font-size: clamp(1.875rem, 7.5vw, 2.75rem); }
  .metric-grid, .theme-fap .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid > .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .metric { padding: 12px; }
  .metric strong { font-size: .875rem; }
  .calculation-details li { flex-wrap: wrap; gap: 4px 12px; }
  .calculation-details li strong { margin-left: auto; }
  .contact-panel { padding-top: 24px; }
  .process-panel, .info-card, .awareness { padding: 24px; }
  .info-grid, .service-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .info-grid .info-card, .trust-section .info-card:nth-child(n), .service-overview-grid .info-card, .service-overview-grid .info-card:nth-child(-n+2), .service-overview-grid .info-card:last-child { grid-column: 1 / -1; }
  .service-overview-grid .info-card { min-height: 0; }
  .bar-chart { padding: 20px 16px; }
  .accordion-button { gap: 16px; }
  .accordion-panel { padding-right: 0; }
  .footer { padding-block: 32px 88px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 0; }
  .whatsapp-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; border-radius: 16px; }
  .modal-head, .modal-body, .modal-footer { padding: 20px; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }
}
@media (max-width: 380px) {
  .calculator-head, .calculator-body, .fap-analytics { padding-inline: 16px; }
  .metric-grid, .theme-fap .metric-grid { grid-template-columns: minmax(0, 1fr); }
  .hours-row { grid-template-columns: minmax(0, 1fr) 70px 24px; gap: 6px; }
  .eyebrow { font-size: .625rem; letter-spacing: .08em; }
}

/* Preferências de acessibilidade e impressão */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .quant-hero::before, .forensic-hero::before, .fap-hero::before, .service-overview-grid .info-card::before { display: none; }
  .btn, .nav-link-active, .calculator-card, .result-panel, .metric, .info-card, .fap-total { border: 1px solid CanvasText; box-shadow: none; }
  select { appearance: auto; background-image: none; }
  .bar-track { border: 1px solid CanvasText; }
  .bar-current { background: Highlight; forced-color-adjust: none; }
  .bar-minimum { background: CanvasText; forced-color-adjust: none; }
  .whatsapp-float { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
}
@media print {
  :root { --header-height: 0px; }
  body, body.theme-quant, body.theme-forensic, body.theme-fap { color-scheme: light; --ink: #111; --muted: #333; --micro: #444; --paper: #fff; --surface: #fff; --surface-soft: #f3f3f3; --line: #ccc; --line-soft: #ddd; --accent: #222; --accent-soft: #f5f5f5; --accent-line: #bbb; --result-line: #bbb; --result-bg: #fff; --card-bg: #fff; --calculator-banner: #fff; --banner-text: #111; --banner-muted: #333; --footer-bg: #fff; --input-bg: #fff; background: #fff; color: #000; font-size: 10pt; }
  .site-header, .whatsapp-float, .hero-actions, .calculator-submit, .location-actions { display: none; }
  .shell { width: 100%; }
  .quant-copy, .process-panel { position: static; }
  .quant-grid, .forensic-grid, .fap-intro, .dashboard-frame, .faq-wrap { display: block; }
  .section-block, .quant-hero, .forensic-hero, .fap-hero, .forensic-workspace, .fap-dashboard { padding-block: 24px; }
  .calculator-card, .dashboard-frame, .info-card, .process-panel, .awareness { box-shadow: none; }
  .result-panel, .fap-total, .metric, .info-card { break-inside: avoid; }
  .footer { padding-block: 20px; }
  .quant-hero::before, .forensic-hero::before, .fap-hero::before { display: none; }
  .quant-hero, .forensic-hero, .fap-hero, .forensic-workspace, .quant-faq, .forensic-faq, .fap-faq, .fap-analytics, .theme-forensic .result-panel .metric { background: #fff; }
}

/* Jornada de solicitação: a identidade de cada serviço permanece nos tokens acima. */
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.calculator-intro { max-width: 480px; margin: 12px 0 0; color: var(--banner-muted); font-size: .8125rem; line-height: 1.7; }
.lead-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 30px; padding: 0 0 24px; border-bottom: 1px solid var(--line); list-style: none; scroll-margin-top: calc(var(--header-height) + 16px); }
.lead-progress button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 4px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; font-size: .6875rem; font-weight: 600; line-height: 1.5; transition: all var(--ease); }
.step-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.lead-progress button[aria-current=step] { color: var(--ink); }
.lead-progress button[aria-current=step] .step-number { border-color: var(--accent); background: var(--button-bg); color: var(--button-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.lead-progress button.is-complete .step-number { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.step-heading { margin-bottom: 24px; }
.step-heading .mini-label { display: none; }
.step-heading h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.step-heading p { margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.75; }
.step-heading h3:focus, .lead-success h3:focus { outline: none; }
.lead-step > .field + .field, .quote-fields > .field + .form-grid { margin-top: 22px; }
.guidance-choice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; margin-bottom: 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: all var(--ease); }
.guidance-choice input { margin: 3px 0 0; }
.guidance-choice > span { display: grid; gap: 4px; }
.guidance-choice strong { font-size: .8125rem; line-height: 1.6; }
.guidance-choice small { color: var(--micro); font-size: .75rem; line-height: 1.6; }
.guidance-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.guidance-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.guidance-note { margin-bottom: 24px; padding: 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); color: var(--muted); font-size: .875rem; line-height: 1.8; }
.service-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.service-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 100px; padding: 16px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper); color: var(--ink); text-align: left; transition: all var(--ease); }
.service-choice:last-child { grid-column: 1 / -1; min-height: 80px; }
.service-choice-mark { display: grid; place-items: center; flex: 0 0 22px; height: 22px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-weight: 600; }
.service-choice > span:last-child { display: grid; gap: 5px; }
.service-choice strong { font-size: .8125rem; line-height: 1.5; }
.service-choice small { color: var(--micro); font-size: .6875rem; line-height: 1.6; }
.service-choice[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.service-choice[aria-pressed=true] .service-choice-mark { border-color: var(--accent); background: var(--accent); color: #fff; }
.selected-services:empty { display: none; }
.selected-service small { max-width: 280px; }
.service-time summary { padding-block: 12px; color: var(--ink); font-size: .75rem; cursor: pointer; }
.service-time label { padding-block: 6px; }
.advanced-options { margin-block: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.advanced-options > summary { padding: 12px 0; color: var(--muted); font-size: .75rem; line-height: 1.6; cursor: pointer; }
.advanced-options > p { margin: 0 0 12px; color: var(--micro); font-size: .75rem; line-height: 1.7; }
.advanced-options .location-panel { margin: 0; }
.advanced-options .field { padding-block: 8px; }
.micro-help, .optional-label { color: var(--micro); font-size: .75rem; font-weight: 400; }
.micro-help { margin: 14px 0 0; line-height: 1.7; }
.geo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block: 14px 20px; }
.geo-actions .btn { flex: 0 1 auto; }
.geo-actions small { flex-basis: 100%; color: var(--micro); font-size: .75rem; line-height: 1.7; }
.geo-actions small:empty { display: none; }
.location-panel .location-actions { margin-bottom: 14px; }
.location-panel .location-actions .btn { flex: 0 1 auto; }
.context-field { margin-top: 24px; }
.context-field textarea { min-height: 104px; }
.lead-review { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.review-head > strong { font-size: .8125rem; }
.text-button { padding: 10px 0; min-height: 44px; border: 0; background: transparent; color: var(--accent); font-size: .8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lead-review dl { display: grid; gap: 14px; margin: 14px 0 0; }
.lead-review dl > div { display: grid; grid-template-columns: minmax(100px, .65fr) minmax(0, 1.35fr); gap: 12px; }
.lead-review dt { color: var(--micro); font-size: .75rem; line-height: 1.7; }
.lead-review dd { margin: 0; color: var(--ink); font-size: .75rem; line-height: 1.7; font-weight: 600; overflow-wrap: anywhere; }
.next-expectation { margin-top: 24px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.next-expectation strong { color: var(--ink); font-size: .8125rem; }
.next-expectation p { margin: 6px 0 0; color: var(--micro); font-size: .75rem; line-height: 1.8; }
.flow-actions { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; margin-top: 28px; }
.flow-actions [data-step-back] { flex: 0 0 auto; }
.flow-actions [data-step-next], .flow-actions .calculator-submit { flex: 1; min-width: 0; margin: 0; min-height: 52px; font-size: .8125rem; }
.lead-step .fine-print { text-align: left; }
.analytics-empty { margin: 20px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.lead-success { text-align: center; scroll-margin-top: calc(var(--header-height) + 20px); }
.success-check { display: grid; place-items: center; width: 60px; height: 60px; margin: 8px auto 24px; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; }
.lead-success h3 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -.03em; }
.lead-success > p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.8; }
.lead-success .next-expectation { text-align: left; margin-bottom: 22px; }
.lead-success > .btn { width: 100%; }
.lead-success > .text-button { margin-top: 12px; }
.footer-privacy { max-width: 760px; margin-top: 20px; padding-right: 64px; color: var(--micro); font-size: .75rem; line-height: 1.8; }
.footer-privacy summary { width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; }
.footer-privacy p { margin: 8px 0 0; }
.footer-privacy a, .consent-row a { text-decoration: underline; text-underline-offset: 3px; }
.lead-step, .lead-success, #simulador, #privacidade { scroll-margin-top: calc(var(--header-height) + 20px); }
@media (hover: hover) {
  .service-choice:hover, .guidance-choice:hover { border-color: var(--accent); }
  .lead-progress button:hover { background: var(--surface); color: var(--ink); }
  .advanced-options > summary:hover, .text-button:hover { color: var(--ink); }
}
@media (max-width: 1100px) {
  .forensic-grid > .calculator-card { grid-row: 1; }
  .forensic-grid .process-panel { grid-row: 2; }
}
@media (max-width: 640px) {
  .lead-progress { gap: 6px; padding-bottom: 18px; margin-bottom: 24px; }
  .lead-progress button { flex-direction: column; align-items: flex-start; gap: 10px; font-size: .6875rem; }
  .step-number { flex: 0 0 28px; width: 28px; }
  .step-heading h3 { font-size: 1.125rem; }
  .service-choice { padding: 14px 10px; gap: 8px; }
  .service-choice-mark { flex-basis: 18px; height: 18px; margin-top: 3px; font-size: .75rem; }
  .service-choice strong { font-size: .75rem; }
  .service-choice small { font-size: .6875rem; }
  .flow-actions { gap: 8px; }
  .flow-actions .btn { padding: 12px 14px; }
  .lead-review { padding: 16px; }
  .lead-review dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .lead-review dl { gap: 16px; }
  .geo-actions .btn { width: 100%; }
  .footer-privacy { padding-right: 0; }
}
@media (max-width: 360px) {
  .service-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .service-choice { min-height: 76px; }
  .flow-actions { flex-wrap: wrap; }
  .flow-actions [data-step-next], .flow-actions .calculator-submit { flex-basis: 100%; }
}
@media print {
  .lead-progress, .flow-actions, .guidance-choice, .text-button { display: none; }
  .lead-step[hidden] { display: block !important; }
}
