/* ==========================================================================
   TJ Sistemas — Folha de estilos
   --------------------------------------------------------------------------
   1. Fonte e variáveis          8. Projetos (dispositivos 3D)
   2. Base                       9. Como funciona
   3. Botões                    10. Dúvidas
   4. Cabeçalho e menu          11. Contato, formulário e logo 3D
   5. Topo (hero) e pilha 3D    12. Rodapé e WhatsApp flutuante
   6. Por que ter um site       13. Páginas internas (404 e privacidade)
   7. Serviços                  14. Responsivo e movimento reduzido
   ========================================================================== */

/* 1. Fonte e variáveis ===================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores da marca (extraídas da logo) */
  --navy: #0B1F3A;
  --navy-900: #071528;
  --navy-800: #0E2648;
  --navy-700: #163A66;
  --cyan: #23D2ED;
  --cyan-hover: #5DE1F4;

  /* Neutros */
  --white: #FFFFFF;
  --mist: #F3F6FA;
  --ink: #0B1F3A;
  --slate: #4A5B75;
  --line: #DCE4EE;
  --on-dark: #EAF1F9;
  --on-dark-muted: #A9B9CF;
  --line-dark: rgba(169, 185, 207, .18);
  --wa: #25D366;

  /* Tipografia e medidas */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --r-btn: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2. Base ================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul,
ol { margin: 0; padding: 0; list-style: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus, var(--navy));
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main [id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist); }
.section--white { background: var(--white); }
.section--dark {
  --focus: var(--cyan);
  background: var(--navy);
  color: var(--on-dark);
}

.section-head { max-width: 780px; }

.section-title {
  font-size: clamp(1.9rem, 1.15rem + 2.4vw, 2.9rem);
  letter-spacing: -0.028em;
}
.section--dark .section-title { color: var(--white); }

.section-lead {
  margin-top: 18px;
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  color: var(--slate);
}
.section--dark .section-lead { color: var(--on-dark-muted); }

/* Ponto da marca: o mesmo círculo ciano da logo "TJ." */
.brand-dot {
  display: inline-block;
  width: .19em;
  height: .19em;
  margin-left: .07em;
  border-radius: 50%;
  background: var(--cyan);
}

/* 3. Botões ================================================================ */

.btn {
  --btn-h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: var(--btn-h);
  padding: .5em 1.4em;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cyan); color: var(--navy); }
.btn--primary:hover { background: var(--cyan-hover); }

.btn--ghost { border-color: rgba(234, 241, 249, .3); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--white); }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); }

.btn--sm { --btn-h: 44px; padding: .4em 1.1em; font-size: .9375rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration-color: var(--cyan); }

/* 4. Cabeçalho e menu ====================================================== */

.site-header {
  --focus: var(--cyan);
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(8, 23, 44, .88);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(169, 185, 207, .14);
}

.menu-open .site-header {
  background: #08172C;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 20.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--on-dark-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.nav-list a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-cta-mobile { display: none; }
.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: top .3s var(--ease), transform .3s var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* 5. Topo (hero) e pilha 3D ================================================ */

.hero {
  --focus: var(--cyan);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem)) 0 clamp(3rem, 8vh, 6rem);
  overflow: clip;
  background: var(--navy);
  color: var(--on-dark);
}

/* Piso em perspectiva que "sustenta" a pilha */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 38%;
  right: -24%;
  bottom: 2%;
  height: 58%;
  background-image:
    linear-gradient(rgba(35, 210, 237, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 210, 237, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(620px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 55%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 50% 60% at 50% 55%, #000 10%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-size: .9375rem;
  font-weight: 500;
}
.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(35, 210, 237, .16);
}

.hero-title {
  margin-top: 22px;
  color: var(--white);
  font-size: clamp(2.25rem, 1.15rem + 3.7vw, 4rem);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.034em;
}

.hero-lead {
  margin-top: 22px;
  max-width: 33em;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 18px;
  color: var(--on-dark-muted);
  font-size: .9375rem;
}

/* Pilha 3D: um site "explodido" em camadas */
.hero-visual { position: relative; }

.stack {
  position: relative;
  height: clamp(380px, 44vw, 600px);
  perspective: 1900px;
  perspective-origin: 45% 35%;
}

.stack-scene {
  position: absolute;
  left: 44%;
  top: 64%;
  width: 480px;
  height: 312px;
  margin: -156px 0 0 -240px;
  transform-style: preserve-3d;
  transform: scale(.8) rotateX(57deg) rotateZ(-38deg);
}

.stack-shadow {
  position: absolute;
  inset: 8% 5%;
  border-radius: 40px;
  background: rgba(2, 8, 20, .6);
  filter: blur(26px);
  transform: translateZ(-50px);
}

.layer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  transform: translateZ(calc(var(--i) * 64px));
}
.js .layer { opacity: 0; }

