/* ==========================================================================
   Plenaver — home · "Linha Fina — Editorial Navy & Ouro"
   HTML5 + CSS3, sem build. Mobile-first. Breakpoints (min-width): 400 / 480 / 640 / 768 / 900 / 1024 / 1200 / 1280 / 1440.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #F6F5F0;
  --surface: #FFFFFF;
  --surface-2: #EDEBE3;
  --surface-deep: #04202F;

  --ink: #0F1E2A;
  --ink-2: #3E4D59;
  --ink-3: #56656F;
  --ink-on-deep: #F6F5F0;
  --ink-on-deep-2: rgba(246, 245, 240, .72);

  /* Marca: navy #004568 e ouro #AE9545 (logotipo EVORA-PLENAVER) */
  --navy-950: #04202F;
  --navy-900: #003A57;
  --navy-700: #004568;
  --navy-500: #1E6A94;
  --navy-300: #8FBFD9;
  --navy-100: #D8E7F0;
  --navy-50: #EEF4F8;
  --gold-700: #7A6628;
  --gold-500: #AE9545;
  --gold-300: #D9C98A;
  --gold-100: #F0E7C8;

  --line: #D9D6CC;
  --line-strong: #8A877A;
  --line-on-deep: rgba(246, 245, 240, .14);
  --line-navy: rgba(0, 69, 104, .28);

  --warning: #9A5710; --warning-bg: #FBEBD2;
  --info: #2F5D8A;    --info-bg: #DEE9F4;
  --focus: #004568;
  --overlay: rgba(4, 32, 47, .55);

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2rem, 1.1rem + 4vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --fs-stat: clamp(3rem, 2rem + 4vw, 5rem);
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-body: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-ui: .9375rem;
  --fs-eyebrow: .75rem;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --container: 1240px;
  --container-narrow: 960px;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 30, 42, .06);
  --shadow-2: 0 12px 32px -12px rgba(15, 30, 42, .18);
  --shadow-dash: 0 0 0 1px rgba(0, 69, 104, .22), 0 40px 80px -32px rgba(4, 32, 47, .45);
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, .08);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms; --t-mid: 280ms; --t-slow: 600ms;
  --header-h: 64px;
  --autoplay: 6s;
}

:root[data-fonts="system"] { --font-display: Georgia, "Times New Roman", serif; --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Fallbacks com métricas ajustadas (reduzem CLS enquanto as webfonts chegam) */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 101%; ascent-override: 94%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"), local("Roboto-Regular"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
}
@supports (-webkit-font-smoothing: antialiased) { body { -webkit-font-smoothing: antialiased; } }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* SVGs preenchidos (logo, mapa, grain) não herdam o traço dos ícones de linha */
svg.logo__svg, svg.site-footer__logo, svg.site-footer__word, svg.dash__logo, svg.hero__grain, .covmap text, .covmap__center, .node__dot { stroke: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--navy-100); color: var(--navy-950); }
[hidden] { display: none !important; }
.anchor-legacy { position: absolute; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.grid > * { grid-column: 1 / -1; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 12px 18px; background: var(--gold-500); color: var(--navy-950); font-weight: 500; border-radius: var(--r-pill); transform: translateY(-200%); transition: transform var(--t-fast); }
.skip-link:focus { transform: none; outline: 2px solid var(--navy-950); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink-on-deep); }

