:root {
  color-scheme: light;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --surface-soft: #eef4f3;
  --ink: #122129;
  --body: #384e58;
  --muted: #617882;
  --line: rgba(18, 33, 41, 0.10);
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --teal-soft: rgba(15, 118, 110, 0.10);
  --amber: #d97706;
  --coral: #dc2626;
  --blue: #2563eb;
  --radius: 20px;
  --shadow: 0 2px 6px rgba(15, 35, 42, 0.04), 0 14px 36px -16px rgba(15, 35, 42, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 75% 42% at 50% -10%, rgba(20, 184, 166, 0.12), transparent 68%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 2px;
}

.wrap { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--teal-soft);
  color: var(--teal);
  text-decoration: none;
}
.nav a.lang-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
}

.hero {
  padding: 28px 0 36px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 14px;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lead { margin: 0 0 22px; color: var(--body); font-size: 1.08rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 13px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary {
  background: linear-gradient(135deg, var(--teal), #0d9488);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px -10px rgba(15, 118, 110, 0.65);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
}

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

.hero-card {
  background: linear-gradient(160deg, #ffffff 0%, #f1faf8 100%);
}
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.mini-kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.mini-kpi small { display: block; font-size: 0.75rem; color: var(--muted); }
.mini-kpi strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.section { padding: 26px 0; }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.pillar h3 { margin: 0 0 6px; font-size: 1.08rem; }
.pillar p { margin: 0; color: var(--body); font-size: 0.94rem; }
.badge-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--teal);
}

/* Interactive calculator UI */
.calc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--body); margin-bottom: 5px; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.preset-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.preset-btn.active, .preset-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.chart-frame { width: 100%; overflow: hidden; border-radius: 14px; background: var(--bg); padding: 12px; border: 1px solid var(--line); }
.chart-frame svg { width: 100%; height: auto; display: block; }

.syringe-box { margin: 14px 0; }
.syringe-track {
  position: relative;
  height: 30px;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid rgba(18, 33, 41, 0.18);
  overflow: hidden;
}
.syringe-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transition: width 0.25s ease;
}
.syringe-fill.overflow { background: linear-gradient(90deg, var(--coral), #f97316); }
.syringe-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.big-number {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.big-number.overflow { color: var(--coral); }
.warning-banner {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 600;
}

/* Tables & Legal prose */
.table-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.cmp th, table.cmp td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.cmp th { font-weight: 700; background: var(--bg); }
table.cmp td.hl, table.cmp th.hl { background: var(--teal-soft); color: var(--ink); font-weight: 600; }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 28px; font-size: 1.28rem; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 20px; }

.disclaimer {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--body);
  font-size: 0.84rem;
}

.site-footer {
  margin-top: 40px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--teal); }

@media (max-width: 820px) {
  .hero, .calc-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
