/* ============================================================
   PGTBoardView — estilo do site
   Paleta (paridade com o app desktop):
   fundo #0A0A0A · cards #141414 · verde #2E7D32 · verde claro #4CAF50
   Sóbrio: sem neon, sem transparência exagerada.
   ============================================================ */
:root {
  --bg: #0A0A0A;
  --card: #141414;
  --card-border: #242424;
  --green: #2E7D32;
  --green-light: #4CAF50;
  --green-dark: #1B5E20;
  --text: #F2F2F2;
  --text-muted: #9E9E9E;
  --danger: #C62828;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

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

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { height: 38px; width: auto; border-radius: 6px; }
.brand .brand-green { color: var(--green-light); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a { color: var(--text-muted); font-size: 0.95rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }

.lang-switch { display: flex; gap: 6px; margin-left: 8px; }
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 3px 5px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.55;
}
.lang-btn svg { width: 24px; height: 17px; border-radius: 2px; display: block; }
.lang-btn:hover { opacity: 0.9; }
.lang-btn.active { opacity: 1; border-color: var(--green); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-light); }
.btn-outline {
  background: transparent;
  color: var(--green-light);
  border: 1px solid var(--green);
}
.btn-outline:hover { background: rgba(46, 125, 50, 0.15); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--card-border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px 34px; font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 70px;
  text-align: center;
  /* brilho verde + grade sutil estilo PCB */
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(46, 125, 50, 0.22), transparent),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(46, 125, 50, 0.055) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(46, 125, 50, 0.055) 39px 40px),
    var(--bg);
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--green);
  color: var(--green-light);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.25;
  max-width: 860px;
  margin: 0 auto 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-logo { height: 110px; width: auto; margin-bottom: 26px; border-radius: 14px; }

.format-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.chip {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.85rem;
  color: var(--green-light);
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid #1E4620;
  border-radius: 6px;
  padding: 4px 12px;
}

/* ---------- Seções ---------- */
.section { padding: 70px 0; }
.section-alt { background: #0E0E0E; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section h2 { font-size: 1.9rem; text-align: center; margin-bottom: 10px; }
.section .section-sub {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(46, 125, 50, 0.18);
  color: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Como funciona ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--green-light);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Reveal ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card, .feature-card:hover { transform: none; }
}

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.shot {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Preço ---------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  max-width: 420px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-value { font-size: 2.6rem; font-weight: 700; color: var(--green-light); }
.price-value small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 22px 0 26px; text-align: left; }
.price-card li {
  padding: 7px 0 7px 28px;
  color: var(--text-muted);
  position: relative;
}
.price-card li::before {
  content: "✓";
  color: var(--green-light);
  position: absolute;
  left: 4px;
  font-weight: 700;
}
.price-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Formulários / páginas de auth ---------- */
.auth-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 440px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }
.auth-card .auth-links { margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: #0F0F0F;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 1rem;
}
.field input:focus {
  outline: none;
  border-color: var(--green-light);
}

.form-msg {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.form-msg.error { background: rgba(198, 40, 40, 0.14); border: 1px solid var(--danger); color: #EF9A9A; }
.form-msg.success { background: rgba(46, 125, 50, 0.14); border: 1px solid var(--green); color: #A5D6A7; }

/* ---------- Conta ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 50px 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 18px; }
.panel .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #1D1D1D; font-size: 0.95rem; }
.panel .row:last-of-type { border-bottom: none; }
.panel .row .label { color: var(--text-muted); }

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-active { background: rgba(76, 175, 80, 0.18); color: var(--green-light); border: 1px solid var(--green); }
.badge-inactive { background: rgba(198, 40, 40, 0.15); color: #EF9A9A; border: 1px solid var(--danger); }

.page-title { padding: 50px 0 0; }
.page-title h1 { font-size: 1.8rem; }
.page-title p { color: var(--text-muted); }

.loading { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 34px 0;
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Responsivo ---------- */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .main-nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .hero { padding: 50px 0 46px; }
  .hero-logo { height: 84px; }
  .section { padding: 50px 0; }
  .auth-card { padding: 26px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
