/* ==========================================================
   CHIBO DEVELOPER · PORTFOLIO
   Design system: técnico/editorial · Lime accent · Dark/Light
   ========================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Tokens ----- */
:root {
  /* Lime accents calibrados para cada tema */
  --lime-bright: #C0FF3E;
  --lime-soft: #9FE000;
  --lime-deep: #6B8F00;

  /* Borders, radius, etc */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Tema escuro (default) ----- */
[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-elev: #131313;
  --bg-elev-2: #1A1A1A;
  --text: #F4F4F4;
  --text-soft: #A8A8A8;
  --text-mute: #6E6E6E;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --accent: var(--lime-bright);
  --accent-text: #0A0A0A;
  --accent-soft: rgba(192, 255, 62, 0.08);

  --grid-line: rgba(255,255,255,0.04);
  --noise-opacity: 0.04;
}

/* ----- Tema claro ----- */
[data-theme="light"] {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-elev-2: #F2F1EC;
  --text: #0A0A0A;
  --text-soft: #555;
  --text-mute: #888;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.18);
  --accent: var(--lime-deep);
  --accent-text: #FAFAF7;
  --accent-soft: rgba(107, 143, 0, 0.10);

  --grid-line: rgba(0,0,0,0.04);
  --noise-opacity: 0.02;
}

/* ----- Tipografia ----- */
.mono {
  font-family: 'Geist Mono', monospace;
}

/* ----- Layout base ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

/* ----- Section head ----- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 0;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head--inline { margin-bottom: 24px; }

.section-head__num {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}

.section-head__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-head__sub {
  grid-column: 2;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 520px;
  margin-top: 8px;
}

/* ============================================== */
/* HEADER                                          */
/* ============================================== */
/* ============================================== */
/* TRANSIÇÃO ENTRE PÁGINAS (View Transitions API)  */
/* ============================================== */
/* Cross-fade nativo entre páginas do mesmo domínio. Progressive enhancement:
   navegadores sem suporte apenas navegam, sem animação (URL, voltar, SEO e
   links seguem normais). O header e o botão de WhatsApp recebem
   view-transition-name para ficarem ESTÁVEIS enquanto só o conteúdo faz o fade. */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .32s;
  animation-timing-function: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, padding .3s ease;
  view-transition-name: site-header;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: 'Geist', sans-serif;
  justify-self: start;
}
.logo__dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  justify-self: center;
}
.nav a {
  color: var(--text-soft);
  position: relative;
  transition: color .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.header__actions .lang-toggle,
.header__actions .theme-toggle,
.header__actions .btn--sm {
  height: 36px;
}

/* Lang toggle */
.lang-toggle {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--border-strong); }
.lang-toggle__opt {
  color: var(--text-mute);
  font-weight: 400;
  transition: color .2s ease, font-weight .2s ease;
}
.lang-toggle__opt.is-active {
  color: var(--text);
  font-weight: 500;
}
.lang-toggle__sep {
  color: var(--text-mute);
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  transition: border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle__icon {
  width: 16px; height: 16px;
  position: absolute;
  transition: opacity .3s ease, transform .3s ease;
}
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="light"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0); }

/* ============================================== */
/* BUTTONS                                         */
/* ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Geist', sans-serif;
  border-radius: var(--radius-sm);
  transition: all .25s var(--ease);
  cursor: pointer;
  letter-spacing: -0.005em;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px var(--accent-soft);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--bg-elev);
  border-color: var(--text);
}

/* ============================================== */
/* HERO                                            */
/* ============================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  animation: gridShift 30s linear infinite;
}

/* Glow lime que pulsa sutilmente no fundo */
.hero__glow {
  position: absolute;
  width: 800px;
  height: 800px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.6;
  animation: glowPulse 6s ease-in-out infinite;
}

/* Marquee de palavras-chave atravessando o fundo */
.hero__marquee {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%) rotate(-3deg);
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  opacity: 0.035;
}
.hero__marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: -0.04em;
  color: var(--text);
  animation: marquee 40s linear infinite;
}
.hero__marquee-track span {
  display: inline-block;
}

