/* Site institucional da Clara — CSS próprio, deliberadamente independente do
   design system do aplicativo (fontes de sistema, paleta reduzida derivada
   da logo). Não é o app; não deve compartilhar o mesmo arquivo de estilos. */

:root {
  --bg: #ffffff;
  --surface: #f7f6fb;
  --text: #1c1a26;
  --muted: #605c6e;
  --line: #e6e3ee;
  --accent: #7259d6;
  --accent-2: #4f7fe0;
  --accent-gradient: linear-gradient(135deg, #8b73e0, #4f7fe0);
  --dark: #0f0d26;
  --focus: #4f7fe0;
  --max-width: 1080px;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d26;
    --surface: #171432;
    --text: #f1eefc;
    --muted: #a9a3c2;
    --line: #2b2650;
  }
}

* { 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, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-link { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand-link img { width: 34px; height: 34px; border-radius: 10px; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}
.header-cta:hover { filter: brightness(1.06); }

main { display: block; }

.hero {
  padding: 56px 0 64px;
  text-align: center;
}
.hero img.hero-mark { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 24px; box-shadow: 0 14px 34px rgba(79, 89, 214, 0.25); }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero .lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(79, 89, 214, 0.28);
}
.button-primary:hover { filter: brightness(1.05); }
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
}
.button-secondary:hover { border-color: var(--accent); }

section.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section > .wrap > p.section-lede { color: var(--muted); max-width: 620px; margin: 0 0 32px; font-size: 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.feature-card .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.badge.live { background: #e4f3ec; color: #2f7a5c; }
.badge.progress { background: #eef0fb; color: #4f5fbe; }
@media (prefers-color-scheme: dark) {
  .badge.live { background: #163627; color: #7fd6ac; }
  .badge.progress { background: #232a5c; color: #aab4ff; }
}

.cta-band {
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.cta-band h2 { margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Páginas legais */
.legal-page { padding: 48px 0 80px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; }
.legal-page .updated { color: var(--muted); font-size: 13px; margin: 0 0 36px; }
.legal-page h2 { font-size: 19px; margin: 36px 0 12px; }
.legal-page h3 { font-size: 15px; margin: 22px 0 8px; }
.legal-page p, .legal-page li { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--accent); }
.legal-page .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.back-home { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; margin-bottom: 28px; }
.back-home:hover { color: var(--accent); }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .hero { padding: 40px 0 48px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