/* Tipografia editorial */
.eyebrow { margin: 0 0 var(--space-4); font: 500 var(--fs-eyebrow)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow--deep { color: var(--gold-300); }
.h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.02em; }
.h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.h2 em, .hero__title em { color: var(--gold-700); font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.rule { display: block; width: 48px; height: 1px; margin-block: var(--space-4); background: var(--gold-500); transform-origin: left; }

/* Botões e links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-pill); font: 500 var(--fs-ui)/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn svg { transition: transform var(--t-fast); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding-inline: 18px; }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--accent { background: var(--gold-500); color: var(--navy-950); }
.btn--ghost { border-color: rgba(246, 245, 240, .4); color: var(--ink-on-deep); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--text { color: var(--ink-2); }
.linklike { padding: 0; background: none; border: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--line-navy); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast); }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 var(--fs-ui)/1 var(--font-body); color: var(--navy-700); text-decoration: none; }
.link-arrow svg { transition: transform var(--t-fast); }
.link-arrow::before { content: ""; position: absolute; left: 0; right: 26px; bottom: 8px; height: 1px; background: currentColor; opacity: .35; transform: scaleX(1); transform-origin: left; transition: transform var(--t-mid) var(--ease), opacity var(--t-mid); }
.link-arrow--deep { color: var(--ink-on-deep); }

@media (hover: hover) {
  .btn--primary:hover { background: var(--navy-900); }
  .btn--accent:hover { background: var(--gold-300); }
  .btn--ghost:hover { border-color: rgba(246, 245, 240, .8); }
  .btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); }
  .btn--text:hover { color: var(--ink); }
  .btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
  .linklike:hover { text-decoration-color: currentColor; }
  .link-arrow:hover::before { opacity: 1; }
}

/* Pills de status */
.pill { display: inline-flex; align-items: center; padding: .3em .7em; border-radius: var(--r-xs); font: 500 .85em/1 var(--font-body); white-space: nowrap; }
.pill--ok { background: var(--navy-100); color: var(--navy-900); }
.pill--done { background: var(--navy-700); color: #fff; }
.pill--warn { background: var(--warning-bg); color: var(--warning); }
.pill--info { background: var(--info-bg); color: var(--info); }

/* Reveal ao rolar (só com JS; sem script tudo fica visível) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); animation: reveal-safe 1ms linear 3s forwards; } /* rede de segurança: sem JS/IntersectionObserver, tudo aparece em 3 s */
@keyframes reveal-safe { to { opacity: 1; transform: none; } }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal .rule { transform: scaleX(0); transition: transform var(--t-slow) var(--ease) 200ms; animation: rule-safe 1ms linear 3s forwards; }
@keyframes rule-safe { to { transform: scaleX(1); } }
.js .reveal.is-in .rule { transform: scaleX(1); }

/* 3. Header -------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--header-h); color: var(--ink-on-deep); background: transparent; border-bottom: 1px solid transparent; transition: background 240ms, color 240ms, height 240ms, border-color 240ms; }
.no-js .site-header { position: absolute; }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 100%; gap: var(--space-4); }
.site-header.is-scrolled { --header-h: 64px; color: var(--ink); background: rgba(246, 245, 240, .96); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(246, 245, 240, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
}
.logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: inherit; --logo-accent: var(--gold-500); }
.logo__svg { width: auto; height: 26px; overflow: visible; }
.is-scrolled .logo { color: var(--navy-700); }

.nav { display: none; justify-self: center; }
.nav__list { display: flex; gap: var(--space-6); }
.nav__link { position: relative; display: inline-block; padding: 15px 2px; font: 500 var(--fs-ui)/1 var(--font-body); text-decoration: none; color: inherit; }
.nav__link::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 6px; height: 1px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.is-scrolled .nav__link::after { background: var(--navy-700); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); justify-self: end; }
.header-cta__short { display: none; }
.header-cta__icon { display: none; }
.is-scrolled .header-cta { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.site-header:focus-within .header-cta, .is-scrolled :focus-visible { outline-color: var(--focus); }
.hero :focus-visible, .site-header:not(.is-scrolled) :focus-visible, .site-footer :focus-visible, .menu-mobile :focus-visible { outline-color: var(--ink-on-deep); }

.menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 13px; background: none; border: 0; }
.menu-toggle__bar { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-mid) var(--ease); transform-origin: center; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.no-js .menu-toggle { display: none; }
.no-js .nav { display: block; }

/* Menu mobile */
.menu-mobile { position: fixed; inset: 0; z-index: 65; background: var(--navy-950); color: var(--ink-on-deep); padding-top: var(--header-h); opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.menu-mobile.is-open { opacity: 1; }
.menu-mobile__inner { height: 100%; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: var(--space-5) var(--gutter) var(--space-7); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-7); }
.menu-mobile__link { display: flex; align-items: baseline; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--line-on-deep); font: 500 clamp(2.25rem, 8vw, 3rem)/1.1 var(--font-display); text-decoration: none; letter-spacing: -.02em; transform: translateY(12px); opacity: 0; transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.menu-mobile__list li:nth-child(2) .menu-mobile__link { --i: 1; }
.menu-mobile__list li:nth-child(3) .menu-mobile__link { --i: 2; }
.menu-mobile__list li:nth-child(4) .menu-mobile__link { --i: 3; }
.menu-mobile__list li:last-child .menu-mobile__link { border-bottom: 1px solid var(--line-on-deep); }
.menu-mobile.is-open .menu-mobile__link { transform: none; opacity: 1; }
.menu-mobile__link .mono { font-size: var(--fs-eyebrow); color: var(--gold-300); letter-spacing: .14em; }
.menu-mobile__foot { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; }
.menu-mobile__mail { font-size: var(--fs-small); color: var(--ink-on-deep-2); text-decoration-color: var(--line-on-deep); text-underline-offset: 4px; }
body.menu-open { overflow: hidden; padding-right: var(--sbw, 0px); }

/* 4. Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 48px); color: var(--ink-on-deep); background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 55%, #031823 100%); }
.hero__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 56px; pointer-events: none; }
.hero__glow { position: absolute; inset: -10%; z-index: -1; background: radial-gradient(60% 55% at 78% 18%, rgba(30, 106, 148, .45), transparent 70%), radial-gradient(40% 40% at 15% 90%, rgba(174, 149, 69, .12), transparent 70%); pointer-events: none; }
.hero__grid, .hero__grain { display: none; }
.hero__inner { position: relative; flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-5); align-items: end; padding-bottom: var(--space-7); }
.hero__rail { display: none; }
.carousel { grid-column: 1 / -1; position: relative; touch-action: pan-y; }
.carousel__track { display: grid; align-items: end; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s 700ms; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; will-change: opacity; }
.slide__item { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
.slide.is-active .slide__item { opacity: 1; transform: none; }
.no-js .slide__item { opacity: 1; transform: none; }
.hero__title { font-size: var(--fs-display); font-weight: 500; line-height: .98; letter-spacing: -.025em; max-width: 14ch; }
.hero__title em { color: var(--gold-300); }
.hero__lead { margin-top: var(--space-5); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-on-deep-2); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }

.carousel__controls { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.carousel__count { font-size: var(--fs-eyebrow); letter-spacing: .14em; color: var(--ink-on-deep-2); }
.ctabs { display: flex; }
.ctab { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; }
.ctab__bar { position: absolute; left: 4px; top: 21px; width: 36px; height: 2px; background: rgba(246, 245, 240, .45); }
.ctab__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold-500); transform: scaleX(0); transform-origin: left; }
.ctab[aria-selected="true"] .ctab__bar::after { animation: progress var(--autoplay) linear forwards; animation-play-state: paused; }
.carousel.is-playing .ctab[aria-selected="true"] .ctab__bar::after { animation-play-state: running; }
.carousel.is-reset .ctab[aria-selected="true"] .ctab__bar::after { animation: none; } /* reinicia a barra junto com o timer */
.carousel.is-stopped .ctab[aria-selected="true"] .ctab__bar::after, .no-js .ctab[aria-selected="true"] .ctab__bar::after { animation: none; transform: scaleX(1); }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel__pause { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--ink-on-deep-2); border-radius: 50%; }
.carousel__pause .ico-play, .carousel__pause[aria-pressed="true"] .ico-pause { display: none; }
.carousel__pause[aria-pressed="true"] .ico-play { display: block; }
.no-js .carousel__pause { display: none; }

/* Visual: carro + card */
.hero__visual { display: none; }
.car { width: 100%; height: auto; color: rgba(246, 245, 240, .55); overflow: visible; }
.car__lines { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.car__ground { fill: none; stroke: rgba(246, 245, 240, .22); stroke-width: 1; stroke-dasharray: 2 6; }
.car__sweep { transform: translateX(0); }
.is-running .car__sweep { animation: sweep 6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(600px); } }
.is-running .hero__glow { animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(-2%, 1%, 0); } }