/* Pills flutuantes decorativas */
.hero__pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-pill {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-soft);
  white-space: nowrap;
  opacity: 0;
  animation: pillIn 0.7s ease-out both, pillSway 5s ease-in-out infinite;
}
.hero-pill--1 {
  top: 18%; right: 6%;
  animation-delay: 0.8s, -0.4s;
  animation-duration: 0.7s, 4.8s;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hero-pill--2 {
  top: 32%; right: 12%;
  animation-delay: 1.1s, -2.2s;
  animation-duration: 0.7s, 5.4s;
}
.hero-pill--3 {
  bottom: 28%; right: 8%;
  animation-delay: 1.4s, -1.1s;
  animation-duration: 0.7s, 4.4s;
}
.hero-pill--4 {
  top: 22%; left: 4%;
  animation-delay: 1.7s, -3s;
  animation-duration: 0.7s, 5.6s;
}
.hero-pill--5 {
  top: 48%; left: 6%;
  animation-delay: 2s, -1.7s;
  animation-duration: 0.7s, 5.1s;
}
.hero-pill--6 {
  bottom: 22%; left: 7%;
  animation-delay: 2.3s, -0.6s;
  animation-duration: 0.7s, 4.7s;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.hero-pill--7 {
  bottom: 11%; right: 14%;
  animation-delay: 2.6s, -2.8s;
  animation-duration: 0.7s, 5.3s;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 32px;
  animation: fadeInUp .8s var(--ease) both;
  background: var(--bg-elev);
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__word {
  display: inline-block;
  animation: revealWord 1s var(--ease) both;
}
.hero__line--1 .hero__word { animation-delay: .2s; }
.hero__line--2 .hero__word { animation-delay: .4s; }
.hero__em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  animation: revealWord 1s var(--ease) .6s both;
}
.hero__em::after {
  content: '';
  position: absolute;
  bottom: 0.05em; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0.35;
  transform-origin: left;
  transform: scaleX(0);
  animation: slideInRight 1s var(--ease) 1.4s forwards;
}
.hero__dot {
  color: var(--accent);
  animation: revealWord 1s var(--ease) .7s both, dotBlink 1.5s ease-in-out 2s infinite;
  display: inline-block;
}

.hero__sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-soft);
  max-width: 580px;
  margin-bottom: 48px;
  animation: fadeInUp .8s var(--ease) .8s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeInUp .8s var(--ease) .9s both;
  margin-bottom: 64px;
}

/* Hero stats no rodapé */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 32px;
  max-width: 580px;
  animation: fadeInUp .8s var(--ease) 1.1s both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat__num {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.hero-stat__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-stat__sep {
  width: 1px; height: 36px;
  background: var(--border);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp .8s var(--ease) 1.4s both;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-mute) 50%, transparent);
  position: relative;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}

/* ============================================== */
/* LOGOS                                           */
/* ============================================== */
.logos {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos__title {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 32px;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
}
.logo-placeholder {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-mute);
  padding: 12px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  transition: all .3s ease;
}
.logo-placeholder:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ----- Logos de clientes (imagens PNG) ----- */
.logo-img {
  height: auto;
  max-height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  opacity: .95;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.logo-img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (min-width: 900px) {
  .logos__row {
    flex-wrap: nowrap;
    gap: clamp(16px, 2.5vw, 40px);
  }
  .logo-img {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}
/* Troca de logo por tema (claro/escuro) */
[data-theme="dark"] .logo-img--light { display: none; }
[data-theme="light"] .logo-img--dark { display: none; }

/* ============================================== */
/* SERVICES                                        */
/* ============================================== */
.services {
  position: relative;
  overflow: hidden;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service {
  padding: clamp(24px, 4vw, 48px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background-color .4s var(--ease), transform .4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Highlight no hover: linha lime que cresce em diagonal */
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}

.service:hover {
  background: var(--bg-elev);
}
.service:hover::before {
  transform: scaleX(1);
}
.service:hover::after {
  opacity: 1;
}
.service:hover .service__num {
  color: var(--accent);
  letter-spacing: 0.2em;
}
.service:hover .service__title {
  transform: translateX(4px);
}
.service:hover .service__tags li {
  border-color: var(--border-strong);
}

.service--featured {
  background: var(--bg-elev);
}
.service--featured::before {
  transform: scaleX(1);
}

/* Estrela animada no service featured */
.service--featured .service__star {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--accent);
  font-size: 14px;
  animation: starSpin 8s linear infinite;
}

.service__num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  transition: color .3s ease, letter-spacing .3s ease;
}

.service__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  transition: transform .4s var(--ease);
}

.service__desc {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 480px;
  position: relative;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  margin-top: auto;
}
.service__tags li {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.05em;
  transition: border-color .3s ease, transform .4s var(--ease);
}
.service:hover .service__tags li:nth-child(1) { transform: translateY(-4px); transition-delay: .07s; }
.service:hover .service__tags li:nth-child(2) { transform: translateY(-4px); transition-delay: .14s; }
.service:hover .service__tags li:nth-child(3) { transform: translateY(-4px); transition-delay: .21s; }

/* ============================================== */
/* WORK                                            */
/* ============================================== */
.work {
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .5s var(--ease);
  cursor: pointer;
  position: relative;
}
.case::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.case:hover {
  transform: translateY(-6px);
}
.case:hover::before {
  opacity: 1;
}
.case--large {
  grid-column: span 2;
}

.case__visual {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.case--large .case__visual {
  aspect-ratio: 21 / 9;
}
.case__modal-source { display: none; }
.browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.browser__dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser__dots i:nth-child(1) { background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__url {
  flex: 1;
  min-width: 0;
  margin-left: 6px;
  background: var(--bg);
  color: var(--text-mute);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__url:empty { display: none; }
.browser__screen {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .6s var(--ease);
}
.case:hover .browser__screen img {
  transform: scale(1.04);
}

/* Bandeira de país no canto */
.case__flag {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 24px;
  z-index: 3;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Bandeira dos EUA em SVG: renderiza igual em qualquer sistema (o emoji de bandeira aparece como "US" no Windows) */
.flag-us { display: block; border-radius: 2px; }
.case__flag .flag-us { width: 26px; height: auto; }
.testimonial__flag { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 3px; }
.testimonial__flag .flag-us { width: 18px; height: auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }


/* ===== Device mockup: laptop + phone ===== */
.device-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
  background: radial-gradient(ellipse at center, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
}

/* Laptop frame */
.device-laptop {
  position: relative;
  width: 78%;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.25));
  transition: transform .8s var(--ease);
}
.case:hover .device-laptop {
  transform: translateY(-4px) scale(1.01);
}
.device-laptop__screen {
  position: relative;
  background: #1a1a1a;
  border-radius: 10px 10px 2px 2px;
  padding: 12px 12px 20px;
  border: 1px solid rgba(0,0,0,0.4);
}
.device-laptop__screen::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: #444;
  border-radius: 50%;
}
.device-laptop__screen > * {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-elev-2);
}
.device-laptop__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.device-laptop__base {
  position: relative;
  width: 110%;
  height: 12px;
  margin-left: -5%;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 0 0 12px 12px;
}
.device-laptop__base::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 18%; height: 4px;
  background: #0a0a0a;
  border-radius: 0 0 6px 6px;
}

