/* Tokens and type from jakoob.cz */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0b0e11;
  --bg2:     #111418;
  --bg3:     #181c22;
  --border:  #23282f;
  --accent:  #00e5a0;
  --accent3: #38bdf8;
  --warn:    #f97316;
  --text:    #d8dde6;
  --muted:   #8a93a3;
  --mono:    'IBM Plex Mono', monospace;
  --sans:    'Barlow', sans-serif;
}

html.light {
  --bg:      #f8f9fc;
  --bg2:     #eef0f5;
  --bg3:     #e2e5ed;
  --border:  #cdd1dc;
  --accent:  #007a55;
  --accent3: #0369a1;
  --warn:    #c2410c;
  --text:    #1c2333;
  --muted:   #5c6880;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  min-height: 100vh;
  padding: 48px 16px 64px;
}

.wrap { max-width: 880px; margin: 0 auto; }
.wrap.narrow { max-width: 440px; }

.brand {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.brand a { color: var(--accent); text-decoration: none; }

h1 { font-size: 36px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
h2 { font-size: 22px; font-weight: 800; margin: 40px 0 14px; }
.lead { color: var(--muted); margin-bottom: 32px; }

/* ── login ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
label { display: block; font-weight: 600; margin-bottom: 8px; }
input[type=password] {
  width: 100%;
  font: inherit;
  font-family: var(--mono);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
input[type=password]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
button, .btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  font: inherit;
  font-weight: 800;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #06120d;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
html.light button, html.light .btn { color: #fff; }
button:disabled { opacity: .45; cursor: not-allowed; }
.error {
  border-left: 3px solid var(--warn);
  background: var(--bg3);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 16px;
}

/* ── download tiles ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 18px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--accent3); transform: translateY(-2px); }
.tile .os { font-weight: 800; font-size: 20px; }
.tile .chip { color: var(--muted); font-size: 15px; }
.tile .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 10px; }
.tile .note { font-size: 13px; color: var(--muted); }
.tile.recommended { border: 2px solid var(--accent); background: var(--bg3); }
.tile .badge {
  display: none;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #06120d;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 4px;
}
html.light .tile .badge { color: #fff; }
.tile.recommended .badge { display: inline-block; }

.hint {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent3);
  background: var(--bg2);
  border-radius: 6px;
  font-size: 16px;
}
.hint[hidden] { display: none; }

/* ── steps ── */
.steps { counter-reset: step; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 16px 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.steps b { font-weight: 600; }
.ui { font-family: var(--mono); font-size: 15px; background: var(--bg3); padding: 1px 6px; border-radius: 4px; }
.panel[hidden] { display: none; }

.foot { margin-top: 48px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  body { padding-top: 28px; font-size: 17px; }
  h1 { font-size: 28px; }
}
