:root {
  --bg: #0b0c0e;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8e8ee;
  --soft: #a2a7b1;
  --dim: #6d7380;
  --gold: #e7b43c;
  --good: #63d9a4;
  --bad: #ff8a8e;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(231, 180, 60, 0.09), transparent 55%), var(--bg);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header { padding-top: 48px; padding-bottom: 8px; }
.brand { font-size: 11px; letter-spacing: 0.4em; color: var(--dim); }
h1 { margin: 10px 0 4px; font-size: 34px; font-weight: 300; letter-spacing: 0.01em; }
.lead { margin: 0; color: var(--soft); }

section {
  margin: 22px 0;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

h2 { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--soft); }
h3 { margin: 0; font-size: 19px; font-weight: 500; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold); }
.soft { color: var(--soft); }
.small { font-size: 13px; color: var(--soft); }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { justify-content: space-between; }

button, .button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: rgba(255, 255, 255, 0.11); }
button:disabled { opacity: 0.45; cursor: default; }
.primary { background: var(--gold); border-color: var(--gold); color: #17130a; font-weight: 600; }
.primary:hover { background: #f2c552; }
.quiet { padding: 6px 12px; font-size: 13px; }

label { display: block; margin: 0 0 14px; font-size: 13px; color: var(--soft); }
input[type="text"], input[type="email"], input[type="password"], select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

.choices { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.choice { display: flex; gap: 10px; align-items: center; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); font-size: 15px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--gold); }
.tick { display: flex; gap: 10px; align-items: flex-start; }
.tick input { margin-top: 4px; }

.notice { margin: 0 0 14px; padding: 11px 13px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 14px; }
.notice.good { background: rgba(99, 217, 164, 0.1); color: var(--good); }
.notice.bad { background: rgba(255, 138, 142, 0.1); color: var(--bad); }

.licence { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.licence:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.key { font: 600 16px/1.3 Consolas, Menlo, monospace; letter-spacing: 0.03em; overflow-wrap: anywhere; }
.badge { padding: 2px 10px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; letter-spacing: 0.08em; }
.machines { margin: 10px 0; padding: 0; list-style: none; }
.machines li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }

details { margin-top: 10px; }
summary { color: var(--soft); cursor: pointer; }
details[open] summary { margin-bottom: 12px; }

footer { padding-top: 6px; padding-bottom: 40px; color: var(--dim); font-size: 13px; }
footer a { color: var(--soft); }

.prose h2 { margin-top: 22px; }
.prose ol, .prose ul { padding-left: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; letter-spacing: 0.1em; color: var(--dim); text-transform: uppercase; }
th, td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.mono { font-family: Consolas, Menlo, monospace; white-space: nowrap; }
.scroll { overflow-x: auto; }
.wide main, .wide header, .wide footer { max-width: 1120px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.checks li::before { content: "●  "; color: var(--good); }
.checks li.off::before { color: var(--bad); }

[hidden] { display: none !important; }
