/* ==========================================================================
   REVESTCAR — Design System
   Arquivo único de estilos. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Cores — base clara, fundo branco premium */
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --border: #e2e4ea;
  --border-soft: #ebedf1;

  --text: #14141a;
  --text-muted: #5c5c6b;
  --text-dim: #6b6b7d; /* ajustado para contraste AA sobre --bg */

  /* Acento — verde Revestcar mantido como cor de destaque */
  --accent: #16a34a;
  --accent-hover: #22c55e;
  --accent-press: #0f7a37;
  --gold: #0f7a37;
  --star: #f5b300;
  --success: #22c55e;
  --danger: #ef4444;

  /* Tipografia — Inter para leitura de corpo, Inter Tight (mesma família,
     corte mais condensado, feito para títulos) para dar peso editorial aos
     destaques sem introduzir uma fonte estranha à identidade atual. */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Escala fluida */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Formas */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.06), 0 1px 1px rgba(20, 20, 30, 0.04);
  --shadow-md: 0 2px 6px rgba(20, 20, 30, 0.06), 0 12px 28px rgba(20, 20, 30, 0.08);
  --shadow-lg: 0 8px 20px rgba(20, 20, 30, 0.08), 0 30px 70px rgba(20, 20, 30, 0.12);
  --shadow-accent: 0 4px 12px rgba(22, 163, 74, 0.16), 0 14px 32px rgba(22, 163, 74, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1180px;
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 800;
  text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   3. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--bg-alt); }

@media (min-width: 768px) {
  .section { padding-block: var(--sp-9); }
  .container { padding-inline: var(--sp-5); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }

.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }

/* --------------------------------------------------------------------------
   4. BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 16px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease);
  will-change: transform;
  min-height: 52px;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.26), 0 18px 38px rgba(22, 163, 74, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn--ghost {
  border: 1.5px solid var(--border);
  background: rgba(20, 20, 30, 0.02);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text-dim); background: rgba(20, 20, 30, 0.04); transform: translateY(-1px); }

.btn--lg { padding: 20px 36px; font-size: var(--fs-lg); min-height: 62px; }
.btn--block { display: flex; width: 100%; }

.btn--pulse {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22), 0 16px 32px rgba(22, 163, 74, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn--pulse:hover {
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.26), 0 20px 40px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   5. BARRA DE ANÚNCIO + HEADER
   -------------------------------------------------------------------------- */
.announce {
  background: linear-gradient(90deg, #06170d, #0b2a17, #06170d);
  border-bottom: 1px solid rgba(22, 163, 74, 0.25);
  color: #d7f7e3;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  padding: 7px var(--sp-4);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.announce::-webkit-scrollbar { display: none; }

@media (max-width: 480px) {
  .announce {
    font-size: 0.5625rem;
    letter-spacing: 0;
    padding: 7px var(--sp-3);
  }
}
.announce strong { color: var(--accent); }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header__inner {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: var(--sp-4);
  height: var(--header-h);
}

.header__spacer { grid-column: 3; grid-row: 1; display: block; width: 42px; height: 42px; }

.logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.logo__img { height: 56px; width: auto; max-width: 240px; object-fit: contain; display: block; }
@media (min-width: 560px) {
  .header { --header-h: 84px; }
  .logo__img { height: 72px; max-width: 320px; }
}

.nav { display: none; }
.header__cta { display: none; }

.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding: var(--sp-3) var(--sp-4) var(--sp-5);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.mobile-nav a:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-7) var(--sp-8);
  background:
    radial-gradient(900px 480px at 78% 8%, rgba(22, 163, 74, 0.06), transparent 62%),
    radial-gradient(700px 500px at 8% 92%, rgba(22, 163, 74, 0.03), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 940px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); }
  .hero { padding-block: var(--sp-8) var(--sp-9); }
}

.hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}
.hero h1 .hl { color: var(--accent); }
.hero__sub {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: var(--sp-5);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero__actions .btn { flex: 1 1 220px; }

.social-proof {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.avatars { display: flex; }
.avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0c;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: #e2e4ea; color: #14141a; }
.avatars span:nth-child(2) { background: #cfd2da; color: #14141a; }
.avatars span:nth-child(3) { background: #16a34a; }
.avatars span:nth-child(4) { background: #dcdee4; color: #14141a; }

.stars { color: var(--star); letter-spacing: 2px; font-size: var(--fs-sm); }

.hero__media { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 9px 16px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* Placeholder de imagem (trocar por <img>) */
.ph {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  background:
    linear-gradient(135deg, #eef0f3 0%, #e4e6eb 45%, #f2f3f6 100%);
  color: var(--text-dim);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. BARRA DE SELOS
   -------------------------------------------------------------------------- */
.trustbar {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-alt);
  padding-block: var(--sp-4);
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 760px) { .trustbar__grid { grid-template-columns: repeat(4, 1fr); } }

.trust {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.trust__ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: var(--accent);
}
.trust strong { display: block; font-size: var(--fs-sm); font-weight: 700; }
.trust small { color: var(--text-dim); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   8. PROBLEMA / ANTES-DEPOIS
   -------------------------------------------------------------------------- */
.split { display: grid; gap: var(--sp-5); }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; } }

.pain-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-muted);
}
.pain-list li:last-child { border-bottom: none; }
.pain-list .x {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  font-weight: 900;
  font-size: 13px;
}
.pain-list .v {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-weight: 900;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   9. CARDS DE BENEFÍCIO — carrossel com efeito 3D (coverflow)
   -------------------------------------------------------------------------- */
.cards-carousel {
  --card-w: min(320px, 82vw);
  position: relative;
}

.cards-track {
  --track-pad: calc((100% - var(--card-w)) / 2);
  display: flex;
  gap: var(--sp-4);
  padding-inline: var(--track-pad);
  padding-block: var(--sp-2) var(--sp-3);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  perspective: 1400px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline-offset: 6px;
}
.cards-track::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transform-origin: center center;
  will-change: transform, opacity;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card.is-active { border-color: rgba(22, 163, 74, 0.4); box-shadow: var(--shadow-md); }
.card__ico {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.16), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(22, 163, 74, 0.24);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: var(--fs-sm); }

.cards-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
.cards-carousel__arrow {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cards-carousel__arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.cards-carousel__arrow:active { transform: translateY(0) scale(0.96); }

.cards-carousel__dots { display: flex; align-items: center; gap: 2px; }
.cards-carousel__dot {
  width: 26px; height: 26px;
  display: grid; place-items: center;
}
.cards-carousel__dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s var(--ease), width 0.2s var(--ease), border-radius 0.2s var(--ease);
}
.cards-carousel__dot:hover::after { background: var(--text-dim); }
.cards-carousel__dot.is-active::after { background: var(--accent); width: 22px; border-radius: var(--r-full); }

@media (prefers-reduced-motion: reduce) {
  .cards-track { scroll-behavior: auto; perspective: none; }
  .card { transform: none !important; }
}

/* --------------------------------------------------------------------------
   10. BLOCO DE OFERTA
   -------------------------------------------------------------------------- */
.offer {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-soft);
}
/* grid-template-columns: minmax(0, 1fr) — sem o minmax(0,...), a coluna
   do grid cresce para caber o conteúdo mais largo de dentro (aqui, a
   faixa de miniaturas de cor), e essa coluna estourava a tela inteira
   no mobile, cortando a foto/preço/botão de compra à direita (o bug
   reportado). Com minmax(0,1fr) a coluna nunca passa do espaço
   disponível e quem estoura rola por dentro, como deveria. */
.offer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
@media (min-width: 940px) { .offer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; } }

/* Galeria */
.gallery__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__tag {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
@media (max-width: 420px) {
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
.gallery__thumbs button {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.gallery__thumbs button:hover { border-color: var(--text-dim); }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs .ph { font-size: 9px; }
.gallery__thumbs .ph::after { inset: 4px; }

/* Painel de compra */
.buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
}
@media (min-width: 560px) { .buybox { padding: var(--sp-6); } }

.buybox h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-2); }

.rating-line {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--text-muted);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.rating-line a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

.price { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; }
.price__old { color: var(--text-dim); text-decoration: line-through; font-size: var(--fs-lg); }
.price__now { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price__off {
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--r-full);
}
.price__note { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.price__pix {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--sp-3);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: var(--fs-sm);
}
.price__pix strong { color: var(--success); }
.price__pix-icon { flex: none; display: block; }

.field { margin-top: var(--sp-5); }
.field__label {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 700;
  margin-bottom: var(--sp-3);
}
.field__label span { color: var(--text-muted); font-weight: 500; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  position: relative;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.swatch:hover { transform: scale(1.07); border-color: var(--text-dim); }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a3a3b0' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.select:hover { border-color: var(--text-dim); }
.select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); outline: none; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color 0.2s var(--ease); }
.qty:focus-within { border-color: var(--accent); }
.qty button { width: 44px; height: 46px; font-size: 20px; font-weight: 700; color: var(--text-muted); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty output { width: 48px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.stock {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.stock__bar {
  height: 7px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--border);
}
.stock__fill {
  height: 100%;
  width: 28%;
  border-radius: var(--r-full);
  background: var(--danger);
}

.buybox__cta { margin-top: var(--sp-5); }
.buybox__safe {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: var(--sp-3);
  font-size: var(--fs-xs); color: var(--text-dim);
}

.payments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--sp-4); }
.payments--center { justify-content: center; }
.payments span {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--surface-2);
}
.payments__badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 26px; padding: 0 8px !important;
  background: #fff !important;
  border-color: var(--border);
}
.payments__badge img { height: 15px; width: auto; display: block; }

