/* ==========================================================================
   Hubrink — Design System
   Construção: "editorial journal" (Function) · Tipografia: Sora / Inter / JetBrains Mono
   Cores: brandbook Hubrink v1.0 — Verde #00816D · Verde profundo #026049 · Petróleo #102F2A · Névoa #E8F3EF
   Mobile first: estilos base = celular; min-width para telas maiores.
   ========================================================================== */

:root {
  /* Cores */
  --green: #00816D;          /* Verde Hubrink — CTAs, eyebrows, ativos */
  --green-deep: #026049;     /* hover / texto verde pequeno */
  --mint: #7FD6C5;           /* destaque sobre fundos escuros */
  --gradient: linear-gradient(116deg, #026049 0%, #00816D 55%, #5FB3A3 100%);

  --canvas: #F6FAF8;         /* fundo da página */
  --mist: #E8F3EF;           /* Névoa verde — cards / painéis */
  --line: #C7DAD3;           /* hairlines */
  --ink: #102F2A;            /* Petróleo — texto e títulos */
  --ink-2: #0B231F;          /* superfícies escuras */
  --charcoal: #1F3B36;
  --graphite: #4A5C58;
  --ash: #6B7280;            /* Cinza (descritivo do logo) — formulários */
  --on-dark: #F6FAF8;
  --on-dark-2: rgba(246, 250, 248, .72);
  --on-dark-line: rgba(246, 250, 248, .14);

  /* Tipografia */
  --font-display: 'Sora', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --tracking: -0.023em;

  --text-hero: clamp(2.6rem, 9.4vw, 5rem);
  --text-display: clamp(2.1rem, 6vw, 4rem);
  --text-heading: clamp(1.5rem, 3vw, 2rem);

  /* Layout */
  --gutter: 20px;
  --section: clamp(88px, 12vw, 152px);
  --max: 1280px;

  /* Formas */
  --r-card: 24px;
  --r-btn: 40px;
  --r-pill: 9999px;

  --shadow-lg: rgba(0, 0, 0, .15) 0 0 20px 0;
  --shadow-xl: rgba(16, 47, 42, .12) 12px 32px 80px 0;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5; letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.is-loading, body.menu-open { overflow: hidden; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, blockquote, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
::selection { background: var(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Tipografia ---------- */
.h-display, .hero__title, .h-card, .final__title, .manifesto__text, .menu__links a {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em;
}
.h-display em, .hero__title em, .h-card em, .final__title em {
  font-style: normal; font-weight: 300; color: var(--green);
}
.section--dark .h-display em, .hero__title em, .final__title em { color: var(--mint); }
.h-display { font-size: var(--text-display); line-height: 1.04; }
.h-card { font-size: var(--text-heading); line-height: 1.1; }
.lead { font-size: 17px; font-weight: 300; line-height: 1.5; color: var(--charcoal); max-width: 56ch; }
@media (min-width: 640px) { .lead { font-size: 18px; } }
.section--dark .lead { color: var(--on-dark-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light, .section--dark .eyebrow, .manifesto .eyebrow { color: var(--mint); }

.head { display: grid; gap: 24px; margin-bottom: 48px; }
.head .lead { margin-top: 4px; }
@media (min-width: 900px) {
  .head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 48px; margin-bottom: 64px; }
  .head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.head--center { text-align: center; justify-items: center; }
.head--center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-btn);
  border: 1.5px solid transparent; background: transparent; color: var(--ink);
  font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
/* preenchimento que sobe no hover */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--green-deep)); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--primary { background: var(--green); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green-deep); --fill: var(--green); }
.btn--outline:hover { color: #fff; }
.btn--outline-light { border-color: rgba(246,250,248,.4); color: var(--on-dark); --fill: var(--on-dark); }
.btn--outline-light:hover { color: var(--ink); border-color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--ink); --fill: var(--mint); }
.btn--ghost { padding-inline: 14px; font-weight: 500; --fill: rgba(127,214,197,.16); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row > .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .btn-row > .btn { flex: 0 0 auto; } }

/* ---------- Progresso de rolagem ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--ink-2); color: var(--on-dark);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io), visibility 0s 1s;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.preloader__inner { display: grid; justify-items: center; gap: 28px; width: min(300px, 76vw); }
.preloader__mark { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.preloader__mark svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.preloader__mark circle { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 296; stroke-dashoffset: 296; animation: draw 1.3s var(--ease-io) forwards; }
.preloader__mark img { width: 46px; animation: pop .9s .15s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(.4) rotate(-90deg); opacity: 0; } }
.preloader__row { width: 100%; display: flex; justify-content: space-between; color: var(--on-dark-2); }
.preloader__bar { width: 100%; height: 1px; background: var(--on-dark-line); position: relative; overflow: hidden; }
.preloader__bar::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: var(--on-dark);
  transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.nav.is-scrolled { background: rgba(11, 35, 31, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--on-dark-line); }
.nav.on-light { background: rgba(246, 250, 248, .82); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { position: relative; display: block; width: 132px; height: 35px; flex: none; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.nav__logo .logo-dark { opacity: 0; }
.nav.on-light .nav__logo .logo-dark { opacity: 1; }
.nav.on-light .nav__logo .logo-light { opacity: 0; }
.nav__links { display: none; gap: 4px; font-size: 15px; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: var(--r-pill); opacity: .82; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__cta { display: none; }
.nav.on-light .btn--ghost { color: var(--ink); --fill: var(--mist); }

.burger { position: relative; z-index: 110; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(246,250,248,.1); color: inherit; display: grid; place-items: center; }
.nav.on-light .burger { background: var(--mist); }
.burger span { position: absolute; width: 20px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { transform: translateY(-4px); }
.burger span:nth-child(2) { transform: translateY(4px); }
body.menu-open .burger { color: var(--on-dark); background: rgba(246,250,248,.1); }
body.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }
body.menu-open .nav { background: transparent; box-shadow: none; color: var(--on-dark); }
body.menu-open .nav .logo-light { opacity: 1 !important; }
body.menu-open .nav .logo-dark { opacity: 0 !important; }

@media (min-width: 640px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav__in { height: 80px; }
  .nav__logo { width: 148px; height: 39px; }
  .nav__links { display: flex; }
  .burger { display: none; }
}

/* Menu mobile em tela cheia */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink-2); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-top: 72px;
  clip-path: circle(0 at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .8s var(--ease-io); }
.menu__rings { position: absolute; right: -40vw; bottom: -30vw; width: 110vw; color: rgba(127,214,197,.12); pointer-events: none; }
.menu__links { position: relative; display: grid; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--on-dark-line);
  font-size: clamp(1.8rem, 8vw, 2.6rem); line-height: 1.1;
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__links a span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--mint); }
body.menu-open .menu__links a { opacity: 1; transform: none; }
body.menu-open .menu__links a:nth-child(1) { transition-delay: .25s; }
body.menu-open .menu__links a:nth-child(2) { transition-delay: .31s; }
body.menu-open .menu__links a:nth-child(3) { transition-delay: .37s; }
body.menu-open .menu__links a:nth-child(4) { transition-delay: .43s; }
body.menu-open .menu__links a:nth-child(5) { transition-delay: .49s; }
.menu__foot { position: relative; opacity: 0; transition: opacity .6s .55s; }
body.menu-open .menu__foot { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; padding: 120px 0 72px;
  background: var(--ink-2); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center;
}
/* Vídeos de fundo: duas camadas que se alternam com fusão de opacidade (100% no compositor/GPU) */
.hero__media {
  position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--ink-2) url('../video/hero-1.jpg') center / cover no-repeat;
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06) translateZ(0); backface-visibility: hidden;
  transition: opacity 1.8s cubic-bezier(.45,0,.25,1), transform 0s 1.8s; /* ao sair, o zoom volta só depois do fade */
  will-change: opacity, transform;
}
.hero__video.is-active { opacity: 1; transform: scale(1) translateZ(0); transition: opacity 1.8s cubic-bezier(.45,0,.25,1), transform 16s linear; }
/* Véu escuro da marca: garante leitura do título sobre qualquer cena */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,35,31,.94) 0%, rgba(11,35,31,.82) 38%, rgba(11,35,31,.55) 72%, rgba(11,35,31,.45) 100%),
    linear-gradient(0deg, rgba(11,35,31,.9) 0%, rgba(11,35,31,0) 40%),
    linear-gradient(180deg, rgba(11,35,31,.6) 0%, rgba(11,35,31,0) 22%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__bg::before { /* luz verde */
  content: ""; position: absolute; width: 120vmax; height: 120vmax; right: -60vmax; top: -40vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,129,109,.45), rgba(0,129,109,0) 70%);
  mix-blend-mode: screen; animation: glow 14s var(--ease-io) infinite alternate;
}
@keyframes glow { to { transform: translate(-8vmax, 10vmax) scale(1.1); } }

