/* AItelier's shared look: the download portal and the admin UI both link this file. */
@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); }
.wordmark .brand-i { color: var(--muted); }

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); }

.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); }
