/* =========================================================
   Sites Institucionais — Landing page
   Identidade: azul institucional #1a4fb4, dourado #f2c14e,
   fundo #f5f7fb. Títulos em Bricolage Grotesque, texto em Inter.
   ========================================================= */

:root {
  --blue-950: #071a3d;
  --blue-900: #0b2557;
  --blue-800: #10307a;
  --blue: #1a4fb4;
  --blue-500: #2f6fe0;
  --blue-100: #d8e4fa;
  --blue-50: #edf3fe;

  --gold: #f2c14e;
  --gold-600: #d9a12a;
  --gold-soft: #fdf3da;

  --ink: #0f1a33;
  --text: #3a4560;
  --muted: #67728a;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e1e6ef;
  --line-soft: #ebeff6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(15, 24, 46, 0.06), 0 2px 8px rgba(15, 24, 46, 0.04);
  --shadow: 0 18px 40px -18px rgba(11, 37, 87, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(11, 37, 87, 0.4), 0 12px 24px -12px rgba(11, 37, 87, 0.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  --container: 1220px;
  --pad: clamp(20px, 4vw, 32px);
  --header-h: 74px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--ink); letter-spacing: -0.03em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.25);
}
.eyebrow-light { color: var(--gold); }

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  max-width: 18ch;
}
.section-title em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(transparent 62%, rgba(242, 193, 78, 0.55) 62%, rgba(242, 193, 78, 0.55) 92%, transparent 92%);
  padding: 0 0.06em;
}
.section-lead {
  margin-top: 16px;
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head.center .section-title { max-width: 20ch; }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn i { font-size: 1.2em; transition: transform 0.3s var(--ease-out); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(26, 79, 180, 0.7);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}
.btn-whatsapp {
  background: #25d366;
  color: #04260f;
  box-shadow: 0 14px 34px -12px rgba(37, 211, 102, 0.7);
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .ph-arrow-right { transform: translateX(4px); }
  .btn-primary:hover { background: var(--blue-800); box-shadow: 0 18px 34px -14px rgba(26, 79, 180, 0.8); }
  .btn-ghost:hover { border-color: var(--blue); background: #fff; }
  .btn-whatsapp:hover { background: #33e077; }
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.brand img { border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand small {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--blue);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.main-nav a:hover,
.main-nav a.is-current { color: var(--blue); background: var(--blue-50); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ---------- Animações de entrada ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.intro {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 100ms);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  --hp: 0;
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 90px));
  padding-bottom: clamp(60px, 10vh, 110px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.b-1 { width: 720px; height: 720px; right: -220px; top: -160px; background: radial-gradient(circle, #c7d8fb, transparent 65%); translate: 0 calc(var(--hp) * 120px); }
.b-2 { width: 560px; height: 560px; left: -220px; top: 300px; background: radial-gradient(circle, #fbe4a8, transparent 65%); translate: 0 calc(var(--hp) * -80px); }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 79, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 79, 180, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(calc(var(--hp) * -50px));
  opacity: calc(1 - var(--hp) * 0.8);
}
.hero-title {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.hero-title .line { display: block; }
.hero-title mark {
  position: relative;
  background: none;
  color: var(--blue);
  white-space: nowrap;
}
.hero-title mark::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.26em;
  z-index: -1;
  border-radius: 6px;
  background: var(--gold);
  transform-origin: left;
  animation: underline 0.9s var(--ease-out) 1s both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Palco com telas reais */
@keyframes stage-in {
  from { opacity: 0; transform: translateY(90px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.hero-stage {
  position: relative;
  width: min(1120px, 90vw);
  margin: clamp(48px, 8vh, 80px) auto 0;
  perspective: 1800px;
  opacity: 0;
  animation: stage-in 1.3s var(--ease-out) 0.6s forwards;
}
.stage-inner {
  position: relative;
  transform-origin: 50% 0%;
  transform:
    rotateX(calc((1 - var(--hp)) * 18deg))
    scale(calc(0.88 + var(--hp) * 0.14))
    translateY(calc(var(--hp) * -24px));
  will-change: transform;
}

.browser {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #eef1f6;
  border-bottom: 1px solid var(--line-soft);
}
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e4; flex: none; }
.browser-bar > span:first-child { background: #f08b7d; }
.browser-bar > span:nth-child(2) { background: #f2c14e; }
.browser-bar > span:nth-child(3) { background: #6cc49a; }
.browser-bar p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  max-width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-18px);
}
.browser-bar p i { color: var(--blue-500); }
.browser img { width: 100%; }

.frame-main { position: relative; z-index: 2; }
.frame-side {
  position: absolute;
  top: 9%;
  width: 58%;
  z-index: 1;
  opacity: calc(0.95 - var(--hp) * 0.7);
  filter: saturate(0.85);
}
.frame-left {
  left: -10%;
  transform: translateX(calc(var(--hp) * -18%)) rotate(-4deg);
}
.frame-right {
  right: -10%;
  transform: translateX(calc(var(--hp) * 18%)) rotate(4deg);
}

/* celular */
@keyframes bob { 50% { translate: 0 -10px; } }
.phone {
  position: absolute;
  padding: 7px;
  border-radius: 30px;
  background: #0f1420;
  box-shadow: var(--shadow-lg);
}
.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 38px;
  height: 9px;
  margin-left: -19px;
  border-radius: 999px;
  background: #0f1420;
  z-index: 2;
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 19;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.phone-screen img {
  width: 100%;
  animation: phone-scroll 18s ease-in-out infinite alternate;
}
@keyframes phone-scroll {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(calc(-100% + 100cqh)); }
}
.phone-screen { container-type: size; }

.hero-phone {
  right: 2%;
  bottom: -12%;
  width: clamp(110px, 15vw, 190px);
  z-index: 3;
  transform: translateY(calc(var(--hp) * -90px)) rotate(4deg);
}

/* selos flutuantes */
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.chip i { font-size: 1.1rem; color: var(--blue); }
.chip-1 { left: -3%; top: 16%; animation-delay: -1s; }
.chip-2 { left: 6%; bottom: 6%; animation-delay: -3s; }
.chip-3 { right: 22%; top: -4%; animation-delay: -5s; }
.chip-3 i { color: var(--gold-600); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  opacity: calc(1 - var(--hp) * 4);
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--blue);
  animation: hint 1.8s ease infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}


/* ---------- Mockup do site (seção Personalize) ---------- */

.mock {
  --sp: #1a4fb4;
  --sp-dark: #0b2557;
  --sa: #f2c14e;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.35;
  color: #2a3347;
}
.mock[data-theme="verde"] { --sp: #0d5c46; --sp-dark: #08382b; --sa: #f2c14e; }
.mock[data-theme="vinho"] { --sp: #8a1f3d; --sp-dark: #5c1229; --sa: #e9c46a; }
.mock[data-theme="grafite"] { --sp: #2b3440; --sp-dark: #171d25; --sa: #4fc3a1; }


.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #eef1f6;
  border-bottom: 1px solid var(--line-soft);
}
.mock-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e4; }
.mock-bar > span:first-child { background: #f08b7d; }
.mock-bar > span:nth-child(2) { background: #f2c14e; }
.mock-bar > span:nth-child(3) { background: #6cc49a; }
.mock-bar p {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  color: var(--muted);
  max-width: 70%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateX(-18px);
}
.mock-bar p i { color: var(--blue-500); }

.ms-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sp);
  color: #fff;
  transition: background-color 0.4s ease;
}
.ms-crest {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--sp);
  font-size: 18px;
  box-shadow: 0 0 0 3px var(--sa);
  transition: color 0.4s ease, box-shadow 0.4s ease;
}
.ms-name strong { display: block; font-size: 13px; font-family: var(--head); letter-spacing: -0.01em; }
.ms-name small { font-size: 10px; opacity: 0.8; }
.ms-a11y {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}
.ms-nav {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  background: var(--sp-dark);
  overflow: hidden;
  white-space: nowrap;
  transition: background-color 0.4s ease;
}
.ms-nav span { padding: 8px 8px; font-size: 10.5px; color: rgba(255, 255, 255, 0.78); }
.ms-nav span.on { color: #fff; box-shadow: inset 0 -2px 0 var(--sa); }

.ms-hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 10px;
  padding: 14px 16px 10px;
}
.ms-news {
  position: relative;
  min-height: 118px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.55)),
    linear-gradient(135deg, color-mix(in srgb, var(--sp) 70%, #fff) 0%, var(--sp) 55%, var(--sp-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.ms-news::before {
  /* ilustração simples de um prédio público */
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 70px;
  height: 46px;
  opacity: 0.22;
  background:
    linear-gradient(#fff, #fff) 0 100% / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 16px) 4px 10px / 62px 28px no-repeat,
    conic-gradient(from 135deg at 50% 0, #fff 0 90deg, transparent 90deg) 0 0 / 100% 12px no-repeat;
}
.ms-news em {
  align-self: flex-start;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sa);
  color: #1b1b1b;
}
.ms-news b { font-size: 12.5px; line-height: 1.25; max-width: 26ch; }
.ms-lines { display: grid; gap: 4px; }
.ms-lines i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.4); }
.ms-lines i:last-child { width: 60%; }

.ms-count {
  padding: 12px;
  border-radius: 12px;
  background: #f3f6fb;
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ms-count small { font-size: 10px; font-weight: 600; color: var(--muted); }
.ms-timer { display: flex; gap: 5px; }
.ms-timer span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 8px;
  background: var(--sp);
  color: #fff;
  font-size: 8.5px;
  transition: background-color 0.4s ease;
}
.ms-timer b { font-family: var(--head); font-size: 16px; line-height: 1.1; }

.ms-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 16px 12px;
}
.ms-info span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
}
.ms-info i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--sp) 12%, #fff);
  color: var(--sp);
  font-size: 15px;
  transition: color 0.4s ease, background-color 0.4s ease;
}
.ms-people { padding: 10px 16px 16px; border-top: 1px solid var(--line-soft); }
.ms-people small { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.ms-people > div { display: flex; gap: 14px; margin-top: 8px; }
.av { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.av i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  color: var(--sp);
  background: linear-gradient(135deg, #eef2f8, #dde4ef);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--sa);
}
.av em { font-style: normal; font-size: 9px; color: var(--muted); }

/* ---------- Faixa de clientes ---------- */
.marquee {
  position: relative;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-track i { color: var(--blue); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  padding: clamp(110px, 16vh, 180px) 0;
  overflow: hidden;
}
.manifesto-layers { position: absolute; inset: 0; pointer-events: none; }
.ml {
  position: absolute;
  color: var(--blue);
  opacity: 0.06;
  will-change: transform;
}
.ml-1 { font-size: clamp(180px, 26vw, 360px); right: -4%; top: 4%; }
.ml-2 { font-size: clamp(110px, 14vw, 200px); left: -3%; bottom: 6%; color: var(--gold-600); opacity: 0.1; }
.ml-3 { font-size: clamp(80px, 9vw, 140px); left: 44%; top: -2%; }

.manifesto .container { position: relative; }
.manifesto-kicker {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
}
.manifesto-kicker.accent { margin-top: 36px; text-align: right; color: var(--blue); }
.manifesto-text {
  margin-top: 26px;
  max-width: 1100px;
  font-family: var(--head);
  font-size: clamp(1.8rem, 4.4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.manifesto-text .w { opacity: 0.14; transition: opacity 0.4s ease; }
.manifesto-text .w.on { opacity: 1; }

/* ---------- Scrollytelling ---------- */
.story {
  position: relative;
  padding: clamp(90px, 13vh, 140px) 0 clamp(60px, 10vh, 110px);
  background:
    radial-gradient(900px 500px at 15% 30%, rgba(47, 111, 224, 0.35), transparent 60%),
    radial-gradient(700px 400px at 95% 90%, rgba(242, 193, 78, 0.12), transparent 60%),
    var(--blue-950);
  color: rgba(255, 255, 255, 0.78);
}
.story .section-title { color: #fff; max-width: 20ch; }
.story .section-title em { color: var(--gold); background: none; }
.story .section-lead { color: rgba(255, 255, 255, 0.66); }
.story-head { margin-bottom: clamp(20px, 5vh, 50px); }

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: calc(var(--header-h) + 3vh);
  height: calc(100vh - var(--header-h) - 6vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}
.story-frame { position: relative; perspective: 1400px; }
.story-browser {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 50%;
  transition: transform 1s var(--ease-out);
}

/* janela que reenquadra a página inteira */
.viewport {
  --tx: 0%;
  --ty: 0%;
  --z: 1;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}
.viewport img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  transform-origin: 0 0;
  transform: translate(var(--tx), var(--ty)) scale(var(--z));
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}
.focus-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 26, 61, 0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.focus-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(242, 193, 78, 0.6);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(242, 193, 78, 0); } }
.focus-tag.is-swapping { opacity: 0; transform: translateY(8px); }

/* inclinação da tela em cada etapa */
.story-frame[data-step="0"] .story-browser { transform: rotateY(-8deg) rotateX(4deg) scale(0.96); }
.story-frame[data-step="1"] .story-browser { transform: none; }
.story-frame[data-step="2"] .story-browser { transform: rotateY(7deg) rotateX(2deg) scale(0.98); }
.story-frame[data-step="3"] .story-browser { transform: scale(1.02); }
.story-frame[data-step="4"] .story-browser { transform: rotateY(-5deg) translateX(-4%) scale(0.92); }

.story-phone {
  right: -3%;
  bottom: -10%;
  width: 24%;
  z-index: 3;
  opacity: 0;
  transform: translateY(60px) rotate(8deg);
  transition: opacity 0.6s ease, transform 1s var(--ease-out);
}
.story-frame[data-step="4"] .story-phone { opacity: 1; transform: rotate(4deg); }

.story-progress { display: flex; flex-wrap: wrap; gap: 8px; }
.story-progress li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.story-progress li span { font-size: 0.7rem; transition: color 0.4s ease; }
.story-progress li.is-active { color: #fff; border-color: rgba(242, 193, 78, 0.6); background: rgba(242, 193, 78, 0.12); }
.story-progress li.is-active span { color: var(--gold); }

.story-steps { padding-bottom: 12vh; }
.step {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.25;
  transform: translateX(16px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease-out);
}
.step.is-active { opacity: 1; transform: none; }
.step-num {
  font-family: var(--head);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.04em;
}
.step h3 { margin-top: 12px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.08; color: #fff; }
.step p { margin-top: 14px; font-size: 1.04rem; max-width: 46ch; }
.step-points { margin-top: 22px; display: grid; gap: 10px; }
.step-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #fff; }
.step-points i {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-size: 1.05rem;
}
.step-media { display: none; }


/* ---------- Recursos ---------- */
.features {
  padding: clamp(90px, 13vh, 140px) 0;
  background: #fff;
  border-block: 1px solid var(--line);
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: opacity 0.8s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.card.is-visible:hover {
  transform: translateY(-5px);
  background: #fff;
  border-color: var(--blue-100);
  box-shadow: var(--shadow);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.5s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: var(--gold); color: var(--ink); }
.card h3 { font-size: 1.2rem; line-height: 1.2; }
.card p { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }

.card-tall { grid-row: span 2; }
.card-wide { grid-column: span 2; }
.card-count { grid-column: span 1; }

.people-demo { display: grid; gap: 8px; margin-top: 22px; }
.pd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out);
}
.card-tall:hover .pd-row:nth-child(1) { transform: translateX(4px); }
.card-tall:hover .pd-row:nth-child(2) { transform: translateX(8px); transition-delay: 0.04s; }
.card-tall:hover .pd-row:nth-child(3) { transform: translateX(12px); transition-delay: 0.08s; }
.card-tall:hover .pd-row:nth-child(4) { transform: translateX(16px); transition-delay: 0.12s; }
.pd-av {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--h) 45% 42%);
}
.pd-row b { display: block; font-size: 0.85rem; color: var(--ink); line-height: 1.2; }
.pd-row small { font-size: 0.75rem; color: var(--muted); }

.count-demo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.count-demo span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  border-radius: 12px;
  background: var(--blue-900);
  color: #fff;
}
.count-demo b { font-family: var(--head); font-size: 1.35rem; line-height: 1; font-variant-numeric: tabular-nums; }
.count-demo small { margin-top: 4px; font-size: 0.66rem; opacity: 0.75; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip-row span {
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip-row span:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* demo de acessibilidade */
.card-a11y { --fs: 0.95rem; }
.card-a11y .a11y-sample { font-size: var(--fs); transition: font-size 0.25s ease; }
.a11y-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.a11y-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.a11y-tools button:hover { border-color: var(--blue); }
.a11y-tools button[aria-pressed="true"] { background: #000; color: #ffd600; border-color: #000; }
.card-a11y.is-contrast { background: #000; border-color: #000; }
.card-a11y.is-contrast h3 { color: #ffd600; }
.card-a11y.is-contrast p { color: #fff; }
.card-a11y.is-contrast .card-icon { background: #ffd600; color: #000; }
.card-a11y.is-contrast .a11y-tools button { background: #000; color: #fff; border-color: #fff; }
.card-a11y.is-contrast .a11y-tools button[aria-pressed="true"] { color: #ffd600; border-color: #ffd600; }

/* demo do painel */
.card-admin {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}
.admin-demo {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
}
.ad-head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.ad-head i { color: var(--blue); font-size: 1.1rem; }
.ad-field { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-soft); margin-bottom: 7px; }
.ad-field small { display: block; font-size: 0.66rem; color: var(--muted); }
.ad-field span { display: block; color: var(--ink); font-weight: 500; min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing::after { content: "|"; color: var(--blue); animation: blink 1s steps(2) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ad-file { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.ad-file i { color: #c9675d; font-size: 1rem; }
.ad-btn { padding: 6px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }

/* ---------- Transparência ---------- */
.transp {
  position: relative;
  padding: clamp(90px, 13vh, 140px) 0;
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(242, 193, 78, 0.14), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(47, 111, 224, 0.35), transparent 60%),
    var(--blue-950);
  color: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.transp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.transp .section-title { color: #fff; }
.transp .section-title em { color: var(--gold); background: none; }
.transp-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 1.06rem; max-width: 52ch; }
.transp-copy .transp-note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}
.transp-note i { color: var(--gold); font-size: 1.2rem; flex: none; margin-top: 2px; }

.checklist {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.cl-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.cl-head strong { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
.cl-head small { color: var(--muted); font-size: 0.85rem; }
.ring { position: relative; flex: none; width: 84px; height: 84px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--blue-50); }
.ring-fg {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--progress, 0) * 100);
  transition: stroke-dashoffset 0.4s ease;
}
.ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-size: 1.2rem;
  color: var(--ink);
}
.checklist ul { display: grid; gap: 4px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 6px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.4s ease, background-color 0.4s ease;
}
.checklist li i {
  font-size: 1.35rem;
  color: var(--line);
  transform: scale(0.7);
  transition: color 0.4s ease, transform 0.5s var(--ease-out);
}
.checklist li.is-on { color: var(--ink); }
.checklist li.is-on i { color: var(--blue); transform: none; }


/* camadas decorativas da transparência */
.transp-layers { position: absolute; inset: 0; pointer-events: none; }
.tl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 78, 0.18);
  will-change: transform;
}
.r-1 { width: 520px; height: 520px; right: -140px; top: -160px; }
.r-2 { width: 340px; height: 340px; left: -120px; bottom: -120px; border-color: rgba(255, 255, 255, 0.08); }
.transp .container { position: relative; }

/* microinterações de links */
.footer-inner nav a, .footer-inner > p a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease-out), color 0.25s ease;
}
.footer-inner nav a:hover, .footer-inner nav a:focus-visible { background-size: 100% 1.5px; }
.client:active, .main-nav a:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 999px; }
.btn:focus-visible .ph-arrow-right, .btn:focus-visible .ph-arrow-down { transform: translateX(4px); }
@media (hover: hover) {
  .btn:hover .ph-arrow-down { transform: translateY(3px); }
}

/* ---------- Personalize ---------- */
.builder { padding: clamp(40px, 6vh, 64px) 0 clamp(90px, 13vh, 140px); }
.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.builder-form {
  margin-top: 30px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.field { border: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.field-row { display: flex; gap: 8px; }
.field input[type="text"], .field select {
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input[type="text"] { flex: 1; min-width: 0; }
.field select { width: 84px; cursor: pointer; }
.field input[type="text"]:focus, .field select:focus { outline: none; border-color: var(--blue); background: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 500; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.swatches em { font-style: normal; }
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); transform: scale(1.05); }
.swatches input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 5px; }
.builder-form .btn { justify-self: start; }

.builder-preview .mock { transform: none; }

/* ---------- Como funciona ---------- */
.process {
  padding: clamp(90px, 13vh, 140px) 0;
  background: #fff;
  border-block: 1px solid var(--line);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 16px);
}
.steps li {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--line-soft);
}
.s-num {
  position: absolute;
  right: 22px;
  top: 18px;
  font-family: var(--head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
}
.steps li > i {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 1.7rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.steps h3 { margin-top: 20px; font-size: 1.2rem; }
.steps p { margin-top: 8px; font-size: 0.94rem; color: var(--muted); }

/* ---------- Clientes ---------- */
.clients { padding: clamp(90px, 13vh, 140px) 0 clamp(40px, 6vh, 64px); }
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.client {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
}
.client:hover, .client:focus-visible {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.c-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 2px var(--blue-100);
}
.client-pref .c-icon { background: var(--gold-soft); color: var(--gold-600); box-shadow: inset 0 0 0 2px #f3dc9c; }
.c-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.c-text small { font-size: 0.74rem; color: var(--muted); }
.c-text strong { font-family: var(--head); font-size: 1.2rem; color: var(--ink); margin-top: 2px; }
.c-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--blue-500);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.c-go { margin-left: auto; flex: none; font-size: 1.2rem; color: var(--muted); transition: transform 0.3s var(--ease-out), color 0.3s ease; }
.client:hover .c-go { transform: translate(3px, -3px); color: var(--blue); }
.clients-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.clients-note i { color: var(--gold-600); font-size: 1.2rem; }

.clients .section-head { margin-bottom: clamp(30px, 5vh, 48px); }
.gallery {
  overflow: hidden;
  padding: 10px 0 50px;
  margin-bottom: clamp(30px, 5vh, 50px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gallery-track {
  --sp: 0;
  display: flex;
  gap: clamp(16px, 2.5vw, 32px);
  width: max-content;
  padding: 0 8vw;
  transform: translateX(calc(var(--sp) * -1 * var(--strip-shift, 400px)));
  will-change: transform;
}
.shot {
  display: block;
  width: clamp(260px, 30vw, 440px);
  flex: none;
}
.shot:nth-child(even) { margin-top: 40px; }
.shot .browser {
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}
.shot .browser-bar { height: 24px; }
.shot .browser-bar > span { width: 7px; height: 7px; }
.shot-cap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.4s var(--ease-out), color 0.3s ease;
}
.shot-cap i { transition: transform 0.3s var(--ease-out); }
.shot:hover .browser, .shot:focus-visible .browser { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { background-size: 100% 3px; color: var(--blue); }
.shot:hover .shot-cap i, .shot:focus-visible .shot-cap i { transform: translate(3px, -3px); }
.shot:active .browser { transform: scale(0.98); }


/* ---------- Dúvidas ---------- */
.faq {
  padding: clamp(90px, 13vh, 140px) 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.faq details[open] { background: #fff; border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(90px, 13vh, 130px); background: #fff; }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 320px at 85% 15%, rgba(242, 193, 78, 0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(47, 111, 224, 0.45), transparent 60%),
    linear-gradient(135deg, var(--blue-800) 0%, var(--blue-950) 100%);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}
.cta-box::before {
  /* linhas finas de fundo */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 80% at 20% 50%, #000, transparent 75%);
  pointer-events: none;
}
.cta-copy, .wa-card { position: relative; }
.cta-copy h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3.3rem); color: #fff; line-height: 1.04; max-width: 16ch; }
.cta-copy h2 em { font-style: normal; color: var(--gold); }
.cta-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; max-width: 44ch; }
.cta-points { display: grid; gap: 12px; margin-top: 26px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.cta-points i { color: var(--gold); font-size: 1.2rem; }

.wa-card {
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
  transition: transform 0.6s var(--ease-out);
}
.wa-card:hover, .wa-card:focus-within { transform: none; }
.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.wa-avatar img { width: 44px; height: 44px; border-radius: 50%; }
.wa-head strong { display: block; font-family: var(--head); font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.wa-head small { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.online { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
.wa-logo { margin-left: auto; font-size: 1.7rem; color: #25d366; }

.wa-chat {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: #eef1f6;
}
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.bubble.in { background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.bubble.out { justify-self: end; background: #d9fdd3; color: #14361f; border-bottom-right-radius: 4px; }
.cta-box.is-visible .bubble { opacity: 1; transform: none; }
.cta-box.is-visible .bubble.in { transition-delay: 0.45s; }
.cta-box.is-visible .bubble.out { transition-delay: 1s; }
.wa-note { margin-top: 12px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 40px;
  align-items: center;
}
.footer-inner > p { color: var(--muted); font-size: 0.92rem; }
.footer-inner > p a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner nav a { font-size: 0.92rem; color: var(--text); }
.footer-inner nav a:hover { color: var(--blue); }
.footer-inner > small { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }

/* ---------- CTA fixo no celular ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  transform: translateY(150%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-cta .btn { box-shadow: 0 16px 40px -10px rgba(11, 37, 87, 0.6); }
.mobile-cta.is-visible { transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-tall { grid-row: span 2; }
  .card-admin { grid-column: span 2; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--pad) 20px;
    background: rgba(245, 247, 251, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 4px; border-radius: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a:hover, .main-nav a.is-current { background: none; }
  .site-header:has(.main-nav.is-open) { background: rgba(245, 247, 251, 0.98); }

  /* Scrollytelling vira blocos verticais */
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-sticky { display: none; }
  .story-steps { padding-bottom: 0; display: grid; gap: 64px; }
  .step { min-height: 0; opacity: 1; transform: none; }
  .step.reveal { opacity: 0; transform: translateY(28px); }
  .step.reveal.is-visible { opacity: 1; transform: none; }
  .step-media {
    display: block;
    margin-top: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  }
  .step-media img { transition-duration: 1.4s; }

  .transp-grid, .builder-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
  .wa-card { transform: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 70px; }
  .hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 3rem); text-wrap: balance; }
  .hero-title .line { display: inline; }
  .hero-title .line::after { content: " "; }
  .hero-title mark { display: inline-block; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; white-space: normal; }
  .hero-stage { width: 100%; padding-inline: 14px; }
  .frame-side { display: none; }
  .hero-phone { width: 74px; right: 2%; bottom: -22%; border-radius: 18px; padding: 4px; }
  .hero-phone .phone-screen { border-radius: 14px; }
  .hero-phone::before { display: none; }
  .browser-bar { height: 26px; padding: 0 10px; }
  .browser-bar > span { width: 7px; height: 7px; }
  .browser-bar p { font-size: 0.6rem; }
  .chip { font-size: 0.7rem; padding: 6px 10px; }
  .chip-1 { left: 2%; top: -6%; }
  .chip-2 { left: 4%; bottom: -12%; }
  .chip-3 { display: none; }

  .manifesto-kicker.accent { text-align: left; }
  .ml { opacity: 0.04; }

  .mock { font-size: 11px; }
  .ms-hero { grid-template-columns: 1fr; }
  .ms-count { display: none; }
  .ms-info { grid-template-columns: repeat(2, 1fr); }
  .ms-nav span:nth-child(n + 4) { display: none; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-tall, .card-wide, .card-admin { grid-column: auto; grid-row: auto; }
  .card-admin { grid-template-columns: minmax(0, 1fr); }
  .client-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .shot { width: 72vw; }
  .shot:nth-child(even) { margin-top: 24px; }
  .cta-box .btn { white-space: normal; }
  .cta-box { padding: 28px 20px; }
}


/* Telas estreitas (320–400px) */
@media (max-width: 400px) {
  :root { --pad: 16px; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 32px; height: 32px; }
  .hero .eyebrow { font-size: 0.6rem; }
  .hero-lead { font-size: 0.95rem; }
  .btn-lg { padding: 14px 18px; font-size: 0.93rem; }
  .section-title { font-size: clamp(1.75rem, 9vw, 2.1rem); }
  .manifesto-text { font-size: 1.55rem; }
  .builder-form { padding: 18px; }
  .field select { width: 70px; padding: 0 8px; }
  .swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 22px 18px; }
  .admin-demo { padding: 12px; }
  .count-demo b { font-size: 1.15rem; }
  .client { padding: 14px; gap: 12px; }
  .c-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .steps li { padding: 22px 18px; }
  .faq summary { padding: 16px; font-size: 0.95rem; }
  .faq details p { padding: 0 16px 16px; }
  .checklist { padding: 20px 16px; }
  .cl-head { gap: 12px; }
  .ring { width: 64px; height: 64px; }
  .wa-chat { padding: 14px 10px; }
  .bubble { font-size: 0.86rem; }
  .chip-1 { font-size: 0.64rem; }
  .chip-2 { display: none; }
  .wa-head strong { font-size: 0.95rem; }
  .wa-avatar img { width: 38px; height: 38px; }
  .cl-head strong { font-size: 1rem; }
  .checklist li { font-size: 0.92rem; padding: 7px 4px; }
}

/* =========================================================
   Movimento reduzido: conteúdo disponível de imediato
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .intro, .hero-stage, .reveal, .step, .step.reveal { opacity: 1 !important; transform: none !important; }
  .hero { --hp: 0.6 !important; }
  .hero-copy { transform: none !important; opacity: 1 !important; }
  .stage-inner, .frame-left, .frame-right, .hero-phone { transform: none !important; }
  .frame-side { opacity: 0.9 !important; }
  .phone-screen img { animation: none !important; transform: none !important; }
  .manifesto-text .w { opacity: 1 !important; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
  .gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gallery-track { transform: none !important; }
  .typing::after { display: none; }
  .bubble { opacity: 1 !important; transform: none !important; }
  .scroll-hint { display: none; }
  .btn:hover, .btn:active, .card.is-visible:hover, .client:hover { transform: none !important; }
}