.hcard { position: absolute; right: 0; bottom: 0; width: 300px; display: grid; border-radius: var(--r-lg); border: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 32, 47, .92); box-shadow: var(--shadow-glass); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) { .hcard { background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } }
.hcard__panel { grid-area: 1 / 1; padding: 18px 20px; opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s 700ms; }
.hcard__panel.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.hcard__head { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-body); }
.hcard__time { margin-left: auto; font-size: 12px; color: var(--ink-on-deep-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); flex: none; }
.is-running .dot--pulse { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(174, 149, 69, .5); } 100% { box-shadow: 0 0 0 8px rgba(174, 149, 69, 0); } }
.hcard__dl { display: grid; gap: 8px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line-on-deep); }
.hcard__dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.hcard__dl dt { color: var(--ink-on-deep-2); }
.hcard__dl dd { margin: 0; font-weight: 500; }
.timeline { position: relative; margin-top: 16px; display: grid; gap: 12px; padding-left: 18px; font-size: 13px; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line-on-deep); }
.timeline li { position: relative; color: var(--ink-on-deep-2); display: flex; gap: 10px; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: -18px; top: 5px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink-on-deep-2); background: var(--navy-950); }
.timeline li.is-done::before { background: var(--ink-on-deep-2); }
.timeline li.is-now { color: var(--ink-on-deep); font-weight: 500; }
.timeline li.is-now::before { background: var(--gold-500); border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(174, 149, 69, .25); }
.timeline__t { font-size: 11px; color: var(--ink-on-deep-2); min-width: 38px; }