.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__title { font-size: var(--text-hero); line-height: 1; margin-bottom: 28px; }
.hero__title .line { display: block; }
.hero__lead { font-size: 17px; font-weight: 300; color: var(--on-dark-2); max-width: 46ch; margin-bottom: 36px; }
@media (min-width: 640px) { .hero__lead { font-size: 20px; } }

/* Pilares do hero */
.pillars { display: grid; margin-top: 56px; border-top: 1px solid var(--on-dark-line); }
.pillar { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--on-dark-line); }
.pillar .mono { color: var(--mint); }
.pillar b { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 20px; display: block; }
.pillar span:last-child { font-size: 14px; color: var(--on-dark-2); }
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
  .pillar { flex-direction: column; gap: 8px; padding: 24px 24px 0; border-bottom: 0; border-left: 1px solid var(--on-dark-line); }
  .pillar:first-child { padding-left: 0; border-left: 0; }
  .pillar b { font-size: 24px; }
}

.hero__scroll { position: absolute; right: var(--gutter); bottom: 32px; display: none; align-items: center; gap: 12px; color: var(--on-dark-2); writing-mode: vertical-rl; }
.hero__scroll-line { width: 1px; height: 56px; background: var(--on-dark-line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--mint); animation: scrollline 2s var(--ease-io) infinite; }
@keyframes scrollline { to { top: 100%; } }
@media (min-width: 1240px) { .hero__scroll { display: flex; } }