.layer-anchor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
}

.ms { position: absolute; display: block; }

/* Camada 0 — código e estrutura */
.layer--base {
  overflow: hidden;
  background: linear-gradient(160deg, #11294C, #0C2141);
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .24);
}
.ms-cols {
  inset: 0 20px;
  background: repeating-linear-gradient(90deg, rgba(35, 210, 237, .085) 0 27.5px, transparent 27.5px 37.5px);
}
.ms-code {
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(35, 210, 237, .7);
}

/* Camada 1 — layout (wireframe) */
.layer--wire {
  background: rgba(16, 42, 78, .22);
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .3);
}
.ms-wire {
  border: 1.5px dashed rgba(35, 210, 237, .78);
  border-radius: 9px;
}

/* Camada 2 — identidade visual */
.layer--visual {
  background: rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .18);
}
.ms-headerbar {
  left: 12px;
  top: 10px;
  width: 456px;
  height: 34px;
  border-radius: 10px;
  background: rgba(234, 241, 249, .06);
}
.ms-logo {
  left: 20px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--cyan);
}
.ms-photo {
  left: 256px;
  top: 56px;
  width: 204px;
  height: 132px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(170deg, #2F7FC1 0%, #4FB7DD 55%, #9BE6F2 100%);
}
.ms-photo::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E9FBFF;
}
.ms-photo::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px -20px;
  height: 100px;
  border-radius: 50% 60% 0 0;
  background: linear-gradient(180deg, #123B6B, #0B1F3A);
  box-shadow: 90px -18px 0 -10px #1B4F86;
}
.ms-cardbg {
  top: 204px;
  width: 140px;
  height: 88px;
  border-radius: 12px;
  background: #16375F;
}

/* Camada 3 — conteúdo */
.layer--content {
  background: rgba(255, 255, 255, .015);
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .16);
}
.ms-brand {
  left: 44px;
  top: 18px;
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ms-menu {
  top: 25px;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: rgba(234, 241, 249, .45);
}
.ms-h {
  left: 20px;
  top: 60px;
  width: 210px;
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.ms-line {
  left: 20px;
  height: 5px;
  border-radius: 5px;
  background: rgba(234, 241, 249, .3);
}
.ms-icon {
  top: 216px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--cyan);
}
.ms-ct {
  top: 246px;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}
.ms-cl {
  height: 4px;
  border-radius: 4px;
  background: rgba(234, 241, 249, .26);
}

/* Camada 4 — botões de contato */
.layer--action {
  background: rgba(255, 255, 255, .015);
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .16);
}
.ms-cta {
  left: 20px;
  top: 154px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 28px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 8px 22px -6px rgba(35, 210, 237, .75);
}
.ms-wa {
  left: 380px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 80px;
  height: 22px;
  border-radius: 7px;
  background: var(--wa);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
}
.ms-wa svg { width: 11px; height: 11px; }
.ms-cursor {
  left: 118px;
  top: 170px;
  width: 22px;
  height: 22px;
  color: var(--white);
}

