/* style.css - Atualizado com Azul R2 Portal e Centralização */
:root {
  --bg-color: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* PALETA DE CORES BASEADA NO LOGO R2 PORTAL */
  --primary: #3b82f6; 
  --primary-hover: #2563eb; 
  
  --border: #334155;
  --success: #10b981; 
  --fail: #ef4444; 
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER & NAVEGAÇÃO */
header {
  text-align: center;
  padding: 40px 0 20px;
  border-bottom: 1px solid var(--border);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-container img {
  width: 48px;
  height: 48px;
}

.logo-container h1 {
  margin: 0;
  font-size: 28px;
  color: var(--text-main);
}

nav {
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
  padding: 5px 10px;
}

nav a:hover, nav a.active {
  color: var(--primary);
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
}

/* MAIN CONTENT */
main {
  padding: 50px 0;
  min-height: 60vh;
}

/* CENTRALIZAÇÃO GLOBAL DE TÍTULOS E SUBTÍTULOS */
h2, h3 {
  text-align: center;
}

h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

/* HERO SECTION (HOME) */
.hero {
  text-align: center;
  margin-bottom: 60px;
}

.hero h2 {
  font-size: 32px;
  border: none;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-video {
  width: 100%;
  max-width: 700px;
  height: 390px;
  background-color: #020617; 
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 0 auto 30px auto;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

/* BOTÕES GLOBAIS */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-green {
  display: inline-block;
  background-color: #10b981;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s, transform 0.2s;
}

.btn-green:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* LINK PIX ABAIXO DOS BOTÕES */
.pix-link {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
  color: var(--text-muted);
}

.pix-link a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: bold;
}

.pix-link a:hover {
  color: var(--primary-hover);
}

/* SEÇÕES & CARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  margin-bottom: 50px;
  max-width: 800px; 
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--text-main);
  font-size: 16px;
}

/* FAQ */
details {
  background: var(--bg-card);
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

summary {
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

summary:after {
  content: "+";
  color: var(--primary);
}

details[open] summary:after {
  content: "-";
}

details p {
  padding: 0 20px 15px;
  margin: 0;
  color: var(--text-muted);
}

/* TUTORIAL & PAGES */
.step {
  margin-bottom: 40px;
}

.video-placeholder {
  width: 100%;
  height: 300px;
  background-color: #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin: 15px 0;
  border: 1px solid var(--border);
}

.contact-box {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
}

/* SEÇÃO DE PREÇOS (precos.html) */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.price-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.price-card.featured {
  border: 2px solid var(--primary);
  position: relative;
}

.price-card.featured .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.price-card h3 {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-card .price {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 5px;
}

.price-card .period {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
}

.price-card ul li {
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-card ul li:before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  margin-right: 10px;
}

.price-card ul li.no-include:before {
  content: '✗';
  color: var(--fail);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background-color: var(--bg-card);
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.disclaimer {
  font-size: 11px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 20px;
}

.credits {
  font-size: 13px;
  color: var(--text-muted);
}

.credits a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

/* MEDIA QUERIES PARA CELULAR */
@media (max-width: 768px) {
  .price-grid, .features-grid {
    grid-template-columns: 1fr; 
  }
  .hero-video {
    height: 250px;
  }
}
