/* Fontes locais (Inter e Sora variáveis, SIL OFL): ver assets/fonts/CREDITOS.md.
   Servidas daqui para tirar fonts.googleapis.com do caminho do FCP. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-3517d92d.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/assets/fonts/sora-latin-d11a005b.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================================================
   ENERGIA CRIATIVA — sistema de design
   Tema claro:cores leves (menta, céu, ardósia).
   Tema escuro:neon (verde-limão, ciano, brilho frio).
   Mobile-first, sem frameworks.
   ============================================================================= */

/* ------------------------------------------------------ 1. tokens de marca */
:root {
  /* cor própria da marca */
  --ec-green: #0a8f5f;
  --ec-cyan: #00a3c4;
  --ec-lime: #6fd36f;

  color-scheme: light;

  --bg: #f6faf8;
  --bg-deep: #eaf2ee;
  --surface: #ffffff;
  --surface-2: #f1f7f4;
  --surface-3: #e6efe9;
  --ink: #0f2a2b;
  --ink-2: #2f4f52;
  --muted: #61797d;
  --line: rgba(15, 42, 43, .12);
  --line-soft: rgba(15, 42, 43, .07);

  --brand: var(--ec-green);
  --brand-2: var(--ec-cyan);
  --brand-ink: #04301f;
  --on-brand: #ffffff;

  --ok: #17a673;
  --warn: #d98324;
  --danger: #cf4b4b;
  --info: #2f80c2;

  --grad-brand: linear-gradient(120deg, #0a8f5f 0%, #12b17a 45%, #00a3c4 100%);
  --grad-soft: linear-gradient(160deg, rgba(10, 143, 95, .10), rgba(0, 163, 196, .07));
  --grad-sheen: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);

  --shadow-1: 0 1px 2px rgba(9, 40, 35, .06), 0 8px 24px -12px rgba(9, 40, 35, .18);
  --shadow-2: 0 2px 6px rgba(9, 40, 35, .07), 0 22px 48px -20px rgba(9, 40, 35, .26);
  --shadow-pop: 0 30px 70px -35px rgba(9, 40, 35, .38);

  --glow: 0 0 0 rgba(0, 0, 0, 0);
  --text-glow: none;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --radius-xl: 30px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --stack: clamp(48px, 8vw, 104px);

  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --dur: .38s;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* padrões de fundo: grade de engenharia suave */
  --pattern: radial-gradient(circle at 1px 1px, rgba(15, 42, 43, .055) 1px, transparent 0) 0 0/22px 22px;
  --rail: linear-gradient(180deg, var(--brand), var(--brand-2));
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #04070d;
  --bg-deep: #070c14;
  --surface: #0a121c;
  --surface-2: #0e1824;
  --surface-3: #13212f;
  --ink: #e8fbf3;
  --ink-2: #c4ded9;
  --muted: #86a3ae;
  --line: rgba(120, 255, 214, .16);
  --line-soft: rgba(120, 255, 214, .09);

  --brand: #2cff9e;
  --brand-2: #37e6ff;
  --brand-ink: #04170f;
  --on-brand: #04170f;

  --ok: #37f0a5;
  --warn: #ffc45a;
  --danger: #ff7070;
  --info: #63c8ff;

  --grad-brand: linear-gradient(120deg, #2cff9e 0%, #6bff5a 40%, #37e6ff 100%);
  --grad-soft: linear-gradient(160deg, rgba(44, 255, 158, .12), rgba(55, 230, 255, .10));
  --grad-sheen: linear-gradient(100deg, transparent 20%, rgba(44, 255, 158, .18) 50%, transparent 80%);

  --shadow-1: 0 0 0 1px rgba(44, 255, 158, .10), 0 18px 44px -22px rgba(0, 0, 0, .9);
  --shadow-2: 0 0 0 1px rgba(44, 255, 158, .16), 0 26px 60px -26px rgba(0, 0, 0, .95);
  --shadow-pop: 0 0 0 1px rgba(55, 230, 255, .22), 0 40px 80px -30px rgba(0, 0, 0, 1);

  --glow: 0 0 26px rgba(44, 255, 158, .28);
  --text-glow: 0 0 22px rgba(44, 255, 158, .25);

  --pattern: radial-gradient(circle at 1px 1px, rgba(120, 255, 214, .07) 1px, transparent 0) 0 0/24px 24px,
             linear-gradient(180deg, rgba(55, 230, 255, .04), transparent 40%);
  --rail: linear-gradient(180deg, #2cff9e, #37e6ff, transparent);
}

/* ------------------------------------------------------------- 2. reinício */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .35vw + 15px, 17.5px);
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { content-visibility: auto; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -.025em; }
h4 { font-size: 1.08rem; letter-spacing: -.015em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .5em; }

strong, b { font-weight: 650; }
small { font-size: .84rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

code, kbd, samp {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", monospace;
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .1em .4em;
}

::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 650; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

[data-theme="dark"] .neon-only { display: initial; }
.neon-only { display: none; }

/* -------------------------------------------------------------- 3. casca */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-wide { max-width: 1480px; }

.section {
  position: relative;
  padding-block: var(--stack);
}
.section--tight { padding-block: clamp(32px, 5vw, 60px); }
.section--alt { background: var(--bg-deep); border-block: 1px solid var(--line-soft); }
.section--pattern::before {
  content: ""; position: absolute; inset: 0; background: var(--pattern);
  opacity: .85; pointer-events: none;
}
.section--pattern > * { position: relative; }

.stack-lg > * + * { margin-top: clamp(22px, 3vw, 34px); }

/* cabeçalho de seção com "trilho de energia" */
.sec-head {
  display: grid;
  gap: 14px 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  margin-bottom: clamp(30px, 4.4vw, 54px);
}
.sec-head--single { grid-template-columns: 1fr; }

.sec-rail { position: relative; padding-left: 26px; }
.sec-rail::before {
  content: ""; position: absolute; left: 0; top: .28em; bottom: .1em; width: 4px;
  background: var(--rail); border-radius: 4px; box-shadow: var(--glow);
}
.sec-rail::after {
  content: ""; position: absolute; left: -3px; top: .1em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand);
}

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.kicker .ec-icon { width: 15px; height: 15px; }
[data-theme="dark"] .kicker { text-shadow: var(--text-glow); }

.sec-lead { color: var(--muted); font-size: 1.06rem; max-width: 56ch; }
.sec-head .sec-lead { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }

/* ------------------------------------------------------------ 4. botões */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 650; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 999px;
  transition: transform .18s var(--ease), box-shadow .28s var(--ease), background-color .2s, color .2s, border-color .2s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--grad-sheen);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), var(--glow); color: var(--btn-fg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.985); }
