/* PlayDeck — site institucional
   Cores extraídas da logo oficial: ciano #00F6F5, roxo #7336F5, azul-marinho #000350 */

:root {
  --bg: #060932;
  --bg-2: #0b1148;
  --surface: #0f1757;
  --surface-2: #151f6e;
  --border: rgba(160, 180, 255, 0.2);
  --text: #eef2ff;
  --muted: #b9c3ea;
  --cyan: #00f6f5;
  --purple: #7336f5;
  --purple-soft: #c0aaff;
  --blue: #2563eb;
  --warn-bg: #ffe066;
  --warn-text: #241c00;
  --radius: 16px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(115, 54, 245, 0.28), transparent 60%),
    radial-gradient(800px 480px at 5% 0%, rgba(0, 246, 245, 0.14), transparent 60%);
  background-repeat: no-repeat;
  padding-bottom: 88px;
}

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

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ffcfb; }

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

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: #00032b; padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 50, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 16px; padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; border-radius: 8px; }
.brand img { height: 42px; width: auto; display: block; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav a[aria-current="page"] {
  background: rgba(0, 246, 245, 0.14); color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 246, 245, 0.45);
}

/* Botão de menu: só aparece quando o JavaScript está ativo (aprimoramento progressivo) */
.nav-toggle { display: none; }

.js .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; cursor: pointer;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle.is-open .nav-toggle-bars { background: transparent; }
.nav-toggle.is-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.js .site-nav { display: none; width: 100%; }
.js .site-nav.is-open { display: block; }
.js .site-nav ul { flex-direction: column; padding: 8px 0 12px; }

@media (min-width: 860px) {
  .js .nav-toggle { display: none; }
  .js .site-nav, .js .site-nav.is-open { display: block; width: auto; }
  .js .site-nav ul { flex-direction: row; padding: 0; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  box-shadow: 0 8px 24px rgba(115, 54, 245, 0.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(115, 54, 245, 0.5); }

.btn-outline { color: var(--cyan); border-color: rgba(0, 246, 245, 0.6); background: transparent; }
.btn-outline:hover { background: rgba(0, 246, 245, 0.1); color: #7ffcfb; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Seções ---------- */
main { display: block; }
.section { padding: 56px 0; }
.hero[id], .section[id] { scroll-margin-top: 88px; }
.section + .section { border-top: 1px solid rgba(160, 180, 255, 0.1); }

.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 14px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cyan); background: rgba(0, 246, 245, 0.1);
  border: 1px solid rgba(0, 246, 245, 0.35); border-radius: 999px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw + 0.5rem, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.hero { padding: 64px 0 56px; }
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(115, 54, 245, 0.2), transparent 42%),
    radial-gradient(ellipse at 12% 65%, rgba(0, 246, 245, 0.1), transparent 40%);
  border-bottom: 1px solid rgba(160, 180, 255, 0.12);
}
.hero > .container { position: relative; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--purple-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-note { margin-top: 20px; font-size: 0.95rem; color: var(--muted); max-width: 62ch; }

.page-head { padding: 52px 0 28px; }
.page-head p { max-width: 64ch; color: var(--muted); font-size: 1.125rem; }

/* ---------- Cartões ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 24px; }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%;
  font-weight: 800; color: #00032b; background: var(--cyan);
}
.card-platform { border-top: 3px solid var(--purple); }
.card-platform:nth-child(even) { border-top-color: var(--cyan); }

.grid + .meta { margin-top: 20px; }

.callout {
  margin-top: 24px; padding: 24px 26px; border-radius: var(--radius);
  background: rgba(115, 54, 245, 0.16); border: 1px solid rgba(192, 170, 255, 0.5);
}
.callout h2, .callout h3 { margin-bottom: 10px; }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout li { margin-bottom: 6px; }

.check-list { list-style: none; margin: 16px 0 0; padding: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
  color: #00032b; background: var(--cyan); border-radius: 50%;
}

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(115, 54, 245, 0.32), rgba(0, 246, 245, 0.12));
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; padding: 0; list-style: none; }

/* ---------- Planos PlayDeck ---------- */
.section-head { text-align: center; }
.section-head .lead { margin-inline: auto; }

.plans {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  max-width: 880px; margin: 36px auto 0;
}
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }

.plan {
  display: flex; flex-direction: column;
  padding: 28px 28px 30px; border-radius: 18px;
}
.plan-free {
  background: #15234a;
  border: 1px solid rgba(147, 170, 220, 0.5);
}
.plan-annual {
  background: #251a52;
  border: 2px solid #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14), 0 18px 40px rgba(115, 54, 245, 0.22);
}
.plan-name { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; }
.plan-free .plan-name { color: #8eeaf7; }
.plan-annual .plan-name { color: #c9b8ff; }

.plan-price {
  margin: 14px 0 6px; font-size: clamp(2.6rem, 6vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #fff;
}
.plan-period { margin: 0 0 22px; color: var(--muted); font-size: 0.98rem; }
.plan-sep { border: 0; border-top: 1px solid rgba(190, 200, 240, 0.38); margin: 0 0 22px; }

.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 1rem; }
.plan-list li:last-child { margin-bottom: 0; }
.plan-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--cyan);
}

.plan-notice {
  max-width: 880px; margin: 28px auto 0; padding: 18px 22px; text-align: center;
  border-radius: 14px; border: 1px solid var(--border);
  background: rgba(15, 23, 87, 0.6); color: var(--text);
}
.plan-notice p { margin: 0; }
.plan-notice p + p { margin-top: 10px; color: var(--muted); font-size: 0.97rem; }

/* ---------- Texto longo (privacidade, termos) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 44px; padding-top: 8px; font-size: 1.5rem; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 0.95rem; }

/* ---------- Perguntas frequentes ---------- */
details.faq {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 12px; padding: 0 20px;
}
details.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 700; list-style-position: outside;
}
details.faq[open] { border-color: rgba(0, 246, 245, 0.5); }
details.faq[open] summary { color: var(--cyan); }
details.faq .faq-body { padding-bottom: 8px; color: var(--text); }
details.faq .faq-body ul { padding-left: 1.2em; margin-top: 0; }

/* ---------- Documentos legais em modal ---------- */
.legal-modal {
  width: min(900px, calc(100% - 28px));
  max-width: 900px;
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(0, 246, 245, 0.48);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}
.legal-modal::backdrop { background: rgba(1, 3, 25, 0.82); backdrop-filter: blur(4px); }
.legal-modal-header {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px;
  background: rgba(6, 9, 50, 0.98);
  border-bottom: 1px solid var(--border);
}
.legal-modal-header h2 { margin: 0; font-size: 1.25rem; }
.legal-modal-close {
  flex: none; min-height: 42px; padding: 8px 16px;
  color: var(--text); font: inherit; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
}
.legal-modal-close:hover { border-color: var(--cyan); color: var(--cyan); }
.legal-modal-body {
  max-height: calc(min(88vh, 900px) - 74px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px clamp(18px, 4vw, 40px) 36px;
  -webkit-overflow-scrolling: touch;
}
.legal-modal-body > .prose { max-width: none; }
.legal-modal-body .prose h2 { scroll-margin-top: 18px; }
.legal-modal-body[aria-busy="true"] { color: var(--muted); }

/* ---------- Dados pendentes (apenas na versão de revisão) ---------- */
.pendente {
  display: inline; padding: 1px 8px; border-radius: 6px;
  background: var(--warn-bg); color: var(--warn-text); border: 1px dashed #8a6d00;
  font-weight: 700; font-size: 0.95em;
}
.aviso-pendente {
  margin: 20px 0; padding: 16px 20px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn-text); border: 2px dashed #8a6d00;
}
.aviso-pendente strong { display: block; margin-bottom: 4px; }
.aviso-pendente p:last-child { margin-bottom: 0; }

/* ---------- Rodapé ---------- */
.site-footer {
  margin-top: 40px; padding: 48px 0 24px;
  background: rgba(0, 3, 80, 0.55); border-top: 1px solid var(--border);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer-title { font-size: 1rem; margin-bottom: 12px; color: var(--purple-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-brand p { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: 8px; }
.footer-note { font-size: 0.92rem; color: var(--muted); }
.link-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-wa svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(160, 180, 255, 0.15);
  font-size: 0.92rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  border: 2px solid rgba(0, 246, 245, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(115, 54, 245, 0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover { color: #fff; transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; flex: none; }

@media (max-width: 479px) {
  .wa-float { min-height: 52px; padding: 0 16px; gap: 8px; font-size: 0.92rem; }
  .wa-float svg { width: 24px; height: 24px; }
  body { padding-bottom: 100px; }
  html { scroll-padding-top: 74px; }
  .hero[id], .section[id] { scroll-margin-top: 74px; }
  .legal-modal { width: calc(100% - 16px); max-height: 94vh; border-radius: 14px; }
  .legal-modal-body { max-height: calc(94vh - 70px); padding: 18px 16px 28px; }
  .legal-modal-header { padding: 12px 16px; }
}

@media (max-width: 859px) {
  .section { padding: 44px 0; }
  .hero { padding: 40px 0 36px; }
}

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

@media (forced-colors: active) {
  .btn-primary, .wa-float { border: 2px solid ButtonText; }
}

@media print {
  .wa-float, .site-nav, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  a { color: #000; }
}