/* Faixa de confiança */
.hero__proof { border-top: 1px solid var(--line-on-deep); }
.seals { display: flex; flex-wrap: wrap; gap: var(--space-2); padding-block: var(--space-4); }
.seal { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-on-deep); border-radius: var(--r-pill); font: 500 13px/1 var(--font-mono); color: var(--ink-on-deep-2); white-space: nowrap; }
.seal svg { color: var(--gold-300); }

/* 5. Diferenciais -------------------------------------------------------- */
.features { padding-block: var(--section-y); }
.features__intro { margin-bottom: var(--space-6); }
.features__intro .lead { margin-top: var(--space-4); }
.features__grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.feature { position: relative; background: var(--bg); transition: background var(--t-fast); }
.feature article { padding: var(--space-5) 0; }
.feature__icon { position: absolute; right: 0; top: var(--space-5); color: var(--navy-700); }
.feature .eyebrow { transition: color var(--t-fast); }
.stat { margin: var(--space-4) 0 var(--space-3); font: 500 3rem/1 var(--font-display); letter-spacing: -.02em; color: var(--gold-700); font-variant-numeric: tabular-nums; }
.stat--word { font-style: italic; }
.stat--long { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; }
.feature p:last-child { color: var(--ink-2); max-width: 38ch; margin-top: var(--space-3); }

