/* Gated Sample-Preview Site — shared dark theme
   Primary #0984E3 · bg #0E1117 · text #E2E8F0
   Self-contained, no build step, opens via file:// */

:root {
  --primary: #0984E3;
  --primary-hover: #0b9bff;
  --bg: #0E1117;
  --surface: #161B22;
  --surface-2: #1C2230;
  --border: #2A2F3A;
  --text: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --accent-green: #22C55E;
  --accent-amber: #F59E0B;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* Layout ---------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 132, 227, 0.08), transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: var(--text);
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(9, 132, 227, 0.18);
  flex: none;
}

.nav-back {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Hero ------------------------------------------------------------------ */
.hero {
  padding: 64px 0 36px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
}

.hero p.lead {
  margin: 0;
  max-width: 680px;
  font-size: 1.12rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(9, 132, 227, 0.12);
  border: 1px solid rgba(9, 132, 227, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

/* Card grid ------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 16px 0 56px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: transform 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.card .key {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.22rem;
  color: var(--text);
}

.card .tagline {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.96rem;
  flex: 1;
}

.card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}

.card .cta::after {
  content: "→";
  transition: transform 0.16s ease;
}

.card:hover .cta::after {
  transform: translateX(4px);
}

/* Notice / gating banner ------------------------------------------------ */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 8px 0 40px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.notice .lock {
  flex: none;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Section helpers (for product pages) ----------------------------------- */
.section {
  padding: 8px 0 48px;
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}

.placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
}

/* Product-page components ----------------------------------------------- */

/* Lead-in paragraph under a section heading */
.section p.intro {
  margin: 0 0 22px;
  max-width: 760px;
  color: var(--text-muted);
}

.section h2 .sub {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* KPI cards */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 4px 0 12px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}

.kpi .num {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text);
}

.kpi .num.accent {
  color: var(--primary);
}

.kpi .label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.kpi .sub {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Data tables */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table.data {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}

table.data caption {
  text-align: left;
  padding: 14px 16px 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  caption-side: top;
}

table.data th,
table.data td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data thead th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover {
  background: rgba(9, 132, 227, 0.05);
}

table.data td.num,
table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table.data td.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Redacted / gated cell content */
.redact {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: repeating-linear-gradient(
    45deg,
    rgba(148, 163, 184, 0.12),
    rgba(148, 163, 184, 0.12) 6px,
    rgba(148, 163, 184, 0.04) 6px,
    rgba(148, 163, 184, 0.04) 12px
  );
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 1px 8px;
  letter-spacing: 1px;
}

th.locked,
td.locked {
  color: var(--text-dim);
}

th.locked::after {
  content: " \1F512";
  font-size: 0.8em;
}

/* Schema / column list */
.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.schema-grid .col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.schema-grid .col .name {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--primary);
}

.schema-grid .col .desc {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.schema-grid .col.gated .name {
  color: var(--accent-amber);
}

.schema-grid .col.gated .name::after {
  content: " \1F512";
  font-size: 0.85em;
}

/* Pills / tags */
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.pill.ok {
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.pill.warn {
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.pill.roadmap {
  color: var(--text-dim);
}

/* Gated call-to-action box */
.cta-box {
  background: linear-gradient(180deg, rgba(9, 132, 227, 0.1), var(--surface));
  border: 1px solid rgba(9, 132, 227, 0.35);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.cta-box p {
  margin: 0 auto 20px;
  max-width: 560px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cta-box .fineprint {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Source list */
ul.sources {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

ul.sources li {
  margin-bottom: 6px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 560px) {
  .hero {
    padding: 40px 0 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .kpi .num {
    font-size: 1.45rem;
  }
}
