/* ==========================================================================
   RBM Design — Estilos da home
   Depende de tokens.css. Só transform e opacity são animados.
   ========================================================================== */

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: normal; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Tipografia utilitária -------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--brand);
}
.h2 {
  font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: var(--tracking-title); line-height: 1.05;
  text-wrap: balance;
}
.accent { color: var(--brand); }
.ink-3 { color: var(--ink-3); }

/* Botões ----------------------------------------------------------------- */
.btn {
  --btn-h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding-inline: 26px;
  border-radius: var(--r-pill);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { --btn-h: 42px; padding-inline: 18px; font-size: 14px; }
.btn__arrow { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); }

@media (hover: hover) {
  .btn--primary:hover { background: #ff5a1a; }
  .btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }
  .btn:hover .btn__arrow { transform: translateX(3px); }
}

/* Chip de vidro ---------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 7px 14px;
  border: 1px solid var(--line); border-radius: var(--r-chip);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  line-height: 1.3;
}
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
}

/* 0 · Nav ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  max-width: 920px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  height: 60px; padding: 0 9px 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.scrolled .nav__pill {
  background: var(--glass-bg);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.nav__logo svg { width: 62px; height: auto; }
.nav__links { display: flex; gap: var(--s-1); }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
@media (hover: hover) {
  .nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
}

/* 1 · Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 140px 96px;
  overflow: clip;
  isolation: isolate;
}
.hero::after { /* base: linha fina que separa o hero do próximo bloco */
  content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.hero__glow {
  position: absolute; z-index: -1;
  left: 0; top: 0;
  width: 960px; height: 960px; margin: -480px 0 0 -480px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 68, 0, 0.2), rgba(140, 49, 5, 0.1) 45%, transparent 100%);
  transform: translate3d(70vw, 30vh, 0);
  pointer-events: none;
  will-change: transform;
}
.hero__inner { transform-origin: 50% 30%; }
.hero__eyebrow { margin-bottom: var(--s-6); }
.hero__title {
  font-size: var(--fs-h1); font-weight: 700;
  letter-spacing: -0.05em; line-height: 0.98;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }
