/* ============ Tokens ============ */
:root {
  --green: #aeca41;
  --green-dark: #95b02e;
  --ink: #343741;
  --ink-deep: #26282f;
  --ink-soft: #5c606b;
  --white: #ffffff;
  --paper: #f4f5f1;
  --line: #e2e4de;
  --ml-yellow: #ffe600;
  --ml-yellow-dark: #f0d800;
  --ml-blue: #2d3277;

  --font-display: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

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

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 10px; height: 10px; background: var(--green); }

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn-primary, .btn-wa { background: var(--green); color: var(--ink-deep); }
.btn-primary:hover, .btn-wa:hover { background: var(--green-dark); }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-sm { padding: 9px 14px; font-size: 14px; }

.btn-ml { background: var(--ml-yellow); color: var(--ml-blue); }
.btn-ml:hover { background: var(--ml-yellow-dark); }

.btn-wa-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-wa-outline .ico { color: var(--green-dark); }
.btn-wa-outline:hover { background: var(--ink); color: var(--white); }
.btn-wa-outline:hover .ico { color: var(--green); }

.is-pending { cursor: not-allowed; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(38, 40, 47, .08); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--green); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--ink-deep);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  /* grade técnica sutil */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero .eyebrow { color: var(--green); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.hero .lead { margin: 22px 0 34px; font-size: 19px; color: #c9ccd3; max-width: 34em; }
.hero-media { position: relative; }
.hero-media::before {
  content: '';
  position: absolute;
  top: -18px;
  right: -18px;
  width: 55%;
  height: 70%;
  background: var(--green);
}
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ============ Faixa de confiança ============ */
.trust { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.trust-list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
}
.trust-list li + li { border-left: 1px solid rgba(255,255,255,.12); }
.trust-list .ico { color: var(--green); width: 22px; height: 22px; }

/* ============ Seções ============ */
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 42px); }

/* ============ Produtos ============ */
.products { background: var(--paper); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--green); }

.gallery { position: relative; border-bottom: 1px solid var(--line); }
.gallery-main { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.thumbs { display: flex; gap: 8px; padding: 0 16px 16px; }
.thumbs button {
  padding: 0;
  width: 64px;
  border: 2px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.thumbs button.is-active, .thumbs button:hover { border-color: var(--green); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card h3 { font-size: 20px; font-weight: 700; }
.pn { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.pn strong { font-family: var(--font-display); color: var(--ink); letter-spacing: .04em; }
.desc { margin-top: 12px; color: var(--ink-soft); }
.price {
  margin: auto 0 0;
  padding-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.price span { font-size: 18px; vertical-align: top; position: relative; top: 4px; margin-right: 2px; }
.actions { display: grid; gap: 10px; margin-top: 20px; }
.actions .btn { width: 100%; }

/* ============ B2B ============ */
.b2b { background: var(--ink-deep); color: var(--white); position: relative; overflow: hidden; }
.b2b::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border: 40px solid rgba(174, 202, 65, .08);
}
.b2b-inner { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: start; position: relative; z-index: 1; }
.b2b-mark {
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--ink-deep);
}
.b2b-mark .ico { width: 64px; height: 64px; }
.b2b .eyebrow { color: var(--green); }
.b2b h2 { font-size: clamp(28px, 3.2vw, 40px); max-width: 20em; }
.b2b-copy > p:not(.eyebrow) { margin: 20px 0 32px; font-size: 18px; color: #c9ccd3; max-width: 40em; }

/* ============ FAQ ============ */
.faq-inner { max-width: 860px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after { content: '–'; background: var(--green); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-soft); }
.faq details a { color: var(--ink); font-weight: 700; text-decoration-color: var(--green); text-decoration-thickness: 2px; }

/* ============ Páginas de texto ============ */
.article-head { position: relative; background: var(--ink-deep); color: var(--white); overflow: hidden; }
.article-head::before {
  /* mesma grade técnica do hero */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.article-head-inner { position: relative; padding-top: 48px; padding-bottom: 64px; }
.breadcrumb { margin-bottom: 28px; font-size: 14px; color: #8d919b; }
.breadcrumb a { color: #c9ccd3; text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.article-head .eyebrow { color: var(--green); }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 700; max-width: 22em; }
.article-head .lead { margin-top: 20px; font-size: 19px; color: #c9ccd3; max-width: 40em; }
.article-meta { margin-top: 24px; font-size: 14px; color: #8d919b; }

.article-body { padding-top: 64px; padding-bottom: 96px; }
.prose, .article-cta { max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.9em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--ink); font-weight: 700; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--green-dark); }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--green-dark); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.prose .note { padding: 20px 24px; background: var(--paper); border-left: 4px solid var(--green); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-weight: 600; border-bottom: 2px solid var(--ink); }

.article-cta { margin-top: 64px; padding: 36px; background: var(--ink-deep); color: var(--white); box-shadow: 8px 8px 0 var(--green); }
.article-cta h2 { font-size: clamp(24px, 2.6vw, 30px); }
.article-cta p { margin-top: 12px; color: #c9ccd3; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #c9ccd3; font-size: 15px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 56px;
}
.footer-brand img { width: 200px; }
.footer-info h3 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.footer-info p + p { margin-top: 8px; }
.footer-info a { color: var(--white); text-decoration: none; }
.footer-info a:hover { color: var(--green); }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social .ico { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #8d919b; }

/* ============ Responsivo ============ */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 40px; }
}

@media (max-width: 780px) {
  :root { --header-h: 108px; }
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; height: auto; gap: 12px; padding-top: 12px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand img { height: 28px; }
  .site-header .btn-sm { margin-left: auto; flex: none; padding: 7px 11px; font-size: 13px; gap: 6px; }
  .main-nav {
    order: 3;
    width: calc(100% + 40px);
    margin: 12px -20px 0;
    padding: 0 20px;
    gap: 0;
    border-top: 1px solid var(--line);
    justify-content: space-between;
  }
  .main-nav a { padding: 10px 0; font-size: 14px; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 64px; }
  .hero .lead { font-size: 17px; }
  .hero-media::before { top: -12px; right: -12px; }
  .hero .btn-lg { width: 100%; }

  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { padding: 14px 20px; }
  .trust-list li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .product-grid { grid-template-columns: 1fr; }
  .card:hover { box-shadow: none; }

  .b2b::after { display: none; }
  .b2b-inner { grid-template-columns: 1fr; gap: 28px; }
  .b2b-mark { width: 72px; height: 72px; }
  .b2b-mark .ico { width: 36px; height: 36px; }
  .b2b .btn-lg { width: 100%; padding: 16px 18px; font-size: 16px; }

  .faq summary { font-size: 18px; padding: 20px 0; }
  .faq details p { padding-right: 0; }

  .article-head-inner { padding-top: 32px; padding-bottom: 48px; }
  .article-head .lead { font-size: 17px; }
  .article-body { padding-top: 44px; padding-bottom: 64px; }
  .article-cta { margin-top: 48px; padding: 28px 22px; box-shadow: none; }
  .article-cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
  .footer-brand img { width: 160px; }
}

/* Telas muito estreitas: o botão do header fica só com o ícone do WhatsApp */
@media (max-width: 350px) {
  .site-header .btn-sm span { display: none; }
  .site-header .btn-sm { padding: 8px; }
  .site-header .btn-sm .ico { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
