/* GENERATED by infra/download/build.mjs from infra/download/src/ - do not edit here; change src/ and run node infra/download/build.mjs */
/* Colours, radii and shadows come from docs/design/c-rota/tokens.json (CAT Rota, light theme), written below by build.mjs.
   System fonts only: the page loads nothing from another origin (CSP default-src 'none'). */
:root {
  --ground: #F4F6FB;
  --surface: #FFFFFF;
  --control: #EEF1F7;
  --track: #E4E8F0;
  --line: #EDF0F5;
  --line-strong: #DDE3EC;
  --outline: #848FA2;
  --ink: #0F1B2D;
  --text-2: #4A5568;
  --accent: #5A3FD6;
  --accent-ink: #5A3FD6;
  --accent-pressed: #4527B8;
  --on-accent: #FFFFFF;
  --accent-tint: #ECE8FF;
  --on-accent-tint: #4527B8;
  --focus: #5A3FD6;
  --critical: #B42318;
  --radius-small: 14px;
  --radius-button: 20px;
  --radius-card: 24px;
  --shadow-card: 0 1px 2px rgba(15,27,45,0.05), 0 8px 24px rgba(15,27,45,0.06);
  --shadow-primary: 0 6px 16px rgba(90,63,214,0.28);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 17px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}

/* language: app.js sets <html data-lang>; without JavaScript both languages stay visible */
html.js[data-lang="tr"] body [lang="de"],
html.js[data-lang="de"] body [lang="tr"] { display: none !important; }
html:not(.js) .lang-switch { display: none; }
html:not(.js) [lang="de"] { color: var(--text-2); }
html:not(.js) span[lang] { display: block; }
html:not(.js) .button span[lang],
html:not(.js) h1 span[lang],
html:not(.js) h2 span[lang],
html:not(.js) summary span[lang],
html:not(.js) .label span[lang] { display: inline; }
html:not(.js) .button span[lang="de"]::before,
html:not(.js) h1 span[lang="de"]::before,
html:not(.js) h2 span[lang="de"]::before,
html:not(.js) summary span[lang="de"]::before,
html:not(.js) .label span[lang="de"]::before { content: " / "; }
html:not(.js) .button span[lang="de"] { color: inherit; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 4px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.brand-name { font-weight: 800; font-size: 19px; white-space: nowrap; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--track);
  flex-shrink: 0;
}

.lang-switch button {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 700 15px/1 var(--font);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 16px 8px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
}

h1 { font-size: 26px; line-height: 1.2; font-weight: 800; margin: 0 0 10px; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 800; margin: 0 0 14px; }
p { margin: 0 0 12px; }

.lead { color: var(--text-2); }

.version {
  display: grid;
  gap: 2px;
  margin: 18px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--accent-tint);
  color: var(--on-accent-tint);
}

.version .label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.version .value { font-size: 18px; font-weight: 800; }
.version.error { background: var(--control); color: var(--ink); }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 20px;
  border-radius: var(--radius-button);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
}

.button:active { background: var(--accent-pressed); }
.button[aria-disabled="true"] { background: var(--control); color: var(--text-2); box-shadow: none; cursor: not-allowed; }

.hint { margin: 10px 0 0; text-align: center; color: var(--text-2); font-size: 15px; }

.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--on-accent-tint);
  font-weight: 800;
}

.steps li > span { grid-column: 2; }

.note {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: var(--control);
  font-size: 15px;
}

.note:last-child { margin-bottom: 0; }

.qr { text-align: center; }

.qr-code { display: flex; justify-content: center; }

.qr-code svg {
  width: min(240px, 70vw);
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
}

.url { margin: 12px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.verify summary { cursor: pointer; font-weight: 800; font-size: 18px; min-height: 32px; }
.verify[open] summary { margin-bottom: 12px; }
.verify p { font-size: 15px; color: var(--text-2); }

code { font-family: var(--mono); font-size: 0.92em; }

.hash {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--control);
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.5;
}

footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 16px 32px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .card { padding: 28px; }
  h1 { font-size: 30px; }
}

@media print {
  body { background: #fff; }
  .lang-switch, .button, .hint { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