/* ---------- Faixa (marquee) ---------- */
.band { background: var(--green); color: #fff; overflow: hidden; padding: 22px 0; }
.band__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.band__group span { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; font-size: clamp(1.4rem, 3.6vw, 2.3rem); line-height: 1; white-space: nowrap; }
.band__group em { font-style: normal; font-weight: 300; }
.band__group svg { width: 22px; height: 22px; color: var(--mint); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Passos ---------- */
.steps { position: relative; display: grid; gap: 16px; }
.steps__line { display: none; }
.step {
  position: relative; background: var(--mist); border-radius: var(--r-card); padding: 32px 24px 24px;
  display: flex; flex-direction: column; overflow: hidden;
}
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.step__n { font-size: 14px; font-weight: 600; color: var(--green-deep); }
.step__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--canvas); transition: background .5s, border-color .5s, box-shadow .5s; }
.step.is-on .step__dot { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 6px rgba(0,129,109,.15); }
.step p { color: var(--charcoal); margin-top: 12px; }
.step__ui { margin-top: 32px; }
@media (min-width: 640px) { .step { padding: 40px 32px 32px; } }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); padding-top: 32px; }
  .steps__line { display: block; position: absolute; top: 0; left: 32px; right: 32px; height: 2px; background: var(--line); border-radius: 2px; }
  .steps__line i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(var(--fill, 0)); border-radius: inherit; }
  .step { min-height: 500px; }
  .step__ui { margin-top: auto; padding-top: 32px; }
}

/* micro-UI: checklist */
.check { background: var(--canvas); border-radius: 16px; padding: 8px 16px; }
.check li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.check li:last-child { border-bottom: 0; }
.check i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; transition: background .4s var(--ease), border-color .4s; }
.check i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .45s var(--ease); }
.check small { margin-left: auto; color: var(--graphite); font-size: 12px; white-space: nowrap; }
.is-in .check li.on i { background: var(--green); border-color: var(--green); }
.is-in .check li.on i::after { transform: rotate(45deg) scale(1); }
.is-in .check li.on:nth-child(1) i, .is-in .check li.on:nth-child(1) i::after { transition-delay: .4s; }
.is-in .check li.on:nth-child(2) i, .is-in .check li.on:nth-child(2) i::after { transition-delay: .8s; }

/* micro-UI: barras */
.bars { background: var(--canvas); border-radius: 16px; padding: 20px 20px 12px; }
.bars__top { display: flex; justify-content: space-between; font-size: 12px; color: var(--graphite); margin-bottom: 16px; }
.bars__top b { color: var(--ink); font-weight: 600; }
.bars__plot { display: flex; align-items: flex-end; gap: 10px; height: 120px; border-bottom: 1px solid var(--line); }
.bars__plot div { flex: 1; height: var(--h); background: var(--line); border-radius: 2px 2px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.bars__plot div.hi { background: var(--green); }
.is-in .bars__plot div { transform: scaleY(1); }
.bars__plot div:nth-child(2) { transition-delay: .08s; } .bars__plot div:nth-child(3) { transition-delay: .16s; }
.bars__plot div:nth-child(4) { transition-delay: .24s; } .bars__plot div:nth-child(5) { transition-delay: .32s; }
.bars__x { display: flex; gap: 10px; font-size: 11px; color: var(--graphite); padding-top: 6px; }
.bars__x span { flex: 1; text-align: center; }

/* micro-UI: calendário */
.cal { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; background: var(--canvas); border-radius: 16px; padding: 16px 8px; }
.cal > div { padding: 6px 0; border-left: 1px solid var(--line); }
.cal > div:first-child { border-left: 0; }
.cal small { display: block; font-size: 10px; color: var(--graphite); letter-spacing: .04em; }
.cal b { display: block; font-weight: 400; font-size: 14px; margin-top: 6px; }
.cal .on b { color: var(--green-deep); font-weight: 600; background: linear-gradient(var(--green), var(--green)) 50% 100% / 0 2px no-repeat; padding-bottom: 4px; transition: background-size .8s .5s var(--ease); }
.is-in .cal .on b { background-size: 22px 2px; }
.cal__note { grid-column: 1 / -1; margin-top: 12px; padding: 12px 12px 0; border-top: 1px solid var(--line); font-size: 13px; text-align: left; color: var(--charcoal); }
.cal__note b { display: inline; font-size: 13px; margin: 0; font-weight: 600; }

/* ---------- Diagnóstico (chips) ---------- */
.pains { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin-inline: auto; }
.pain {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--canvas); border: 1px solid var(--line); font-size: 15px;
  opacity: 0; transform: translateY(16px) scale(.96);
  transition: opacity .7s var(--ease), transform .7s var(--ease), background .3s, color .3s, border-color .3s;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.pain::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); transition: background .3s; }