/* --------------------------------------------------------------------------
   11. KIT / LISTA COM CHECK
   -------------------------------------------------------------------------- */
.kit-list { display: grid; gap: var(--sp-3); }
@media (min-width: 700px) { .kit-list { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-5); } }
.kit-list li {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s var(--ease);
}
.kit-list li:hover { border-color: var(--text-dim); }
.kit-list .num {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: var(--fs-sm);
}
.kit-list strong { display: block; font-size: var(--fs-sm); }
.kit-list small { color: var(--text-dim); font-size: var(--fs-xs); }

.gift {
  margin-top: var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.12));
  border: 1px solid rgba(22, 163, 74, 0.24);
}
.gift__ico { font-size: 30px; flex: none; }
.gift strong { color: var(--gold); }

/* --------------------------------------------------------------------------
   12. TABELA COMPARATIVA
   -------------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.compare { width: 100%; border-collapse: collapse; min-width: 540px; background: var(--surface); }
.compare th, .compare td { padding: 16px var(--sp-4); text-align: left; border-bottom: 1px solid var(--border-soft); font-size: var(--fs-sm); }
.compare thead th { background: var(--surface-2); font-weight: 800; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.compare thead th:nth-child(2) { color: var(--accent); }
.compare tbody tr { transition: background 0.2s var(--ease); }
.compare tbody tr:hover { background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { font-weight: 600; }
.compare .yes { color: var(--success); font-weight: 800; }
.compare .no { color: var(--danger); font-weight: 800; }

/* --------------------------------------------------------------------------
   13. PASSOS DE INSTALAÇÃO
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-4); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.step:hover { border-color: rgba(22, 163, 74, 0.35); transform: translateY(-2px); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px; left: var(--sp-4);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 900;
}
.step h3 { font-size: var(--fs-base); margin-bottom: 6px; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   14. AVALIAÇÕES
   -------------------------------------------------------------------------- */
.reviews__summary {
  display: grid; gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-5);
}
@media (min-width: 760px) { .reviews__summary { grid-template-columns: 240px 1fr; align-items: center; } }
.reviews__score { text-align: center; }
.reviews__score b { display: block; font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.reviews__score small { color: var(--text-dim); font-size: var(--fs-xs); }

.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 42px 1fr 44px; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bar__track { display: block; height: 8px; background: var(--surface-2); border-radius: var(--r-full); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--star); border-radius: var(--r-full); }

.testimonials { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.testimonial:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.testimonial__head { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial__av {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  object-fit: cover;
  font-weight: 800; color: #0a0a0c;
  background: var(--accent);
  border: 1px solid var(--border-soft);
  flex: none;
}
.testimonial__head b { display: block; font-size: var(--fs-sm); }
.testimonial__head small { color: var(--text-dim); font-size: var(--fs-xs); }
.testimonial p { font-size: var(--fs-sm); color: var(--text-muted); }
.testimonial__photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.testimonial__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--success); font-weight: 600; }

