:root {
  --bg: #000;
  --bg-elevated: #1c1c1e;
  --bg-inset: #2c2c2e;
  --text: #f5f5f7;
  --text-muted: #8e8e93;
  --accent: #007aff;
  --accent-pressed: #0066d6;
  --separator: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --page-pad: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 32px var(--page-pad) 48px;
}

.page {
  max-width: 420px;
  margin: 0 auto;
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.1s ease;
}

.app-card:not(.app-card-disabled):active {
  transform: scale(0.98);
  background: var(--bg-inset);
}

.app-card-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.app-card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-inset);
  color: var(--text-muted);
}

.badge-open {
  background: rgba(0, 122, 255, 0.2);
  color: var(--accent);
}

.app-card-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.app-card-disabled .app-card-cta {
  background: var(--bg-inset);
  color: var(--text-muted);
}

.footer {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
