:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --text: #14181f;
  --text-muted: #5b6472;
  --border: #e6e9ee;
  --accent: #0d9488;
  --accent-strong: #0b7c72;
  --accent-soft: #e6f6f4;
  --hero-from: #0d9488;
  --hero-to: #155e75;
  --hero-text: #f2fbfa;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 8px 24px rgba(20, 24, 31, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --text: #eef1f5;
    --text-muted: #a2acb9;
    --border: #262c35;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #10302c;
    --hero-from: #0b3b38;
    --hero-to: #0e2a3d;
    --hero-text: #eef1f5;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lang-switch a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-switch a.active {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: var(--hero-text);
  border-radius: 24px;
  margin-top: 1rem;
  padding: 3.25rem 1.75rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.hero p.tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 46rem;
  margin: 0 auto 1.75rem;
  opacity: 0.92;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #fff;
  color: var(--hero-to);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---- Sections ---- */
section { margin: 3.25rem 0; }

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.callout h2 { margin-top: 0; }

.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.75rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

footer a { color: var(--text-muted); text-decoration: underline; }
footer a:hover { color: var(--accent-strong); }

/* ---- Legal (privacy policy) pages ---- */
.legal h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.legal .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.15rem; margin-top: 2.25rem; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; font-size: 0.92rem; }
.legal th { background: var(--accent-soft); }
