:root {
  --maxw: 1100px;
  --radius: 14px;
}

/* Dark theme (default) */
html[data-theme="dark"] {
  --bg: #000;
  --text: #fff;
  --muted: #b3b3b3;
  --card: #0b0b0b;
  --border: rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.6);
  --icon: #ffffff;
}

/* Light theme */
html[data-theme="light"] {
  --bg: #ffffff;
  --text: #111111;
  --muted: #5b5b5b;
  --card: #ffffff;
  --border: rgba(0,0,0,.12);
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --icon: #111111;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(var(--maxw), 92vw);
  margin-inline: auto;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.site-header { padding: 12px 0; }
.header-inner { position: relative; display: flex; justify-content: center; align-items: center; }
.logo {
  width: clamp(180px, 22vw, 160px);
  height: auto;
  margin-block: clamp(12px, 4vh, 14px);
}
/* alternância de logos por tema */
.logo-dark { display: block; }
.logo-light { display: none; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; }

.theme-toggle {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: 1px solid var(--border);
  color: var(--icon); width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
}
.theme-toggle:hover { box-shadow: 0 0 0 3px rgba(127,127,127,.15); }

/* Main */
.site-main { flex: 1; padding: 8px 0 24px; }
.embed-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.embed-wrap iframe {
  display: block; width: 100%; height: 600px; border: 0;
}

/* Footer fixo ao rodapé visual (sempre alinhado) */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.footer-left { display: grid; gap: 6px; }
.legal { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.copyright { color: var(--muted); font-size: 12px; }

.footer-right { display: flex; gap: 14px; }
.footer-right a {
  color: var(--icon);
  font-size: 20px; width: 28px; height: 28px;
  display: grid; place-items: center;
  opacity: .92;
  text-decoration: none;
}
.footer-right a:hover { opacity: 1; text-decoration: none; }

/* Modal de privacidade */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000; }
.modal[open] { display: flex; }
.modal-dialog {
  width: min(720px, 92vw);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 18px; margin: 0; }
.modal-close { background: transparent; border: 1px solid var(--border); color: var(--icon); width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.modal-content { padding: 14px 16px; max-height: min(60vh, 480px); overflow: auto; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }
.btn { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.btn:hover { box-shadow: 0 0 0 3px rgba(127,127,127,.15); }
.small { font-size: 12px; color: var(--muted); }

a.privacy-link { color: inherit; text-decoration: underline dotted; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
  .theme-toggle { right: 6px; }
}

.cta {
  text-align: center;
  padding: 48px ;
  margin-top: 10%;
  margin-bottom: 5%;
  background-color: rgba(128, 128, 128, 0.099);
  border-radius: 15px;
}
.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.cta p {
  margin: 8px 0;
  font-size: 1rem;
  color: var(--muted);
}
.cta-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .3s, color .3s;
}
.cta-btn:hover {
  background: transparent;
  color: var(--text);
}

/* ==== Quick Actions (estilo ChatGPT/Copilot) — versão corrigida ==== */
.quick-actions { padding: 28px 0 12px; }

.qa-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 780px) {
  .qa-grid { grid-template-columns: 1fr; }
}

/* reset de links dentro da seção inteira */
.quick-actions a,
.quick-actions a:link,
.quick-actions a:visited,
.quick-actions a:hover,
.quick-actions a:active {
  color: inherit !important;
  text-decoration: none !important;
}

/* card base (vale para <a class="qa-card"> e <div class="qa-card">) */
.qa-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* quando o card for âncora (<a class="qa-card">) */
a.qa-card { cursor: pointer; }

/* garantir que NADA dentro do “stretch link” ganhe azul/sublinhado */
.qa-card-stretch,
.qa-card-stretch:link,
.qa-card-stretch:visited,
.qa-card-stretch:hover,
.qa-card-stretch:active,
.qa-card-stretch * {
  color: inherit !important;
  text-decoration: none !important;
}

.qa-card:hover {
  transform: translateY(-2px);
  border-color: rgba(127,127,127,.25);
  box-shadow: 0 14px 28px rgba(0,0,0,.22);
}

.qa-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  color: var(--icon);
  flex-shrink: 0;
  font-size: 18px;
}

.qa-text h3 {
  font-size: 0.98rem;
  margin: 0 0 4px 0;
  color: inherit;             /* evita cor de link */
}
.qa-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* setinha da direita */
.qa-cta { color: var(--icon); opacity: .8; }

/* ações extras nos cards “compostos” */
.qa-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  padding-top: 8px;
}
.qa-actions a,
.qa-actions .qa-assist {
  color: var(--text) !important;
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none !important;
  cursor: pointer;
}
.qa-actions a:hover,
.qa-actions .qa-assist:hover {
  box-shadow: 0 0 0 3px rgba(127,127,127,.15);
}

/* ajuste de hover para tema claro */
html[data-theme="light"] .qa-card:hover {
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.hero-header {
  text-align: center;
  margin: 28px auto 36px;
  max-width: 680px;
}
.hero-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 16px;
}
.hero-tagline {
  margin: 12px auto 28px;
  max-width: 820px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}