/* --------------------------------------------------------------------------
   14b. CARROSSEL AUTOMÁTICO (antes/depois, vídeos de clientes) — troca um
   item por vez sozinho; fotos avançam por tempo, vídeos avançam quando
   terminam. Ver initAutoCarousels() em main.js.
   -------------------------------------------------------------------------- */
.autocarousel__track { display: flex; height: 100%; transition: transform 0.5s var(--ease); }
.autocarousel__slide { flex: 0 0 100%; height: 100%; }
.autocarousel__slide img,
.autocarousel__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.autocarousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-3); }
.autocarousel__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: width 0.2s var(--ease), background 0.2s var(--ease);
}
.autocarousel__dot.is-active { width: 18px; border-radius: 999px; background: var(--accent); }

/* --------------------------------------------------------------------------
   15. GARANTIA
   -------------------------------------------------------------------------- */
.guarantee {
  display: grid; gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(22, 163, 74, 0.28);
}
@media (min-width: 760px) { .guarantee { grid-template-columns: 170px 1fr; } }
.guarantee__seal {
  width: 140px; height: 140px;
  margin-inline: auto;
  display: grid; place-items: center;
  overflow: hidden;
}
.guarantee__seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.guarantee h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.guarantee p { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   16. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq__item:hover { border-color: var(--text-dim); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-weight: 700;
  font-size: var(--fs-base);
  transition: background 0.2s var(--ease);
}
.faq__q:hover { background: rgba(20, 20, 30, 0.02); }
.faq__q .chev { flex: none; transition: transform 0.22s ease; color: var(--accent); }
.faq__q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s ease;
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   17. CTA FINAL
   -------------------------------------------------------------------------- */
.final-cta {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(22, 163, 74, 0.08), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.final-cta h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-3); }
.final-cta p { color: var(--text-muted); max-width: 56ch; margin: 0 auto var(--sp-5); font-size: var(--fs-lg); }

/* --------------------------------------------------------------------------
   17b. SOBRE A LOJA — banner editorial full-bleed
   Inspirado em lojas que intercalam grids densos com uma pausa fotográfica
   de largura total (evita monotonia de seção-com-borda-atrás-de-seção-com-
   borda) — usa a mesma foto do produto já carregada no hero, sem pedir
   nenhum asset novo.
   -------------------------------------------------------------------------- */
.about-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.about-banner__media {
  position: absolute;
  inset: 0;
}
.about-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.about-banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, rgba(246, 247, 249, 0.55) 45%, var(--bg-alt) 100%);
}
.about-banner__inner {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   18. RODAPÉ
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding-block: var(--sp-7) var(--sp-5);
  margin-bottom: 76px; /* espaço para a barra sticky mobile */
}
@media (min-width: 860px) { .footer { margin-bottom: 0; } }

.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

.footer h2 {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: var(--sp-4);
  font-weight: 800;
}
.footer ul { display: grid; gap: 10px; }
.footer a { font-size: var(--fs-sm); color: var(--text-muted); transition: color 0.15s ease; }
.footer a:hover { color: var(--accent); }
.footer p { font-size: var(--fs-sm); color: var(--text-muted); }

.footer__legal {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-soft);
  display: grid; gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}
@media (min-width: 760px) { .footer__legal { grid-template-columns: 1fr auto; align-items: center; } }

/* --------------------------------------------------------------------------
   19. BARRA STICKY MOBILE
   -------------------------------------------------------------------------- */