.btn .ec-icon { width: 19px; height: 19px; flex: none; }

.btn--primary { background: var(--grad-brand); color: #04231a; }
[data-theme="dark"] .btn--primary { color: #04170f; box-shadow: 0 0 24px rgba(44, 255, 158, .35); }
.btn--wa { --btn-bg: #1faa54; --btn-fg: #fff; }
[data-theme="dark"] .btn--wa { --btn-bg: #25e07a; --btn-fg: #04170f; }
.btn--tg { --btn-bg: #2aaae6; --btn-fg: #fff; }
[data-theme="dark"] .btn--tg { --btn-bg: #37e6ff; --btn-fg: #04170f; }
.btn--mail { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 650; font-size: .95rem;
  text-decoration: none; color: var(--brand);
}
.link-arrow .ec-icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ec-icon { transform: translateX(4px); }
.link-arrow:hover { color: var(--brand-2); }

/* ------------------------------------------------------------- 5. cartões */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card--flush { padding: 0; }
.card--flat { box-shadow: none; background: var(--surface-2); }
.card--rail::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--rail); opacity: .9;
}
.card > h3, .card > h4 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card__index {
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; color: color-mix(in srgb, var(--brand) 70%, var(--muted));
}
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  color: var(--brand); margin-bottom: 16px;
}
.card__icon .ec-icon { width: 26px; height: 26px; }
[data-theme="dark"] .card__icon { box-shadow: inset 0 0 22px rgba(44, 255, 158, .12), 0 0 20px rgba(44, 255, 158, .12); }

.card__title { display: flex; align-items: center; gap: 12px; }
.card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.card__list li { position: relative; padding-left: 24px; margin: 0; color: var(--ink-2); font-size: .96rem; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 6px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); border-radius: 1px;
}

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  font-size: .8rem; font-weight: 550; color: var(--ink-2);
  font-family: var(--font-display); letter-spacing: -.01em;
}
.chip--brand { background: color-mix(in srgb, var(--brand) 14%, transparent); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand); }
[data-theme="dark"] .chip--brand { text-shadow: 0 0 10px rgba(44, 255, 158, .4); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* ------------------------------------------------------------- 6. topo/menu */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s, background-color var(--dur);
}
.site-header.is-stuck { box-shadow: 0 12px 30px -22px rgba(4, 30, 24, .55); border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 4px 10px rgba(10, 143, 95, .25)); }
.brand__mark svg { width: 100%; height: 100%; }
[data-theme="dark"] .brand__mark { filter: drop-shadow(0 0 14px rgba(44, 255, 158, .45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.14rem; letter-spacing: -.04em;
}
.brand__name em { font-style: normal; color: var(--brand); }
.brand__tag {
  font-size: .63rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-family: var(--font-display); font-size: .9rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink-2); text-decoration: none; position: relative;
  transition: color .2s, background-color .2s;
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover { color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-brand); border-radius: 2px; box-shadow: var(--glow);
}
.nav__link .ec-icon { width: 15px; height: 15px; opacity: .6; }

/* submenu de serviços */
.has-sub > .nav__link .ec-icon { transition: transform .2s; }
.has-sub.is-open > .nav__link .ec-icon { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(430px, 86vw); padding: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-pop);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
  z-index: 5;
}
.submenu::before {
  content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0;
  width: 14px; height: 14px; rotate: 45deg;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 3px;
}
.has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background-color .18s;
}
.submenu a:hover { background: var(--surface-2); color: var(--ink); }
.submenu .ec-icon { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.submenu strong { display: block; font-family: var(--font-display); font-size: .9rem; font-weight: 650; }
.submenu span { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.submenu__foot { grid-column: 1/-1; padding: 10px 12px 6px; border-top: 1px solid var(--line-soft); margin-top: 4px; }

.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.tool-group {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 999px;
}
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 34px; height: 30px; padding: 0 9px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: .76rem; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); transition: color .2s, background-color .2s, box-shadow .2s;
}
.tool-btn .ec-icon { width: 16px; height: 16px; }
.tool-btn:hover { color: var(--ink); }
.tool-btn[aria-pressed="true"], .tool-btn.is-active {
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1);
}
[data-theme="dark"] .tool-btn[aria-pressed="true"] { box-shadow: 0 0 14px rgba(44, 255, 158, .25), inset 0 0 0 1px rgba(44, 255, 158, .4); }

.burger { display: none; }

/* barra de progresso de leitura */
.readbar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--grad-brand); box-shadow: var(--glow); }

/* ---------------------------------------------------- 7. banner rotativo */
.hero {
  position: relative;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
  overflow: clip;
}
.slider { position: relative; }
.slider__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.slider__viewport::-webkit-scrollbar { display: none; }
.slider__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__viewport.is-dragging .slider__track { will-change: transform; }
.slider__track { display: flex; width: 100%; }

.slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: clamp(420px, 68vh, 640px);
  display: grid;
  align-items: end;
  isolation: isolate;
}
.slide__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.slide__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: kb 18s var(--ease) both paused;
}
@keyframes kb { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.4%, -1.6%, 0); } }
.slide.is-active .slide__media img { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .slide__media img { animation: none; transform: none; } }

