/* DuoTech — site institucional
   Paleta oficial: Obsidian #0B0E13, Grafite #171D27, Azul Elétrico #2589FF, Ciano Ice #38D5F2, Branco Puro #F5F7FA
   Tipografia oficial: Space Grotesk (títulos) e Inter (textos e interface) */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --obsidian: #0B0E13;
  --graphite: #171D27;
  --blue: #2589FF;
  --cyan: #38D5F2;
  --white: #F5F7FA;

  --bg: #0B0E13;
  --surface: #171D27;
  --surface-2: #10151D;
  --text: #F5F7FA;
  --muted: #A3AEBF;
  --line: rgba(245, 247, 250, .1);
  --line-strong: rgba(245, 247, 250, .2);
  --accent-text: #38D5F2;      /* links e destaques pequenos */
  --accent-line: #38D5F2;      /* traços, ícones */
  --title-accent: #2589FF;
  --focus: #38D5F2;
  --danger: #FF8A8A;
  --on-blue: #051224;

  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-cut: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #E9EEF5;
  --text: #0B0E13;
  --muted: #4A5567;
  --line: rgba(11, 14, 19, .12);
  --line-strong: rgba(11, 14, 19, .24);
  --accent-text: #0E5FD0;
  --accent-line: #2589FF;
  --title-accent: #1A76EC;
  --focus: #0E5FD0;
  --danger: #C62828;
  color-scheme: light;
}

/* Onde o logotipo oficial vive, o fundo é sempre Obsidian (a marca foi aprovada sobre escuro). */
.hdr, .menu, .foot {
  --text: #F5F7FA;
  --muted: #A3AEBF;
  --line: rgba(245, 247, 250, .1);
  --line-strong: rgba(245, 247, 250, .2);
  --accent-text: #38D5F2;
  --accent-line: #38D5F2;
  --focus: #38D5F2;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--blue); color: var(--on-blue);
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.022em;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h1 { font-size: clamp(1.75rem, 8.6vw, 4.75rem); }
.h2 { font-size: clamp(1.6rem, 7.6vw, 3.6rem); }
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 14px;
  font: 600 1rem/1.2 var(--body);
  text-align: center;
  transition: background-color .25s ease, border-color .25s ease, transform .2s var(--ease), color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary, .btn--wa { background: var(--blue); color: var(--on-blue); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--text { color: var(--muted); min-height: 48px; font-weight: 500; }
.btn--lg { min-height: 60px; font-size: 1.0625rem; padding-inline: 30px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--primary:hover, .btn--wa:hover { background: var(--cyan); }
  .btn--ghost:hover { border-color: var(--accent-line); }
  .btn--text:hover { color: var(--text); }
}

.tool {
  display: inline-grid; place-items: center; grid-auto-flow: column; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 9px;
  border-radius: 12px; color: var(--text);
  font: 600 .8125rem/1 var(--display); letter-spacing: .04em;
  transition: background-color .2s ease;
}
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .tool:hover { background: rgba(245, 247, 250, .08); } }

:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }

