/* =========================================================
   style.css — Estilos de todo o site
   Para mudar as cores, edite apenas os valores em :root.
   ========================================================= */

:root {
  --bg: #0d0d0f;
  --panel: #141417;
  --panel-2: #1b1b20;
  --line: #2a2a31;
  --line-soft: #1e1e24;
  --text: #ececf0;
  --muted: #a2a2ad;
  --accent: #a9bcff;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 56ch; }

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

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-family: var(--font-display); font-weight: 650; letter-spacing: -0.01em; }
.brand svg { width: 24px; height: 24px; flex: none; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.97rem; transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.site-nav a[aria-current="page"], .site-nav a.is-active { color: var(--text); background: var(--panel-2); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  font: inherit; font-size: 0.95rem; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem; cursor: pointer;
}
.nav-toggle .bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { bottom: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem; background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
}

/* ---------- Botões e selos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); border-color: #3a3a43; }
.btn.is-pending { cursor: help; }

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; line-height: 1;
  padding: 0.4rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.badge-free { background: var(--text); color: var(--bg); }
.badge-free::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); }
.badge-paid { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.75rem 0 0.75rem; }
.price { font-family: var(--font-display); font-weight: 650; font-size: 1.4rem; letter-spacing: -0.01em; margin-right: 0.35rem; }
.price:empty { display: none; }

/* Aviso de compatibilidade */
.notice { margin-top: 1.5rem; padding: 1.1rem 1.25rem; max-width: 56ch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; }
.notice p { margin: 0 0 0.5rem; }
.notice ul { margin: 0.25rem 0 0.65rem; padding-left: 1.2rem; }
.notice p:last-child { margin: 0; color: var(--muted); }

/* ---------- Fundo de grade (tema planilha) ---------- */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

/* ---------- Seções ---------- */
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Página inicial ---------- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero-copy { animation: enter 0.7s ease both; }
.hero-sheet { animation: enter 0.7s 0.15s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* Tabela decorativa da página inicial */
.sheet-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.sheet { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.sheet th, .sheet td { border-bottom: 1px solid var(--line-soft); text-align: left; padding: 0; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet thead th { background: var(--panel-2); color: var(--muted); font-weight: 500; font-size: 0.88rem; padding: 0.6rem 1rem; }
.sheet .rn { width: 2.75rem; text-align: center; color: var(--muted); font-weight: 400; font-size: 0.85rem; background: var(--panel-2); border-right: 1px solid var(--line-soft); }
.sheet td a { display: block; padding: 0.85rem 1rem; text-decoration: none; transition: background-color 0.2s; }
.sheet td.status { width: 1%; white-space: nowrap; padding: 0 1rem; }
.sheet tbody tr:hover td { background: var(--panel-2); }

/* ---------- Cards de produtos ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.25s;
}
.card:hover { border-color: #43434d; }
.card-media { display: block; border-bottom: 1px solid var(--line-soft); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--panel); }
.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.card-body h3 { margin: 0.25rem 0 0; }
.card-body p { color: var(--muted); font-size: 0.98rem; margin: 0 0 0.75rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Filtros do catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.75rem; }
.chip {
  font: inherit; font-size: 0.94rem; padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: #43434d; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Benefícios e funcionalidades ---------- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 2.5rem; }
.benefit { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.benefit p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Faixa de chamada ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
}
.cta-band h2 { margin-bottom: 0.25rem; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band .cta-row { margin: 0; }

/* ---------- Cabeçalho de página (catálogo e produtos) ---------- */
.page-head { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; }
.page-head p { color: var(--muted); max-width: 56ch; margin: 0; font-size: 1.15rem; }

.back {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.75rem;
  color: var(--muted); text-decoration: none; font-size: 0.97rem;
}
.back::before { content: "\2039"; font-size: 1.4rem; line-height: 1; }
.back:hover { color: var(--text); }

/* ---------- Páginas de produto ---------- */
.product-top { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }
.product-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.product-hero h1 { margin: 1rem 0 0.6rem; font-size: clamp(2rem, 4.8vw, 3.2rem); }
.product-hero .note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.product-cover { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.product-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--panel); }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.shot-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 16 / 10; padding: 1rem; color: var(--muted); font-size: 0.95rem;
  border: 1px dashed #3a3a43; border-radius: var(--radius-sm); background: var(--panel);
}
.shot figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 2rem; padding: 2.5rem 0; }
.footer-contact { margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-title { font-family: var(--font); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; margin: 0 0 0.75rem; color: var(--text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.97rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 2rem; padding-top: 1.25rem; color: var(--muted); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 420px); padding: 0.85rem 1.2rem;
  background: var(--text); color: var(--bg); border-radius: var(--radius-sm);
  font-size: 0.97rem; font-weight: 500; text-align: center;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Rodapé de contato */
.site-footer#contato { scroll-margin-top: 24px; }
.site-footer#contato h2 { margin: 0 0 12px; font-size: 1.25rem; }
.site-footer#contato p { max-width: 760px; }
.site-footer#contato .footer-contact { margin-top: 16px; font-weight: 700; }


/* ---------- Galeria: ampliar imagens ao clicar ---------- */
.shot img { cursor: zoom-in; transition: transform 0.18s ease, border-color 0.18s ease; }
.shot img:hover { border-color: #626273; }
.image-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 36px); background: rgba(0, 0, 0, 0.92); }
.image-lightbox.is-open { display: flex; }
.image-lightbox img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 50px rgba(0,0,0,.45); cursor: zoom-out; }
.image-lightbox-close { position: absolute; top: 12px; right: 18px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(20,20,24,.8); color: white; font-size: 30px; line-height: 1; cursor: pointer; }
.image-lightbox-close:hover { background: rgba(70,70,80,.95); }
body.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .shot img { transition: none; } }
