:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: #e4e7ee;
  --text: #1a1d29;
  --text-muted: #5a6072;
  --accent: #2f6fed;
  --accent-dark: #1f52c4;
  --accent-soft: #eaf1ff;
  --success: #1a9c6a;
  --success-soft: #e7f8f1;
  --warn: #c98a12;
  --warn-soft: #fdf3e0;
  --danger: #d1403f;
  --danger-soft: #fbe9e9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 8px 24px rgba(20, 24, 40, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  background: linear-gradient(135deg, #1f2a44 0%, #142049 100%);
  color: #fff;
  padding: 56px 0 44px;
}

header.site-header .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #9db4f5;
}

header.site-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  max-width: 760px;
}

header.site-header p.lead {
  margin: 0;
  max-width: 680px;
  color: #c6cfe8;
  font-size: 16px;
}

.header-stats {
  display: flex;
  gap: 28px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.header-stats .stat {
  display: flex;
  flex-direction: column;
}

.header-stats .stat strong {
  font-size: 22px;
}

.header-stats .stat span {
  font-size: 13px;
  color: #a9b4d6;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

main {
  padding: 40px 0 80px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
}

.group-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 28px 0 14px;
}

.group-title:first-of-type {
  margin-top: 4px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
}

.card .card-desc {
  color: var(--text-muted);
  margin: 0 0 16px;
  font-size: 15px;
  max-width: 700px;
}

.price-tag {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  background: #eef0f5;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 10px;
}

.pricing-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pricing-line b {
  color: var(--text);
}

h3.subhead {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 700;
}

.task-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

.task-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.task-list li a {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.task-list li span {
  color: var(--text-muted);
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* example pages */
.example-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.example-intro h1 {
  font-size: 28px;
  margin: 0 0 10px;
}

.example-intro p {
  color: var(--text-muted);
  font-size: 15px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

table.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  min-width: 640px;
}

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

table.data-table th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.03em;
}

table.data-table tbody tr:hover {
  background: var(--bg);
}

table.data-table td.wrap {
  white-space: normal;
  min-width: 260px;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
}

.badge-low {
  background: var(--success-soft);
  color: var(--success);
}

.badge-medium {
  background: var(--warn-soft);
  color: var(--warn);
}

.badge-high {
  background: var(--danger-soft);
  color: var(--danger);
}

.chart-wrap {
  position: relative;
  height: 340px;
}

.note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

@media (max-width: 640px) {
  header.site-header h1 {
    font-size: 26px;
  }
  .card {
    padding: 20px;
  }
  .chart-wrap {
    height: 280px;
  }
}

.actor-store-title {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.header-top .eyebrow { margin-bottom: 0; }
.language-switch { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: #abb6ce; }
.language-switch a { color: #c9d2e7; padding: 7px 10px; border-radius: 6px; font-weight: 700; }
.language-switch a[aria-current="page"] { background: #eef2ff; color: #182843; }
.language-switch a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
