/* Mesmo padrão de tema do qtzl-landing/driit-site: :root guarda os tokens claros (base) e a classe .dark-mode no <html> sobrepõe pro escuro.
   Quem decide o default é o JS (ver o <script> no <head> e js/theme.js): aqui o default é escuro. As cores vêm do próprio app (tema.css). */
:root {
  --bg: #f7f8fa;
  --bg-raised: #ffffff;
  --border: #d8dee7;
  --text: #1b2430;
  --text-dim: #526173;
  --link: #1768b3;
  --gold: #8a5c14;
  --radius: 12px;
  --max-width: 960px;
}

html.dark-mode {
  --bg: #0b1220;
  --bg-raised: #131c2e;
  --border: #26324a;
  --text: #f0e4d8;
  --text-dim: #aeb7c4;
  --link: #7bbcff;
  --gold: #f8b000;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
html.dark-mode { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  transition: background-color 0.15s ease, color 0.15s ease;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max-width); margin: 0 auto; padding: 20px 16px; padding-right: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; border-radius: 8px; }
.topbar-nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.topbar-nav a { color: var(--text-dim); }
.topbar-nav a:hover { color: var(--link); }
.topbar-nav .lang { display: inline-flex; gap: 8px; }
.topbar-nav .lang a[aria-current="true"] { color: var(--text); font-weight: 700; }

.theme-toggle {
  position: fixed; top: 1rem; right: 1rem; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0.15rem dashed currentColor; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer; transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(128, 128, 128, 0.15); }
.theme-toggle .icon-to-light { display: none; }
.theme-toggle .icon-to-dark { display: block; }
html.dark-mode .theme-toggle .icon-to-light { display: block; }
html.dark-mode .theme-toggle .icon-to-dark { display: none; }

main { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

.hero { text-align: center; padding: 48px 0 64px; }
.hero-mark { width: 180px; height: 180px; margin-bottom: 24px; border-radius: 36px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 20ch; margin-inline: auto; }
.hero-sub { color: var(--text-dim); max-width: 56ch; margin: 16px auto 0; font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-raised); color: var(--text); font-weight: 600;
}
.btn:hover { text-decoration: none; border-color: var(--link); }
.btn.primary { background: var(--link); border-color: var(--link); color: var(--bg); }
html:not(.dark-mode) .btn.primary { color: #fff; }
.note { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; }

.section { padding: 48px 0 56px; border-top: 1px solid var(--border); }
.section h2 { text-align: center; font-size: 1.6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 1rem; color: var(--gold); }
.card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.chip { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 999px; padding: 4px 14px; font-size: 0.9rem; color: var(--text-dim); }

.steps { max-width: 62ch; margin: 24px auto 0; padding-left: 1.2rem; color: var(--text-dim); }
.steps li { margin: 0.5em 0; }

.prose { max-width: 72ch; margin: 0 auto; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.prose h2 { font-size: 1.25rem; margin-top: 2em; color: var(--gold); }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--text-dim); font-size: 0.92rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4em 0; }
.prose code { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 4px; padding: 0.1em 0.4em; font-size: 0.9em; }

.footer { max-width: var(--max-width); margin: 0 auto; padding: 28px 16px 48px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }

@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; }
  .topbar-nav { gap: 14px; font-size: 0.85rem; }
  .hero { padding: 32px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body, .theme-toggle { transition: none; }
}
.centro { text-align: center; }
