/* ==========================================================================
   Redefast Downloads — tema público (claro/escuro)
   Paleta do Fast Web Stories: azul #0054E2 → ciano #06B6D4
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --border: #e5e9f1;
  --border-strong: #d5dbe7;
  --text: #0b1220;
  --text-2: #4a5568;
  --muted: #7c8799;
  --primary: #0a62e6;
  --primary-hover: #0050c8;
  --primary-soft: #e9f1fe;
  --primary-ring: rgba(10, 98, 230, .18);
  --primary-glow: 0 10px 28px -8px rgba(10, 98, 230, .55);
  --accent: #06b6d4;
  --green: #059669;
  --green-soft: #e6f6f0;
  --amber: #d97706;
  --danger: #dc2626;
  --grid: rgba(10, 98, 230, .055);
  --glow-1: rgba(10, 98, 230, .10);
  --glow-2: rgba(6, 182, 212, .08);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 60px -18px rgba(16, 24, 40, .22);
  --grad: linear-gradient(135deg, #60a5fa 0%, #0054e2 45%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, .14), rgba(6, 182, 212, .10));
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c;
    --bg-soft: #0e0e11;
    --surface: #121216;
    --surface-2: #17171c;
    --border: #23232a;
    --border-strong: #2e2e37;
    --text: #f4f6fb;
    --text-2: #a7adba;
    --muted: #6f7685;
    --primary: #1a84ff;
    --primary-hover: #3d97ff;
    --primary-soft: rgba(26, 132, 255, .12);
    --primary-ring: rgba(26, 132, 255, .25);
    --primary-glow: 0 10px 30px -8px rgba(26, 132, 255, .6);
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, .12);
    --amber: #fbbf24;
    --danger: #f87171;
    --grid: rgba(255, 255, 255, .035);
    --glow-1: rgba(26, 132, 255, .14);
    --glow-2: rgba(6, 182, 212, .07);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 10px 30px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
    --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(6, 182, 212, .06));
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-soft: #0e0e11;
  --surface: #121216;
  --surface-2: #17171c;
  --border: #23232a;
  --border-strong: #2e2e37;
  --text: #f4f6fb;
  --text-2: #a7adba;
  --muted: #6f7685;
  --primary: #1a84ff;
  --primary-hover: #3d97ff;
  --primary-soft: rgba(26, 132, 255, .12);
  --primary-ring: rgba(26, 132, 255, .25);
  --primary-glow: 0 10px 30px -8px rgba(26, 132, 255, .6);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, .12);
  --amber: #fbbf24;
  --danger: #f87171;
  --grid: rgba(255, 255, 255, .035);
  --glow-1: rgba(26, 132, 255, .14);
  --glow-2: rgba(6, 182, 212, .07);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, .12), rgba(6, 182, 212, .06));
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; border-radius: 8px; }

/* Fundo com grade e brilho — igual ao hero do Fast Web Stories */
.bg-grid { position: relative; isolation: isolate; }
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, #000 35%, transparent 100%);
}
.bg-grid::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 45% at 92% 8%, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 5% 95%, var(--glow-2), transparent 70%);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo-mark { width: 30px; height: 30px; color: var(--primary); }
.logo-word { font-weight: 800; font-size: 27px; letter-spacing: -.04em; line-height: 1; }
.logo-stack { display: flex; flex-direction: column; font-weight: 800; font-size: 11.5px; line-height: 1; letter-spacing: .01em; }
.logo-stack span:last-child { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 30px; margin: 0 auto; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
.menu-toggle { display: none; }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { color: var(--text); border-color: var(--text-2); }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-ghost:hover { color: var(--primary-hover); }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; box-shadow: none; }