.hero__lead {
  margin-top: var(--s-5);
  max-width: 34rem;
  font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: var(--s-8);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s-1);
  padding: var(--s-5) var(--s-5) 0 0;
}
.stat + .stat { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.stat__value {
  font-size: clamp(30px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.stat__value span { margin-left: 2px; font-size: clamp(15px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); }
.stat__label { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-3); max-width: 24ch; }

/* Entrada do hero (CSS, no load) */
.js .hero__title .line > span { animation: line-up 1s var(--ease) both; }
.js .hero__title .line:nth-child(2) > span { animation-delay: 0.09s; }
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions,
.js .hero__stats { animation: fade-up 0.9s var(--ease) both; }
.js .hero__eyebrow { animation-delay: 0s; }
.js .hero__lead { animation-delay: 0.22s; }
.js .hero__actions { animation-delay: 0.3s; }
.js .hero__stats { animation-delay: 0.4s; }

@keyframes line-up { from { transform: translate3d(0, 105%, 0); } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

/* Moldura de navegador (portfólio) ---------------------------------------- */
.browser {
  --vp-ratio: 16 / 10;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 0;
}
.browser__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 44px; padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.browser__dots i:first-child { background: var(--brand); }
.browser__url {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px; color: var(--ink-3);
}
.browser__url svg { width: 11px; height: 11px; }
.browser__viewport {
  position: relative;
  aspect-ratio: var(--vp-ratio);
  overflow: auto; /* sem JS: o visitante rola o print manualmente */
  overscroll-behavior: contain;
  background: #f4f1ec;
}
.browser__shot { width: 100%; height: auto; }

.motion .browser__viewport { overflow: hidden; }
.motion .browser__shot { will-change: transform; }

/* 4 · Bloco de dor ------------------------------------------------------- */
.pain { padding-block: var(--section-y); }
.pain .eyebrow { margin-bottom: var(--s-6); }
.pain__text {
  max-width: 25ch;
  font-size: clamp(30px, 4.6vw, 64px); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.08;
  text-wrap: pretty;
}
.pain__text em { color: var(--brand); }
.pain__text .w { opacity: 0.2; } /* JS acende de 0.2 → 1 */
.pain__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
  margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.pain__answer { font-size: var(--fs-lead); color: var(--ink-2); }
.pain__answer strong { color: var(--ink); font-weight: 600; }

/* 7 · Portfólio (cards empilhados) ----------------------------------------- */
.portfolio { padding-block: var(--section-y); }
.portfolio__head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.portfolio__lead { max-width: 36rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }

.stack { display: grid; gap: var(--s-5); }
.pcard {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.55fr);
  gap: var(--s-7);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.pcard__info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.pcard__num {
  font-size: var(--fs-small); font-weight: 600; color: var(--brand);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.pcard__name {
  margin-top: var(--s-4);
  font-size: var(--fs-h3); font-weight: 600;
  letter-spacing: var(--tracking-title); line-height: 1.1;
}
.pcard__segment { margin-top: var(--s-1); font-size: 15px; color: var(--ink-3); }
.pcard__desc { margin-top: var(--s-5); color: var(--ink-2); line-height: 1.55; max-width: 34ch; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); margin-bottom: var(--s-6); }
.pcard__cta { margin-top: auto; }
.pcard__browser { border-radius: 16px; box-shadow: none; }
.pcard__browser .browser__bar { height: 38px; }

/* Desktop com movimento: cards presos que se empilham */
@media (min-width: 861px) {
  .motion .stack { display: block; }
  .motion .pcard {
    position: sticky;
    top: calc(100px + var(--i) * 16px);
    height: min(600px, calc(100svh - 140px));
    margin-bottom: 40vh;
    transform-origin: 50% 0;
  }
  .motion .pcard:last-child { margin-bottom: 30vh; }
  .motion .pcard__browser { display: flex; flex-direction: column; min-height: 0; }
  .motion .pcard__browser .browser__viewport { flex: 1; aspect-ratio: auto; min-height: 0; }
  /* a escala é do GSAP; aqui a revelação é só opacidade */
  .motion .pcard[data-reveal] { transform: none; }
  .motion .pcard[data-reveal].is-in { transition: opacity var(--dur) var(--ease); }
}

/* Cabeçalho de seção (compartilhado) -------------------------------------- */
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); justify-items: start; }
.section-head--center { justify-items: center; text-align: center; }
.section-lead { max-width: 36rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.h2 .ink-3 { display: block; }

/* 5 · Serviços ---------------------------------------------------------- */
.services { padding-block: var(--section-y); background: var(--surface); border-block: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.scard {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--s-6) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg);
  transition: border-color var(--dur-fast) ease;
}
.scard__icon { width: 28px; height: 28px; color: var(--brand); }
.scard__title { margin-top: var(--s-6); font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.scard__text { margin-top: var(--s-3); color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.scard__link {
  margin-top: auto; padding-top: var(--s-6);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.scard__link span { display: inline-block; color: var(--brand); transition: transform var(--dur-fast) var(--ease); }
@media (hover: hover) {
  .scard:hover { border-color: var(--line-strong); }
  .scard__link:hover span { transform: translateX(4px); }
}

/* 6 · Planos -------------------------------------------------------------- */
.plans { padding-block: var(--section-y); }
.plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); max-width: 1000px; }
.plan {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
.plan--featured { border-color: rgba(241, 68, 0, 0.45); }
.plan__name { font-size: var(--fs-h3); font-weight: 600; letter-spacing: var(--tracking-title); line-height: 1.1; }
.plan__for { margin-top: var(--s-2); color: var(--ink-2); font-size: 15px; line-height: 1.5; min-height: 3em; }
.plan__rows { margin-top: var(--s-5); }
.plan__rows div {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding-block: 14px; border-top: 1px solid var(--line);
  font-size: 15px;
}
.plan__rows dt { color: var(--ink-3); }
.plan__rows dd { text-align: right; color: var(--ink); }
.plan__price {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: var(--s-5); border-block: 1px solid var(--line);
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
.plan__price span { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan__cta { margin-top: var(--s-5); width: 100%; }

/* 8 · Processo ------------------------------------------------------------ */
.process { padding-block: var(--section-y); background: var(--surface); border-block: 1px solid var(--line); }
.process__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: start; }
.process__head { position: sticky; top: 120px; margin-bottom: 0; }
.steps { position: relative; display: grid; gap: var(--s-2); }
.steps__line {
  position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px;
  background: var(--line-strong); overflow: hidden;
}
.steps__line span {
  position: absolute; inset: 0;
  background: var(--brand);
  transform-origin: 50% 0;
}
.motion .steps__line span { transform: scaleY(0); }
.step {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: var(--s-5);
  padding-block: var(--s-5);
}
.step__num {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: var(--fs-small); font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}
.step__title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; padding-top: 8px; transition: color 0.4s ease; }
.step__text { margin-top: var(--s-2); color: var(--ink-2); max-width: 40ch; }
.motion .step:not(.is-active) .step__title { color: var(--ink-3); }
.step.is-active .step__num { color: var(--on-brand); background: var(--brand); border-color: var(--brand); }

/* 10 · Por que a RBM ------------------------------------------------------ */
.why { padding-block: var(--section-y); }
.why__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.why__item {
  padding: var(--s-6);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--surface);
}
.why__num { font-size: var(--fs-small); font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.why__title { margin-top: var(--s-5); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.why__text { margin-top: var(--s-3); color: var(--ink-2); max-width: 44ch; }

/* 11 · FAQ ---------------------------------------------------------------- */
.faq { padding-block: var(--section-y); }
.faq__layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
.faq__head { position: sticky; top: 120px; margin-bottom: 0; }
.faq__head .btn { margin-top: var(--s-3); }
.faq__list { display: grid; gap: var(--s-3); }
.faq__item {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  transition: border-color var(--dur-fast) ease;
}
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 20px 22px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex-shrink: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 18px; font-weight: 400; color: var(--ink-2);
  transition: transform 0.4s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 22px; color: var(--ink-2); max-width: 60ch; }

/* 12 · CTA final ---------------------------------------------------------- */
.final {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(120px, 16vw, 200px);
  text-align: center;
  border-top: 1px solid var(--line);
}
.final__glow {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 1100px; height: 700px; margin: -350px 0 0 -550px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(241, 68, 0, 0.18), rgba(140, 49, 5, 0.08) 50%, transparent 100%);
  pointer-events: none;
}
.final__inner { display: grid; justify-items: center; gap: var(--s-5); }
.final__title {
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 76px); font-weight: 700;
  letter-spacing: -0.05em; line-height: 1;
  text-wrap: balance;
}
.final__title .ink-3 { color: var(--ink-2); }
.final__lead { max-width: 34rem; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-3); }
.btn--wa { background: var(--wa); color: #06210f; }
.btn--wa svg { width: 20px; height: 20px; }
@media (hover: hover) { .btn--wa:hover { background: #3be07a; } }

/* Rodapé ------------------------------------------------------------------ */
.footer { padding-block: var(--s-8) var(--s-6); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--s-8); }
.footer__brand img { width: 134px; height: auto; }
.footer__tagline { margin-top: var(--s-5); max-width: 30ch; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.footer__social { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.footer__social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: var(--s-6); }
.footer__heading {
  margin-bottom: var(--s-4);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col li { font-size: 15px; color: var(--ink-2); }
.footer__col a { transition: color var(--dur-fast) ease; }
.footer__col .footer__place { color: var(--ink-3); }
@media (hover: hover) {
  .footer__col a:hover, .footer__bottom a:hover { color: var(--ink); }
  .footer__social a:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.32); }
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small); color: var(--ink-3);
}
.footer__bottom a { transition: color var(--dur-fast) ease; }

/* Revelação genérica ------------------------------------------------------ */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
.motion [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms); /* cascata de 80ms */
}

