/* Kompo — site institucional.
   Tokens 1:1 com o design system "Verde-métrica" do app
   (kompo-app/src/theme/tokens.ts). Light por padrão, dark por prefers-color-scheme. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --elevated: #F1F2EF;
  --border: #E4E6E1;
  --text: #141613;
  --text-muted: #6B7066;
  --accent: #0E7A5F;
  --accent-soft: #E3F2EC;
  --on-accent: #FFFFFF;
  --radius-input: 12px;
  --radius-card: 16px;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0F0E;
    --surface: #151917;
    --elevated: #1C201E;
    --border: #262B28;
    --text: #F2F4F1;
    --text-muted: #8A918C;
    --accent: #34D399;
    --accent-soft: #12241D;
    --on-accent: #0C1F18;
  }
}

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

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

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

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

/* ---------- header ---------- */

.site-header {
  padding: 28px 0;
}

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

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 8px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero h1 .dot {
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 34em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: var(--radius-input);
}

.btn-store:hover {
  filter: brightness(1.06);
}

.btn-store svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- features ---------- */

.features {
  padding: 48px 0 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

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

.card h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer {
  margin: 40px 0 0;
  padding: 18px 22px;
  background: var(--accent-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--text);
}

/* ---------- páginas de texto ---------- */

.doc {
  padding: 8px 0 24px;
}

.doc h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}

.doc .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 10px;
}

.doc a {
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

/* ---------- 404 ---------- */

.notfound {
  padding: 64px 0;
  text-align: center;
}

.notfound h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 48px;
  margin: 0 0 12px;
}

.notfound p {
  color: var(--text-muted);
}