/* ---------- Abertura ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; display: none; pointer-events: none; }
.js .curtain { display: block; }
.curtain__half {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: #0B0E13;
  transition: transform 1s var(--ease-cut) .15s;
}
.curtain__half--t { top: 0; }
.curtain__half--b { bottom: 0; }
.curtain__mark {
  position: absolute; left: 50%; top: 50%;
  width: 92px; height: auto;
  transform: translate(-50%, -50%);
  animation: mark-in .5s ease both;
  transition: opacity .3s ease, transform .5s var(--ease-cut);
}
@keyframes mark-in { from { opacity: 0; transform: translate(-50%, -42%); } }
.ready .curtain__half--t { transform: translateY(-101%); }
.ready .curtain__half--b { transform: translateY(101%); }
.ready .curtain__mark { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
.curtain.gone { display: none; }

/* ---------- Cabeçalho ---------- */
.hdr {
  position: fixed; z-index: 50;
  top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px;
  transition: transform .45s var(--ease);
}
.hdr.is-hidden { transform: translateY(calc(-100% - 24px)); }
.hdr__bar {
  display: flex; align-items: center; gap: 6px;
  width: min(100%, 1160px); margin-inline: auto;
  height: 60px; padding: 0 8px 0 16px;
  background: rgba(11, 14, 19, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(245, 247, 250, .09);
  border-radius: 18px;
  color: var(--text);
}
:root[data-theme="light"] .hdr__bar { background: rgba(11, 14, 19, .95); }
.hdr__logo { display: block; margin-right: auto; padding-block: 6px; }
.hdr__logo img { height: 24px; width: auto; }
.hdr__nav, .hdr__cta { display: none; }
@media (max-width: 359px) { .lang__btn svg { display: none; } .hdr__bar { padding-left: 12px; } }
.hdr__tools { display: flex; align-items: center; gap: 2px; }

.lang { position: relative; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 14px);
  min-width: 184px; padding: 6px;
  background: #171D27; border: 1px solid rgba(245, 247, 250, .12); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6);
  animation: pop .22s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.lang__menu button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 46px; padding: 0 12px; border-radius: 11px;
  font: 500 .9375rem/1 var(--body); color: #F5F7FA; text-align: left;
}
.lang__menu b { font: 600 .75rem/1 var(--display); letter-spacing: .06em; color: #A3AEBF; width: 22px; }
.lang__menu button[aria-pressed="true"] { background: rgba(37, 137, 255, .16); }
.lang__menu button[aria-pressed="true"] b { color: #38D5F2; }
@media (hover: hover) { .lang__menu button:hover { background: rgba(245, 247, 250, .07); } }

/* ---------- Menu do celular ---------- */
.menu {
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: #0B0E13; color: var(--text);
}
.menu[open] { display: flex; flex-direction: column; animation: sheet-in .4s var(--ease); }
.menu.is-closing { animation: sheet-out .22s ease forwards; }
.menu::backdrop { background: #0B0E13; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-14px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-10px); } }
.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 18px 0 26px; min-height: 80px;
}
.menu__top img { height: 24px; width: auto; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 26px; }
.menu__nav a {
  display: block; padding: 16px 0;
  font: 600 clamp(2rem, 10.5vw, 3rem)/1.05 var(--display); letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  animation: link-in .55s var(--ease) both;
}
.menu__nav a:nth-child(1) { animation-delay: .06s; }
.menu__nav a:nth-child(2) { animation-delay: .11s; }
.menu__nav a:nth-child(3) { animation-delay: .16s; }
.menu__nav a:nth-child(4) { animation-delay: .21s; }
@keyframes link-in { from { opacity: 0; transform: translateY(18px); } }
.menu__foot { display: grid; gap: 12px; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #171D27; border-radius: 14px; }
.seg button { min-height: 44px; border-radius: 10px; font: 500 .9375rem/1 var(--body); color: var(--muted); }
.seg button[aria-pressed="true"] { background: #0B0E13; color: var(--text); box-shadow: inset 0 0 0 1px rgba(56, 213, 242, .45); }
.menu__theme {
  display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 14px; font-weight: 500; text-align: left;
}
.menu__theme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 640px);
  display: flex; flex-direction: column;
  padding: 0 0 clamp(28px, 6svh, 72px);
}
/* No celular a cena ocupa o espaço acima do título e se apaga antes dele: nada brilha atrás do texto. */
.hero__scene {
  flex: 1 1 0; min-height: 300px; height: 0; width: 100%;
  margin-bottom: -18px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%);
}
.hero__body { position: relative; }
.hero__title { font-size: clamp(2.2rem, 11.2vw, 6.75rem); line-height: .96; }
.hero__title em { font-style: normal; color: var(--title-accent); }
.ln { display: block; overflow: hidden; padding-top: .16em; margin-top: -.16em; padding-bottom: .04em; }
.ln > span { display: block; white-space: nowrap; }
.js .hero .ln > span { transform: translateY(118%); }
.js.ready .hero .ln > span { transform: none; transition: transform 1s var(--ease) calc(.5s + var(--i, 0) * .1s); }
.ln:nth-child(2) > span { --i: 1; }
.ln:nth-child(3) > span { --i: 2; }
.hero__text { margin-top: 20px; max-width: 46ch; color: var(--muted); font-size: clamp(1.0625rem, 2.1vw, 1.25rem); }
.hero__actions { display: grid; gap: 10px; margin-top: 26px; }
.js .hero__text, .js .hero__actions { opacity: 0; transform: translateY(14px); }
.js.ready .hero__text, .js.ready .hero__actions { opacity: 1; transform: none; transition: opacity .8s ease 1s, transform .8s var(--ease) 1s; }
.js.ready .hero__actions { transition-delay: 1.12s; }

/* ---------- Seções ---------- */
.sec { padding-block: clamp(76px, 15vw, 150px); }
.sec__head { display: grid; gap: 18px; margin-bottom: clamp(28px, 5vw, 56px); }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in, .failsafe .rv { opacity: 1; transform: none; }

/* Sobre */
.about__grid { display: grid; gap: 26px; }
.about__copy { display: grid; gap: 18px; }
.about__copy p:not(.lead) { color: var(--text); max-width: 62ch; }
.pillars { display: grid; margin-top: clamp(40px, 7vw, 80px); border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pillar .glyph { grid-row: span 2; width: 44px; height: 44px; }
.pillar h3 { font-size: 1.3rem; align-self: end; }
.pillar p { color: var(--muted); font-size: 1rem; }
.glyph, .card__icon { fill: none; stroke: var(--accent-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js .rv .glyph *, .js .rv .card__icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .25s; }
.js .rv.in .glyph *, .js .rv.in .card__icon *, .failsafe .rv .glyph *, .failsafe .rv .card__icon * { stroke-dashoffset: 0; }

/* Soluções: no celular, uma tira que desliza de lado, quadro a quadro */
.solutions { overflow-x: clip; }
.reel {
  display: flex; gap: 14px;
  padding-inline: var(--gutter);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 min(84%, 340px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 372px; padding: 26px 24px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: border-color .3s ease, transform .5s var(--ease), opacity .8s ease, background-color .4s ease;
}
.card__icon { width: 64px; height: 64px; stroke: var(--muted); }
.card__icon .hot { stroke: var(--accent-line); }
.card h3 { margin-top: 30px; font-size: 1.45rem; text-wrap: balance; }
.card p { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.more {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  margin-top: auto; padding-top: 18px; min-height: 62px;
  font-weight: 600; color: var(--accent-text);
}
.more svg {
  width: 40px; height: 40px; padding: 9px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease);
}
@media (hover: hover) {
  .card:hover { border-color: var(--accent-line); }
  .card:hover .more svg { background: var(--blue); border-color: var(--blue); color: var(--on-blue); transform: rotate(45deg); }
}
.pager { display: flex; gap: 6px; margin-top: 22px; }
.pager i { width: 26px; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background-color .3s ease, width .3s var(--ease); }
.pager i.on { width: 44px; background: var(--blue); }

/* Processo */
.process__grid { display: grid; gap: 30px; }
.steps { position: relative; --p: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 21.500px; top: 44px; bottom: 44px; width: 1px;
  background: var(--line-strong);
}
.steps::after { background: var(--blue); transform-origin: top; transform: scaleY(var(--p)); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-block: 22px; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
  font: 600 .875rem/1 var(--display); color: var(--muted);
  transition: border-color .4s ease, color .4s ease, background-color .4s ease;
}
.step h3 { font-size: 1.4rem; padding-top: 8px; transition: color .4s ease; }
.step p { margin-top: 6px; color: var(--muted); max-width: 44ch; }
.js .step:not(.on) h3 { color: var(--muted); }
.step.on .step__n { border-color: var(--blue); background: var(--blue); color: var(--on-blue); }

/* Diferenciais */
.diff__panel {
  display: grid; gap: clamp(28px, 5vw, 56px);
  padding: clamp(28px, 6vw, 72px) clamp(22px, 6vw, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(24px, 4vw, 36px);
  transition: background-color .4s ease;
}
.diff__head { display: grid; gap: 18px; }
.ticks { display: grid; }
.ticks li {
  position: relative; padding: 18px 0 18px 30px;
  border-top: 1px solid var(--line);
  font: 500 1.0625rem/1.35 var(--display);
}
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 25px;
  width: 9px; height: 9px; transform: rotate(45deg);
  border: 1.5px solid var(--accent-line);
}

/* Contato */
.frame { position: relative; display: grid; justify-items: start; gap: 22px; padding: clamp(34px, 8vw, 96px) clamp(22px, 7vw, 88px); }
.frame .btn { margin-top: 8px; }
.frame__c { position: absolute; width: 26px; height: 26px; border: 0 solid var(--accent-line); }
.frame__c--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame__c--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame__c--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame__c--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- Rodapé ---------- */
.foot { background: #07090D; color: var(--text); padding: clamp(48px, 8vw, 88px) 0 calc(96px + env(safe-area-inset-bottom)); }
.foot__grid { display: grid; gap: 40px; }
.foot__brand img { height: 34px; width: auto; }
.foot__slogan { margin-top: 26px; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.25; }
.foot__text { margin-top: 8px; color: var(--muted); font-size: .9688rem; }
.foot__col { display: grid; justify-items: start; align-content: start; gap: 2px; }
.foot__col h2 { font: 500 .875rem/1.2 var(--body); color: var(--muted); margin-bottom: 8px; }
.foot__col a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.foot__wa svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .foot__col a:hover { color: var(--accent-text); } }
.foot__base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

/* ---------- Atalho fixo (celular) ---------- */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(105%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.dock.show { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }

/* ---------- Formulário ---------- */
.lead-dlg {
  width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--text);
}
.lead-dlg[open] { animation: dlg-in .45s var(--ease); }
.lead-dlg.is-closing { animation: dlg-out .22s ease forwards; }
.lead-dlg::backdrop { background: rgba(4, 6, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(18px); } }

.lead-form { display: flex; flex-direction: column; height: 100%; }
.lead-form__top {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 8px;
  padding: max(12px, env(safe-area-inset-top)) 12px 0 var(--gutter);
}
.lead-form__meta h2 { font: 600 1rem/1.2 var(--display); }
.lead-form__count { margin-top: 3px; color: var(--muted); font-size: .875rem; }
.bar { grid-column: 1 / -1; display: flex; gap: 6px; padding-right: 8px; }
.bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--line-strong); transition: background-color .4s ease; }
.bar i.on { background: var(--blue); }

.lead-form__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 30px var(--gutter) 24px; }
.fs { min-width: 0; margin: 0; padding: 0; border: 0; --dir: 1; }
.fs.enter { animation: step-in .4s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(calc(var(--dir) * 26px)); } }
.q {
  display: block; float: left; width: 100%; padding: 0; margin-bottom: 24px;
  font: 600 clamp(1.55rem, 6.6vw, 2.1rem)/1.12 var(--display); letter-spacing: -.015em;
  text-wrap: balance; outline: none;
}
.fs > * { clear: both; }
.hint { margin: -12px 0 20px; color: var(--muted); font-size: .9688rem; }