.sticky-buy {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy__info { flex: 1; min-width: 0; }
.sticky-buy__info b { display: block; font-size: var(--fs-base); font-weight: 900; }
.sticky-buy__info small { color: var(--text-dim); font-size: 11px; display: block; }
.sticky-buy .btn { padding: 13px 22px; min-height: 46px; font-size: var(--fs-sm); flex: none; }
@media (min-width: 860px) { .sticky-buy { display: none; } }

/* --------------------------------------------------------------------------
   20. WHATSAPP FLUTUANTE
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 88px;
  z-index: 65;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #0a0a0c;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.16s ease;
}
.wa-float:hover { transform: scale(1.07); }
@media (min-width: 860px) { .wa-float { bottom: 24px; } }

/* --------------------------------------------------------------------------
   21. PÁGINAS DE CONTEÚDO (políticas)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: var(--sp-7) var(--sp-5);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-2); }
.page-hero p { color: var(--text-muted); }

.breadcrumb { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--text-dim); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }

.prose { max-width: 76ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose p { margin-bottom: var(--sp-4); color: var(--text-muted); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--sp-4); display: grid; gap: 8px; }
.prose ol { list-style: decimal; padding-left: 1.4em; margin-bottom: var(--sp-4); display: grid; gap: 8px; }
.prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.prose th, .prose td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose td { color: var(--text-muted); }

.note {
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: var(--sp-5);
}
.note p:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}
.toc h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 var(--sp-3); }
.toc ol { list-style: decimal; padding-left: 1.3em; display: grid; gap: 6px; margin: 0; }
.toc a { color: var(--text-muted); font-size: var(--fs-sm); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Formulário simples (contato / rastreio) */
.form { display: grid; gap: var(--sp-4); max-width: 520px; }
.form label { font-size: var(--fs-sm); font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form input:hover, .form textarea:hover { border-color: var(--text-dim); }
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); outline: none; }
.form textarea { min-height: 130px; resize: vertical; }

/* --------------------------------------------------------------------------
   21b. CONSULTA DE RASTREIO
   -------------------------------------------------------------------------- */
.rastreio-toggle { display: flex; gap: var(--sp-2); margin: var(--sp-3) 0; }
.rastreio-toggle .btn { flex: 1 1 auto; }
.rastreio-form { margin: var(--sp-4) 0 var(--sp-5); }
.rastreio-form__row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.rastreio-form__row input {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: var(--fs-base);
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.rastreio-form__row input::placeholder { text-transform: none; letter-spacing: normal; color: var(--text-dim); }
.rastreio-form__row input:hover { border-color: var(--text-dim); }
.rastreio-form__row input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16); outline: none; }
.rastreio-form__row .btn { flex: 0 0 auto; }
.rastreio-form__error { margin-top: var(--sp-2); color: var(--danger); font-size: var(--fs-sm); }

