/* demo-2026 hub — shares the widget's theme tokens so light/dark match. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --fg: #1a1c1f;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --accent-fg: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --fg: #e7e9ee;
  --muted: #9aa1ad;
  --card: #171a21;
  --border: #262b34;
  --accent: #8b8cf7;
  --accent-fg: #0f1115;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --fg: #e7e9ee;
    --muted: #9aa1ad;
    --card: #171a21;
    --border: #262b34;
    --accent: #8b8cf7;
    --accent-fg: #0f1115;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.4);
}

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

h1 {
  margin: 0 0 12px;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.lede { margin: 0 0 24px; color: var(--muted); }

/* Cards that link out to each demo. */
.links {
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.08s ease, border-color 0.15s ease, background 0.15s ease;
}

.link-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.link-card:active { transform: translateY(1px); }

.link-icon { font-size: 28px; line-height: 1; }

.link-text { display: flex; flex-direction: column; }

.link-title { font-weight: 600; }

.link-sub { font-size: 13px; color: var(--muted); }

.link-arrow { margin-left: auto; color: var(--muted); font-size: 20px; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

footer button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  padding: 6px 12px;
  border-radius: 10px;
  transition: transform 0.08s ease, filter 0.15s ease;
}

footer button:hover { filter: brightness(1.08); }
footer button:active { transform: translateY(1px); }
