:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0f1b33;
  --muted: #4a5873;
  --line: #dfe5f0;
  --brand: #1557ff;
  --brand-strong: #0b3fd1;
  --brand-soft: #e8efff;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121b2e;
    --text: #e8edf7;
    --muted: #a3b0c8;
    --line: #24314b;
    --brand: #5b8cff;
    --brand-strong: #8aaeff;
    --brand-soft: #182a52;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--brand);
}

a:hover {
  color: var(--brand-strong);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav.top a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 20px;
}

nav.top a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 56px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 16em;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
  max-width: 36em;
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
  color: #fff;
}

section {
  padding: 40px 0;
}

section h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pill-list li {
  background: var(--brand-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact p {
  margin: 0 0 8px;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  color: var(--muted);
}

/* Páginas de texto (política de privacidade) */
.doc {
  padding: 48px 0 24px;
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 21px;
  margin: 36px 0 10px;
}

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

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

@media (max-width: 560px) {
  nav.top a {
    margin-left: 14px;
    font-size: 14px;
  }

  .hero {
    padding: 48px 0 36px;
  }
}
