:root {
  color-scheme: light dark;
  --page: #f3eee7;
  --surface: #fff9f1;
  --surface-muted: #f7ece4;
  --text: #251515;
  --muted: #6f5b54;
  --border: #eadfd4;
  --primary: #8f201b;
  --primary-pressed: #741915;
  --primary-text: #fff9f1;
  --sky: #bfd3ec;
  --shadow: 0 22px 60px rgba(37, 21, 21, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #100a0a;
    --surface: #211615;
    --surface-muted: #2e201e;
    --text: #fff9f1;
    --muted: #cfbbb1;
    --border: #49302d;
    --primary: #df8f89;
    --primary-pressed: #f1aaa5;
    --primary-text: #251515;
    --sky: #35475f;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(191, 211, 236, 0.32), transparent 34%),
    var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 16px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sky);
  color: var(--primary);
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--primary-text);
}

.button-primary:active {
  background: var(--primary-pressed);
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--text);
}

.status,
.hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.install-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-muted);
}

.install-title {
  margin: 0 0 12px;
  font-weight: 850;
}

.store-links {
  display: grid;
  gap: 8px;
}

.store-link {
  color: var(--primary);
  font-weight: 800;
}

.technical-details {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.technical-details summary {
  cursor: pointer;
}

code {
  display: block;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  overflow-wrap: anywhere;
  background: var(--surface-muted);
  color: var(--text);
}