.pain:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pain:hover::before { background: var(--mint); }
.is-in .pain { opacity: 1; transform: none; }
@media (min-width: 640px) { .pain { font-size: 16px; padding: 14px 22px; } }
.pains-foot { text-align: center; margin-top: 40px; }

/* ---------- Frentes ---------- */
.quote { display: flex; gap: 16px; align-items: flex-start; }
.quote__mark { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--mist); display: grid; place-items: center; }
.quote__mark img { width: 28px; }
.quote blockquote { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em; font-size: 20px; line-height: 1.3; }
.quote cite { display: block; font-style: normal; margin-top: 12px; font-size: 14px; font-weight: 600; }
.quote cite span { display: block; font-weight: 400; color: var(--graphite); }

.cats { display: grid; gap: 12px; }
.cat {
  position: relative; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
  will-change: transform;
}
.cat::after { /* brilho que segue o cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0,129,109,.1), transparent 60%);
}
.cat:hover { box-shadow: var(--shadow-xl); border-color: transparent; }
.cat:hover::after { opacity: 1; }
.cat__top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat__icon { width: 44px; height: 44px; color: var(--green); }
.cat__n { color: var(--graphite); }
.cat h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; font-size: 22px; line-height: 1.15; }
.cat ul { font-size: 14px; color: var(--charcoal); }
.cat li { padding: 8px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) {
  .cats { grid-template-columns: repeat(5, 1fr); }
  .cat { min-height: 340px; }
  .cat ul { margin-top: auto; }
}
.cats-foot { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .cats-foot { grid-template-columns: 1fr auto; align-items: center; } }

.integr { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.integr h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 22px; }
.integr h3 em { font-style: normal; font-weight: 300; color: var(--green); }
.integr p { color: var(--graphite); font-size: 14px; margin-top: 4px; }
.integr__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 14px; background: var(--canvas); }
.tag svg { width: 16px; height: 16px; color: var(--green); }
@media (min-width: 900px) { .integr { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Método (cards empilhados com sticky) ---------- */
.stack { display: grid; gap: 16px; }
.stack__card {
  position: sticky; top: calc(88px + var(--i) * 14px);
  display: grid; border-radius: var(--r-card); overflow: hidden; background: var(--canvas);
  box-shadow: 0 -12px 40px rgba(16,47,42,.06);
  transform-origin: center top; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1));
  will-change: transform;
}
.stack__art { position: relative; min-height: 200px; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.stack__art svg { width: 70%; max-width: 280px; }
.stack__art .mono { position: absolute; top: 20px; left: 24px; color: var(--mint); }
.stack__body { padding: 28px 24px 32px; display: flex; flex-direction: column; }
.stack__body p { color: var(--charcoal); margin-top: 12px; max-width: 48ch; }
.stack__body ul { margin-top: 24px; font-size: 14px; display: grid; }
.stack__body li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.stack__body li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
@media (min-width: 860px) {
  .stack { gap: 24px; }
  .stack__card { grid-template-columns: 1fr 1.1fr; min-height: 420px; top: calc(110px + var(--i) * 18px); }
  .stack__art { min-height: 100%; }
  .stack__body { padding: 48px; justify-content: center; }
}
.art-1 { background: var(--ink); } .art-2 { background: var(--green); } .art-3 { background: var(--green-deep); }
.art-4 { background: var(--gradient); } .art-5 { background: var(--ink-2); }
.stack__art .draw { fill: none; stroke: rgba(246,250,248,.85); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); }
.stack__card.is-in .draw { stroke-dashoffset: 0; }
.stack__art .fillm { fill: var(--mint); }