.slide__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 20, 18, .90) 0%, rgba(4, 20, 18, .62) 42%, rgba(4, 20, 18, .12) 74%, transparent 100%),
    linear-gradient(0deg, rgba(3, 14, 13, .78), transparent 46%);
}
[data-theme="dark"] .slide__veil {
  background:
    linear-gradient(100deg, rgba(3, 8, 14, .94) 0%, rgba(3, 8, 14, .68) 44%, rgba(3, 8, 14, .14) 78%, transparent 100%),
    linear-gradient(0deg, rgba(2, 6, 10, .85), transparent 50%);
}

.slide__body { padding: clamp(26px, 6vw, 74px) var(--gutter) clamp(64px, 8vw, 96px); max-width: min(680px, 100%); }
.slide__body .shell { padding-inline: 0; }
.slide__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #9dffd0; margin-bottom: 16px;
}
.slide__kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.slide__title {
  color: #f4fffb; margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.slide__title .hl { color: #7dffbe; }
[data-theme="light"] .slide__title .hl, .slide__title .hl { color: #8bffcb; }
.slide__text { color: rgba(233, 247, 242, .88); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 54ch; margin-bottom: 22px; }
.slide__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.slide__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: rgba(226, 245, 240, .75); font-size: .84rem; }
.slide__meta span { display: inline-flex; align-items: center; gap: 7px; }
.slide__meta .ec-icon { width: 15px; height: 15px; color: #7dffbe; }

.slider__ctrl {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 4;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(8, 24, 22, .45); color: #eafff6;
  border: 1px solid rgba(190, 255, 225, .35);
  backdrop-filter: blur(6px);
  cursor: pointer; transition: transform .2s, background-color .2s, box-shadow .2s;
}
.slider__ctrl:hover { background: var(--brand); color: #04170f; box-shadow: 0 0 24px rgba(44, 255, 158, .5); transform: translate(var(--nx, 0), -50%) scale(1.06); }
.slider__ctrl--prev { left: clamp(10px, 2vw, 26px); --nx: 0; }
.slider__ctrl--next { right: clamp(10px, 2vw, 26px); --nx: 0; }
.slider__ctrl .ec-icon { width: 22px; height: 22px; }

.slider__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px var(--gutter) 18px;
  background: linear-gradient(0deg, rgba(4, 18, 16, .55), transparent);
}
.slider__dots { display: flex; gap: 8px; align-items: center; }
.slider__dot {
  position: relative; width: 44px; height: 4px; border-radius: 4px; padding: 0;
  background: rgba(226, 255, 245, .3); border: 0; cursor: pointer; overflow: hidden;
  transition: background-color .25s, width .25s;
}
.slider__dot:hover { background: rgba(226, 255, 245, .55); }
.slider__dot[aria-selected="true"] { background: rgba(226, 255, 245, .3); }
.slider__dot i {
  position: absolute; inset: 0; width: 0; background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(44, 255, 158, .8);
}
.slider__dot[aria-selected="true"] i { animation: fill var(--slide-time, 7s) linear forwards; }
.slider.is-paused .slider__dot[aria-selected="true"] i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.slider__count {
  margin-left: auto; color: rgba(232, 250, 245, .8);
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .1em;
}
.slider__count b { color: #8bffcb; }
.slider__pause {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #eafff6; border: 1px solid rgba(190, 255, 225, .3);
  cursor: pointer;
}
.slider__pause .ec-icon { width: 15px; height: 15px; }
.slider__hint { display: none; }

/* atalhos de tema/logo no slide não usado */
@media (max-width: 720px) {
  .slider__ctrl { display: none; }
  .slider__foot { gap: 12px; }
  .slider__count { font-size: .7rem; }
  .slide__body { padding-bottom: 92px; }
}

/* ------------------------------------------------- 8. destaques / pilares */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.pillar { position: relative; padding: 26px 24px 28px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; }
.pillar::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px;
  background: var(--grad-soft); border-radius: 50%; filter: blur(2px);
}
.pillar:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.pillar h3 { margin-bottom: .35em; }
.pillar p { color: var(--muted); font-size: .95rem; position: relative; }
.pillar .card__icon { margin-bottom: 12px; }
.pillar__link { position: absolute; inset: auto 0 0 0; padding: 12px 24px; font-size: .82rem; text-decoration: none; opacity: 0; transform: translateY(6px); transition: .25s; }
.pillar:hover .pillar__link, .pillar:focus-within .pillar__link { opacity: 1; transform: none; }

/* --------------------------------------------------------- 9. split (mídia + texto) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.split--flip .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-pop); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent);
  pointer-events: none;
}
.split__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
  font-family: var(--font-display); font-weight: 650; font-size: .84rem;
}
.split__badge .ec-icon { color: var(--brand); width: 18px; height: 18px; }
.split__body > h2 { margin-bottom: .4em; }
.split__body .lead { font-size: 1.08rem; color: var(--ink-2); }

/* ------------------------------------------------------------ 10. lista de normas */
.norm-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.norm-table th, .norm-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.norm-table thead th {
  font-family: var(--font-display); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom-color: var(--line); background: var(--surface-2);
}
.norm-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.norm-table td:first-child { font-family: var(--font-display); font-weight: 650; color: var(--brand); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.table-wrap caption { text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: .86rem; }

/* ---------------------------------------------------------- 11. processo */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; }
.step { position: relative; padding: 24px 22px 26px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-l); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.05em;
  color: color-mix(in srgb, var(--brand) 30%, transparent);
  display: block; margin-bottom: 6px;
}
[data-theme="dark"] .step::before { text-shadow: 0 0 24px rgba(44, 255, 158, .35); }
.step h3 { font-size: 1.05rem; margin-bottom: .35em; }
.step p { font-size: .92rem; color: var(--muted); }
.step__time { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .78rem; color: var(--brand); font-weight: 600; }
.step__time .ec-icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------ 12. números */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 22px; position: relative; }
.stat--brand { background: var(--grad-brand); color: #04231a; }
.stat__num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -.05em; line-height: 1; display: flex; align-items: baseline; gap: 3px;
  color: var(--brand);
}
.stat--brand .stat__num { color: #04231a; }
[data-theme="dark"] .stat__num { text-shadow: 0 0 26px rgba(44, 255, 158, .45); }
.stat__num small { font-size: .5em; font-weight: 700; }
.stat__label { display: block; margin-top: 8px; font-size: .88rem; color: var(--muted); }
.stat--brand .stat__label { color: rgba(4, 35, 26, .78); }

/* ------------------------------------------------------------ 13. acordeão FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq__item.is-open { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-1); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-size: 1rem; font-weight: 650; color: var(--ink); letter-spacing: -.02em;
}
.faq__q .ec-icon { margin-left: auto; flex: none; color: var(--brand); transition: transform .28s var(--ease); width: 18px; height: 18px; }
.faq__item.is-open .faq__q .ec-icon { transform: rotate(180deg); }
.faq__a { overflow: hidden; height: 0; transition: height .3s var(--ease); }
.faq__a > div { padding: 0 20px 20px; color: var(--muted); font-size: .96rem; }
.faq__a p { margin-bottom: .8em; }

/* -------------------------------------------------------- 14. portfólio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-btn {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--font-display); font-size: .84rem; font-weight: 600;
  transition: .2s;
}
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn[aria-pressed="true"] { background: var(--grad-brand); color: #04231a; border-color: transparent; box-shadow: var(--glow); }
[data-theme="dark"] .filter-btn[aria-pressed="true"] { color: #04170f; }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(16px, 2vw, 26px); }
.work {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.work:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.work[hidden] { display: none; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.work:hover .work__media img { transform: scale(1.06); }
.work__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(6, 22, 18, .72); color: #aaffd6; backdrop-filter: blur(6px); text-transform: uppercase;
}
.work__year { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: #eafff6; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.work__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work__body h3 { font-size: 1.08rem; margin: 0; }
.work__body p { margin: 0; font-size: .92rem; color: var(--muted); }
.work__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .82rem; color: var(--ink-2); }
.work__facts li { display: flex; gap: 8px; align-items: baseline; margin: 0; }
.work__facts b { color: var(--muted); font-weight: 550; min-width: 84px; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.work__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }

.work-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 42px); align-items: start; }
.work-hero__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-pop); }
.fact-sheet { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact-sheet div { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.fact-sheet div:last-child { border-bottom: 0; }
.fact-sheet dt, .fact-sheet .k { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.fact-sheet dd, .fact-sheet .v { margin: 0; font-weight: 600; text-align: right; }

/* ----------------------------------------------------- 15. certificações */
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.cert { position: relative; padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.cert__head { display: flex; gap: 14px; align-items: center; }
.cert__seal {
  width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 14px;
  background: var(--grad-brand); color: #04231a; box-shadow: var(--glow);
}
[data-theme="dark"] .cert__seal { color: #04170f; }
.cert__seal .ec-icon { width: 26px; height: 26px; }
.cert h3 { font-size: 1.02rem; margin: 0; }
.cert__issuer { font-size: .82rem; color: var(--muted); }
.cert__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cert p { font-size: .92rem; color: var(--muted); margin: 0; }
.cert__status { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 650; color: var(--ok); }
.cert__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.cert--media { padding: 0; }
.cert--media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: var(--radius-l) var(--radius-l) 0 0; }
.cert--media .cert__body { padding: 20px 22px 24px; }

/* ------------------------------------------------------ 16. contato */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.channel {
  --ch: var(--brand);
  position: relative; display: grid; gap: 6px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.channel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ch); }
.channel:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--ch) 55%, transparent); box-shadow: var(--shadow-2); color: var(--ink); }
.channel__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--ch) 16%, transparent); color: var(--ch); }
[data-theme="dark"] .channel__icon { box-shadow: 0 0 18px color-mix(in srgb, var(--ch) 40%, transparent); }
.channel__icon .ec-icon { width: 22px; height: 22px; }
.channel strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 650; }
.channel span { font-size: .86rem; color: var(--muted); }
.channel__go { position: absolute; right: 20px; top: 24px; color: var(--ch); opacity: 0; transform: translateX(-6px); transition: .25s; }
.channel:hover .channel__go { opacity: 1; transform: none; }
.channel--wa { --ch: #1faa54; }
.channel--tg { --ch: #2aaae6; }
.channel--mail { --ch: var(--brand-2); }
.channel--tel { --ch: var(--warn); }
[data-theme="dark"] .channel--wa { --ch: #25e07a; }
[data-theme="dark"] .channel--tg { --ch: #37e6ff; }

/* formulário */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label { font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field > label .req { color: var(--danger); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
[data-theme="dark"] .input:focus, [data-theme="dark"] .select:focus, [data-theme="dark"] .textarea:focus {
  box-shadow: 0 0 0 3px rgba(44, 255, 158, .16), 0 0 22px rgba(44, 255, 158, .12);
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 18px calc(50% + 1px), right 13px calc(50% + 1px); background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .8rem; display: none; }
.field.has-error .field__error { display: block; }
.form-note { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.form-note .ec-icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
.alert { padding: 14px 16px; border-radius: var(--radius-s); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.alert--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.alert--err { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.alert .ec-icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* estimador */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.calc__inputs { display: grid; gap: 18px; }
.range-row { display: grid; gap: 8px; }
.range-row__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-row__top label { font-family: var(--font-display); font-size: .88rem; font-weight: 600; }
.range-row__val { font-family: var(--font-display); font-weight: 700; color: var(--brand); font-size: 1.05rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--pct, 50%), var(--surface-3) var(--pct, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
[data-theme="dark"] input[type="range"]::-webkit-slider-thumb { box-shadow: 0 0 16px rgba(44, 255, 158, .55); }
.calc__out { padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.calc__out::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.calc__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.05em; color: var(--brand); line-height: 1; }
.calc__big small { font-size: .38em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
[data-theme="dark"] .calc__big { text-shadow: 0 0 30px rgba(44, 255, 158, .5); }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.calc__cell { background: var(--surface-2); padding: 14px; }
.calc__cell b { display: block; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.03em; }
.calc__cell span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.seg { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 999px; }
.seg button { padding: 8px 14px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-1); }

/* -------------------------------------------------------- 17. faixas de CTA */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl); padding: clamp(28px, 4.6vw, 56px);
  background: var(--grad-brand); color: #04231a;
  box-shadow: var(--shadow-pop);
}
[data-theme="dark"] .cta-band { color: #04170f; }
.cta-band::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .35), transparent 65%);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.cta-band h2 { color: inherit; margin-bottom: .3em; }
.cta-band p { color: rgba(4, 35, 26, .82); }
.cta-band .btn--ghost { --btn-fg: #04231a; border-color: rgba(4, 35, 26, .35); }
.cta-band .btn--wa { box-shadow: 0 14px 34px -14px rgba(4, 35, 26, .6); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* --------------------------------------------------------- 18. mapa/lista de cidades */
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.city {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-s);
  font-size: .92rem; transition: .2s;
}
.city:hover { border-color: color-mix(in srgb, var(--brand) 45%, transparent); transform: translateX(2px); }
.city .ec-icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
.city small { margin-left: auto; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.state-block { margin-bottom: 26px; }
.state-block > h3 { display: flex; align-items: center; gap: 10px; font-size: .96rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.state-block > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------- 19. artigo */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.1em; }
.prose li::marker { color: var(--brand); }
.prose > * + * { margin-top: 1em; }
.callout {
  border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0; position: relative;
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rail); border-radius: 3px 0 0 3px; }
.callout strong { color: var(--brand); font-family: var(--font-display); display: block; margin-bottom: .3em; }
.callout p:last-child { margin: 0; }
.takeaways { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--radius-l); padding: 22px; }
.takeaways h3 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.takeaways ul { margin: 0; }

.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--muted); font-size: .86rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .ec-icon { width: 15px; height: 15px; color: var(--brand); }
.toc { position: sticky; top: 96px; display: grid; gap: 4px; font-size: .88rem; }
.toc__title { font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; transition: .2s; }
.toc a:hover, .toc a.is-active { border-left-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.layout-toc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); align-items: start; }

/* ----------------------------------------------------------- 20. depoimentos */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.quote { padding: 26px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); position: relative; }
.quote .ec-quote { position: absolute; right: 18px; top: 14px; width: 40px; height: 40px; color: color-mix(in srgb, var(--brand) 22%, transparent); }
.quote blockquote { margin: 0 0 14px; font-size: 1rem; color: var(--ink-2); font-style: normal; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote figcaption b { font-family: var(--font-display); font-size: .92rem; }
.quote figcaption span { font-size: .8rem; color: var(--muted); }
.quote__stars { display: flex; gap: 2px; color: var(--warn); margin-bottom: 10px; }
.quote__stars .ec-icon { width: 15px; height: 15px; }

/* --------------------------------------------------------- 21. sobre */
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
.person__avatar {
  width: 150px; height: 150px; border-radius: 26px; display: grid; place-items: center;
  background: var(--grad-brand); color: #04231a; box-shadow: var(--shadow-pop);
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; letter-spacing: -.06em;
}
[data-theme="dark"] .person__avatar { color: #04170f; text-shadow: none; }
.signature {
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -.02em; color: var(--brand);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px;
}
.timeline { display: grid; gap: 0; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--rail); opacity: .5; }
.timeline__item { position: relative; padding: 0 0 26px; }
.timeline__item::before { content: ""; position: absolute; left: -25px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: var(--glow); }
.timeline__item b { font-family: var(--font-display); display: block; }
.timeline__item span { font-size: .8rem; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.timeline__item p { font-size: .94rem; color: var(--muted); margin: 6px 0 0; }

/* --------------------------------------------------------- 22. rodapé */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 64px) 24px; }
[data-theme="dark"] .site-footer { background: #03060b; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 42ch; }
.footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: .92rem; transition: color .2s, padding .2s; }
.footer a:hover { color: var(--brand); padding-left: 3px; }
.footer-bottom {
  margin-top: clamp(26px, 4vw, 44px); padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { font-size: .82rem; }

.to-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--brand); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: var(--on-brand); }

/* botões flutuantes de contato */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; gap: 8px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(0); transition: transform .3s var(--ease);
}
.dock.is-hidden { transform: translateY(120%); }
.dock .btn { flex: 1; padding: 12px 14px; font-size: .88rem; }
@media (min-width: 900px) {
  .dock { left: auto; right: 20px; bottom: 20px; border: 1px solid var(--line); border-radius: 999px; padding: 8px; box-shadow: var(--shadow-pop); }
  .dock .btn { flex: none; }
  .dock .btn span { display: none; }
  .dock .btn .ec-icon { width: 20px; height: 20px; }
  .to-top { bottom: 88px; }
}

/* ------------------------------------------------------ 23. breadcrumbs */
.crumbs { font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: flex; gap: 8px; align-items: center; margin: 0; }
.crumbs li + li::before { content: "/"; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* página hero interna */
.page-hero { position: relative; padding: clamp(30px, 6vw, 68px) 0 clamp(24px, 4vw, 40px); overflow: clip; }
.page-hero__bg { position: absolute; inset: -30% -10% auto auto; width: min(52vw, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--grad-soft); filter: blur(10px); pointer-events: none; }
.page-hero h1 { max-width: 24ch; }
.page-hero__sub { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 62ch; margin: 0 0 22px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------ 24. utilitários */
.badge-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
  font-size: .74rem; font-weight: 700; font-family: var(--font-display);
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden-js { display: none; }
.u-para { display: grid; gap: 1em; }
.divider { height: 1px; background: var(--line); border: 0; margin: clamp(28px, 4vw, 48px) 0; }
.kap { font-family: var(--font-display); font-weight: 700; color: var(--brand); }
[data-theme="dark"] .kap { text-shadow: var(--text-glow); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.no-js .js-only { display: none; }
.js-hide { display: none; }
.no-js .no-js-only { display: block; }

/* ---------------------------------------------------- 25. breakpoints */
@media (max-width: 1080px) {
  .layout-toc { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .work-hero { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav__list { display: none; }
  .burger { display: inline-flex; }
  .header-tools .tool-label { display: none; }
  /* o CTA do cabeçalho sai de cena no móvel: já existe no menu e no dock */
  .header-tools .btn--quote { display: none; }
  .header-tools { gap: 4px; }
  .header-inner { gap: 10px; }
  .brand__name { font-size: 1.02rem; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .slide { min-height: min(78svh, 560px); }
  .slide__title { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .brand__tag { display: none; }
  .person { grid-template-columns: 1fr; }
  .person__avatar { width: 110px; height: 110px; font-size: 2.2rem; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band__actions { flex-direction: column; align-items: stretch; }
}

/* menu móvel */
@media (max-width: 980px) {
  .mnav {
    position: fixed; inset: 74px 0 auto 0; z-index: 95;
    max-height: calc(100svh - 74px); overflow-y: auto;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 26px;
    transform: translateY(-105%); transition: transform .34s var(--ease);
    box-shadow: var(--shadow-pop);
  }
  .mnav.is-open { transform: none; }
  body.nav-open { overflow: hidden; }
  .mnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .mnav__list > li { border-bottom: 1px solid var(--line-soft); }
  .mnav__list a, .mnav__group {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 14px 4px; text-decoration: none; color: var(--ink);
    font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; background: none; border: 0; cursor: pointer;
  }
  .mnav__group .ec-icon { margin-left: auto; transition: transform .25s; }
  .mnav__sub { display: none; grid-template-columns: 1fr; gap: 2px; padding: 0 0 12px 12px; border-left: 2px solid var(--line); margin-left: 4px; }
  .mnav__sub a { font-size: .95rem; font-weight: 600; padding: 11px 4px; color: var(--ink-2); }
  .mnav__item.is-open .mnav__sub { display: grid; }
  .mnav__item.is-open .mnav__group .ec-icon { transform: rotate(180deg); }
  .mnav__actions { display: grid; gap: 10px; margin-top: 20px; }
}
@media (min-width: 981px) { .mnav { display: none; } }

/* impressão */
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --muted: #444; }
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .dock, .to-top, .slider__ctrl, .slider__foot, .cta-band, .no-print, .hero { display: none !important; }
  a { color: #000; text-decoration: none; }
  .card, .work, .cert { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .section { padding-block: 12pt; }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
}

/* ------------------------------------------------------------------ extras */
/* FAQ construído com <details>/<summary>: funciona sem JavaScript */
details.faq__item > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
details.faq__item > summary::-webkit-details-marker { display: none; }
details.faq__item > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
details.faq__item .faq__a { height: auto; }
details.faq__item[open] {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-1);
}
details.faq__item[open] .faq__q .ec-icon { transform: rotate(180deg); }
details.faq__item[open] .faq__a { animation: faqIn .32s var(--ease) both; }
@keyframes faqIn { from { opacity: .3; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ícone do seletor de tema */
[data-theme="light"] .theme-icon-dark,
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark { display: inline-flex; align-items: center; }
.tool-toggle .theme-icon-light .ec-icon,
.tool-toggle .theme-icon-dark .ec-icon { width: 17px; height: 17px; }
[data-theme="dark"] .tool-toggle { color: var(--brand); }

/* rodapé: linhas de canal com ícone alinhado */
.footer-channel {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.footer-channel .ec-icon { width: 16px; height: 16px; color: var(--brand); flex: none; }
.footer-channel:hover { color: var(--brand); text-decoration: none; }
.footer-channel:hover .ec-icon { transform: translateX(2px); }
.footer-channel .ec-icon { transition: transform .22s var(--ease); }

/* submenu: texto introdutório e descrição dos itens */
.submenu__intro {
  margin: 2px 12px 8px; font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.submenu a strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.submenu a em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* filtros e estado vazio */
.work.is-hidden { display: none; }
[hidden] { display: none !important; }
.badge-count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 999px; background: var(--surface-3); color: var(--muted);
  font-size: .72rem; font-weight: 700;
}
.filter-btn[aria-pressed="true"] .badge-count { background: var(--brand); color: var(--on-brand); }

/* botão em envio/copiado */
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-copied { border-color: var(--brand); color: var(--brand); }

/* o dock fixo no rodapé da tela não pode engolir conteúdo nem cliques */
@media (max-width: 899px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 8px; }
}
.pillar::after { pointer-events: none; }

/* controles do banner na barra inferior (não competem com o texto) */
.slider__nav { display: inline-flex; gap: 8px; align-items: center; }
.slider__ctrl {
  position: static; top: auto; translate: none; transform: none;
  width: 38px; height: 38px;
}
.slider__ctrl:hover { transform: scale(1.08); }
.slider__ctrl .ec-icon { width: 18px; height: 18px; }
.slider__foot { gap: 14px; }
.slider__count { margin-left: auto; }
@media (max-width: 720px) {
  .slider__nav { display: none; }
  .slider__count { font-size: .74rem; }
}

/* botões sobre a foto do banner precisam manter contraste nos dois temas */
.slide__actions .btn--ghost,
.cta-band .btn--ghost,
.section--photo .btn--ghost {
  color: #eafff6; border-color: rgba(190, 255, 225, .46);
  background: rgba(6, 22, 20, .34); backdrop-filter: blur(6px);
}
.slide__actions .btn--ghost:hover,
.cta-band .btn--ghost:hover,
.section--photo .btn--ghost:hover { background: rgba(234, 255, 246, .16); color: #fff; }
.slide__actions .btn--primary,
.cta-band .btn--primary { box-shadow: 0 12px 34px rgba(10, 143, 95, .38); }

/* kicker do banner legível também no tema claro */
.slide__kicker { color: #9dffd0; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

/* tamanho base dos ícones: sem isto, um <svg> sem width/height ocupa 100% do pai */
.ec-icon {
  width: 1.15em; height: 1.15em; flex: none;
  display: inline-block; vertical-align: -.18em;
}
.footer-brand .ec-icon { width: 15px; height: 15px; vertical-align: -.25em; }
.footer-brand .small { display: flex; gap: 8px; align-items: flex-start; }
.footer-brand .small .ec-icon { margin-top: 3px; }

/* ------------------------------------------------- 26. celular sem quebra
   Medido no endereço publicado, viewport de 360 px: a linha do cabeçalho
   (marca + seletor de idioma + tema + hambúrguer) não cabia e pedia 405 px.
   O navegador então ESTICAVA o layout para 405 px, e o dock — que é
   position: fixed com left: 0 / right: 0 — herdava essa largura: os quatro
   botões de contato somavam 16 + 87x4 + 8x3 + 16 = 405 px e o quarto
   ("Orçamento") acabava fora da tela. É o "quebrado, sem agrupar" do
   relatório. Nada aqui usa overflow-x: hidden como maquiagem: a linha passa a
   caber, e o dock encolhe de verdade. */
.lang-short { display: none; }

@media (max-width: 430px) {
  .header-inner { gap: 8px; min-height: 62px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: .92rem; letter-spacing: -.035em; }
  .header-tools { gap: 3px; margin-left: auto; }
  .tool-group { padding: 2px; gap: 1px; }
  .tool-btn { padding: 7px; font-size: .76rem; }
  .lang-long { display: none; }
  .lang-short { display: inline; }

  /* dock: quatro alvos redondos agrupados num só bloco, cabendo em 320 px;
     o rótulo continua acessível por aria-label/title (markup do rodapé) */
  .dock { gap: 5px; padding: 7px 8px; }  /* a faixa do selo (bloco 27) já cuida do safe-area */
  .dock .btn { flex: 1 1 0; min-width: 0; gap: 0; padding: 12px 0; justify-content: center; }
  .dock .btn > span { display: none; }
  .dock .btn .ec-icon { width: 21px; height: 21px; }

  /* pares de botões dentro das páginas: mesmo tamanho, sem fiada torta */
  .btn-row, .slide__actions, .cta-band__actions { gap: 10px; }
  .btn-row .btn, .slide__actions .btn { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 340px) {
  .brand__name { font-size: .82rem; }
  .tool-btn { padding: 6px; font-size: .72rem; }
  .dock { gap: 4px; padding-inline: 6px; }
}

/* ------------------------------------------------ 27. dock fora da faixa do selo
   O selo "Made with Manus" da plataforma é injetado no rodapé direito por um
   web component (`<manus-content-root>` > `<footer-watermark>`, dentro de shadow
   root — por isso um `document.querySelectorAll` simples não o vê). Medido no
   endereço publicado: texto de 93x16 px em y 800-816 com viewport de 844 px de
   altura, ou seja, a pílula ocupa a faixa de ~54 px finais do canto direito
   (offset da direita ~15 px). Com o dock colado em bottom:0 (64 px de altura),
   ele cobria exatamente os botões de e-mail e orçamento.

   Decisão do proprietário: MANTER o selo e subir a barra de contato. Reservamos
   então uma faixa inferior (--ec-band) e o dock passa a flutuar acima dela, com
   formato de pílula — não de barra cortada no meio da tela. O `.to-top` sobe
   junto, para não ficar por baixo do dock. */
:root {
  --ec-band: 62px;    /* faixa do selo + folga (medida: ~54 px; folga de 8 px) */
  --ec-dock-h: 60px;  /* altura real do dock em pílula (medida: 60 px no celular, 64 no desktop) */
}

@media (max-width: 899px) {
  .dock {
    left: 10px; right: 10px;
    bottom: calc(var(--ec-band) + env(safe-area-inset-bottom, 0px));
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-top-width: 1px;
    border-radius: 999px;
    box-shadow: var(--shadow-pop);
  }
  .dock .btn { padding: 11px 0; }
  .to-top { bottom: calc(var(--ec-band) + var(--ec-dock-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  /* o reservatório do fim da página acompanha o deslocamento */
  body { padding-bottom: calc(var(--ec-band) + var(--ec-dock-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 900px) {
  .dock { bottom: calc(var(--ec-band) + 12px); }
  .to-top { bottom: calc(var(--ec-band) + var(--ec-dock-h) + 20px); }
}

/* em telas de toque sem área segura (desktop estreito) a faixa continua valendo;
   impressão segue escondendo tudo como antes */
@media (max-width: 430px) {
  .dock { gap: 5px; padding: 6px 7px; }
}

/* ------------------------------------------------ 28. barra de contato: ícone puro
   Pedido do proprietário, com a tela do celular dele como evidência: na faixa
   entre 431 e 899 px o dock ainda mostrava os rótulos ("WhatsApp", "Telegram",
   "Enviar e-mail", "Orçamento"), e como a pílula divide a largura em quatro,
   cada rótulo era cortado no meio da palavra ("Orçament…"). O bloco 26 só
   escondia o texto a partir de 430 px — celular grande e tablet ficavam de
   fora. Regra agora vale para todo o intervalo em que o dock é pílula flutuante
   (até 899 px).

   O texto não some do ponto de vista de acessibilidade: cada botão continua com
   `aria-label` (leitor de tela) e `title` (toque longo no Android mostra o
   nome), e os quatro ícones são os de sempre — WhatsApp, Telegram, envelope e
   raio para orçamento. */
@media (max-width: 899px) {
  .dock {
    gap: 6px;
    padding: 6px 8px;
    justify-content: center;
  }
  .dock .btn {
    /* largura própria e agrupada no centro: esticar os quatro em tablet
       (medido: 211 px cada em 899 px) deixava quatro ícones minúsculos
       espalhados dentro de uma pílula gigante */
    flex: 0 0 50px;
    min-width: 0;
    gap: 0;
    padding: 11px 0;
    justify-content: center;
    font-size: 0;      /* não deixa resto de linha nem espaço de glifo */
    line-height: 0;
  }
  .dock .btn > span { display: none; }
  .dock .btn .ec-icon { width: 22px; height: 22px; }
  .dock .btn:focus-visible { outline-offset: 3px; }
}

/* cabeçalho compacto também em 431-560 px: seletor de idioma curto e marca
   menor, para a linha caber sem esticar o layout (mesmo defeito do bloco 26,
   só que em celular grande) */
@media (max-width: 560px) {
  .header-inner { gap: 8px; min-height: 62px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: .92rem; letter-spacing: -.035em; }
  .header-tools { gap: 3px; margin-left: auto; }
  .tool-group { padding: 2px; gap: 1px; }
  .tool-btn { padding: 7px; font-size: .76rem; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
}

/* ------------------------------------------------ 29. rolagem macia + botão do topo
   Dois pedidos do proprietário: rolar mais leve/macio e um botão pequeno,
   simples e SEMPRE visível no canto inferior direito para voltar ao topo.

   Sobre o botão: ele já existia no HTML, mas nunca apareceu para ninguém. O CSS
   mostrava `.to-top.is-on` e o JavaScript escrevia `is-visible` — classes
   diferentes. Agora o botão é visível desde o primeiro quadro (nada de surgir
   só depois de 700 px) e o anel fino ao redor conta, sozinho, quanto da página
   já foi lido: `--p` (0 → 1) é escrito pelo app.js a cada quadro de rolagem, e
   o traço do círculo usa 2·π·20 = 125,66 como circunferência.

   Sobre a rolagem: `scroll-behavior: smooth` e `scroll-padding-top` já
   existiam no bloco 2, mas só valem para âncoras nativas. O app.js passou a
   usar uma curva easeInOutCubic própria (340–900 ms conforme a distância) para
   o botão do topo, para as âncoras do sumário/menu e para o "pular para o
   conteúdo"; roda de mouse, toque e tecla cancelam a animação na hora, para
   nunca brigar com o usuário. `prefers-reduced-motion` desliga tudo: vai direto,
   sem animar. */
.to-top {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  /* 97%: com o texto da página passando atrás, 92% deixava as letras
     aparecerem dentro do círculo (visível no tema escuro) */
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border-radius: 50%;
  contain: layout paint;      /* o anel não faz o resto da página recalcular layout */
  transition: transform .22s var(--ease), background-color var(--dur),
              color var(--dur), border-color var(--dur), box-shadow .22s var(--ease);
}
.to-top .ec-icon { width: 18px; height: 18px; }
.to-top__ring {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  transform: rotate(-90deg);   /* o progresso começa às 12 horas */
  pointer-events: none;
}
.to-top__ring circle {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.to-top__ring-bg { stroke: color-mix(in srgb, var(--line) 65%, transparent); }
.to-top__ring-fg {
  stroke: var(--brand);
  stroke-dasharray: 125.66;
  stroke-dashoffset: calc(125.66 * (1 - var(--p, 0)));
  transition: stroke-dashoffset .1s linear;
}
.to-top:hover { transform: translateY(-2px); background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-pop); }
.to-top:hover .to-top__ring-fg { stroke: var(--on-brand); }
.to-top:active { transform: scale(.93); }
.to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
/* no topo da página o anel fica apagado: o botão continua visível, mas avisa
   que não há para onde subir */
.to-top.is-top .to-top__ring-fg { opacity: .25; }
.to-top.is-top .ec-icon { opacity: .72; }
[data-theme="dark"] .to-top { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); }
[data-theme="dark"] .to-top:hover { box-shadow: var(--glow); }

/* posição: sempre no canto inferior direito, mas NUNCA sobre a barra de
   contato nem sobre a faixa do selo da plataforma (as duas vivem ali) */
@media (max-width: 899px) {
  .to-top {
    right: 14px;
    bottom: calc(var(--ec-band) + var(--ec-dock-h) + 12px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 900px) {
  .to-top {
    right: 20px;
    bottom: calc(var(--ec-band) + var(--ec-dock-h) + 26px);
  }
}

/* enquanto a página se move, as camadas caras param de ser recompostas. Em
   celular de toque é onde o ganho aparece; no desktop o desfoque continua. */
@media (max-width: 899px), (pointer: coarse) {
  body.is-scrolling .site-header,
  body.is-scrolling .dock {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.is-scrolling .site-header { background: color-mix(in srgb, var(--bg) 96%, transparent); }
}
body.is-scrolling .slide__media img { animation-play-state: paused; }

/* revelação mais curta e com curva menos "elástica": 22 px de viagem parecia
   arrastado em páginas longas */
.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .5s cubic-bezier(.22, .61, .36, 1), transform .55s cubic-bezier(.22, .61, .36, 1);
}

/* barra de rolagem discreta, igual nos dois temas (WebKit/Blink + Firefox) */
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--brand) 42%, transparent) transparent; }
@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brand) 38%, var(--line));
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand); background-clip: content-box; }
}
/* o banner é um trilho horizontal: sem isto, arrastar para o lado empurra a
   página inteira (o famoso "scroll chaining") e a inércia do iOS fica estranha */
.slider__viewport { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top__ring-fg { transition: none; }
  .to-top:hover { transform: none; }
}
