:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #1c1b29;
  --muted: #5d5c70;
  --line: #e2e0d8;
  --accent: #4b3fe0;
  --accent-soft: #ecebff;
  --toy: #ff6257;
  --lab: #1f8fd6;
  --tech: #7a3ff2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e17;
    --surface: #161827;
    --ink: #f1f1f8;
    --muted: #a5a7c0;
    --line: #272a41;
    --accent: #a59bff;
    --accent-soft: #211f45;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

header.hero {
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 56px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin: 28px 0 6px;
  font-size: 19px;
}

p,
li {
  max-width: 72ch;
  text-wrap: pretty;
}

.lead {
  font-size: 20px;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button.ghost {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Catalog cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: none;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--band);
  border-radius: 16px;
  background: var(--surface);
}

.card[data-band='toy'] {
  --band: var(--toy);
}

.card[data-band='lab'] {
  --band: var(--lab);
}

.card[data-band='tech'] {
  --band: var(--tech);
}

.card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.card .meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--band);
}

.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.card .actions a {
  padding: 8px 14px;
  font-size: 15px;
}

/* ---------- Report ---------- */

article.report {
  padding-bottom: 96px;
}

.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 58px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.steps strong {
  display: block;
}

.note {
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}

pre code {
  padding: 0;
  background: none;
}

footer {
  padding: 32px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
