/* Klet download page — tokens mirror theme/tokens.ts (light + dark), which mirror
   design/wireframes.html :root. Keep the two in step: this page is the app's front
   door and must not look like a different product. */
:root {
  --green: #2d5f2d;
  --green-text: #2d5f2d;
  --green-dark: #244d24;
  --green-soft: #e7efe6;
  --amber: #b8860b;
  --amber-soft: #f6eddb;
  --amber-ink: #8a5d00;
  --surface: #fafaf5;
  --card: #ffffff;
  --ink: #1d2320;
  --ink-2: #4c574f;
  --ink-3: #5c665f;
  --line: #e4e6df;
  --on-green: #ffffff;
  --ok-soft: #e2f3e7;
  --ok-ink: #1e7038;
  --warn-soft: #fbf0d6;
  --warn-ink: #8a5d00;
  --radius: 16px;
  --radius-sm: 11px;
  --tap: 44px;
  --shadow: 0 1px 2px rgba(20, 30, 20, 0.06), 0 8px 24px rgba(20, 30, 20, 0.06);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --num: 'SF Mono', ui-monospace, 'Roboto Mono', Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #2f6b34;
    --green-text: #7cc47f;
    --green-dark: #255228;
    --green-soft: #16281a;
    --amber: #cf9a2f;
    --amber-soft: #2c2513;
    --amber-ink: #e0b155;
    --surface: #111310;
    --card: #1a1d17;
    --ink: #eceee7;
    --ink-2: #b6beb0;
    --ink-3: #8b9487;
    --line: #2b3027;
    --ok-soft: #16321f;
    --ok-ink: #74d091;
    --warn-soft: #322813;
    --warn-ink: #e0b155;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.45;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding: 0 20px 56px;
}

.wrap { max-width: 680px; margin: 0 auto; }

/* ---------- locale ---------- */
[data-locale] { display: none; }
html[lang^='sl'] [data-locale='sl'],
html[lang^='en'] [data-locale='en'] { display: block; }

.locale-bar { display: flex; justify-content: flex-end; padding-top: 14px; }
.locale-bar a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}
.locale-bar a:hover { color: var(--green-text); border-color: var(--green-text); }

/* ---------- head ---------- */
header { text-align: center; padding: 26px 0 8px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--green-text);
}
.brand svg { width: 34px; height: 34px; }
.tagline { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.subtitle { color: var(--ink-3); margin-top: 6px; font-size: 14px; }

/* ---------- download ---------- */
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-top: 22px;
  text-align: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  max-width: 340px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: var(--on-green);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.cta:hover { background: var(--green-dark); }
.cta:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.cta svg { width: 22px; height: 22px; }
.hero .meta { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); font-family: var(--num); }
.hero .reqs { margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- blocks ---------- */
section { margin-top: 30px; }
h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
ol.steps { margin: 0; padding-left: 22px; }
ol.steps li { margin-bottom: 8px; color: var(--ink-2); }
ol.steps li:last-child { margin-bottom: 0; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- qr ---------- */
.card.qr {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
/* A QR is dark-on-light or it does not scan, so the plate keeps its own white
   ground in both themes instead of inheriting the card's. */
.qr-plate {
  flex: none;
  width: 132px;
  height: 132px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 6px;
}
.qr-plate svg { display: block; width: 100%; height: 100%; }
.card.qr p { color: var(--ink-2); }
.qr-url {
  font-family: var(--num);
  font-size: 13px;
  color: var(--ink);
  margin-top: 6px;
  word-break: break-all;
}

/* ---------- verify ---------- */
details.verify > summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-text);
  list-style: none;
}
details.verify > summary::-webkit-details-marker { display: none; }
details.verify > summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
/* The flex summary drops the native marker, so the chevron is the only cue that
   this card opens — it turns down when it does. */
summary .chev {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}
details[open] > summary .chev { transform: rotate(90deg); }
.kv { margin-top: 10px; }
.kv dt { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.kv dt:first-child { margin-top: 0; }
.kv dd {
  font-family: var(--num);
  font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
  margin-top: 2px;
}

/* ---------- changelog ---------- */
.release { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.release:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.release-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.release-version {
  font-family: var(--num);
  font-size: 15px;
  font-weight: 700;
  color: var(--on-green);
  background: var(--green);
  border-radius: 999px;
  padding: 3px 11px;
}
.release-date { font-size: 12.5px; color: var(--ink-3); }
.release-summary { margin-top: 10px; color: var(--ink-2); }
.kind { margin-top: 14px; }
.kind h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green-text);
}
.kind ul { margin: 6px 0 0; padding-left: 20px; }
.kind li { margin-bottom: 5px; color: var(--ink-2); }

/* ---------- foot ---------- */
footer {
  margin-top: 34px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
footer .privacy { max-width: 560px; margin: 0 auto 10px; }