.field { display: block; margin-bottom: 16px; }
.field__l { display: block; margin-bottom: 8px; font-size: .9063rem; font-weight: 500; color: var(--muted); }
.field__l small { font-size: .8125rem; font-weight: 400; opacity: .85; }
.field__l small::before { content: "("; }
.field__l small::after { content: ")"; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: 16px; border-radius: 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong);
  font: 400 1.0625rem/1.4 var(--body);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 168px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 137, 255, .28); }
.field [aria-invalid="true"] { border-color: var(--danger); }

.opts { display: grid; gap: 10px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 12px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.985); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color .2s ease; }
.opt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .25s var(--ease); }
.opt:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 13%, var(--surface)); }
.opt:has(input:checked) .opt__dot { border-color: var(--blue); }
.opt:has(input:checked) .opt__dot::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

.check { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: 22px; font-size: .9688rem; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.check__box svg { width: 18px; height: 18px; fill: none; stroke: var(--on-blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease); }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.check.invalid .check__box { border-color: var(--danger); }

.err { margin-top: 14px; color: var(--danger); font-size: .9375rem; font-weight: 500; }
.err:empty { display: none; }
.shake { animation: shake .36s ease; }
@keyframes shake { 20% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
.notice { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: .875rem; line-height: 1.5; }

.lead-form__foot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg);
}
.lead-form__foot #lead-back[hidden] + #lead-next { grid-column: 1 / -1; }
.lead-form__foot--done { grid-template-columns: 1fr; gap: 2px; }

