/* Paleta espelha lib/core/constants/app_colors.dart, para o site e o app
   parecerem a mesma coisa. */
:root {
  --primary: #1b4f72;
  --primary-light: #2471a3;
  --primary-soft: #e8eff5;
  --secondary: #17a589;
  --secondary-dark: #0e7a64;
  --secondary-soft: #e3f5f1;
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #1a252f;
  --text-soft: #66757f;
  --divider: #e2e9f0;
  --warn-bg: #fdf3e7;
  --warn-border: #f5d9b8;
  --warn-text: #7a4b12;
}

/* O usuário pode estar consultando isso de madrugada, na hora do remédio. */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-soft: #16303f;
    --secondary-soft: #12332c;
    --bg: #0f1720;
    --surface: #16202b;
    --text: #e8eef4;
    --text-soft: #9aa9b5;
    --divider: #24313d;
    --warn-bg: #2b2313;
    --warn-border: #4a3a1a;
    --warn-text: #e8c88a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.inner { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ── Cabeçalho ───────────────────────────────────────────────────────── */

header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 18px 0;
}

header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  white-space: nowrap;
}

.nav-link:hover { background: rgba(255, 255, 255, 0.12); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 44px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.hero p.sub {
  font-size: clamp(15px, 2.4vw, 18px);
  opacity: 0.9;
  margin: 0 auto 28px;
  max-width: 30em;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 48px de altura mínima: recomendação do Google para alvo de toque. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(23, 165, 137, 0.35);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero .note { font-size: 13px; opacity: 0.75; margin: 18px 0 0; }

/* ── Conteúdo ────────────────────────────────────────────────────────── */

main { padding: 40px 0 56px; }

h1 { font-size: 29px; font-weight: 700; letter-spacing: -0.6px; margin: 0 0 6px; }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin: 34px 0 10px; }

.updated { color: var(--text-soft); font-size: 13px; margin: 0 0 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0;
}

.card.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-text);
}

.card.warn a { color: inherit; }

/* Grade de recursos — uma coluna no celular, duas a partir de 640px. */
.features {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 26px 0;
}

@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 18px;
}

.feature .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--secondary-soft);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.feature h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 0; font-size: 13.5px; color: var(--text-soft); }

ul { padding-left: 20px; }
li { margin-bottom: 6px; }

a { color: var(--primary-light); }
@media (prefers-color-scheme: dark) { a { color: #6fb2e0; } }

table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
  vertical-align: top;
}
th { color: var(--text-soft); font-weight: 600; }

/* ── Rodapé ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--divider);
  padding: 24px 0 40px;
  color: var(--text-soft);
  font-size: 13px;
}

footer nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

footer a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

footer a:hover { background: var(--surface); text-decoration: underline; }