/* Camada 5 — resultado no Google */
.layer--google {
  inset: auto;
  left: 206px;
  top: 192px;
  width: 262px;
  height: 84px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #1F2124;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 24px 40px -12px rgba(0, 0, 0, .55);
}
.g-url {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #BDC1C6;
  font-size: 9px;
  line-height: 1;
}
.g-fav {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.g-fav::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}
.g-title {
  margin-top: 7px;
  color: #8AB4F8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.g-desc {
  display: block;
  height: 4px;
  margin-top: 7px;
  border-radius: 4px;
  background: rgba(189, 193, 198, .35);
}
.g-desc--short { width: 64%; margin-top: 5px; }

/* Rótulos das camadas (posicionados pelo script.js) */
.stack-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stack-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark-muted);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
}
.stack-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(35, 210, 237, .2));
}

/* 6. Por que ter um site =================================================== */

.split {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.split-head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.split-head .btn { margin-top: 28px; }

.journey { display: grid; }
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding-block: 18px;
}
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 82px;
  bottom: -10px;
  border-left: 2px dashed #BFCDDE;
}

.icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--navy);
  color: var(--white);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.journey-title {
  padding-top: 4px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.journey-text { margin-top: 6px; color: var(--slate); }
.journey-text q { color: var(--ink); font-weight: 600; }

/* 7. Serviços ============================================================== */

.offer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.offer-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
}
.offer-card--build {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.offer-card--care {
  --focus: var(--cyan);
  background: var(--navy);
  color: var(--on-dark);
}

.offer-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 0 0 8px var(--white);
  transform: translate(-50%, -50%);
}

.offer-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.offer-card--care .offer-name { color: var(--white); }
.offer-sub { margin-top: 8px; color: var(--slate); }
.offer-card--care .offer-sub { color: var(--on-dark-muted); }

.checklist {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.checklist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.check {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  padding: 5px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}
.offer-card--care .check { background: var(--cyan); color: var(--navy); }

.offer-types {
  margin-top: auto;
  padding-top: 32px;
}
.offer-types-title { font-size: .9375rem; font-weight: 700; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .875rem;
  font-weight: 600;
}

.care-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 14px 12px 16px;
  border-radius: 14px;
  background: var(--navy-900);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: .9375rem;
}
.offer-card--care .checklist { margin-bottom: 32px; }
.care-url {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.care-url svg { width: 16px; height: 16px; flex: none; color: var(--cyan); }
.care-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .12);
  color: #7BE9A6;
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.care-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, .25);
}
.offer-card--care .text-link {
  align-self: flex-start;
  margin-top: 22px;
  color: var(--white);
}

/* 8. Projetos (dispositivos 3D) ============================================ */

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.case-visual {
  position: relative;
  perspective: 1500px;
}
.devices {
  position: relative;
  aspect-ratio: 16 / 11.4;
  transform-style: preserve-3d;
  transform: rotateY(-16deg) rotateX(7deg);
}

.device-browser {
  position: absolute;
  left: 0;
  top: 0;
  width: 87%;
  overflow: hidden;
  border-radius: 14px;
  background: #151922;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 80px -40px rgba(0, 0, 0, .8);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  background: #1B212C;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A4252;
}
.browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  max-width: 58%;
  height: 22px;
  margin-inline: auto;
  border-radius: 6px;
  background: #10141C;
  color: #9AA5B8;
  font-size: 11px;
}
.browser-url svg { width: 11px; height: 11px; }
.browser-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090a09;
  container-type: inline-size;
}

.device-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 28px;
  background: #090B0F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 60px -24px rgba(0, 0, 0, .85);
  transform: translateZ(80px);
}
.device-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  width: 30%;
  height: 9px;
  border-radius: 9px;
  background: #000;
  transform: translateX(-50%);
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 21px;
  background: #090a09;
  container-type: inline-size;
}

/* Miniatura do site da Maidana (proporções em cqw = % da tela do aparelho) */
.mm-page,
.mp-page {
  color: #f6f0df;
  line-height: 1.5;
}
.mm-page span,
.mm-page b,
.mm-page i,
.mm-page em,
.mp-page span,
.mp-page b,
.mp-page i,
.mp-page em { display: block; font-style: normal; }

