/* CallFiltr website. Colours and fonts mirror mobile/lib/theme/tokens.dart. */
:root {
  --bg: #0E0C0D;
  --surface: #181415;
  --surface-raised: #221C1E;
  --surface-accent: #2A1D1C;
  --border: #3A2F32;
  --border-accent: #4A3533;
  --text: #F6EEEB;
  --text-muted: #B3A5A1;
  --accent: #E4B3A2;
  --accent-hover: #F3CFC2;
  --accent-muted: #C98B7F;
  --on-accent: #2A1612;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --max: 860px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 12, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-raised); }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 48px 16px 72px; }
.badge {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--surface-accent);
  border: 1px solid var(--border-accent); border-radius: 999px;
  padding: 4px 12px;
}
h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 6vw, 44px); line-height: 1.15; letter-spacing: -0.01em;
  margin: 16px 0 8px;
}
.updated { color: var(--text-muted); font-size: 14px; margin: 0 0 32px; }

/* Legal document card */
.doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 40px);
}
.doc h2 {
  font-size: 20px; font-weight: 700; margin: 36px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 20px 0 6px; color: var(--accent); }
.doc p, .doc li { color: var(--text-muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; margin: 8px 0 16px; }
.doc li { margin: 6px 0; }
.note {
  background: var(--surface-accent); border: 1px solid var(--border-accent);
  border-radius: 14px; padding: 14px 16px; margin: 16px 0;
}
.note p { margin: 0; color: var(--text); }
.toc { columns: 2 220px; padding-left: 20px; margin: 0 0 8px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* Home */
.hero { text-align: center; padding: 40px 0 24px; }
.hero img { width: 96px; height: 96px; border-radius: 24px; }
.hero h1 { font-size: clamp(40px, 8vw, 60px); margin-top: 24px; }
.hero p { color: var(--text-muted); font-size: 18px; max-width: 560px; margin: 0 auto; }
.features {
  display: grid; gap: 12px; margin-top: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.feature h2 { font-size: 17px; margin: 0 0 6px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 15px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 14px; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent-muted); }
.button.secondary:hover { background: var(--surface); color: var(--accent-hover); }

/* Footer */
footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 24px 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 14px;
}
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
