/* Photo Backup Guardian — páginas públicas (GitHub Pages). Azul principal, laranja para destaque. */
:root {
  --blue: #1a64c8;
  --blue-dark: #0c447c;
  --orange: #c9560a;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1d2330;
  --muted: #5b6475;
  --border: #e1e6ee;
  --tint: #e8f1fc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4c9af0;
    --blue-dark: #9cc6f7;
    --orange: #f5964a;
    --bg: #12161d;
    --surface: #1b212b;
    --text: #e8ecf2;
    --muted: #9aa4b5;
    --border: #2b3340;
    --tint: #1d2c40;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

header.top {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.nav a.link { color: var(--muted); font-weight: 500; }
.nav a.link.active { color: var(--blue); }
.lang { display: flex; gap: 4px; }
.lang button {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

main { padding: 40px 0 56px; }
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 148px; height: 148px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); margin: 12px 0 4px; letter-spacing: -0.02em; }
.tagline { color: var(--blue); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--tint); color: var(--blue); font-weight: 600; font-size: 14px;
}

h1, h2, h3 { line-height: 1.25; }
h1.page { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.01em; }
.updated { color: var(--muted); margin: 0 0 28px; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 0 0 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
}
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px;
}
.card p { margin: 0; color: var(--muted); }

.promise {
  margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 0; padding: 18px 20px;
}
.promise strong { color: var(--orange); }

.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.content ul { padding-left: 20px; }
.content li { margin: 6px 0; }
.content p, .content li { color: var(--text); }
.note { color: var(--muted); font-size: 15px; }
.contact {
  background: var(--tint); border-radius: 16px; padding: 20px; margin-top: 24px;
}
code { background: var(--tint); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }

footer {
  border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; padding: 24px 0 40px;
}
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* Idioma: sem JavaScript, os dois aparecem; com JavaScript, só o escolhido. */
body.lang-en [lang="pt-BR"], body.lang-pt [lang="en"] { display: none !important; }

/* Regra 3-2-1 na página inicial */
.rule { margin-top: 40px; }
.rule h2 { text-align: center; font-size: 28px; margin-bottom: 6px; }
.rule .intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 20px; }
.rule h3 { margin-top: 28px; font-size: 20px; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.rule-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center;
}
.rule-item p { margin: 6px 0 0; }
.rule-number { font-size: 52px; font-weight: 800; line-height: 1; color: var(--blue); }
.checklist { padding-left: 0; list-style: none; }
.checklist li {
  position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--border);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "✓"; position: absolute; left: 6px; top: 10px; color: var(--blue); font-weight: 700;
}