.mm-page {
  position: absolute;
  inset: 0 0 auto;
  transition: transform 1.6s var(--ease);
}
.case-visual.is-touring .mm-page {
  transform: translateY(var(--tour-end, 0px));
  transition: transform 8.5s cubic-bezier(.45, 0, .35, 1) .15s;
}

.mm-nav {
  display: flex !important;
  align-items: center;
  gap: 2.4cqw;
  height: 6.6cqw;
  padding: 0 4cqw;
  background: #080908;
  border-bottom: .15cqw solid rgba(213, 165, 46, .28);
}
.mm-logo {
  margin-right: auto;
  color: #f2ca59;
  font-size: 1.75cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mm-links {
  display: flex !important;
  gap: 2.2cqw;
  color: #b9b3a5;
  font-size: 1.12cqw;
}
.mm-btn {
  padding: 1cqw 1.7cqw;
  border-radius: .4cqw;
  background: linear-gradient(135deg, #d6a52e, #f1c95c);
  color: #171209;
  font-size: 1.1cqw;
  font-weight: 700;
  line-height: 1;
}
.mm-btn--lg { padding: 1.4cqw 2.3cqw; font-size: 1.25cqw; }
.mm-btn--outline {
  background: transparent;
  color: #f2ca59;
  box-shadow: inset 0 0 0 .15cqw rgba(213, 165, 46, .65);
}

.mm-hero {
  position: relative;
  display: flex !important;
  align-items: center;
  height: 44cqw;
  padding: 0 5cqw;
  overflow: hidden;
  background: #16140f linear-gradient(115deg, #1b1913 0%, #2c271b 55%, #4b3e22 100%);
}
.mm-hero-img,
.mp-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mm-hero-img { object-position: 50% 44%; }
.mm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 10, 9, .97) 0%, rgba(9, 10, 9, .85) 42%, rgba(9, 10, 9, .22) 100%);
}
.mm-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 50cqw;
}
.mm-eyebrow {
  display: flex !important;
  align-items: center;
  gap: 1.1cqw;
  color: #d5a52e;
  font-size: 1.02cqw;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mm-eyebrow::before {
  content: "";
  width: 3cqw;
  height: .18cqw;
  background: currentColor;
}
.mm-title {
  margin-top: 1.6cqw;
  font-size: 4.1cqw;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.mm-page .mm-title span,
.mp-page .mp-title span {
  display: inline;
  background: linear-gradient(90deg, #f2ca59, #d5a52e 55%, #f2ca59);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mm-text {
  max-width: 40cqw;
  margin-top: 1.8cqw;
  color: #ddd6c7;
  font-size: 1.35cqw;
  line-height: 1.6;
}
.mm-actions {
  display: flex !important;
  gap: 1.2cqw;
  margin-top: 2.4cqw;
}

.mm-section { padding: 5cqw; background: #121310; }
.mm-section--alt { background: #0d0e0c; }
.mm-h {
  margin-top: 1cqw;
  font-size: 2.7cqw;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.mm-cards,
.mm-steps {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6cqw;
  margin-top: 2.8cqw;
}
.mm-card {
  padding: 2.2cqw;
  border-radius: .7cqw;
  background: #0d0e0c;
  box-shadow: inset 0 0 0 .12cqw rgba(213, 165, 46, .24);
}
.mm-card i {
  width: 3.6cqw;
  height: 3.6cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2ca59, #936716);
}
.mm-card b { margin-top: 1.5cqw; font-size: 1.35cqw; }
.mm-card em,
.mm-step em,
.mm-footer em {
  height: .7cqw;
  margin-top: 1cqw;
  border-radius: 1cqw;
  background: rgba(185, 179, 165, .28);
}
.mm-card em + em { width: 70%; margin-top: .7cqw; }

.mm-ba {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1.6cqw;
  margin-top: 2.8cqw;
}
.mm-ba-item {
  position: relative;
  height: 19cqw;
  overflow: hidden;
  border-radius: .7cqw;
}
.mm-ba-item--antes {
  background:
    repeating-linear-gradient(168deg, transparent 0 2.6cqw, rgba(0, 0, 0, .28) 2.6cqw 3.1cqw),
    radial-gradient(circle at 30% 60%, rgba(40, 30, 18, .8), transparent 40%),
    linear-gradient(150deg, #6a5d49, #43392b 60%, #2c251c);
}
.mm-ba-item--depois {
  background:
    repeating-linear-gradient(168deg, transparent 0 2.6cqw, rgba(120, 104, 70, .22) 2.6cqw 3.1cqw),
    linear-gradient(150deg, #f4efe2, #dcd3bd 60%, #c3b796);
}
.mm-ba-item b {
  position: absolute;
  left: 1.3cqw;
  top: 1.3cqw;
  padding: .55cqw 1.1cqw;
  border-radius: 2cqw;
  background: rgba(9, 10, 9, .78);
  color: #f2ca59;
  font-size: 1.02cqw;
}

.mm-step i {
  display: grid !important;
  place-items: center;
  width: 4cqw;
  height: 4cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #d6a52e, #f1c95c);
  color: #171209;
  font-size: 1.5cqw;
  font-weight: 800;
}
.mm-step em { width: 80%; margin-top: 1.4cqw; background: rgba(246, 240, 223, .5); }
.mm-step em + em { width: 92%; height: .6cqw; margin-top: .9cqw; background: rgba(185, 179, 165, .26); }

.mm-faq {
  display: grid !important;
  gap: 1cqw;
  margin-top: 2.4cqw;
}
.mm-faq span {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 1.6cqw 2cqw;
  border-radius: .6cqw;
  background: #121310;
  box-shadow: inset 0 0 0 .12cqw rgba(213, 165, 46, .18);
  font-size: 1.2cqw;
}
.mm-faq span::after { content: "+"; color: #d5a52e; font-weight: 700; }

.mm-band {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 4cqw 5cqw;
  background: linear-gradient(90deg, #d6a52e, #f1c95c);
}
.mm-band b {
  color: #171209;
  font-size: 2.5cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mm-band span {
  padding: 1.4cqw 2.2cqw;
  border-radius: .4cqw;
  background: #171209;
  color: #f2ca59;
  font-size: 1.2cqw;
  font-weight: 700;
}
.mm-footer {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3cqw;
  padding: 4cqw 5cqw 6cqw;
  background: #090a09;
}
.mm-footer b { color: #f2ca59; font-size: 1.5cqw; font-weight: 800; }

/* Versão do celular */
.mp-page { padding-top: 13cqw; background: #000; }
.mp-nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  height: 15cqw;
  padding: 0 6cqw;
  background: #080908;
  border-bottom: .4cqw solid rgba(213, 165, 46, .28);
}
.mp-nav b {
  color: #f2ca59;
  font-size: 5cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mp-burger {
  width: 7cqw;
  height: 5cqw;
  background:
    linear-gradient(#f6f0df 0 0) top / 100% .8cqw no-repeat,
    linear-gradient(#f6f0df 0 0) center / 100% .8cqw no-repeat,
    linear-gradient(#f6f0df 0 0) bottom / 100% .8cqw no-repeat;
}
.mp-hero {
  position: relative;
  padding: 14cqw 6cqw 12cqw;
  overflow: hidden;
  background: #16140f linear-gradient(160deg, #2c271b, #16140f);
}
.mp-hero img { object-position: 58% 44%; }
.mp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 9, .5), rgba(9, 10, 9, .93) 72%);
}
.mp-copy { position: relative; z-index: 1; }
.mp-eyebrow {
  color: #d5a52e;
  font-size: 3.4cqw;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mp-title {
  margin-top: 3cqw;
  font-size: 8.4cqw;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.mp-btn {
  width: max-content;
  margin-top: 6cqw;
  padding: 4cqw 6cqw;
  border-radius: 1.4cqw;
  background: linear-gradient(135deg, #d6a52e, #f1c95c);
  color: #171209;
  font-size: 4cqw;
  font-weight: 700;
  line-height: 1;
}
.mp-cards {
  display: grid !important;
  gap: 3.5cqw;
  padding: 7cqw 6cqw;
  background: #121310;
}
.mp-card {
  display: flex !important;
  align-items: center;
  gap: 4cqw;
  padding: 4.5cqw;
  border-radius: 2cqw;
  background: #0d0e0c;
  box-shadow: inset 0 0 0 .35cqw rgba(213, 165, 46, .22);
}
.mp-card i {
  flex: none;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f2ca59, #936716);
}
.mp-card b { font-size: 4.2cqw; }

/* Texto do projeto */
.case-kicker {
  color: var(--cyan);
  font-size: .9375rem;
  font-weight: 700;
}
.case-title {
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}
.case-meta {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-weight: 500;
}
.case-text { margin-top: 18px; color: var(--on-dark-muted); }
.case-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.case-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.case-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateY(-2px);
}
.case-actions { margin-top: 30px; }

.next-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.5vw, 40px);
  border-radius: 24px;
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.next-title {
  color: var(--white);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
}
.next-text { margin-top: 6px; color: var(--on-dark-muted); }

/* 9. Como funciona ========================================================= */

.steps {
  --steps-gap: clamp(24px, 3vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--steps-gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.steps::before {
  content: "";
  position: absolute;
  left: 60px;
  right: calc((100% - 3 * var(--steps-gap)) / 4 - 60px);
  top: 70px;
  border-top: 2px dashed #BFCDDE;
}
.step { position: relative; }
.step-figure {
  position: relative;
  width: 120px;
  height: 96px;
  background: var(--mist);
}
.step-num {
  margin-top: 22px;
  color: var(--slate);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-title {
  margin-top: 4px;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.step-text {
  margin-top: 8px;
  color: var(--slate);
  font-size: 1rem;
}

/* 10. Dúvidas ============================================================== */

.faq { display: grid; gap: 12px; }
.faq-item {
  border-radius: 16px;
  background: var(--mist);
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--white); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 24px;
  border-radius: 16px;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .25s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--cyan); box-shadow: none; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer {
  max-width: 62ch;
  padding: 0 24px 22px;
  color: var(--slate);
}

/* 11. Contato, formulário e logo 3D ======================================= */

.contact-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.contact-head .section-lead { margin-inline: auto; }

.logo3d {
  --size: clamp(140px, 15vw, 184px);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 0 auto clamp(32px, 4vw, 48px);
  perspective: 800px;
}
.logo3d::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18%;
  height: 14%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  filter: blur(12px);
}
.logo3d-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-18deg);
}
.logo3d-body > * { position: absolute; inset: 0; }
.l3-side {
  border-radius: 20.5%;
  background: #07152A;
  transform: translateZ(calc(var(--k) * -1.6px));
}
.l3-side.l3-back { background: #040D1B; }
.l3-face {
  border-radius: 20.5%;
  background: radial-gradient(130% 120% at 22% 12%, #19406F 0%, #0B1F3A 55%, #091A31 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.l3-letters {
  width: 100%;
  height: 100%;
  color: #8EA5C3;
  transform: translateZ(calc(var(--k) * 1.6px));
}
.l3-letters--top { color: var(--white); }
.logo3d-body > .l3-dot {
  inset: auto;
  left: 72.37%;
  top: 66.73%;
  width: 11.8%;
  height: 11.8%;
  border-radius: 50%;
  background: #0F8FA7;
  transform: translateZ(calc(var(--k) * 1.6px));
}
.logo3d-body > .l3-dot--top {
  background: radial-gradient(circle at 34% 30%, #9AF0FC, var(--cyan) 62%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 24px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.contact-link:hover {
  background: #102C53;
  box-shadow: inset 0 0 0 1px rgba(35, 210, 237, .55);
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-icon--wa { background: rgba(37, 211, 102, .14); color: var(--wa); }
.contact-icon--ig { background: rgba(35, 210, 237, .12); color: var(--cyan); }
.contact-label {
  display: block;
  color: var(--on-dark-muted);
  font-size: .875rem;
  font-weight: 500;
}
.contact-value {
  display: block;
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.contact-arrow { width: 22px; height: 22px; color: var(--on-dark-muted); }
.contact-place {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 4px 4px 0;
  color: var(--on-dark-muted);
  font-size: .9375rem;
}
.contact-place svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--cyan); }

.form-card {
  --focus: var(--navy);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
}
.form-title { font-size: 1.5rem; letter-spacing: -0.025em; }
.form-sub { margin-top: 6px; color: var(--slate); font-size: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.field { display: grid; align-content: start; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field .optional { color: var(--slate); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--mist);
  font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 116px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #B9C7D8; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); background-color: var(--white); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .875rem; font-weight: 600; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 22px;
}
.form-note { flex: 1 1 220px; color: var(--slate); font-size: .875rem; line-height: 1.5; }
.form-status:not(:empty) {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #E7FAFD;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
}

/* 12. Rodapé e WhatsApp flutuante ========================================= */

.site-footer {
  --focus: var(--cyan);
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 28px;
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-brand p { max-width: 30ch; margin-top: 16px; }
.footer-title {
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 700;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: .875rem;
}
.footer-bottom a { text-underline-offset: 4px; }
.footer-bottom a:hover { color: var(--white); }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(4, 16, 32, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }
.no-js .wa-float { opacity: 1; visibility: visible; transform: none; }

/* 13. Páginas internas (404 e privacidade) ================================ */

.page-simple {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--navy);
  color: var(--on-dark);
  --focus: var(--cyan);
}
.page-simple .site-header { position: static; }
.page-simple main { flex: 1; }

.notfound {
  display: grid;
  place-items: center;
  padding: 48px var(--gutter) 96px;
  text-align: center;
}
.notfound-stack {
  position: relative;
  width: 180px;
  height: 150px;
  margin: 0 auto 36px;
  perspective: 900px;
}
.notfound-stack span {
  position: absolute;
  left: 30px;
  top: 40px;
  width: 120px;
  height: 78px;
  border-radius: 10px;
  background: rgba(14, 38, 72, .7);
  box-shadow: inset 0 0 0 1.5px rgba(35, 210, 237, .45);
  transform: rotateX(57deg) rotateZ(-38deg) translateZ(calc(var(--i) * 22px));
}
.notfound-stack span:last-child {
  background: var(--cyan);
  box-shadow: none;
  transform: rotateX(57deg) rotateZ(-20deg) translate3d(46px, -10px, 78px);
}
.notfound-code { color: var(--cyan); font-weight: 700; }
.notfound h1 {
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
}
.notfound p:not(.notfound-code) {
  max-width: 32em;
  margin: 16px auto 0;
  color: var(--on-dark-muted);
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px var(--gutter) 96px;
}
.legal h1 { color: var(--white); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.legal-updated { margin-top: 10px; color: var(--on-dark-muted); font-size: .9375rem; }
.legal h2 {
  margin-top: 40px;
  color: var(--white);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.legal p,
.legal li { color: var(--on-dark-muted); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal a { color: var(--white); text-underline-offset: 4px; }

/* 14. Responsivo e movimento reduzido ===================================== */

@media (min-width: 768px) {
  body { font-size: 1.125rem; }
}

@media (max-width: 1079px) {
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    margin: 0;
    padding: 8px var(--gutter) 28px;
    overflow-y: auto;
    background: #08172C;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: 15px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
    font-size: 1.1875rem;
  }
  .nav-list a:hover { background: none; color: var(--cyan); }
  .nav-cta-mobile { display: block; margin-top: 20px; }
  .nav-cta-mobile .btn { width: 100%; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stack { height: clamp(320px, 78vw, 520px); margin-top: 8px; }
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-visual { max-width: 720px; }
}

@media (max-width: 999px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps::before { display: none; }
}

@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 859px) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .offer-plus {
    position: relative;
    left: auto;
    top: auto;
    justify-self: center;
    margin: -10px 0;
    transform: none;
  }
}

@media (max-width: 759px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 559px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand { font-size: 1.0625rem; }
  .brand-mark { width: 34px; height: 34px; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .next-card .btn { width: 100%; }
  .contact-link { grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; padding: 16px; }
  .contact-icon { width: 48px; height: 48px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
