/* Roster - marketing site styles. */

/* ── tokens ───────────────────────────────────────────────────────────── */
:root {
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  --bg: #0b0e13;
  --bg-elev: #11151c;
  --surface: #161c25;
  --surface-2: #1d2531;
  --surface-3: #242d3b;
  --border: #232c38;
  --border-strong: #2f3a4a;
  --text: #e8edf3;
  --text-muted: #8a98ab;
  --text-mute: #8a98ab; /* alias for legacy markup */
  --text-dim: #5a6677;
  --accent: oklch(72% 0.12 232);
  --accent-soft: oklch(72% 0.12 232 / 0.14);
  --accent-strong: oklch(78% 0.13 232);
  --ok: oklch(72% 0.14 155);
  --ok-soft: oklch(72% 0.14 155 / 0.16);
  --warn: oklch(78% 0.14 78);
  --warn-soft: oklch(78% 0.14 78 / 0.16);
  --danger: oklch(68% 0.18 25);
  --danger-soft: oklch(68% 0.18 25 / 0.16);
  --grid-line: rgba(255,255,255,0.025);
}

/* ── base ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.018em; }
h4 { font-size: 14px; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.mono { font-family: var(--font-mono); }
.dim  { color: var(--text-dim); }
.muted { color: var(--text-muted); }
.accent { color: var(--accent-strong); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── layout ───────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* ── nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 60px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--bg);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 4px 14px var(--accent-soft);
}
.nav-name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.nav-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  padding: 2px 6px;
  border-radius: 99px;
  border: 1px solid var(--border);
  margin-left: 2px;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.nav-links a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); background: var(--surface); }

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ── buttons ──────────────────────────────────────────────────────────── */
.button, .cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s, filter .12s;
  text-decoration: none;
}
.button:hover, .cta.ghost:hover { background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; color: var(--text); }
.button.primary, .cta {
  background: var(--accent);
  color: #06121b;
  border-color: transparent;
  font-weight: 600;
}
.button.primary:hover, .cta:not(.ghost):hover { background: var(--accent-strong); text-decoration: none; }
.cta.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.button.ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.button.ghost:hover { background: var(--surface); color: var(--text); }
.button.lg, .cta.lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 9px; }
.button.sm, .cta.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.button .arr, .cta .arr { transition: transform .15s; }
.button:hover .arr, .cta:hover .arr { transform: translateX(2px); }

/* ── pills ────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
}
.pill .dot { width: 6px; height: 6px; border-radius: 99px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.ok .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.warn .dot { background: var(--warn); }
.pill.muted { background: var(--surface-2); color: var(--text-muted); }
.pill.muted .dot { background: var(--text-dim); }
.pill.accent { background: var(--accent-soft); color: var(--accent-strong); }
.pill.accent .dot { background: var(--accent); }

/* ── section ──────────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.lg { padding: 128px 0; }
.section-head {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head.center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: -40% 0 0 0;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.hero h1 { margin-top: 18px; max-width: 22ch; text-wrap: balance; }
.hero h1 .em { color: var(--accent-strong); }
.hero .lede { margin-top: 22px; max-width: 62ch; font-size: 19px; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust-callout {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-trust-callout a { color: var(--text); font-weight: 500; }
.hero-meta {
  margin-top: 22px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ── feature grid ─────────────────────────────────────────────────────── */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.fgrid .fc {
  background: var(--bg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}
.fc-ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent-strong);
}
.fc h3 { font-size: 16px; letter-spacing: -0.015em; }
.fc p { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* ── pricing cards ────────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.price-card.featured {
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, var(--accent-soft), transparent 40%), var(--bg-elev);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent),
              0 24px 60px rgba(0,0,0,0.45);
}
.price-card h3 { font-size: 22px; }
.price-card .amt {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0;
}
.price-card .amt .per {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-sans);
  margin-left: 4px;
}
.price-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price-card li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 1px;
  background: var(--accent-strong);
}
.price-card li.no { color: var(--text-dim); }
.price-card li.no::before { background: var(--text-dim); }

/* ── compare table (pricing) ──────────────────────────────────────────── */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13.5px;
}
table.compare th, table.compare td {
  padding: 12px 16px;
  text-align: left;
  border-top: 1px solid var(--border);
}
table.compare thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-top: 0;
  background: var(--surface);
  text-align: center;
}
table.compare thead th:first-child { text-align: left; }
table.compare td.feat { color: var(--text); }
table.compare td.center { text-align: center; }
table.compare td.yes { color: var(--accent-strong); }
table.compare td.no { color: var(--text-dim); }
table.compare tbody tr:hover { background: rgba(255,255,255,0.012); }

/* ── prose (trust, privacy, legal, terms, refunds) ────────────────────── */
.prose { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.prose h2 { font-size: 26px; color: var(--text); margin-top: 56px; margin-bottom: 14px; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--text); margin-top: 32px; margin-bottom: 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px 0; padding-left: 22px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.prose a { color: var(--accent-strong); border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.prose a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 0 8px 8px 0;
}
.prose blockquote p { margin: 0; }

/* ── callout (used on hero pages outside .prose) ──────────────────────── */
.callout {
  padding: 16px 20px;
  background: var(--warn-soft);
  border: 1px solid color-mix(in oklab, var(--warn) 35%, transparent);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}
.callout strong { color: var(--text); font-weight: 600; }
.callout code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(0,0,0,0.18);
  border: 1px solid color-mix(in oklab, var(--warn) 20%, transparent);
}

/* code block (download page) */
pre.codeblock {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  margin: 14px 0;
}

/* ── changelog ────────────────────────────────────────────────────────── */
.cl-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.cl-entry:first-of-type { border-top: 0; padding-top: 0; }
.cl-meta { display: flex; flex-direction: column; gap: 6px; }
.cl-version {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}
.cl-date, .cl-channel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.cl-body h3 { font-size: 18px; margin-bottom: 14px; }
.cl-body > p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.cl-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.cl-body ul li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px dashed var(--border);
  align-items: start;
}
.cl-body ul li:first-child { border-top: 0; }
.tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  height: 18px;
  align-self: start;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.tag.add { background: var(--ok-soft); color: var(--ok); }
.tag.fix { background: var(--warn-soft); color: var(--warn); }
.tag.sec { background: var(--accent-soft); color: var(--accent-strong); }
.tag.brk { background: var(--danger-soft); color: var(--danger); }

/* ── activate ─────────────────────────────────────────────────────────── */
.activate-card {
  margin-top: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  max-width: 640px;
}
.activate-card .code-box {
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text);
  word-break: break-all;
}
.activate-card .hint { color: var(--text-muted); font-size: 13.5px; margin-top: 14px; }
.activate-card ol { margin-top: 32px; padding-left: 22px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.activate-card ol li { margin-bottom: 10px; }

/* ── footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-brand .tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
  max-width: 32ch;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  flex-wrap: wrap; gap: 8px;
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .cl-entry { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero { padding: 56px 0 32px; }
  .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .fgrid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-narrow { padding: 0 22px; }
  .cl-body ul li { grid-template-columns: 1fr; gap: 4px; }
}