/* Phone frame */
.device-phone {
  position: absolute;
  width: 22%;
  max-width: 130px;
  bottom: 12%;
  right: 6%;
  z-index: 2;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.35));
  transition: transform .8s var(--ease);
  background: #0a0a0a;
  border-radius: 18px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.06);
}
.case:hover .device-phone {
  transform: translateY(-6px) rotate(-2deg);
}
.device-phone__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 6px;
  background: #0a0a0a;
  border-radius: 0 0 6px 6px;
  z-index: 3;
}
.device-phone__screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--bg-elev-2);
  border-radius: 13px;
  overflow: hidden;
  position: relative;
}
.device-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder dentro de cada device */
.device-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04) 0,
      rgba(255,255,255,0.04) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--bg-elev-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
}
.device-placeholder__label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.device-placeholder__hint {
  font-size: 9px;
  color: var(--text-mute);
  font-style: italic;
}

/* Variante destaque (ACES): mais espaçada */
.device-mockup--featured {
  padding: clamp(32px, 5vw, 56px);
}
.device-mockup--featured .device-laptop { width: 70%; }
.device-mockup--featured .device-phone {
  bottom: 10%;
  right: 10%;
  width: 18%;
}

/* ===== Case info ===== */
.case__info {
  padding: 28px;
}
.case__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.case__type {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.case__logo {
  height: 16px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.9;
}
[data-theme="dark"] .case__logo--light { display: none; }
[data-theme="light"] .case__logo--dark { display: none; }
.case__flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
  margin-left: -4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.case__status {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case__status--live {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.case__status--featured {
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  font-weight: 500;
}
.case__status--concept {
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--border-strong);
}

.case__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  transition: color .3s ease;
}
.case:hover .case__title { color: var(--accent); }
.case--large .case__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.case__desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 580px;
}
.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.case__tags span {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--text-soft);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.case__link {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: inline-block;
  transition: transform .3s var(--ease);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.case:hover .case__link {
  transform: translateX(6px);
}

/* ============================================== */
/* PROCESS                                         */
/* ============================================== */
.process__wrap {
  position: relative;
}

/* Track de progresso horizontal (desktop) */
.process__track {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process__progress {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent));
  width: 0;
  transition: width .8s var(--ease);
  position: relative;
}
.process__progress::after {
  content: '';
  position: absolute;
  top: 50%; right: -4px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.step {
  position: relative;
  opacity: 0.4;
  transition: opacity .6s var(--ease);
}
.step.is-active,
.step.is-passed {
  opacity: 1;
}

.step__num {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--text-mute);
  background: var(--bg);
  border: 1px solid var(--border);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 24px;
  transition: all .5s var(--ease);
  position: relative;
  z-index: 1;
}
.step.is-active .step__num,
.step.is-passed .step__num {
  border-color: var(--accent);
  color: var(--accent);
}
.step.is-active .step__num {
  background: var(--accent);
  color: var(--accent-text);
  transform: scale(1.15);
  box-shadow: 0 0 0 8px var(--accent-soft);
}
.step.is-active .step__num::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.3;
  animation: stepPing 1.5s ease-out infinite;
}