/* ---------------------------------------------------------------- etiquetas */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-ring);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.tag-free { background: var(--green-soft); color: var(--green); }
.tag-paid { background: var(--primary-soft); color: var(--primary); }
.tag-muted { background: var(--surface-2); color: var(--text-2); }
.highlight {
  color: var(--primary);
  background: linear-gradient(transparent 62%, var(--primary-soft) 62%);
  padding: 0 .06em;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.checks .ic { color: var(--primary); }

/* ---------------------------------------------------------------- hero da home */
.hero { padding: 84px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; margin: 22px 0 22px; }
.hero-lead { font-size: 18.5px; color: var(--text-2); max-width: 590px; margin-bottom: 34px; }
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-stack { position: relative; height: 470px; }
.float-card {
  position: absolute; width: 300px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center; color: var(--text);
  transition: transform .3s ease;
}
.float-card:hover { color: var(--text); transform: translateY(-4px) rotate(0deg) !important; }
.float-card:nth-child(1) { top: 10px; right: 10px; transform: rotate(2deg); }
.float-card:nth-child(2) { top: 170px; left: 0; transform: rotate(-2deg); z-index: 2; }
.float-card:nth-child(3) { top: 330px; right: 30px; transform: rotate(1deg); }
.float-card .p-icon { width: 56px; height: 56px; }
.float-card strong { display: block; font-size: 15.5px; line-height: 1.3; }
.float-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.hero-orb {
  position: absolute; inset: 40px 20px; border-radius: 40px; z-index: -1;
  background: var(--grad); opacity: .14; filter: blur(50px);
}

.stats { display: flex; gap: 40px; margin-top: 8px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- seções */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 12px 0 8px; }
.section-head p { color: var(--text-2); margin: 0; max-width: 620px; }
.section-center { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-center h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin: 14px 0 10px; }
.section-center p { color: var(--text-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 500; font-size: 14.5px; cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .count { font-size: 12px; opacity: .65; }

.cat-block + .cat-block { margin-top: 72px; }
.cat-title { display: flex; align-items: center; gap: 14px; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: var(--primary-glow);
}

/* ---------------------------------------------------------------- cards de produto */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); color: var(--text); }
.card-media {
  position: relative; aspect-ratio: 16 / 9; background: var(--grad-soft); overflow: hidden;
  display: grid; place-items: center; border-bottom: 1px solid var(--border);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .p-icon { width: 76px; height: 76px; border-radius: 22px; }
.card-media .tag { position: absolute; top: 14px; left: 14px; backdrop-filter: blur(6px); }
.card-media .tag-free { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.card-media .tag-paid { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.card-body h3 { font-size: 20px; margin-bottom: 6px; }
.card-body p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.price { font-weight: 700; font-size: 17px; }
.price del { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-right: 6px; }
.price-free { color: var(--green); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--primary); }
.card:hover .card-cta .ic { transform: translateX(3px); }
.card-cta .ic { transition: transform .15s; }
.card-meta { font-size: 13px; color: var(--muted); }

/* Ícone do produto: imagem enviada ou bloco em degradê com a inicial */
.p-icon {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 26px; letter-spacing: -.03em; box-shadow: var(--primary-glow);
}
.p-icon img { width: 100%; height: 100%; object-fit: cover; }
.p-icon.has-img { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); }

.empty {
  padding: 48px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-2); background: var(--surface);
}

/* ---------------------------------------------------------------- como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: passo; }
.step {
  position: relative; padding: 30px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border);
}
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  padding: 0 24px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0 0 22px; }

/* ---------------------------------------------------------------- CTA final */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center;
  background: #0a0f1d; color: #fff; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(0, 84, 226, .55), transparent 65%),
    radial-gradient(ellipse 50% 70% at 90% 100%, rgba(6, 182, 212, .35), transparent 65%);
}
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .75); max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid p { color: var(--text-2); font-size: 14.5px; max-width: 360px; margin-top: 16px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px;
}

