:root {
  --green: #174d40;
  --green-dark: #0e392f;
  --mint: #dcebdd;
  --cream: #f7f4ec;
  --sand: #e9c980;
  --ink: #173f35;
  --muted: #5c6b64;
  --line: #e3e2d9;
  --white: #fffefa;
  --amber: #c9862b;
  --plum: #8a3b8f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.55; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(22px, 3.2vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* language: both versions are in the page; the body class picks one */
body:not(.lang-sl) .sl, body.lang-sl .en { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { position: sticky; top: 0; z-index: 5; background: rgba(247, 244, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand .leaf { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; }
.brand em { color: var(--sand); font-style: normal; }
nav.main { display: flex; gap: 16px; align-items: center; font-size: 14px; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav.main a:hover { color: var(--green); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button.active { background: var(--green); color: #fff; }

.hero { padding: 64px 0 40px; display: grid; gap: 28px; grid-template-columns: 1.15fr 1fr; align-items: center; }
.hero .lead { font-size: 19px; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-dark); }
.btn.ghost { background: #fff6df; color: var(--green-dark); }
.btn.outline { background: transparent; border-color: var(--line); color: var(--ink); }
.hero-card { background: var(--green); color: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 50px rgba(23, 77, 64, .18); }
.hero-card .big { font-size: 48px; font-weight: 800; letter-spacing: -.02em; }
.hero-card .big small { font-size: 18px; font-weight: 600; opacity: .8; margin-left: 6px; }
.hero-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.hero-card .row b { font-weight: 700; }

section.block { padding: 48px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin-top: 4px; }
.card .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; margin-bottom: 8px; }
.card.soft { background: #fbfaf5; }

.layer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding: 28px 0; border-top: 1px dashed var(--line); }
.layer:first-of-type { border-top: 0; }
.layer figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.layer figure svg { width: 100%; height: auto; display: block; }
.layer .text .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 800; margin-bottom: 10px; }
.layer.flip figure { order: 2; }

.chart { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
ol.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mint); color: var(--green); font-weight: 800; }

ol.rules { padding-left: 22px; display: grid; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--green); }
.stat span { font-size: 14px; color: var(--muted); }

.phases { display: grid; gap: 10px; }
.phase { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.phase.now { border-color: var(--green); background: var(--mint); }
.phase .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

.note { background: #fbefd2; color: #765b24; border-radius: 14px; padding: 14px 16px; font-size: 14px; }

footer { padding: 36px 0 60px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
footer a { color: var(--green); }

@media (max-width: 720px) {
  .chart, .layer figure { overflow-x: auto; }
  .chart svg { min-width: 640px; }
  .layer figure svg { min-width: 520px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .grid.two, .grid.four { grid-template-columns: 1fr 1fr; }
  .layer { grid-template-columns: 1fr; }
  .layer.flip figure { order: 0; }
  .stats { grid-template-columns: 1fr; }
  nav.main .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .hero-card .big { font-size: 38px; }
  .phase { grid-template-columns: 1fr; }
  .brand { font-size: 16px; }
  nav.main { gap: 10px; }
  nav.main .hide-xs { display: none; }
  nav.main a { font-size: 13px; white-space: nowrap; }
  .lang button { padding: 6px 9px; }
}
