/*
 * Elleve — landing estática (Cloudflare Pages)
 * Tema dark-first fintech premium, acento verde #22C55E (espelha design-system mobile).
 * Sem build: CSS puro para o owner publicar a pasta direto. WCAG AA: contraste >= 4.5:1,
 * foco visível, navegação por teclado, marcos semânticos.
 */

:root {
  --bg: #0a0e14;
  --bg-elev: #11161f;
  --bg-card: #151b26;
  --border: #232b39;
  --text: #e6edf3;
  --text-muted: #9aa7b8;
  --accent: #22c55e;
  --accent-strong: #16a34a;
  --accent-ink: #04140a;
  --warn-bg: #1c1708;
  --warn-border: #6b5410;
  --maxw: 760px;
  --radius: 14px;
  --space: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Acessibilidade: pular para o conteúdo (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

/* Foco visível consistente (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
nav.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
nav.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current='page'] {
  color: var(--accent);
}

main {
  padding: clamp(2rem, 6vw, 4rem) 0;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero .lede {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}
.badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font-size: 1rem;
}
.cta:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}
.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 2rem 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- Conteúdo legal ---------- */
.legal h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.35rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}
.legal p,
.legal li {
  color: #d4dce6;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--bg-elev);
}
.updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Placeholder de dado pendente que o owner DEVE preencher antes de publicar */
.todo {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: #f4d160;
  padding: 0 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  white-space: nowrap;
}

.notice {
  background: var(--bg-elev);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.notice strong {
  color: var(--text);
}

/* ---------- Formulário (contato / LGPD) ---------- */
form.app-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  margin-top: 1.5rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0.2rem 0 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
}
legend {
  font-weight: 600;
  padding: 0 0.4rem;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.5rem 0;
}
.radio input {
  width: auto;
  margin-top: 0.35rem;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2.5rem 0;
  margin-top: 3rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}
footer.site nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
footer.site a {
  color: var(--text-muted);
  text-decoration: none;
}
footer.site a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