/* ---------------------------------------------------------------- página de categoria */
.page-hero { padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 18px 0 14px; }
.page-hero p { font-size: 18px; color: var(--text-2); max-width: 680px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 0 0 18px; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .6; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------------------------------------------------------------- página do produto */
.product-hero { padding: 48px 0 72px; }
.product-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.product-title { display: flex; align-items: center; gap: 18px; margin: 20px 0 18px; }
.product-title .p-icon { width: 72px; height: 72px; border-radius: 20px; font-size: 30px; }
.product-title h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; margin: 0; }
.product-tagline { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin-bottom: 14px; }
.product-lead { font-size: 17px; color: var(--text-2); margin-bottom: 30px; max-width: 580px; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.product-price strong { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.product-price del { color: var(--muted); font-size: 17px; }
.product-price span { color: var(--muted); font-size: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.meta-row .tag { padding: 6px 12px; font-weight: 500; font-size: 13px; }

.browser {
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); position: relative;
}
.browser-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.product-visual { position: relative; }
.product-visual .hero-orb { inset: -20px; }
.visual-placeholder {
  aspect-ratio: 16 / 11; display: grid; place-items: center; background: var(--grad-soft);
}
.visual-placeholder .p-icon { width: 120px; height: 120px; border-radius: 34px; font-size: 52px; }

.subnav {
  position: sticky; top: 72px; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 14px; color: var(--text-2);
  font-weight: 500; font-size: 14.5px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 56px; align-items: start; }
.product-main > section + section { margin-top: 64px; }
.product-main h2.sec-title { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 700; margin-bottom: 22px; }
.sec-title .ic-wrap { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0; list-style: none; margin: 0 0 34px; }
.benefits li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--text-2);
}
.benefits .ic { color: var(--green); margin-top: 2px; }

/* Conteúdo vindo do editor (apresentação e manual) */
.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.8; }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.8em 0 .6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19.5px; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--primary); }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 1.4em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--primary); background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
}
.prose code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.prose pre, .prose .ql-code-block-container {
  background: #0d1117; color: #e6edf3; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 14px; line-height: 1.6; margin: 1.4em 0;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.manual-box { padding: 36px 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }

/* Vídeo com carregamento sob demanda (não pesa o carregamento da página) */
.video-lite {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: #000 center / cover no-repeat; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.video-lite::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .45)); }
.video-lite button {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0;
  background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), var(--primary-glow); transition: transform .2s;
}
.video-lite:hover button { transform: scale(1.06); }
.video-lite button .ic { margin-left: 4px; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; background: var(--surface-2);
}
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.changelog { display: grid; gap: 0; border-left: 2px solid var(--border); margin-left: 8px; }
.release { position: relative; padding: 0 0 28px 28px; }
.release::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border-strong);
}
.release.current::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.release-head strong { font-size: 17px; }
.release-head time { color: var(--muted); font-size: 13.5px; }
.release ul { margin: 0; padding-left: 1.2em; color: var(--text-2); font-size: 15px; }
.release li { margin-bottom: 4px; }

.sidebar { position: sticky; top: 150px; display: grid; gap: 20px; }
.side-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.side-card .p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.side-card .p-head .p-icon { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; }
.side-card .p-head strong { display: block; font-size: 17px; line-height: 1.3; }
.side-card .p-head span { font-size: 14px; }
.info-list { list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.info-list li span:first-child { color: var(--muted); }
.info-list li span:last-child { font-weight: 500; text-align: right; }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc .lvl-3 a { padding-left: 24px; font-size: 13.5px; }

.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 15px; margin-bottom: 24px; border: 1px solid;
}
.alert-warn { background: color-mix(in srgb, var(--amber) 10%, transparent); border-color: color-mix(in srgb, var(--amber) 35%, transparent); color: var(--text); }
.alert-info { background: var(--primary-soft); border-color: var(--primary-ring); color: var(--text); }

.mobile-cta { display: none; }