.step:hover .step__num {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.step__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.step__desc {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.step__meta {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.step.is-active .step__meta {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================== */
/* ABOUT                                           */
/* ============================================== */
.about {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.about__visual {
  position: relative;
  align-self: start;
  aspect-ratio: 4 / 5;
  min-height: 0;
  max-width: 420px;
  width: 100%;
}
.about__photo {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}

.about__pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.about-pill {
  position: absolute;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 6px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-soft);
  white-space: nowrap;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: pillIn 0.7s ease-out both, pillSway 4.8s ease-in-out infinite;
  backdrop-filter: blur(2px);
}
/* Verdes (accent) */
.about-pill--1 {
  top: 9%; left: -4%;
  animation-delay: 0.4s, -0.5s;
  animation-duration: 0.7s, 4.6s;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.about-pill--3 {
  bottom: 12%; right: -3%;
  animation-delay: 1s, -2.1s;
  animation-duration: 0.7s, 5.2s;
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
/* Cinzas */
.about-pill--2 {
  top: 18%; right: -6%;
  animation-delay: 0.7s, -1.3s;
  animation-duration: 0.7s, 4.9s;
}
.about-pill--4 {
  bottom: 19%; left: -5%;
  animation-delay: 1.3s, -3s;
  animation-duration: 0.7s, 5.4s;
}
.about-pill--5 {
  bottom: -3%; left: 36%;
  animation-delay: 1.6s, -0.8s;
  animation-duration: 0.7s, 4.4s;
}

.about__content > p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 580px;
}
.about__content > p:not(.about__lead) {
  text-align: justify;
  text-justify: inter-word;
}
.about__lead {
  font-family: 'Geist', sans-serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  font-style: normal;
  color: var(--text) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
  margin: 16px 0 24px !important;
}
.about__lead strong { font-weight: 600; }
.about__content em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.about__cta { margin-top: 16px; }

/* ============================================== */
/* FAQ                                             */
/* ============================================== */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
}
.faq__item {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  list-style: none;
  transition: color .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

.faq__icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.faq__icon::before {
  top: 50%; left: 0; right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq__icon::after {
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq__item[open] .faq__icon::after { transform: translateX(-50%) rotate(90deg); }

.faq__answer {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  overflow: hidden;
  transition: height .35s var(--ease);
}
.faq__answer > p {
  /* espaçamento fica no filho, não na caixa que anima:
     assim o height chega a 0 de verdade e não trava no padding ao fechar */
  padding-top: 16px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

/* ============================================== */
/* CONTACT                                         */
/* ============================================== */
.contact {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro form"
    "assur .";
  column-gap: clamp(40px, 6vw, 80px);
  row-gap: 28px;
  align-items: stretch;
}
.contact__intro { grid-area: intro; }
.contact__form { grid-area: form; }
.contact__assurances { grid-area: assur; }

/* Contato: "07" fora do fluxo, pra o topo do card ancorar no headline (não no número) */
.contact__intro .section-head {
  position: relative;
  margin-bottom: 24px;
}
.contact__intro .section-head__num {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
}

.contact__title em {
  font-style: italic;
  color: var(--accent);
}

.contact__sub {
  color: var(--text-soft);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 420px;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.channel {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .25s ease;
  background: var(--bg);
}
.channel:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.channel__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.channel__value {
  font-size: 16px;
  font-weight: 500;
}

.contact__form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Desktop: o campo de mensagem preenche a altura que o lado esquerdo define,
   pra base do form sempre bater com a caixa de e-mail (headline→e-mail) */
@media (min-width: 901px) {
  .contact__form .field--grow {
    flex: 1 1 auto;
    min-height: 0;
  }
  .contact__form .field--grow textarea {
    flex: 1 1 0;
    min-height: 0;
    resize: none;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--accent);
}

/* ============================================== */
/* FOOTER                                          */
/* ============================================== */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer__brand .logo {
  font-size: 30px;
}
.footer__brand p {
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 12px;
  max-width: 240px;
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-soft);
  background: var(--bg);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  padding: 4px 0;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--accent); }

.footer__col a.footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__wa-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer__langs {
  font-size: 14px;
  color: var(--text-soft);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ============================================== */
/* WHATSAPP FLOAT                                  */
/* ============================================== */
.float-wa {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 24px var(--accent-soft);
  transition: transform .3s var(--ease);
  view-transition-name: wa-float;
}
.float-wa:hover { transform: scale(1.1) rotate(-6deg); }
.float-wa svg { width: 24px; height: 24px; }

/* ============================================== */
/* MODAL                                           */
/* ============================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal[aria-hidden="false"],
.modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 70%, black);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.5),
    0 0 0 1px var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform .4s var(--ease);
}
.modal:not([hidden]) .modal__panel {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  z-index: 10;
  transition: all .25s var(--ease);
}
.modal__close:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  transform: rotate(90deg);
}
.modal__close svg { width: 18px; height: 18px; }

.modal__scroll {
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.modal__scroll::-webkit-scrollbar { width: 6px; }
.modal__scroll::-webkit-scrollbar-track { background: transparent; }
.modal__scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* Header */
.modal__head {
  margin-bottom: 32px;
  max-width: 760px;
}
.modal__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.modal__type {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.modal__status {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}
.modal__status.is-featured {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 500;
}
.modal__title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.modal__desc {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modal__tags span {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* Stage do modal (poster desktop ou vídeo desktop+mobile) */
.modal__stage {
  margin-bottom: 28px;
}
.modal__stage-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2%;
}
.modal__stage .browser--modal {
  border: 0;
  border-radius: 0;
}
/* no modal, sem barra de navegador: o vídeo ocupa a área toda no tamanho certo */
.modal__stage .browser--modal .browser__bar { display: none; }

/* progress bar sincronizada ao tempo do vídeo */
.modal__progress {
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  overflow: hidden;
  margin-top: 16px;
}
.modal__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
}

/* preview de compartilhamento — o capricho começa antes do clique */
.modal__social {
  margin-top: 26px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: 28px;
  align-items: center;
}
.modal__social-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.modal__social-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mute);
  margin: 0;
}
.modal__social-checks { list-style: none; padding: 0; margin: 16px 0 0; }
.modal__social-checks li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.modal__social-checks li:last-child { margin-bottom: 0; }
.modal__social-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.social-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
}
.social-card__img { aspect-ratio: 1200 / 630; background: var(--bg-elev-2); }
.social-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.social-card__body { display: flex; flex-direction: column; gap: 5px; padding: 13px 15px; }
.social-card__title { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.3; }
.social-card__desc { font-size: 13px; color: var(--text-mute); line-height: 1.45; }
.social-card__domain {
  display: flex; align-items: center; gap: 7px;
  margin-top: 3px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--text-mute);
}
.social-card__favicon { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; display: block; }
.stage__desktop {
  position: relative;
  flex: 0 0 75%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.stage__phone {
  position: relative;
  flex: 0 0 22%;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border: 3px solid #222;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}
.stage__phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.stage__phone-screen img,
.stage__phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.stage__phone-skeleton {
  position: absolute;
  inset: 0;
  padding: 16% 13%;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--bg-elev);
}
.stage__phone-skeleton span {
  height: 7px;
  border-radius: 4px;
  background: var(--border-strong);
}
.stage__phone-skeleton span.is-accent {
  background: var(--accent);
  opacity: 0.85;
}
.modal__stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.modal__stage-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: transform .25s var(--ease);
}
.modal__stage-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.modal__stage-play svg { width: 26px; height: 26px; margin-left: 2px; }

/* Ponto lime no kicker */
.modal__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

/* Lista de solução com check */
.modal__body .modal__list li::before {
  content: '✓';
  font-weight: 600;
}

/* Bloco PageSpeed */
.modal__pagespeed { margin-top: 16px; }
.modal__ps-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ps-score {
  flex: 1 1 84px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
}
.ps-score__num {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  color: var(--accent);
}
.ps-score__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 6px;
}
.modal__ps-link {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .25s var(--ease);
}
.modal__ps-link svg { width: 13px; height: 13px; }
.modal__ps-link:hover { color: var(--text-soft); }

/* Escopo (linguagem de comprador) */
.modal__scope {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.modal__scope span {
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg-elev);
  border-radius: 6px;
  padding: 6px 11px;
}

/* Logos de tecnologia (cinza, apagadinho, pra minoria técnica) */
.modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--text-mute);
  opacity: .5;
  transition: opacity .25s var(--ease);
}
.modal__stack:hover { opacity: .8; }
.modal__stack-logo { display: inline-flex; }
.modal__stack-logo svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* Vídeo dentro da moldura do stage */
.browser__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Vídeo */
.modal__video {
  margin-bottom: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.modal__video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.modal__video-wrap iframe,
.modal__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Body sections */
.modal__body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal__section {
  padding: 0;
}
.modal__section h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.modal__section p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.modal__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.modal__section li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 6px;
}
.modal__section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 500;
}

/* CTA footer */
.modal__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Body lock quando modal aberto */
body.is-modal-open {
  overflow: hidden;
}

/* Responsivo modal */
@media (max-width: 720px) {
  .modal { padding: 12px; }
  .modal__panel { max-height: calc(100vh - 24px); }
  .modal__scroll { padding: 24px 20px; }
  .modal__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .modal__stage-row {
    aspect-ratio: 16 / 9;
  }
  .modal__social {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================== */
/* ANIMATIONS                                      */
/* ============================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealWord {
  from { opacity: 0; transform: translateY(100%) skewY(4deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

@keyframes slideInRight {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes scrollDown {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Hero glow pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero grid drift */
@keyframes gridShift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

/* Marquee de palavras */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pills flutuantes */
@keyframes floatPill {
  0% { opacity: 0; transform: translateY(20px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Entrada (roda uma vez, só fade-in) */
@keyframes pillIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Balanço contínuo (só posição, nunca opacidade — não pisca) */
@keyframes pillSway {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Dot blinking subtle */
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Star spinning no service */
@keyframes starSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Step active ping */
@keyframes stepPing {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays para elementos em grupo */
.case.reveal { transition-delay: 0s; }
.case.reveal:nth-child(2) { transition-delay: .1s; }
.case.reveal:nth-child(3) { transition-delay: .2s; }
.case.reveal:nth-child(4) { transition-delay: .3s; }

.service.reveal:nth-child(1) { transition-delay: 0s; }
.service.reveal:nth-child(2) { transition-delay: .1s; }
.service.reveal:nth-child(3) { transition-delay: .2s; }
.service.reveal:nth-child(4) { transition-delay: .3s; }

/* ============================================== */
/* NOVOS COMPONENTES (conversão)                   */
/* ============================================== */

/* Logo de cliente em destaque (ACES / EUA) */
.logo-placeholder--featured {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-placeholder--featured:hover {
  border-color: var(--accent);
  color: var(--text);
}
.logo-placeholder__flag { font-size: 14px; line-height: 1; }

/* Destaque de resultado dentro do card de case */
.case__highlight {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--accent);
  max-width: 100%;
}
.case__highlight-dot {
  width: 6px; height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ===== Depoimentos ===== */
.testimonials { background: var(--bg); }
.testimonials__carousel {
  position: relative;
}
.testimonials__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 14px;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonials__track > .testimonial {
  flex: 0 0 auto;
  width: calc((100% - 48px) / 3); /* 3 cards completos, 2 gaps de 24px */
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .testimonials__track > .testimonial { width: calc((100% - 16px) / 2); } /* 2 cards */
}
@media (max-width: 600px) {
  .testimonials__track > .testimonial { width: 100%; } /* 1 card */
}
/* No carrossel, o reveal sobe 24px e isso geraria scroll vertical no track: só fade. */
.testimonials__track > .testimonial.reveal { transform: none; }

.testimonials__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.testimonials__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.testimonials__arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.testimonials__arrow:disabled {
  opacity: .3;
  cursor: default;
}
.testimonials__arrow svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .testimonials__track { scroll-behavior: auto; }
}
.testimonial {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.testimonial--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-elev) 62%);
}
.testimonial__mark {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 0.5;
  height: 22px;
  color: var(--accent);
}
.testimonial__quote {
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.testimonial.is-empty .testimonial__quote {
  color: var(--text-mute);
  font-style: italic;
  border-left: 2px dashed var(--border-strong);
  padding-left: 14px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 17px;
}
img.testimonial__avatar {
  object-fit: cover;
  object-position: center 20%;
}
.testimonial__id { display: flex; flex-direction: column; gap: 2px; }
.testimonial__name {
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.testimonial__flag { font-size: 13px; }
.testimonial__role {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Faixa de CTA ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Quadriculado, na mesma linguagem do hero */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, black 20%, transparent 78%);
  pointer-events: none;
}
/* Glow lime difuso e discreto, sobre o grid */
.cta-band::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(380px, 50vw, 620px);
  height: clamp(380px, 50vw, 620px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0.5;
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band__text {
  flex: 1 1 0;
  min-width: 0;
}
.cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.cta-band__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 640px;
}
.cta-band__sub {
  color: var(--text-soft);
  font-size: 16px;
  margin-top: 14px;
  max-width: 520px;
}
.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ===== Garantias no contato (risk reversal) ===== */
.contact__assurances {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact__assurances li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.contact__assurances-check {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__assurances-check::after {
  content: '';
  width: 4px; height: 8px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-1px) rotate(45deg);
}

/* ===== Footer: links legais ===== */
.footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer__legal a {
  color: var(--text-mute);
  transition: color .2s ease;
}
.footer__legal a:hover { color: var(--accent); }
.footer__legal-sep { color: var(--text-mute); }

/* Responsivo dos novos componentes */
@media (max-width: 900px) {
  .testimonials__track { gap: 16px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__legal { order: 3; }
}

/* ============================================== */
/* RESPONSIVE                                      */
/* ============================================== */
@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr;
    justify-content: space-between;
  }
  .nav { display: none; }
  .header__actions .btn { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .case--large { grid-column: span 1; }

  .process__list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process__track { display: none; }

  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { aspect-ratio: 1; min-height: 0; max-width: 280px; margin: 0 auto; }
  /* Pills flutuantes: menos overhang e menos poluição no mobile */
  .about-pill { font-size: 11px; padding: 5px 11px; }
  .about-pill--1 { top: 7%; left: -2%; }
  .about-pill--2 { top: 16%; right: -3%; }
  .about-pill--3 { bottom: 10%; right: -2%; }
  .about-pill--4 { display: none; }
  .about-pill--5 { display: none; }

  .contact__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "form"
      "assur";
    row-gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Esconder pills em mobile (poluem) */
  .hero-pill--3, .hero-pill--4 { display: none; }
  .hero-pill--5, .hero-pill--6, .hero-pill--7 { display: none; }
  .hero-pill--1 { top: 12%; right: 4%; }
  .hero-pill--2 { display: none; }

  .hero__stats {
    gap: 16px;
  }
  .hero-stat__num { font-size: 26px; }
}

@media (max-width: 540px) {
  .process__list { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 24px; }

  .hero__pills { display: none; }
  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-stat__sep { display: none; }

  .float-wa {
    width: 48px; height: 48px;
    bottom: 20px; right: 20px;
  }

  .case__info { padding: 20px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   PÁGINAS LEGAIS + COOKIES (fundidos no CSS único)
   ========================================================== */

/* ==========================================================
   CHIBO DEV · PÁGINAS LEGAIS
   Componentes específicos das páginas de políticas.
   Depende dos tokens definidos no topo deste arquivo.
   ========================================================== */

/* ----- Hero da página ----- */
.legal-hero {
  position: relative;
  padding-top: calc(64px + clamp(40px, 8vw, 88px));
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, black 10%, transparent 70%);
  pointer-events: none;
}
.legal-hero__inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-mute); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: 0.5; }

.legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.legal-hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.legal-hero__title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  max-width: 18ch;
}
.legal-hero__lead {
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  max-width: 620px;
}
.legal-hero__meta {
  margin-top: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.03em;
}

/* ----- Layout: índice + conteúdo ----- */
.legal-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

/* ----- Índice (TOC) ----- */
.legal-toc {
  position: sticky;
  top: 96px;
}
.legal-toc__title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.legal-toc__list { display: flex; flex-direction: column; gap: 2px; }
.legal-toc__list a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-soft);
  padding: 8px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.legal-toc__list a:hover {
  color: var(--text);
  background: var(--bg-elev);
}
.legal-toc__list a.is-current {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* Accordion no mobile */
.legal-toc__toggle { display: none; }

/* ----- Conteúdo ----- */
.legal-content { min-width: 0; }
.legal-intro {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--text);
  padding-bottom: 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-block { padding: 28px 0; border-bottom: 1px solid var(--border); }
.legal-block:last-of-type { border-bottom: none; }
.legal-block h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  scroll-margin-top: 96px;
}
.legal-block h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 24px 0 10px;
  color: var(--text);
}
.legal-block p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-block p:last-child { margin-bottom: 0; }
.legal-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity .2s ease;
}
.legal-block a:hover { opacity: 0.75; }
.legal-block strong { color: var(--text); font-weight: 600; }

.legal-block ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-block ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-block ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Placeholder a preencher (CNPJ, razão social, foro) */
.legal-ph {
  background: var(--accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius-sm);
  padding: 1px 7px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.86em;
  color: var(--accent);
  white-space: nowrap;
}

/* Lista de definições (categorias de cookies) */
.legal-deflist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 6px;
}
.legal-defitem {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.legal-defitem__term {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.legal-defitem__tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  color: var(--text-mute);
}
.legal-defitem__tag--always {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.legal-defitem__desc {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* Bloco de contato no fim */
.legal-contact {
  margin-top: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.legal-contact h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  scroll-margin-top: 96px;
}
.legal-contact p {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 560px;
}
.legal-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards relacionados (cross-link entre documentos) */
.legal-related { margin-top: 40px; }
.legal-related__title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.legal-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.legal-related__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.legal-related__card[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.legal-related__card:not([aria-current="page"]):hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.legal-related__card-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.legal-related__card-title {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Voltar ao topo */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
  transition: color .2s ease;
}
.to-top:hover { color: var(--accent); }
.to-top svg { width: 14px; height: 14px; }

/* ----- Responsivo ----- */
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc {
    position: static;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elev);
    overflow: hidden;
  }
  .legal-toc__title {
    margin: 0;
    padding: 16px 18px;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .legal-toc__toggle {
    display: block;
    width: 16px; height: 16px;
    position: relative;
    flex-shrink: 0;
  }
  .legal-toc__toggle::before,
  .legal-toc__toggle::after {
    content: '';
    position: absolute;
    background: var(--text-mute);
    transition: transform .3s var(--ease);
  }
  .legal-toc__toggle::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
  .legal-toc__toggle::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
  .legal-toc.is-open .legal-toc__toggle::after { transform: translateX(-50%) rotate(90deg); }
  .legal-toc__list {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
    padding: 0 10px;
  }
  .legal-toc.is-open .legal-toc__list {
    max-height: 720px;
    padding: 4px 10px 14px;
  }
  .legal-related__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   CHIBO DEV · CONSENTIMENTO DE COOKIES (LGPD)
   Banner + modal de preferências de cookies.
   ========================================================== */

/* ----- Banner ----- */
.cc-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 300;
  width: min(420px, calc(100vw - 48px));
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  padding: 22px 22px 20px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.cc-banner.is-visible { transform: translateY(0); opacity: 1; }
.cc-banner__title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-banner__title svg { width: 18px; height: 18px; color: var(--accent); }
.cc-banner__text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.cc-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cc-banner__actions { display: flex; flex-direction: column; gap: 9px; }
.cc-banner__row { display: flex; gap: 9px; }
.cc-banner__row .cc-btn { flex: 1; }

/* ----- Botões ----- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 16px;
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  letter-spacing: -0.005em;
  text-align: center;
}
.cc-btn--primary { background: var(--accent); color: var(--accent-text); }
.cc-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px var(--accent-soft); }
.cc-btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.cc-btn--ghost:hover { border-color: var(--text); background: var(--bg); }
.cc-btn--text { color: var(--text-soft); background: transparent; padding: 11px 8px; }
.cc-btn--text:hover { color: var(--text); }

/* ----- Modal ----- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.cc-modal.is-open { opacity: 1; pointer-events: auto; }
.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 55%, black);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(0.98);
  transition: transform .4s var(--ease);
  overflow: hidden;
}
.cc-modal.is-open .cc-modal__panel { transform: translateY(0) scale(1); }

.cc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--border);
}
.cc-modal__title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cc-modal__sub { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; max-width: 42ch; }
.cc-modal__close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--bg-elev);
  transition: all .25s var(--ease);
}
.cc-modal__close:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); transform: rotate(90deg); }
.cc-modal__close svg { width: 16px; height: 16px; }

.cc-modal__body {
  overflow-y: auto;
  padding: 8px 26px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

/* ----- Categoria ----- */
.cc-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cc-cat:last-child { border-bottom: none; }
.cc-cat__info { min-width: 0; }
.cc-cat__name {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.cc-cat__desc { color: var(--text-soft); font-size: 13px; line-height: 1.55; }

/* ----- Switch ----- */
.cc-switch { flex-shrink: 0; position: relative; width: 44px; height: 26px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch__track {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.cc-switch__track::after {
  content: '';
  position: absolute;
  top: 50%; left: 3px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--text-mute);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.cc-switch input:checked + .cc-switch__track {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.cc-switch input:checked + .cc-switch__track::after {
  transform: translateY(-50%) translateX(18px);
  background: var(--accent);
}
.cc-switch input:focus-visible + .cc-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch__track { opacity: 0.6; }

.cc-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--border);
}
.cc-modal__foot .cc-btn--primary { flex: 1 1 100%; }
.cc-modal__foot-row { display: flex; gap: 10px; width: 100%; }
.cc-modal__foot-row .cc-btn { flex: 1; }

@media (max-width: 520px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cc-banner__row { flex-direction: column; }
}

/* ==========================================================
   STATUS DO FORMULÁRIO DE CONTATO
   ========================================================== */
.form__status {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-soft);
}
.form__status--ok {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form__status--err {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.40);
  background: rgba(255, 107, 107, 0.08);
}
[data-theme="light"] .form__status--err {
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.06);
}
