:root {
  --bg: #0b1210;
  --surface: #111c19;
  --border: #1f2e2a;
  --text: #e6ece9;
  --muted: #a3b3ad;
  --accent: #22c55e;
  --accent-ink: #052e16;
  --radius: 12px;
  --max: 880px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Language toggle: EN is the default; PT-BR shows only when <html> has class "pt". */
html:not(.pt) .l-pt { display: none !important; }
html.pt .l-en { display: none !important; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header-actions > a { color: var(--muted); text-decoration: none; font-size: 15px; }
.header-actions > a:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Content */
main { padding: 40px 0 56px; }

.hero { padding: 16px 0 24px; }
.hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; max-width: 680px; }

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
}
h3 { font-size: 17px; margin: 24px 0 8px; }

section p, section li { color: var(--text); }
.muted { color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.checks li { padding-left: 26px; position: relative; }
ul.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
}

ol.steps { padding-left: 22px; margin: 0; display: grid; gap: 8px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
}
.faq details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.faq details > p { margin: 0 0 14px; }

/* Policy page */
.policy h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.2; margin: 0 0 8px; }
.policy .meta { color: var(--muted); margin: 0 0 24px; }
.policy h2 { font-size: 20px; margin-top: 34px; }
.notice {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: grid; gap: 8px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 520px) {
  main { padding-top: 28px; }
  .lead { font-size: 17px; }
}
