/* Root shared — status strip, changelog, page shell, notify */
:root {
  --bg: #000000;
  --bg-2: #070707;
  --bg-elevated: #0c0c0c;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #e8e8e8;
  --text-muted: #6e6e6e;
  --text-dim: #3f3f3f;
  --accent: #4a1518;
  --accent-soft: rgba(74, 21, 24, 0.2);
  --accent-glow: rgba(74, 21, 24, 0.28);
  --accent-hover: #6b1f24;
  --ok: #6ecf8a;
  --warn: #d4a24a;
  --off: #6a6a6a;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Syne', sans-serif;
}

/* ── Status dots ── */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--off);
  flex-shrink: 0;
}

.status-dot.ok,
.status-dot.live { background: var(--ok); }
.status-dot.warn { background: var(--warn); }
.status-dot.off { background: var(--off); }

.status-dot.live {
  box-shadow: 0 0 0 0 rgba(110, 207, 138, 0.45);
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 207, 138, 0.45); }
  70% { box-shadow: 0 0 0 4px rgba(110, 207, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 207, 138, 0); }
}

/* ── Product status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border-radius: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  color: var(--text-muted);
  background: transparent;
}

.status-badge.ok { color: var(--ok); }
.status-badge.warn { color: var(--warn); }
.status-badge.off { color: var(--off); }

/* ── Changelog ── */
.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.changelog-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-list li:last-child { border-bottom: none; }

.changelog-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.changelog-body { min-width: 0; }

.changelog-product {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.changelog-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .changelog-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── Page shell (status / news / support) ── */
.page-shell {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-shell .ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(74, 21, 24, 0.09), transparent 58%),
    linear-gradient(180deg, #050505 0%, #000000 100%);
}

.page-shell .wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.page-shell nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  margin-bottom: 20px;
  gap: 16px;
}

.page-shell .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.page-shell .logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
}

.page-shell .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.page-shell .nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s;
}

.page-shell .nav-links a:hover { color: var(--text); }

.page-shell .nav-links a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.page-shell .nav-links a.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}

.page-shell .page-hero {
  margin-bottom: 40px;
  animation: pageFadeUp 0.65s var(--ease) both;
}

.page-shell .eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.page-shell .lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0;
}

.page-shell .hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.page-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.page-card h2,
.page-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.page-card p,
.page-muted {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.page-card + .page-card { margin-top: 0; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s;
}

.status-product-card:hover { border-color: var(--border-light); }

.status-product-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.status-product-card a:hover { color: var(--accent); }

.status-product-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.status-product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.page-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.page-steps strong { color: var(--text); font-weight: 600; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page-btn-primary {
  background: var(--accent);
  color: #fff;
}

.page-btn-primary:hover { background: var(--accent-hover); }

.page-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.page-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.2); }

.page-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.page-footer-note a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-footer-note a:hover { color: var(--accent); }

@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Notify button (TBA) ── */
.notify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.notify-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.notify-btn.copied {
  border-color: rgba(110, 207, 138, 0.4);
  color: var(--ok);
  background: rgba(110, 207, 138, 0.08);
}

/* Toast */
.root-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  max-width: min(90vw, 360px);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.root-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .page-shell .nav-links { gap: 6px 12px; }
  .page-shell .nav-links a { font-size: 0.8rem; }
  .page-card { padding: 18px; }
}