/* ---------- Manifesto (palavras acendem com a rolagem) ---------- */
.manifesto { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.manifesto__rings { position: absolute; left: -30vw; top: 50%; width: 80vw; max-width: 900px; transform: translateY(-50%) rotate(var(--rot, 0deg)); color: rgba(127,214,197,.08); pointer-events: none; }
.manifesto__text { position: relative; font-size: clamp(1.7rem, 5vw, 3.4rem); line-height: 1.15; max-width: 22ch; }
.manifesto__text .mw { color: rgba(246,250,248,.18); transition: color .4s; }
.manifesto__text .mw.lit { color: var(--on-dark); }
.manifesto__text .mw.acc.lit { color: var(--mint); }
.manifesto__sign { position: relative; margin-top: 40px; display: flex; align-items: center; gap: 16px; color: var(--on-dark-2); }
.manifesto__sign img { width: 40px; }

.traits { display: grid; gap: 12px; margin-top: 72px; position: relative; }
.trait { border: 1px solid var(--on-dark-line); border-radius: var(--r-card); padding: 28px 24px; display: flex; flex-direction: column; gap: 32px; transition: background .5s var(--ease), border-color .5s; }
.trait:hover { background: rgba(246,250,248,.05); border-color: rgba(127,214,197,.35); }
.trait svg { width: 36px; height: 36px; color: var(--mint); }
.trait h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.035em; font-size: 26px; line-height: 1.15; }
.trait h3 b { font-weight: 500; }
.trait p { font-size: 14px; color: var(--on-dark-2); margin-top: 8px; }
@media (min-width: 640px) { .traits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .traits { grid-template-columns: repeat(4, 1fr); } .trait { min-height: 280px; justify-content: space-between; } }