/* WhatsApp flutuante (mobile) -------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: none; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translate3d(0, 16px, 0) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { inset-block-start: 12px; }
  .nav__links { display: none; }
  .nav__pill { height: 56px; padding-left: 18px; }
  .nav__logo svg { width: 54px; }
  .wa-float { display: grid; }
}

@media (max-width: 640px) {
  .hero { padding-block: 120px 72px; align-items: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { grid-template-columns: 1fr; margin-top: var(--s-7); border-top: 0; }
  .stat, .stat + .stat {
    flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: var(--s-4);
    padding: var(--s-4) 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .stat__value { min-width: 3.4ch; }
  .stat__label { max-width: none; }

  .browser { --vp-ratio: 4 / 5; border-radius: 18px; }
  .browser__bar { height: 38px; padding-inline: 14px; }
  .browser__url { font-size: 12px; padding-inline: 10px; }

  .pain__footer .btn { flex: 1 1 100%; }
}

@media (max-width: 860px) {
  .pcard { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5); }
  .pcard__browser { order: -1; border-radius: 12px; }
  .pcard__browser .browser__viewport { aspect-ratio: 1 / 1; }
  .pcard__desc { max-width: none; }
  .pcard__tags { margin-bottom: var(--s-5); }
}

/* Movimento reduzido: tudo vira fade simples de 200ms ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .line > span { animation: none; }
  .js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__stats {
    animation: fade 0.2s ease both;
  }
  .motion [data-reveal] { transform: none; }
  .motion [data-reveal].is-in { transition: opacity 0.2s ease; }
  .btn, .btn__arrow, .wa-float { transition-duration: 0.2s; }
  .btn:active { transform: none; }
  .wa-float { transform: none; }
  .pain__text .w { opacity: 1; }
  @keyframes fade { from { opacity: 0; } }
}

/* Responsivo das seções 3–12 ---------------------------------------------- */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .process__layout, .faq__layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .process__head, .faq__head { position: static; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
}
@media (max-width: 640px) {
  .services__grid, .plans__grid, .why__grid { grid-template-columns: 1fr; }
  .scard, .plan, .why__item { padding: var(--s-5); }
  .plan__for { min-height: 0; }
  .step { grid-template-columns: 40px 1fr; gap: var(--s-4); }
  .step__num { width: 40px; height: 40px; }
  .steps__line { left: 19px; }
  .step__title { padding-top: 4px; }
  .final__actions .btn { flex: 1 1 100%; }
  .footer__bottom { flex-direction: column; }
  .footer__col:last-child { grid-column: 1 / -1; }
}
