:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6168;
  --border: #e4e3de;
  --accent: #2f6f5e;
  --accent-soft: #e6f0ec;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121413;
    --surface: #1a1d1c;
    --text: #ecedea;
    --muted: #a2a7a4;
    --border: #2b302e;
    --accent: #7fc3ad;
    --accent-soft: #1f2d28;
  }
}
:root[data-theme="dark"] {
  --bg: #121413;
  --surface: #1a1d1c;
  --text: #ecedea;
  --muted: #a2a7a4;
  --border: #2b302e;
  --accent: #7fc3ad;
  --accent-soft: #1f2d28;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.lang {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
@media (max-width: 640px) { .nav-links a { display: none; } }

.hero { padding: 88px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 24px; max-width: 16ch; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--bg); }
.btn.ghost { color: var(--accent); }

section { padding: 72px 0; border-top: 1px solid var(--border); }
h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 8px; font-size: 12.5px; font-weight: 500; }

.cases { display: grid; gap: 0; }
.case { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.case:last-child { border-bottom: 0; }
.case .who { font-weight: 600; }
.case .who span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.case p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .case { grid-template-columns: 1fr; gap: 6px; } }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about p { color: var(--muted); margin: 0 0 16px; }
.portrait { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 0 16px; border: 1px solid var(--border); }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.facts li b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

.contact { text-align: left; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

[data-lang="en"] .sv, [data-lang="sv"] .en { display: none; }

.feature { background: var(--accent-soft); }
.feature-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.feature .section-lead { margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--border); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 760px) { .feature-inner { grid-template-columns: 1fr; gap: 24px; } }
.card .more { margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.card .more a { text-decoration: none; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.prose { max-width: 68ch; }
.prose p { color: var(--muted); margin: 0 0 16px; }
.prose ul { color: var(--muted); padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