/* ---------- Conteúdo (cards verticais, rolagem lateral no mobile) ---------- */
.stories {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.stories::-webkit-scrollbar { display: none; }
.story {
  position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4.2; border-radius: var(--r-card); overflow: hidden;
  color: var(--on-dark); padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); transition: transform .6s var(--ease);
}
.story:nth-child(2) { background: var(--green); }
.story:nth-child(3) { background: var(--green-deep); }
.story:nth-child(4) { background: var(--gradient); }
.story .deco { position: absolute; right: -35%; bottom: -25%; width: 115%; color: rgba(246,250,248,.14); pointer-events: none; transition: transform 1.2s var(--ease); }
.story:hover .deco { transform: rotate(-30deg) scale(1.08); }
.story h3 { position: relative; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.08; }
.story h3 em { font-style: normal; font-weight: 300; color: var(--mint); }
.story:nth-child(2) h3 em, .story:nth-child(4) h3 em { color: #CDEFE7; }
.story footer { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.story footer span { opacity: .75; }
.story__go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(246,250,248,.35); display: grid; place-items: center; transition: background .4s, color .4s; }
.story:hover .story__go { background: var(--on-dark); color: var(--ink); }
@media (min-width: 640px) { .stories { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .stories { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; } }

/* ---------- Contato ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.how { display: grid; gap: 4px; margin-top: 40px; }
.how__item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.how__item svg { width: 28px; height: 28px; color: var(--green); flex: none; margin-top: 2px; }
.how__item b { display: block; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 19px; margin-bottom: 4px; }
.how__item p { font-size: 14px; color: var(--charcoal); }

.form { background: var(--mist); border-radius: var(--r-card); padding: 28px 20px; display: grid; gap: 16px; }
@media (min-width: 640px) { .form { padding: 40px; } .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.input {
  width: 100%; background: var(--canvas); border: 1px solid var(--ash); border-radius: var(--r-pill);
  padding: 14px 20px; font-size: 16px; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
textarea.input { border-radius: 20px; min-height: 120px; resize: vertical; }
.input::placeholder { color: var(--graphite); opacity: .8; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,129,109,.2); }
.input.is-invalid { border-color: #b4472e; }
.form__note { font-size: 13px; color: var(--graphite); }

/* ---------- Comparação ---------- */
.compare { max-width: 940px; margin-inline: auto; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 16px 12px; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-weight: 600; font-size: 13px; vertical-align: middle; }
.compare thead th:nth-child(n+2), .compare td:nth-child(n+2) { text-align: center; width: 24%; }
.compare thead th:last-child { background: var(--green); }
.compare thead th:last-child img { height: 22px; width: auto; margin: 0 auto; }
.compare td:last-child { background: rgba(0,129,109,.06); }
.compare tbody tr { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 70ms + .2s); }
.compare.is-in tbody tr { opacity: 1; transform: none; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--green); color: #fff; }
.no { border: 1.5px solid var(--line); color: var(--graphite); }
.yes svg, .no svg { width: 12px; height: 12px; }
.part { font-size: 12px; color: var(--graphite); }
@media (min-width: 640px) { .compare th, .compare td { padding: 20px 24px; font-size: 15px; } }

/* ---------- Proposta ---------- */
.offer { display: grid; gap: 16px; }
.offer__card { border-radius: var(--r-card); padding: 32px 24px; background: var(--canvas); box-shadow: var(--shadow-xl); }
.offer__card--dark { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); box-shadow: none; display: flex; flex-direction: column; }
.offer__card--dark .mono { color: var(--mint); }
.offer__title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.045em; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin: 20px 0 16px; }
.offer__card--dark p { color: var(--on-dark-2); max-width: 40ch; }
.offer__card--dark .btn { margin-top: 32px; align-self: flex-start; }
.offer__rings { position: absolute; right: -140px; bottom: -140px; width: 380px; color: rgba(127,214,197,.14); animation: spin 50s linear infinite; }
.offer ol li { display: grid; grid-template-columns: 48px 1fr; padding: 20px 0; border-top: 1px solid var(--line); }
.offer ol li:first-child { border-top: 0; padding-top: 0; }
.offer ol span { font-size: 14px; font-weight: 600; color: var(--green-deep); }
.offer ol b { display: block; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 22px; line-height: 1.2; }
.offer ol p { font-size: 14px; color: var(--charcoal); margin-top: 4px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; } .offer__card { padding: 48px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin-inline: auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border: 0; background: none; text-align: left; font-size: 18px; line-height: 1.3; font-weight: 500; }
.faq__q i { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq__item.is-open .faq__q i { background: var(--green); border-color: var(--green); color: #fff; }
.faq__item.is-open .faq__q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 0; color: var(--charcoal); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
@media (min-width: 640px) { .faq__q { font-size: 20px; padding: 28px 0; } }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-2); color: var(--on-dark); text-align: center; padding-block: clamp(112px, 16vw, 200px); }
.final__rings { position: absolute; left: 50%; top: 50%; width: min(150vw, 1300px); z-index: -1; color: rgba(127,214,197,.12); transform: translate(-50%, -50%) scale(var(--sc, 1)); pointer-events: none; }
.final__title { font-size: clamp(2.8rem, 9vw, 6rem); line-height: 1; }
.final__sub { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.04em; font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--mint); margin: 12px 0 40px; }
.final .btn-row { justify-content: center; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink-2); color: var(--on-dark-2); border-top: 1px solid var(--on-dark-line); padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { width: 170px; margin-bottom: 20px; }
.footer h4 { margin-bottom: 14px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.footer li { padding: 5px 0; }
.footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .4s var(--ease); }
.footer a:hover { color: var(--on-dark); background-size: 100% 1px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: 13px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer__brand { grid-column: auto; } }

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-scale.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0) * 90ms); }
.split.is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-scale, .pain, .compare tbody tr { opacity: 1; transform: none; }
  .split .w > span, .bars__plot div { transform: none; }
  .stack__card { position: relative; top: 0; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Mobile e tablet: refinamentos (mobile first)
   ========================================================================== */
/* Áreas seguras (notch / barra inicial do iPhone, viewport-fit=cover) */
.nav { padding-top: env(safe-area-inset-top); }
.container { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* Formulário: erros por campo, carregamento, antispam */
.field__error { font-size: 13px; color: #b4472e; padding-left: 20px; }
.field__error:empty { display: none; }
.input.is-invalid { border-color: #b4472e; box-shadow: 0 0 0 3px rgba(180,71,46,.14); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: 13px; color: var(--graphite); }
.form__legal a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.form__note.is-error { color: #b4472e; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form__submit.is-loading { pointer-events: none; opacity: .85; }
.form__submit.is-loading .ic { display: none; }
.form__submit.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* CTA fixo no celular */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; pointer-events: none;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
.mcta .btn { pointer-events: auto; box-shadow: 0 12px 32px rgba(11,35,31,.32); }
.mcta.is-visible { transform: none; visibility: visible; transition: transform .5s var(--ease); }
body.menu-open .mcta, body.cookies-open .mcta { transform: translateY(120%); visibility: hidden; }
@media (min-width: 768px) { .mcta { display: none; } }

@media (max-width: 639px) {
  .mono { font-size: 12px; }
  .hero { padding: 104px 0 56px; }
  .hero__title { margin-bottom: 20px; }
  .hero__lead { margin-bottom: 28px; }

  /* chips do diagnóstico mais compactos: 2 ou 3 por linha em vez de 1 */
  .pains { gap: 8px; }
  .pain { padding: 9px 14px; font-size: 14px; gap: 8px; }
  .pains-foot .btn { width: 100%; white-space: normal; }

  /* frentes viram carrossel lateral (como a seção de conteúdo) */
  .cats {
    grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }

  /* entregas: arte mais baixa para o card caber melhor na tela */
  .stack__art { min-height: 150px; }
  .stack__art svg { width: 50%; max-width: 190px; }
  .stack__body { padding: 24px 20px 28px; }
  .stack__body ul { margin-top: 18px; }

  .quote blockquote { font-size: 18px; }
  .form { padding: 24px 16px; }
  .compare th, .compare td { padding: 14px 12px; }

  /* rodapé: alvos de toque maiores */
  .footer li { padding: 0; }
  .footer a { display: inline-block; padding: 9px 0; }
  .footer__base { flex-direction: column; }
}

/* Celulares bem estreitos (320 a 359px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 2.3rem; }
  .btn--lg { padding-inline: 20px; font-size: 15px; }
}

/* Telas de toque: sem efeitos de hover "presos" após o toque */
@media (hover: none) {
  .cat:hover { box-shadow: none; border-color: var(--line); }
  .pain:hover { background: var(--canvas); color: inherit; border-color: var(--line); }
  .pain:hover::before { background: var(--green); }
  .story:hover .deco { transform: none; }
}

/* ---------- Acessibilidade (auditoria) ---------- */
.skip { position: fixed; left: 16px; top: -64px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }
main:focus { outline: none; }
.stack__art .mono { color: var(--on-dark); }
.story footer span { opacity: 1; }
.story:nth-child(4) { background: linear-gradient(116deg, #026049 0%, #00816D 100%); }
.hero__title em { text-shadow: 0 2px 28px rgba(11,35,31,.6); }
.input::placeholder { opacity: 1; }
.footer .footer__h { margin-bottom: 14px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.footer__brand p { max-width: 300px; }
.cats:focus-visible, .stories:focus-visible { outline-offset: -2px; }
.band { position: relative; }
.band__pause { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 1; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(2,96,73,.85); color: #fff; font-size: 12px; opacity: 0; transition: opacity .3s; }
.band__pause:focus-visible, .band:hover .band__pause { opacity: 1; }
@media (hover: none) { .band__pause { opacity: .9; } }
.band.is-paused .band__track, .band.is-paused .band__group { animation-play-state: paused; }
/* CTA fixo some enquanto o banner/central de cookies estiver aberto */
body:has(.cc-banner) .mcta, body.cc-lock .mcta { transform: translateY(120%); visibility: hidden; }

/* ---------- Celular/tablet: ao rolar, o menu sanduíche dá lugar ao "Fale conosco" ---------- */
@media (max-width: 1023px) {
  .nav.is-scrolled .burger { display: none; }
  body.menu-open .nav .burger { display: grid; }
  .nav.is-scrolled .nav__cta { display: inline-flex; animation: navcta-in .45s var(--ease) both; }
  body.menu-open .nav .nav__cta { display: none; }
}
@media (max-width: 639px) {
  .nav__cta { min-height: 42px; padding: 9px 18px; font-size: 14px; gap: 8px; }
  .nav__cta .ic { width: 16px; height: 16px; }
}
@keyframes navcta-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Hero no celular: sem os pilares (o hero fica só com a mensagem e os botões) ---------- */
@media (max-width: 759px) { .hero .pillars { display: none; } }

/* ---------- Diagnóstico no celular: três faixas deslizando em vez da nuvem de chips ---------- */
.pains-rail { display: none; }
@media (max-width: 639px) {
  .pains { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* segue para leitor de tela */
  .pains-rail {
    display: grid; gap: 10px; margin-inline: calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .pains-rail__row { overflow: hidden; }
  .pains-rail__track { display: flex; gap: 8px; width: max-content; padding-right: 8px; animation: marquee var(--dur, 30s) linear infinite; }
  .pains-rail__row.is-rev .pains-rail__track { animation-direction: reverse; }
  .rail-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill);
    background: var(--canvas); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; color: var(--ink);
  }
  .rail-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
  .pains-foot { margin-top: 32px; }
}
@media (max-width: 639px) and (prefers-reduced-motion: reduce) {
  .pains-rail__row { overflow-x: auto; scrollbar-width: none; }
  .pains-rail__track { animation: none; }
}

/* ==========================================================================
   Rodapé (novo)
   ========================================================================== */
.footer { padding: 64px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer__top {
  display: grid; gap: 40px 24px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "brand brand" "nav legal" "contact contact";
}
.footer__brand { grid-area: brand; display: grid; justify-items: start; gap: 14px; }
.footer__col--nav { grid-area: nav; } .footer__col--legal { grid-area: legal; } .footer__col--contact { grid-area: contact; }
.footer__logo img { width: 160px; margin: 0; }
.footer__tag { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 22px; line-height: 1.2; color: var(--on-dark); max-width: 22ch; }
.footer__tag em { font-style: normal; font-weight: 300; color: var(--mint); }
.footer__desc { max-width: 38ch; color: var(--on-dark-2); }
.footer__cta { margin-top: 6px; }
.footer .footer__h { margin-bottom: 10px; }
.footer__col ul { display: grid; }
.footer__col li { padding: 0; }
.footer__col a, .footer__col button { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--on-dark-2); }
.footer__col button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.footer__col a:hover, .footer__col button:hover { color: var(--on-dark); }
.footer__contact svg, .footer__place svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.footer__place { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 44px; height: 44px; min-height: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--on-dark-line); background-image: none; transition: border-color .3s, background-color .3s, color .3s; }
.footer__social a:hover { border-color: var(--mint); background-color: rgba(127,214,197,.08); color: var(--mint); }
.footer__social svg { width: 18px; height: 18px; }
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--on-dark-line); font-size: 13px; }
.footer__base p { color: var(--on-dark-2); }
.footer__up { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark-2); background-image: none !important; }
.footer__up svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.footer__up:hover { color: var(--mint); }
.footer__up:hover svg { transform: translateY(-3px); }
@media (max-width: 639px) {
  .footer__base { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "brand nav legal" "brand contact contact"; }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; grid-template-areas: "brand nav contact legal"; gap: 48px; }
  .footer { padding-top: 88px; }
}
/* rodapé: botões não herdam o sublinhado/espaçamento dos links de texto */
.footer .footer__cta { display: inline-flex; padding: 12px 24px; background: var(--green); color: #fff; }
.footer .footer__cta:hover { color: #fff; }
.footer .footer__up, .footer .footer__social a, .footer .footer__col a, .footer .footer__logo { display: inline-flex; padding: 0; }
.footer .footer__social a { background-image: none; }

/* ---------- Hero no celular: centralizado, sem eyebrow, com seta para a próxima dobra ---------- */
.hero__down { display: none; }
@media (max-width: 759px) {
  .hero { text-align: center; padding-bottom: 96px; }
  .hero .eyebrow { display: none; }
  .hero__title { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero .btn-row { justify-content: center; }
  .hero__down {
    position: absolute; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 2;
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    color: var(--on-dark); background: rgba(246,250,248,.1); border: 1px solid rgba(246,250,248,.22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateX(-50%); animation: hero-down 2.2s var(--ease-io) infinite;
  }
  .hero__down svg { width: 22px; height: 22px; }
  .hero__down:active { background: rgba(246,250,248,.2); }
}
@keyframes hero-down { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
/* celular deitado: hero mais baixo para os botões caberem */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 88px 0 40px; }
  .hero__title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
  .hero__lead { display: none; }
  .hero__down { display: none; }
}

/* ---------- Ajustes do QA (tablet e celulares pequenos) ---------- */
@media (min-width: 960px) and (max-width: 1199px) { .form__row { grid-template-columns: 1fr; } }
body.menu-open .cc-banner { visibility: hidden; }
@media (max-width: 639px) {
  .stack__art { min-height: 168px; padding: 44px 0 16px; }
  .stack__art svg { width: 46%; max-width: 180px; max-height: 110px; }
}
@media (min-width: 640px) and (max-width: 859px) {
  .stack__card { grid-template-columns: .8fr 1.2fr; }
  .stack__art { min-height: 100%; }
  .stack__art svg { width: 62%; }
  .stack__body { padding: 32px; justify-content: center; }
}
@media (min-width: 640px) and (max-width: 999px) { .cat:last-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) and (max-width: 1199px) {
  .cats { grid-template-columns: repeat(6, 1fr); }
  .cat { grid-column: span 2; }
  .cat:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .stories { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .story { aspect-ratio: 16 / 10; }
}
@media (min-width: 900px) and (max-width: 1199px) { .head { grid-template-columns: 1fr; gap: 16px; align-items: start; } }
.band__pause { min-height: 44px; }
.mono { font-size: 12px; }
h1, h2, h3, .h-display { text-wrap: balance; }
p, .lead { text-wrap: pretty; }
@media (max-width: 639px) {
  .compare th img { width: 64px; height: auto; }
  .compare th:last-child, .compare td:last-child { width: 76px; }
  .compare td:first-child { font-size: 13px; }
}
@media (min-width: 640px) and (max-width: 999px) { .step > * { max-width: 560px; } }

/* ---------- Título do hero no celular: "Clareza para / decidir. / Método para / avançar." ---------- */
@media (max-width: 759px) {
  .hero__title { font-size: clamp(2.4rem, 11.2vw, 3.3rem); line-height: 1.02; text-wrap: initial; }
  .hero__title .line + .line { margin-top: .14em; }
}
.br-m { display: none; }
@media (max-width: 759px) { .br-m { display: inline; } }

/* ---------- Hero no PC/tablet: título em 2 linhas e descrição na mesma largura do título ---------- */
@media (min-width: 760px) {
  .hero__grid > div { width: max-content; max-width: 100%; }
  .hero__title { font-size: min(5rem, calc((100vw - 96px) / 10.4)); }
  .hero__title .line { white-space: nowrap; }
  .hero__lead { width: 0; min-width: 100%; max-width: none; }
}

/* e-mail longo no rodapé quebra em vez de estourar a largura no celular */
.footer__mail { overflow-wrap: anywhere; }