/* ---------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 8, 15, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 32px; transform: translateY(14px) scale(.98); transition: transform .25s ease;
}
.modal.open .modal-dialog { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; padding-right: 40px; }
.modal-head .p-icon { width: 50px; height: 50px; border-radius: 14px; font-size: 21px; }
.modal-head h2 { font-size: 21px; margin: 0; }
.modal-head p { margin: 0; color: var(--muted); font-size: 14px; }
.modal-sub { color: var(--text-2); font-size: 15px; margin: 14px 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.field.has-error input { border-color: var(--danger); }
.field-error { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.has-error .field-error { display: block; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin: 6px 0 20px; cursor: pointer; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.check-field.has-error { color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.form-msg.show { display: block; }
.form-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
.is-loading .btn-label-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.lightbox { position: fixed; inset: 0; z-index: 110; display: none; place-items: center; padding: 24px; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 12px; }

/* ---------------------------------------------------------------- obrigado */
.thanks { padding: 72px 0 40px; }
.thanks-card {
  max-width: 720px; margin: 0 auto; text-align: center; padding: 52px 40px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.thanks-icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green); box-shadow: 0 0 0 10px color-mix(in srgb, var(--green) 6%, transparent);
}
.thanks-card h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.thanks-card > p { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 auto 28px; }
.file-box {
  display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border); margin: 0 auto 26px; max-width: 520px;
}
.file-box .p-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
.file-box div { flex: 1; min-width: 0; }
.file-box strong { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-box small { color: var(--muted); }
.note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; color: var(--muted); font-size: 14px; margin-top: 18px; }
.note .ic { margin-top: 3px; }
.install-steps { max-width: 720px; margin: 40px auto 0; }
.install-steps h2 { font-size: 22px; text-align: center; margin-bottom: 20px; }
.install-steps ol { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.install-steps li {
  counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text-2);
}
.install-steps li::before {
  content: counter(s); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px;
}
.install-steps li strong { color: var(--text); }

/* ---------------------------------------------------------------- erros / páginas simples */
.error-page { text-align: center; padding: 120px 0 80px; }
.error-page .code { font-size: 120px; font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.page-content { max-width: 780px; margin: 0 auto; padding: 24px 0 0; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1080px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .side-card-buy { display: none; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stack { height: auto; display: grid; gap: 12px; }
  .float-card { position: static; width: 100%; transform: none !important; }
  .hero-orb { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .product-hero { padding: 28px 0 48px; }
  .product-visual.is-placeholder { display: none; }
  .subnav { top: 72px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .logo-word { font-size: 23px; }
  .logo-mark { width: 26px; height: 26px; }
  .icon-btn { width: 40px; height: 40px; }
  .grid-cards { grid-template-columns: 1fr; }
  .gallery, .benefits { grid-template-columns: 1fr; }
  .hero-ctas .btn, .product-ctas .btn { width: 100%; }
  .stats { gap: 24px; }
  .manual-box { padding: 24px 18px; }
  .thanks-card { padding: 36px 20px; }
  .cta-band { padding: 44px 22px; }
  .modal { place-items: end center; padding: 0; }
  .modal-dialog { border-radius: 24px 24px 0 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 12px; align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { flex: 1; }
  .mobile-cta .price { font-size: 15px; }
  body.has-mobile-cta .site-footer { padding-bottom: 100px; }
}
/* Botão flutuante do WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 26px -6px rgba(37, 211, 102, .6);
  transition: transform .2s ease, bottom .25s ease, box-shadow .2s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.07); box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .75); }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  /* Na página de produto, sobe acima da barra fixa "Baixar" quando ela aparece */
  body:has(.mobile-cta.show) .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

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

.nav-mobile-only { display: none; }
@media (max-width: 900px) { .nav .nav-mobile-only { display: block; color: var(--primary); font-weight: 600; } }
@media (max-width: 1180px) and (min-width: 901px) { .nav { gap: 20px; } .nav a { font-size: 14px; } }
