/* ==========================================================
   PRESELL · gerada pelo Gerador de Presell
   As cores do projeto ficam no <style> do index.html
   ========================================================== */
:root {
  --blue: #2f6fbf;
  --blue-dark: #12226b;
  --accent: #d83a45;        /* cor do botão Aceitar / CTA */
  --accent-hover: #bf2c37;
  --ink: #16213a;
  --muted: #55607a;
  --card: rgba(255, 255, 255, 0.94);
  --radius: 18px;
  --tint-a: rgba(10, 30, 70, 0.10);
  --tint-b: rgba(10, 30, 70, 0.30);
  --overlay: rgba(8, 20, 50, 0.30);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-title: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--blue);
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Fundo (print desfocado) ---------- */
.bg,
.bg img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.bg img {
  object-fit: cover;
  object-position: center top;
  transform: scale(1.04); /* esconde as bordas do desfoque */
}
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--tint-a), var(--tint-b));
}

/* ---------- Página ---------- */
.page {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  transition: filter 0.4s ease;
}
body.is-locked .page { filter: blur(1.5px); }

.topbar { padding: 6px 4px 14px; }
.brand {
  display: inline-block;
  padding: 2px 14px 0;
  border-radius: 999px;
  background: rgba(10, 20, 40, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--font-title);
  font-size: 28px;
  letter-spacing: 0.5px;
  color: #fff;
}
.brand small { font-size: 0.6em; opacity: 0.85; margin-left: 4px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(8, 25, 60, 0.18);
}

h1, h2 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.3px;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
h1 { font-size: clamp(36px, 7vw, 52px); }
h2 { font-size: clamp(28px, 5vw, 36px); }
p { margin: 0 0 12px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 6px;
}
.lead { font-size: 17px; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  font-weight: 600;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.hero { display: grid; gap: 20px; align-items: center; }
.hero__img { margin: 0; display: flex; justify-content: center; }
.hero__img img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(20, 60, 130, 0.25);
}

.steps { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 10px; }

.faq details {
  border-top: 1px solid #e3e8f2;
  padding: 12px 0;
}
.faq details:last-of-type { border-bottom: 1px solid #e3e8f2; margin-bottom: 20px; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 22px;
  color: var(--blue);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn--cta,
.btn--accept {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 58, 69, 0.35);
}
.btn--cta:hover,
.btn--accept:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:focus-visible,
.cookie__close:focus-visible,
.cookie__decline:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }
.btn--cta { width: 100%; }

/* ---------- Rodapé ---------- */
.footer {
  text-align: center;
  color: #fff;
  font-size: 13px;
  padding: 8px 4px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.disclaimer { opacity: 0.95; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.footer a { color: #fff; }
.copy { opacity: 0.8; }

/* ---------- Popup de cookies ---------- */
.cookie {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cookie.is-open { opacity: 1; visibility: visible; }

.cookie__box {
  outline: none;
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.35s ease;
}
.cookie.is-open .cookie__box { transform: none; opacity: 1; transition-delay: 0.1s; }

.cookie__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f4f9;
  color: #4a5570;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie__close:hover { background: #e2e8f2; }

.cookie__icon { display: flex; justify-content: center; margin-bottom: 8px; }
.cookie__title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}
.cookie__text { font-size: 15px; color: var(--muted); }
.cookie__text a { color: var(--blue); }
.cookie__note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.btn--accept { width: 100%; }
.cookie__decline {
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .page { padding: 28px 24px 48px; }
  .card { padding: 36px 40px; margin-bottom: 20px; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 32px; }
  .hero--solo { grid-template-columns: 1fr; }
  .btn--cta { width: auto; }
  .faq .btn--cta { display: flex; width: fit-content; margin: 0 auto; }
  .cookie__box { padding: 40px 36px 26px; }
}

/* Acessibilidade: respeita quem desativa animações */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Páginas legais ---------- */
.legal h1 { font-size: clamp(32px, 6vw, 44px); }
.legal h2 { font-size: 26px; margin-top: 20px; }
.legal a { color: var(--blue); }

/* ---------- Idiomas da direita para a esquerda ---------- */
[dir="rtl"] .checks li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .steps { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .faq summary { padding-right: 0; padding-left: 28px; }
[dir="rtl"] .faq summary::after { right: auto; left: 4px; }
[dir="rtl"] .cookie__close { right: auto; left: 10px; }