.rastreio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
}
.rastreio-card__produto { font-weight: 700; font-size: var(--fs-sm); margin-bottom: 4px; }
.rastreio-card__codigo {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.rastreio-card--cancelado { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.rastreio-card--cancelado .rastreio-card__title { font-weight: 700; margin-bottom: 4px; }
.rastreio-card--cancelado .rastreio-card__desc { color: var(--text-muted); font-size: var(--fs-sm); }
.rastreio-card--entregue {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.07);
  text-align: center;
  font-weight: 600;
}

.rastreio-timeline { display: grid; gap: 0; margin-bottom: var(--sp-4); }
.rastreio-step {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px 0 11px var(--sp-4);
  border-left: 2px solid var(--border);
  position: relative;
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.rastreio-step:last-child { border-left-color: transparent; }
.rastreio-step__dot {
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
}
.rastreio-step.is-done { color: var(--text-muted); border-left-color: var(--accent); }
.rastreio-step.is-done .rastreio-step__dot { background: var(--accent); border-color: var(--accent); }
.rastreio-step.is-current { color: var(--text); font-weight: 700; border-left-color: var(--accent); }
.rastreio-step.is-current .rastreio-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
}

/* --------------------------------------------------------------------------
   22. REFINAMENTO MOBILE (< 768px)
   Este bloco só afeta telas abaixo do breakpoint que o próprio sistema já
   usa como corte mobile/desktop (.section e .container já mudam de escala
   em 768px). Nada aqui altera desktop. A estratégia é comprimir os tokens
   de espaçamento/tipografia grandes (--sp-5 a --sp-8, --fs-3xl/4xl), que já
   alimentam dezenas de componentes (cards, seções, hero, depoimentos, FAQ,
   rodapé) — assim uma mudança pequena reduz a altura da página inteira sem
   duplicar regras por componente. O que não é resolvido por token (ícones e
   números com tamanho fixo em px) recebe um ajuste pontual abaixo.
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --sp-5: 1.15rem;   /* 24px -> 18px: padding interno de cards/paineis */
    --sp-6: 1.5rem;    /* 32px -> 24px: respiro entre título e conteúdo */
    --sp-7: 2.25rem;   /* 48px -> 36px: padding de blocos grandes (hero, CTA final, rodapé) */
    --sp-8: 2.75rem;   /* 64px -> 44px: padding vertical das seções */

    /* Títulos continuam grandes o bastante para hierarquia, mas não brigam
       com o conteúdo por espaço vertical na tela pequena. */
    --fs-3xl: clamp(1.625rem, 1.3rem + 1.6vw, 2rem);
    --fs-4xl: clamp(1.875rem, 1.5rem + 2vw, 2.25rem);
  }

  /* Leitura mais rápida: parágrafos um pouco mais compactos */
  body { line-height: 1.55; }

  /* Hero: a foto ocupa menos altura para o bloco caber quase inteiro
     na primeira tela, sem cortar informação (mesma imagem, proporção
     mais baixa). */
  .hero__card { aspect-ratio: 16 / 10; }

  /* Ícones: reduzidos para nunca competirem com o texto ao lado */
  .trust__ico { width: 34px; height: 34px; }
  .card__ico { width: 38px; height: 38px; }
  .guarantee__seal { width: 100px; height: 100px; }
  .gift__ico { font-size: 22px; }
  .step::before { width: 28px; height: 28px; top: -14px; }

  /* Prova social: nota em destaque um pouco menor, sem perder ênfase */
  .reviews__score b { font-size: 2.25rem; }

  /* Botões grandes continuam confortáveis ao toque (~54px), só não
     ocupam mais espaço do que o necessário */
  .btn--lg { padding: 16px 26px; min-height: 54px; }

  /* Tabela comparativa: em telas estreitas a tabela de 3 colunas não cabe
     e força scroll lateral com a última coluna cortada. Cada linha vira um
     cartão com o critério no topo e os dois valores lado a lado — mesmo
     conteúdo, sem rolagem horizontal. O cabeçalho da tabela continua no
     código (acessível a leitor de tela via th/scope), só fica visualmente
     oculto porque cada valor já reexibe seu rótulo. */
  .compare-wrap { overflow-x: visible; border: none; border-radius: 0; }
  .compare { min-width: 0; border-collapse: separate; border-spacing: 0; }
  .compare thead th {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .compare tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: 10px;
  }
  .compare tbody tr:last-child { margin-bottom: 0; }
  .compare tbody tr:hover { background: var(--surface); }
  .compare td {
    border-bottom: none;
    padding: 0;
    font-size: var(--fs-sm);
  }
  .compare td:first-child {
    grid-column: 1 / -1;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
  }
  .compare td:nth-child(2), .compare td:nth-child(3) { display: flex; flex-direction: column; gap: 3px; }
  .compare td:nth-child(2)::before, .compare td:nth-child(3)::before {
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim);
  }
  .compare td:nth-child(2)::before { content: "Revestcar"; }
  .compare td:nth-child(3)::before { content: "Capa genérica"; }

  /* ------------------------------------------------------------------------
     MENOS CAIXAS, MAIS LISTA — o site tinha muitos grids de card com
     borda + fundo (kit, passos, selos, estoque) empilhados em coluna
     única no celular. Uma tela cheia de retângulos empilhados lê como
     "poluída" mesmo quando o conteúdo é o mesmo. Aqui a informação não
     muda: só troca o enquadramento "card" por lista/linha onde a grade
     de 2+ colunas do desktop deixa de existir de qualquer forma.
     ------------------------------------------------------------------------ */

  /* Kit: 6 caixas com borda -> lista dividida por linha fina, no
     mesmo padrão visual do pain-list já usado na seção "O problema". */
  .kit-list { gap: 0; }
  .kit-list li {
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
    padding: var(--sp-3) 0;
  }
  .kit-list li:last-child { border-bottom: none; }

  /* Instalação: 4 cards com número flutuando por cima -> linha do
     tempo vertical (número à esquerda, texto à direita), sem borda
     por passo. Mesmo conteúdo, menos retângulos na tela. */
  .steps { gap: 0; }
  .step {
    background: none;
    border: none;
    border-radius: 0;
    padding: var(--sp-3) 0 var(--sp-3) 44px;
    border-bottom: 1px solid var(--border-soft);
  }
  .step:last-child { border-bottom: none; }
  .step:hover { transform: none; }
  .step::before { top: var(--sp-3); left: 0; }

  /* Selos de pagamento: tira só a borda de cada bandeira (o fundo
     branco continua, é o que dá legibilidade ao logo colorido sobre o
     tema escuro) — reduz o efeito "parede de figurinhas emolduradas"
     perto do botão de compra, sem arriscar o logo sumir no fundo. */
  .payments span, .payments__badge {
    border: none !important;
    padding: 4px 8px !important;
  }
  .payments { gap: 6px; }

  /* Estoque: mantém o aviso em texto (é a parte que importa para
     urgência), remove a barra colorida — uma caixa a menos disputando
     atenção logo acima do botão principal. */
  .stock__bar { display: none; }

  /* Pix: a economia continua em negrito e verde, só sem a caixa com
     fundo/borda própria, que duplicava visualmente o selo "33% OFF"
     a poucos pixels de distância. */
  .price__pix {
    background: none;
    border: none;
    padding: var(--sp-2) 0 0;
  }

  /* Barra de selos (frete/garantia/arrependimento/segurança): 4 itens em
     grid 2x2 ocupavam bastante altura logo abaixo do hero. Vira uma
     faixa horizontal que passa sozinha em loop infinito (JS duplica os
     itens e anima translateX — ver initMarquee em main.js). Antes de o
     JS rodar, fica com overflow-x:auto como reforço (sem JS, dá pra
     arrastar manualmente; com JS, a classe .is-marquee assume). */
  .trustbar__grid {
    /* Esse elemento é o MESMO nó que .container (classes combinadas no
       HTML) — não pode levar margin negativa aqui: isso brigava com o
       margin-inline:auto do container e estourava a largura da página
       em ~48px, cortando conteúdo à direita em toda a tela (o bug
       reportado). O scroll fica contido dentro do padding normal do
       container, sem sangrar para fora dele. */
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-3);
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 24px), transparent 100%);
  }
  .trustbar__grid::-webkit-scrollbar { display: none; }
  /* Modo carrossel automático: o JS controla a posição via transform,
     então o scroll nativo tem que sair do caminho (senão os dois
     brigam pela mesma faixa). Os cartões com borda/fundo fixos (feitos
     para arrastar manualmente, com a próxima caixa cortada na borda
     como convite pro dedo) ficam ERRADOS aqui: numa faixa automática
     não tem convite nenhum, então a caixa cortada só parece quebrada.
     Em modo automático os itens viram texto solto (sem caixa, sem
     borda), com largura pelo próprio conteúdo — o que sai da tela
     desaparece dentro do degradê (mask-image), nunca corta uma borda
     no meio. */
  .trustbar__grid.is-marquee {
    /* O root vira só a "janela" fixa que recorta — quem se move é o
       .trustbar__track lá dentro (ver initMarquee em main.js). Animar
       transform no próprio elemento com overflow:hidden desloca a
       janela inteira junto com o conteúdo e faz tudo sumir da tela;
       por isso agora são dois elementos separados. */
    display: block;
    overflow-x: hidden;
    scroll-snap-type: none;
    cursor: default;
  }
  .trustbar__track {
    display: flex;
    align-items: center;
    will-change: transform;
  }
  .trustbar__grid.is-marquee .trust {
    scroll-snap-align: none;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    margin-inline: var(--sp-5);
    position: relative;
  }
  .trustbar__grid.is-marquee .trust::before {
    content: "";
    position: absolute;
    left: calc(var(--sp-5) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border);
  }
  .trustbar__grid.is-marquee .trust:first-child::before { content: none; }
  .trust {
    flex: 0 0 auto;
    width: 78%;
    max-width: 260px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
  }
  .trust:active { transform: scale(0.97); border-color: rgba(22, 163, 74, 0.4); }

  /* Miniaturas de cor: 11 fotos em grade de 4 a 6 colunas empilhavam em
     2-3 linhas dentro do painel de compra. Vira uma faixa horizontal
     rolável (miniaturas menores, uma linha só) — a cor escolhida
     continua marcada com a borda verde, só muda como as opções cabem
     na tela. */
  .gallery__thumbs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    margin-top: var(--sp-3);
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
  }
  .gallery__thumbs::-webkit-scrollbar { display: none; }
  .gallery__thumbs button {
    flex: 0 0 52px;
    width: 52px;
    scroll-snap-align: start;
    transition: transform 0.15s var(--ease);
  }
  .gallery__thumbs button:active { transform: scale(0.92); }
}