.done__mark { width: 56px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done__mark * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) .15s forwards; }
.done__mark path { animation-delay: .55s; animation-duration: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__title { margin-top: 20px; font-size: clamp(1.5rem, 6.6vw, 2.1rem); line-height: 1.04; outline: none; }
.done__text { margin-top: 14px; color: var(--muted); }
.summary { display: grid; gap: 10px; margin-top: 24px; }
.sum { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sum__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sum__h h4 { margin: 0; font: 600 .9375rem/1.2 var(--display); }
.sum__h button { min-height: 40px; padding: 0 4px; font-size: .9063rem; font-weight: 600; color: var(--accent-text); }
.sum dl { margin: 4px 0 0; display: grid; gap: 10px; }
.sum dt { font-size: .8125rem; color: var(--muted); }
.sum dd { margin: 2px 0 0; font-size: .9688rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }

/* ---------- Telas maiores ---------- */
@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .lead-dlg {
    width: min(640px, 100% - 48px); height: min(780px, 100dvh - 48px);
    margin: auto; border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  }
  .lead-form__top { padding: 20px 16px 0 32px; }
  .lead-form__body { padding: 36px 32px 28px; }
  .lead-form__foot { padding: 16px 32px 20px; }
  .lead-form__foot:not(.lead-form__foot--done) { grid-template-columns: auto auto; justify-content: space-between; }
  .lead-form__foot #lead-back[hidden] + #lead-next { grid-column: 2; }
  .lead-form__foot .btn { min-width: 168px; }
  .pillars { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 0 32px; }
  .pillar { grid-template-columns: 1fr; padding: 28px 0 0; border-bottom: 0; border-top: 1px solid var(--line); row-gap: 10px; }
  .pillar .glyph { grid-row: auto; margin-bottom: 12px; }
  .ticks { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .foot__grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
}

@media (min-width: 800px) {
  .reel { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; overflow: visible; width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto; padding-inline: 0; }
  .card { min-height: 340px; padding: 34px 32px 22px; }
  .pager { display: none; }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 100px; }
  .hdr { top: 16px; left: 16px; right: 16px; }
  .hdr__bar { height: 68px; padding: 0 10px 0 22px; gap: 10px; }
  .hdr__logo { margin-right: 0; }
  .hdr__logo img { height: 28px; }
  .hdr__nav { display: flex; gap: 4px; margin-inline: auto; }
  .hdr__nav a { padding: 12px 16px; border-radius: 10px; font-size: .9375rem; font-weight: 500; color: var(--muted); transition: color .2s ease; }
  .hdr__nav a:hover { color: var(--text); }
  .hdr__cta { display: inline-flex; min-height: 46px; padding-inline: 20px; font-size: .9375rem; margin-left: 6px; border-radius: 12px; }
  .menu-btn { display: none; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }

  .hero { padding-bottom: clamp(56px, 9svh, 110px); }
  .hero { justify-content: flex-end; padding-top: 120px; }
  .hero__scene {
    position: absolute; z-index: -1; inset: 0 0 0 auto; width: 78%; height: 100%; margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 44%, #000 74%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, transparent 44%, #000 74%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .hero__body { display: grid; }
  .hero__text { max-width: 44ch; }

  .about__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
  .sec__head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
  .process__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .process__grid .h2 { position: sticky; top: 130px; }
  .diff__panel { grid-template-columns: 1fr 1fr; align-items: start; }
  .ticks { grid-template-columns: 1fr; }
  .step { padding-block: 30px; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .rv .glyph *, .js .rv .card__icon * { stroke-dashoffset: 0; }
}
