/*
 * PIE API docs — hub (tokens align with scalar-brand.css / PIE canvas).
 *
 * Logo usage:
 * - Hero + favicon + sidebar mark: full-colour mark (streamline-logo-fullcolour.png) on dark canvas — primary brand.
 * - White assets (streamline-logo-white.png) — use only where you need a monochrome mark on busy or coloured UI chrome;
 *   the dark docs canvas favours full-colour or white; we standardise on full-colour for customer-facing surfaces.
 */
:root {
  --shell-border: #2e3033;
  --shell-text: #ffffff;
  --shell-muted: #a3a3a3;
  --brand-orange: #ff7300;
  --brand-orange-hover: #fc9500;
  --brand-orange-dim: rgba(255, 115, 0, 0.14);
  --brand-teal: #3fa6a6;
  --brand-teal-hover: #52b8b8;
  --brand-teal-dim: rgba(63, 166, 166, 0.16);
  --brand-coral: #f46575;
  --brand-coral-hover: #f67a87;
  --brand-coral-dim: rgba(244, 101, 117, 0.14);
  --bg0: #141516;
  --bg1: #1c1d1f;
  --surface: rgba(22, 23, 25, 0.72);
  --surface-elevated: rgba(28, 29, 31, 0.88);
  --surface-hover: rgba(35, 37, 39, 0.95);
  --border: var(--shell-border);
  --text: var(--shell-text);
  --muted: var(--shell-muted);
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.2);
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

.hub-pill:focus-visible {
  outline-offset: 2px;
}

.hub-pill--client:focus-visible {
  outline: 2px solid var(--brand-teal);
}

.hub-pill--version:focus-visible,
.hub-pill--product:focus-visible {
  outline: 2px solid var(--brand-orange);
}

.hub-pill--admin:focus-visible {
  outline: 2px solid var(--brand-coral);
}

.hub-pill--api:focus-visible {
  outline: 2px solid var(--brand-orange);
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}

/* —— Hero —— */
.hero {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.hero-card {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(28, 29, 31, 0.55) 0%, rgba(20, 21, 22, 0.65) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-logo {
  display: block;
  margin: 0 auto 1.25rem;
  width: auto;
  max-width: min(88px, 24vw);
  max-height: 88px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.hero-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
}

.hero-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

/* —— Version cards —— */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 115, 0, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hub-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.hub-card__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Pills */
.hub-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hub-pill--version {
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: var(--brand-orange-dim);
  border: 1px solid rgba(255, 115, 0, 0.45);
}

.hub-pill--client {
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: var(--brand-teal-dim);
  border: 1px solid rgba(63, 166, 166, 0.45);
}

.hub-pill--client:hover {
  color: var(--brand-teal-hover);
  background: rgba(63, 166, 166, 0.22);
  border-color: rgba(63, 166, 166, 0.55);
}

.hub-pill--admin {
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-coral);
  background: var(--brand-coral-dim);
  border: 1px solid rgba(244, 101, 117, 0.45);
}

.hub-pill--admin:hover {
  color: var(--brand-coral-hover);
  background: rgba(244, 101, 117, 0.22);
  border-color: rgba(244, 101, 117, 0.55);
}

.hub-pill--api {
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-orange);
  background: var(--brand-orange-dim);
  border: 1px solid rgba(255, 115, 0, 0.45);
}

.hub-pill--api:hover {
  color: var(--brand-orange-hover);
  background: rgba(255, 115, 0, 0.22);
  border-color: rgba(255, 115, 0, 0.55);
}

.hub-pill--block {
  flex: 1 1 auto;
  min-width: min(100%, 8rem);
  text-align: center;
}

.footer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-line a {
  color: var(--brand-orange);
  font-weight: 500;
  text-decoration: none;
}

.footer-line a:hover {
  color: var(--brand-orange-hover);
  text-decoration: underline;
}

.footer-line a:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
  border-radius: 2px;
}
