/* Shared Demo styles for the download portal and admin UI. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/jost-latin-wght-normal.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #070d1f;
  --bg-glow: #142454;
  --surface: #0d1630;
  --surface-2: #131f40;
  --border: #213061;
  --border-strong: #2e4080;
  --text: #e8edf8;
  --muted: #8f9cc0;
  --faint: #5d6a91;
  --accent: #5b8cff;
  --accent-hover: #7aa2ff;
  --accent-text: #050b1c;
  --danger: #ff8597;
  --radius: 16px;
  --font: "Jost", "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(60rem 32rem at 50% -12rem, var(--bg-glow) 0%, transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-hover); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.site-header { padding-top: 2rem; padding-bottom: 1.5rem; }
.wordmark {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--text); }

main { flex: 1; }
.card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card + .card { margin-top: 1.25rem; }
@media (max-width: 30rem) {
  .card { padding: 1.5rem 1.25rem; }
}

.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px -8px rgba(91, 140, 255, 0.35);
}
h1 {
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
.lead { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.95rem; }

code, .code {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  word-break: break-all;
}
.activation-code {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1rem;
}

form { margin: 1.25rem 0 0; }
label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
input[type="text"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (max-width: 30rem) {
  .field-row button { flex: 1 1 100%; }
}
input[type="text"]::placeholder { color: var(--faint); }
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.25);
}
button, .download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
button:hover, .download-button:hover { background: var(--accent-hover); color: var(--accent-text); }
button:focus-visible, .download-button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
}
.download-button {
  font-size: 1.1rem;
  padding: 0.9rem 1.6rem;
  margin: 0.5rem 0 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, 0.6);
}
.download-button svg { width: 1.2em; height: 1.2em; }
.meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 0.35rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.25rem 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-hover);
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 50%;
}
img.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0.75rem 0 0;
}
.notice-title { color: var(--danger); }
.small { font-size: 0.85rem; }

/* Legal texts: Datenschutzerklärung and Nutzungsbedingungen. */
.legal { font-size: 0.95rem; color: var(--text); }
.legal h2 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.legal h3 { font-size: 1rem; font-weight: 500; margin: 1.5rem 0 0.4rem; }
.legal h2:first-child, .legal h3:first-child { margin-top: 0; }
.legal ol, .legal ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.legal ol ol { list-style: lower-alpha; margin: 0.4rem 0 0; }
.legal li { margin-bottom: 0.4rem; }
.legal address { font-style: normal; margin: 0 0 1rem; }
.legal .legal-stand { color: var(--faint); font-size: 0.85rem; margin-top: 1.5rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1rem; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.85rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.legal th { color: var(--muted); font-weight: 500; }

/* The terms acceptance, as a dialog on the download page and as a page of its own. */
.terms-scroll {
  max-height: 45vh;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  margin: 1rem 0 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.terms-scroll:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; }
.terms-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 1.75rem 1.5rem;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.terms-dialog::backdrop { background: rgba(3, 6, 16, 0.75); }
@media (max-width: 30rem) {
  .terms-dialog { padding: 1.25rem 1rem; }
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 1rem;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
}
.terms-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media (max-width: 30rem) {
  .terms-actions > * { flex: 1 1 100%; }
}
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
}
.button-ghost:hover { background: var(--surface-2); color: var(--text); }
.terms-error { color: var(--danger); }

.site-footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
