/* The app's palette (src/theme/index.ts), light and dark. */
:root {
  --background: #f6f7fb;
  --surface: #ffffff;
  --border: #d9dde8;
  --text: #11131a;
  --text-muted: #555c6e;
  --accent: #1e6fe8;
  --accent-text: #ffffff;
  --focus: #ffb400;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1016;
    --surface: #171a23;
    --border: #2e3342;
    --text: #f2f4f8;
    --text-muted: #a3aabb;
    --accent: #5b9bff;
    --accent-text: #0e1016;
    --focus: #ffc933;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main {
  width: 100%;
  max-width: 440px;
  padding: 56px 16px 32px;
  flex: 1;
}

.icon {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin: 0 0 24px;
}

h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

p { margin: 0 0 16px; color: var(--text-muted); }
p.lead { font-size: 19px; color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.code {
  font: 600 34px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  color: var(--text);
  overflow-wrap: anywhere;
}

.button {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-text);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-top: 12px;
}

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

ol { padding-left: 1.25em; margin: 0; color: var(--text-muted); }
li { margin: 0 0 8px; }

footer {
  width: 100%;
  max-width: 440px;
  padding: 24px 16px 32px;
  font-size: 14px;
  color: var(--text-muted);
}

[hidden] { display: none !important; }
