/* Nuvai Digital — base compartilhada por todas as páginas.
   Páginas de produto sobrescrevem os tokens em :root (ou em body.produto-xxx). */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #15201b;
  --ink-soft: #4a5751;
  --line: #e4ddd2;
  --brand: #0f6b5a;
  --brand-ink: #ffffff;
  --accent: #e8743b;
  --focus: #e8743b;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(21, 32, 27, .06), 0 8px 24px rgba(21, 32, 27, .07);
  --wrap: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111814;
    --surface: #18211c;
    --surface-2: #1f2a24;
    --ink: #eef2ee;
    --ink-soft: #a9b7af;
    --line: #2c3a33;
    --brand: #3fb59a;
    --brand-ink: #0b1310;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #111814;
  --surface: #18211c;
  --surface-2: #1f2a24;
  --ink: #eef2ee;
  --ink-soft: #a9b7af;
  --line: #2c3a33;
  --brand: #3fb59a;
  --brand-ink: #0b1310;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--alt { background: var(--surface-2); }
.eyebrow { font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; display: inline-block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--brand); color: var(--brand-ink);
  font: 700 1.02rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn--block { width: 100%; }

/* Cabeçalho e rodapé */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.15rem/1 var(--font-display); }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav a { font-size: .88rem; } }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer .legal { font-size: .82rem; line-height: 1.6; max-width: 80ch; }

/* Cartões e grade */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }

/* Vitrine */
.product-card { display: grid; overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform .2s ease; }
.product-card:hover { transform: translateY(-3px); }
.product-card__media { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 22px 24px 26px; }
.product-card__tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.product-card--soon { border-style: dashed; box-shadow: none; display: grid; place-items: center; min-height: 260px; text-align: center; color: var(--ink-soft); }

/* Texto longo (políticas) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose li { margin-bottom: .4em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

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