:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --text: #1f1b2d;
  --muted: #5d5870;
  --line: #e4e0ea;
  --accent: #5b3bb5;
  --accent-soft: #eee8fb;
  --accent-strong: #5b3bb5;
  --error: #b42318;
  --error-soft: #fdecea;
  --ok-soft: #e6f4ea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131c;
    --surface: #1e1b28;
    --text: #ece9f3;
    --muted: #a7a1b8;
    --line: #2f2a3d;
    --accent: #b49bff;
    --accent-soft: #2a2340;
    --accent-strong: #6d4fd0;
    --error: #ff8a80;
    --error-soft: #3a1f22;
    --ok-soft: #1d3326;
  }
}

* { box-sizing: border-box; }

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

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

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

main { padding: 40px 0 56px; }

h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 4px; }

.lead { font-size: 19px; color: var(--muted); margin-bottom: 32px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.summary {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 8px 0 8px;
}
.summary p:last-child { margin-bottom: 0; }

.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.apps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0;
}
.apps h3 { margin: 0 0 4px; font-size: 18px; }
.apps p { margin: 0 0 10px; color: var(--muted); }
.apps .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }

footer.site {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
footer.site p { margin: 0; }

/* Formulário de contato */
.contact { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .optional { font-weight: 400; color: var(--muted); }
.contact input,
.contact textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
}
.contact textarea { resize: vertical; min-height: 140px; }
.contact input:focus,
.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact [aria-invalid="true"] { border-color: var(--error); }
.captcha input { max-width: 120px; }
.field-error { color: var(--error); font-size: 14px; margin: 0; }

.contact button {
  justify-self: start;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent-strong);
  border: 0;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
}
.contact button:hover { filter: brightness(1.08); }
.contact button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Campo isca contra robôs: fora da tela, mas não display:none. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }
.notice p { margin: 0; }
.notice.ok { background: var(--ok-soft); }
.notice.error { background: var(--error-soft); }

.contact-group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.contact-group legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 2px; }
.contact-group .hint { color: var(--muted); font-size: 14px; margin: -8px 0 0; }