/* 6. Plataforma ---------------------------------------------------------- */
.platform { padding-block: var(--section-y); border-block: 1px solid var(--line); }
.platform__head { max-width: var(--container-narrow); margin: 0 auto var(--space-7); text-align: center; }
.platform__grid { align-items: center; }
.dash-wrap { position: relative; }
.dash { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-dash); font-size: clamp(8px, 1.45cqw, 13px); line-height: 1.3; user-select: none; -webkit-user-select: none; color: var(--ink); }
@supports not (container-type: inline-size) { .dash { font-size: .75rem; } }
.dash__bar { display: flex; align-items: center; gap: 1em; padding: .7em 1.2em; border-bottom: 1px solid var(--line); background: var(--bg); }
.dash__dots { display: flex; gap: .45em; }
.dash__dots i { width: .62em; height: .62em; border-radius: 50%; background: var(--line-strong); opacity: .6; }
.dash__url { margin: 0 auto; padding: .3em 1.4em; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .85em; color: var(--ink-3); }
.dash__body { flex: 1; display: grid; grid-template-columns: 4.4em 1fr; min-height: 0; }
.dash__side { display: flex; flex-direction: column; align-items: center; gap: .6em; padding: 1em 0; background: var(--navy-900); color: var(--ink-on-deep); }
.dash__logo { width: 1.9em; height: 1.9em; margin-bottom: .8em; color: var(--gold-300); }
.dash__nav { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .6em; opacity: .7; }
.dash__nav.is-active { background: rgba(255, 255, 255, .08); opacity: 1; }
.dash__nav svg { width: 1.3em; height: 1.3em; }
.dash__nav--end { margin-top: auto; }
.dash__main { display: grid; grid-template-rows: auto auto 1fr auto; gap: 1em; padding: 1.2em 1.4em; min-height: 0; }
.dash__head { display: flex; align-items: center; justify-content: space-between; font-size: 1.08em; }
.dash__live { display: inline-flex; align-items: center; gap: .5em; padding: .3em .8em; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); font-size: .78em; font-weight: 500; color: var(--ink-2); }
.dash__live i { width: .6em; height: .6em; border-radius: 50%; background: var(--gold-500); }
.is-running .dash__live i { animation: pulse-gold 2s ease-out infinite; }
@keyframes pulse-gold { 0% { box-shadow: 0 0 0 0 rgba(174, 149, 69, .6); } 100% { box-shadow: 0 0 0 6px rgba(174, 149, 69, 0); } }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.kpi { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: .9em 1em; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.kpi__label { grid-column: 1 / -1; font-size: .85em; color: var(--ink-3); }
.kpi__num { font: 500 2.1em/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi svg { width: 5.5em; height: 1.6em; overflow: visible; }
.spark { stroke: var(--navy-700); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.js .dash-wrap .spark { stroke-dasharray: 300; stroke-dashoffset: 300; }
.js .dash-wrap.is-in .spark { animation: draw 900ms var(--ease) 300ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash__chart { display: flex; flex-direction: column; min-height: 0; padding: .9em 1em; border: 1px solid var(--line); border-radius: var(--r-md); }
.dash__chart-head { display: flex; justify-content: space-between; font-size: .85em; color: var(--ink-3); margin-bottom: .6em; }
.bars { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: .45em; min-height: 5em; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 25%); }
.bars span { display: block; height: calc(var(--v) * 1%); border-radius: .2em .2em 0 0; background: var(--navy-700); transform-origin: bottom; }
.bars span:nth-child(3n+2) { background: var(--gold-500); }
.bars span:nth-child(3n) { background: var(--navy-100); }
.js .dash-wrap .bars span { transform: scaleY(0); }
.js .dash-wrap.is-in .bars span { animation: grow 600ms var(--ease) forwards; animation-delay: calc(var(--n, 0) * 40ms); }
.bars span:nth-child(2) { --n: 1; } .bars span:nth-child(3) { --n: 2; } .bars span:nth-child(4) { --n: 3; } .bars span:nth-child(5) { --n: 4; } .bars span:nth-child(6) { --n: 5; } .bars span:nth-child(7) { --n: 6; } .bars span:nth-child(8) { --n: 7; } .bars span:nth-child(9) { --n: 8; } .bars span:nth-child(10) { --n: 9; } .bars span:nth-child(11) { --n: 10; } .bars span:nth-child(12) { --n: 11; }
@keyframes grow { to { transform: scaleY(1); } }
.dash__table { width: 100%; border-collapse: collapse; font-size: .92em; }
.dash__table th { font-weight: 500; color: var(--ink-3); text-align: left; padding: .4em .6em; border-bottom: 1px solid var(--line); }
.dash__table td { padding: .5em .6em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dash__table tr:last-child td { border-bottom: 0; }
.dash__table .pill { font-size: .8em; }

.highlights { display: grid; gap: 0; }
.hl { padding-block: var(--space-5); border-top: 1px solid var(--line); }
.hl__icon { margin-bottom: var(--space-4); color: var(--navy-700); }
.hl p:last-child { margin-top: var(--space-3); color: var(--ink-2); max-width: 38ch; }
.is-running .hl__pulse { animation: blink 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 50% { opacity: .35; transform: scale(1.5); } }
.highlights > .link-arrow { justify-self: start; margin-top: var(--space-4); }

/* 6b. Tipos de laudos --------------------------------------------------- */
.laudos { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.laudos__head { max-width: var(--container-narrow); margin-bottom: var(--space-6); }
.laudos__grid { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); counter-reset: laudo; }
.laudo { background: var(--bg); transition: background var(--t-fast); }
.laudo__details { padding: var(--space-4) 0; }
.laudo__summary { display: flex; align-items: flex-start; gap: var(--space-4); list-style: none; cursor: pointer; border-radius: var(--r-sm); }
.laudo__summary::-webkit-details-marker { display: none; }
.laudo__summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.laudo__plus { position: relative; flex: none; width: 28px; height: 28px; margin-top: 2px; border: 1px solid var(--gold-500); border-radius: 50%; color: var(--navy-700); transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.laudo__plus::before, .laudo__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform var(--t-mid) var(--ease); }
.laudo__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.laudo__details[open] .laudo__plus { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.laudo__details[open] .laudo__plus::after { transform: translate(-50%, -50%) rotate(0deg); } /* "+" vira "−" */
.laudo__text { min-width: 0; }
.laudo__num { display: block; margin-bottom: 6px; font-size: var(--fs-eyebrow); letter-spacing: .14em; color: var(--gold-700); }
.laudo__name { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.laudo__desc { margin: var(--space-3) 0 0 calc(28px + var(--space-4)); color: var(--ink-2); max-width: 46ch; animation: laudo-in var(--t-mid) var(--ease); }
@keyframes laudo-in { from { opacity: 0; transform: translateY(-4px); } }
@media (hover: hover) { .laudo:hover { background: var(--surface); } .laudo__summary:hover .laudo__plus { background: var(--gold-100); } }

/* 7. Contato ------------------------------------------------------------- */
.contact { padding-block: var(--section-y); background: var(--surface-2); }
.contact__head { margin-bottom: var(--space-7); }
.contact__head .h2 { max-width: 16ch; }
.contact__map { display: none; }
.covmap { width: 100%; height: auto; max-width: 480px; margin-inline: auto; overflow: visible; font-family: var(--font-mono); }
.covmap__rings circle, .covmap__rings path { fill: none; stroke: var(--line-strong); stroke-width: .75; stroke-dasharray: 2 6; opacity: .7; }
.covmap__center { fill: var(--ink-3); }
.covmap__center-label { font-size: 10px; fill: var(--ink-3); text-anchor: middle; }
.covmap__zones text { font: italic 500 16px var(--font-display); fill: var(--ink-3); text-anchor: middle; }
.node { cursor: default; }
.node__dot { fill: var(--navy-700); }
.node__ring { fill: none; stroke: var(--gold-500); stroke-width: 1.5; opacity: .45; transition: r 300ms var(--ease), opacity 300ms; }
.node.is-hot .node__ring { r: 18; opacity: .9; }
.node__name { font-size: 11px; fill: var(--ink); text-anchor: middle; }
.node__zone { font-size: 9px; fill: var(--ink-3); text-anchor: middle; }

.posts { border-top: 1px solid var(--line); }
.post { border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
.post article { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4) var(--space-5); padding: var(--space-5) 0; }
.post__info { flex: 1 1 280px; }
.post__name { font-size: 22px; font-weight: 600; }
.post__addr { margin-top: 6px; color: var(--ink-2); }
.post__map { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font: 500 var(--fs-small)/1 var(--font-body); color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--line-navy); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color var(--t-fast); }
.post__tel { color: var(--navy-700); font-size: 1.0625rem; }
.post__tel .mono { font-size: 1.0625rem; }
.post.is-hot { background: var(--surface); }
.post.is-hot article { padding-inline: var(--space-4); }

.contact__mail { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); display: grid; gap: var(--space-4); justify-items: start; }
.contact__mail .btn { margin-top: var(--space-2); }
@media (hover: hover) {
  .feature:hover { background: var(--surface); }
  .feature:hover .eyebrow { color: var(--navy-700); }
  .post__map:hover, .post__map:focus-visible { text-decoration-color: currentColor; }
}
.feature:focus-within { background: var(--surface); }

/* 8. Rodapé -------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: var(--ink-on-deep); }
.site-footer__row { display: flex; flex-direction: column; gap: var(--space-3); padding-block: var(--space-6); border-bottom: 1px solid var(--line-on-deep); font-size: var(--fs-small); }
.site-footer__logo { flex: none; width: auto; height: 52px; color: var(--ink-on-deep); --logo-accent: var(--gold-500); }
.site-footer__copy { color: var(--ink-on-deep-2); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.site-footer__links a, .site-footer__links .linklike { font-size: var(--fs-small); color: var(--ink-on-deep-2); text-decoration: underline; text-decoration-color: var(--line-on-deep); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color var(--t-fast), text-decoration-color var(--t-fast); }
.site-footer__word { display: block; width: min(92%, 1100px); height: auto; margin: var(--space-6) auto -5%; color: rgba(246, 245, 240, .08); --logo-accent: rgba(174, 149, 69, .22); pointer-events: none; }
@media (hover: hover) { .site-footer__links a:hover, .site-footer__links .linklike:hover { color: var(--ink-on-deep); text-decoration-color: currentColor; } }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-2); opacity: 0; transform: translateY(8px); transition: opacity var(--t-mid), transform var(--t-mid) var(--ease), border-color var(--t-fast); }
.to-top.is-visible { opacity: 1; transform: none; }
@media (hover: hover) { .to-top:hover { border-color: var(--navy-700); color: var(--navy-700); } }

/* 9. Breakpoints -------------------------------------------------------- */
@media (min-width: 400px) {
  .header-cta__short { display: inline; }
}
@media (max-width: 399.98px) {
  .header-cta { width: 44px; min-height: 44px; padding: 0; }
  .header-cta__long, .header-cta__short { display: none; }
  .header-cta__icon { display: block; }
}
@media (max-width: 639.98px) {
  .ctab[aria-selected="true"] .ctab__bar::before { content: ""; position: absolute; left: -8px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); }
  .post__tel { width: 100%; }
  /* em telas estreitas o mockup cresce com o conteúdo (evita o gráfico sobrepor a tabela) */
  .dash { aspect-ratio: auto; }
  .dash__chart { min-height: 8em; }
}
@media (min-width: 480px) {
  .ctab[aria-selected="true"] .ctab__bar::before { left: -9px; }
}
@media (min-width: 640px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
  .laudos__grid { grid-template-columns: 1fr 1fr; }
  .laudo { padding: clamp(24px, 3vw, 40px); }
  .laudo__details { padding: 0; }
  .laudos__grid > .laudo:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .features__grid > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 3 cards: o último ocupa a linha inteira */
  .feature article { padding: clamp(24px, 3vw, 40px); }
  .feature__icon { right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); }
  .stat { font-size: var(--fs-stat); }
  .stat--word { font-size: var(--fs-h2); }
  .stat--long { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
  .contact__map { display: block; }
  .seals { justify-content: center; }
  .site-footer__row { flex-direction: row; align-items: center; }
  .site-footer__logo { height: 56px; }
  .site-footer__links { margin-left: auto; }
}
@media (min-width: 768px) {
  .hero__grid { display: block; position: absolute; inset: auto 0 0 0; z-index: -1; height: 70%; background-image: linear-gradient(rgba(246, 245, 240, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 245, 240, .11) 1px, transparent 1px); background-size: 84px 84px; transform: perspective(720px) rotateX(63deg); transform-origin: 50% 0; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 80% 70% at 70% 0%, #000 15%, transparent 72%); pointer-events: none; }
  .hero__grain { display: block; position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
}
@media (min-width: 900px) {
  .hero { min-height: clamp(560px, 86vh, 820px); min-height: clamp(560px, 86svh, 820px); padding-top: calc(var(--header-h) + 56px); }
  .hero__inner { gap: var(--space-6); }
  .carousel { grid-column: 1 / span 7; }
  .hero__visual { display: block; position: relative; grid-column: 8 / span 5; align-self: end; padding-bottom: 120px; }
  .car { width: 112%; margin-left: -12%; }
  .hcard { right: -16px; bottom: 0; width: 260px; }
  .hero__rail { display: flex; position: absolute; left: 0; top: 0; bottom: var(--space-7); width: 1px; background: var(--gold-500); }
  .hero__rail span { position: absolute; left: 10px; top: 0; transform: rotate(90deg); transform-origin: left top; font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-on-deep-2); white-space: nowrap; }
  .hero__inner { padding-left: 40px; }
  .hero__rail { left: 0; }
  .features__intro { grid-column: 1 / span 4; margin-bottom: 0; }
  .laudos__grid { grid-template-columns: repeat(6, 1fr); }
  .laudo { grid-column: span 2; }
  .laudo:nth-child(4), .laudo:nth-child(5) { grid-column: span 3; }
  .laudos__grid > .laudo:last-child:nth-child(odd) { grid-column: span 3; }
  .features__grid { grid-column: 6 / span 7; }
  .platform__grid { align-items: start; }
  .dash-wrap { grid-column: 1 / span 8; }
  .highlights { grid-column: 10 / span 3; }
  .contact__map { grid-column: 1 / span 5; }
  .posts { grid-column: 7 / span 6; }
  .contact__head .h2 { max-width: 18ch; }
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: block; }
  .menu-toggle { display: none; }
  .logo__svg { height: 28px; }
  .header-cta__short { display: none; }
  .header-cta__long { display: inline; }
  .features__intro, .contact__map { position: sticky; top: 112px; align-self: start; }
  .dash-wrap { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg) translateZ(0); transform-origin: 70% 50%; backface-visibility: hidden; transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease); }
  .js .dash-wrap.reveal { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg) translateY(16px) translateZ(0); }
  .js .dash-wrap.reveal.is-in { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg) translateZ(0); }
  .js .dash-wrap.reveal.is-in:hover { transform: perspective(1800px) rotateY(-4deg) rotateX(2deg) translateZ(0); }
}
@media (max-width: 1023.98px) {
  .header-cta__long { display: none; }
}
@media (min-width: 1200px) {
  .hcard { width: 300px; }
}
@media (min-width: 1280px) {
  .dash-wrap { margin-left: calc(var(--gutter) * -1); }
}
@media (min-width: 1440px) {
  .hcard { width: 340px; }
}

/* 10. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .js .reveal .rule { transform: scaleX(1); }
  .slide { transition: opacity 150ms linear, visibility 0s 150ms; }
  .slide__item { transform: none; transition-delay: 0s; }
  .dash-wrap, .js .dash-wrap.reveal, .js .dash-wrap.reveal.is-in, .js .dash-wrap.reveal.is-in:hover { transform: none; }
  .js .dash-wrap .bars span { transform: none; }
  .js .dash-wrap .spark { stroke-dasharray: none; stroke-dashoffset: 0; }
  .ctab[aria-selected="true"] .ctab__bar::after { animation: none; transform: scaleX(1); }
  .car__sweep, .hero__glow, .dot--pulse, .dash__live i, .hl__pulse { animation: none !important; }
  .hero__grain { display: none; }
}

/* 11. Alto contraste (forced-colors, Windows) ---------------------------- */
@media (forced-colors: active) {
  .btn, .seal, .pill, .to-top, .ctab__bar, .feature, .post, .kpi, .dash__chart { border: 1px solid CanvasText; }
  .ctab__bar::after, .nav__link::after, .rule { background: Highlight; }
  .bars span, .node__dot, .dot { forced-color-adjust: none; }
}
