@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg:         #ffffff;
  --bg2:        #f5f5f5;
  --bg3:        #eeeeee;
  --border:     rgba(0,0,0,0.12);
  --border-mid: rgba(0,0,0,0.20);
  --text:       #000000;
  --text-mid:   #555555;
  --text-dim:   #999999;
  --ax:         #000000;
  --ax-lt:      #333333;
  --ax-bg:      rgba(0,0,0,0.04);
  --signal:     #000000;
  --green:      #000000;
  --amber:      #555555;
  --red:        #000000;

  --font-display: 'Instrument Serif', serif;
  --font-body:    'DM Mono', monospace;
  --max-width:    720px;
  --nav-height:   48px;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.subtext {
  color: var(--text-mid);
  font-size: 0.92rem;
  max-width: 600px;
}

/* ── Layout ────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

/* ── Navigation ────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.nav-logo .ax {
  color: var(--ax);
}

.nav-logo .dot-ax {
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ax-lt);
}

.nav-links a.active {
  color: var(--ax);
}

.nav-links a .nav-abbr {
  display: none;
}

.nav-links a .nav-full {
  display: inline;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero .subtext {
  margin-bottom: 0.5rem;
}

.hero .subtext-date {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ax);
  color: var(--ax);
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover,
.btn:focus {
  background: var(--ax-bg);
  color: var(--ax-lt);
  border-color: var(--ax-lt);
}

.btn-primary {
  background: var(--ax);
  color: var(--bg);
  border-color: var(--ax);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ax-lt);
  border-color: var(--ax-lt);
  color: var(--bg);
}

/* ── Cards ─────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  background: var(--ax-bg);
  border-color: var(--border-mid);
}

.card .card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.card .card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ax);
  margin-bottom: 0.5rem;
}

.card .card-desc {
  color: var(--text-mid);
  font-size: 0.88rem;
}

/* ── Stats Row ─────────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stat .stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ax);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat .stat-desc {
  color: var(--text-mid);
  font-size: 0.85rem;
}

/* ── Progression Row ───────────────────────────────────────── */

.progression {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}

.progression-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.progression-item .prog-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--text-mid);
}

.progression-item .prog-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.progression-item.highlight {
  border-color: var(--ax);
  background: var(--ax-bg);
}

.progression-item.highlight .prog-label {
  color: var(--ax);
}

.progression-item.highlight .prog-desc {
  color: var(--ax);
}

/* ── Principle Blocks ──────────────────────────────────────── */

.principle-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.principle-block:last-child {
  border-bottom: none;
}

.principle-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.principle-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ax);
  margin-bottom: 0.75rem;
}

.principle-statement {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.principle-body p {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.practice-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.practice-list {
  list-style: none;
  padding: 0;
}

.practice-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.practice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--ax);
  border-radius: 50%;
}

/* ── Dimension Blocks ──────────────────────────────────────── */

.dimension-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.dimension-block:last-child {
  border-bottom: none;
}

.dimension-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.dimension-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ax);
  margin-bottom: 1rem;
}

.dimension-def {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.ax-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.ax-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.ax-col.strong h4 { color: var(--green); }
.ax-col.weak h4 { color: var(--red); }

.ax-col ul {
  list-style: none;
  padding: 0;
}

.ax-col ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.ax-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.ax-col.strong ul li::before { background: var(--green); }
.ax-col.weak ul li::before { background: var(--red); }

.scoring-guide {
  margin-top: 1.5rem;
}

.scoring-guide h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.score-band {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.score-band:last-child {
  border-bottom: none;
}

.score-band .band-range {
  font-family: var(--font-body);
  min-width: 3.5rem;
  color: var(--text);
}

.score-band .band-desc {
  color: var(--text-mid);
}

/* ── Expandable Cards (Patterns) ───────────────────────────── */

.pattern-card {
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.pattern-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.pattern-card-header:hover {
  background: var(--ax-bg);
}

.pattern-card-header:focus {
  outline: 2px solid var(--ax);
  outline-offset: -2px;
}

.pattern-card-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dim);
  line-height: 1;
  min-width: 2rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.pattern-card-title {
  flex: 1;
}

.pattern-card-title .card-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ax);
  margin-bottom: 0.25rem;
}

.pattern-card-title .card-summary {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.pattern-card-toggle {
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  padding-top: 0.2rem;
}

.pattern-card.expanded .pattern-card-toggle {
  transform: rotate(45deg);
}

.pattern-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pattern-card.expanded .pattern-card-body {
  max-height: 500px;
}

.pattern-card-body-inner {
  padding: 0 1.5rem 1.5rem;
  padding-left: 4rem;
}

.pattern-card-body-inner .fix-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.pattern-card-body-inner .fix-text {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ── Best Practices ────────────────────────────────────────── */

.best-practice {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.best-practice:last-child {
  border-bottom: none;
}

.bp-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ax);
  margin-bottom: 0.75rem;
}

.bp-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}

.bp-impl-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.bp-impl {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* ── Score Calculator ──────────────────────────────────────── */

.grade-bands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
}

.grade-band {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.grade-band .grade-letter {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.grade-band .grade-range {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.grade-band .grade-label {
  font-size: 0.72rem;
}

.calculator {
  margin: 2.5rem 0;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-label {
  flex: 1;
  min-width: 0;
}

.calc-label .calc-dim-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-right: 0.5rem;
}

.calc-label .calc-dim-name {
  font-size: 0.88rem;
  color: var(--text);
}

.calc-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.calc-controls input[type="range"] {
  width: 120px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg3);
  border-radius: 2px;
  outline: none;
}

.calc-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ax);
  cursor: pointer;
  border: none;
}

.calc-controls input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ax);
  cursor: pointer;
  border: none;
}

.calc-controls input[type="range"]:focus {
  outline: 2px solid var(--ax);
  outline-offset: 2px;
}

.calc-controls input[type="number"] {
  width: 3.5rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg3);
  border: 1px solid var(--border);
  text-align: center;
  outline: none;
}

.calc-controls input[type="number"]:focus {
  border-color: var(--ax);
}

.score-display {
  text-align: center;
  padding: 2.5rem 0;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.score-total {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--text);
  line-height: 1.1;
}

.score-total .score-val {
  color: var(--ax);
}

.grade-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}

.score-interpretation {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-mid);
}

/* ── Audit CTA ─────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-mid);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── About / Resource Links ────────────────────────────────── */

.resource-list {
  margin-top: 2rem;
}

.resource-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item .res-name {
  color: var(--ax);
  font-size: 0.92rem;
  min-width: 10rem;
  flex-shrink: 0;
}

.resource-item .res-name a {
  color: var(--ax);
  transition: color 0.2s ease;
}

.resource-item .res-name a:hover {
  color: var(--ax-lt);
}

.resource-item .res-desc {
  color: var(--text-mid);
  font-size: 0.85rem;
}

/* ── Skip Link ─────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--ax);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ── Page Navigation ───────────────────────────────────────── */

.page-nav {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.page-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ax);
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.page-nav-link:hover {
  color: var(--ax-lt);
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col .footer-logo {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ax);
  margin-bottom: 0.5rem;
}

.footer-col p {
  font-size: 0.82rem;
  color: var(--text-mid);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-mid);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--ax);
}

.footer-attribution {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-attribution .attr-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.footer-attribution .attr-link {
  color: var(--signal);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-attribution .attr-link:hover {
  color: var(--ax-lt);
}

.footer-attribution .attr-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* ── Scroll Animation ──────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }

/* ── Focus Styles ──────────────────────────────────────────── */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ax);
  outline-offset: 2px;
}

/* ── Section Link ──────────────────────────────────────────── */

.section-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ax);
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--ax-lt);
}

/* ── Responsive ────────────────────────────────────────────── */

@media (min-width: 480px) {
  .progression {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 3.2rem; }
  h2 { font-size: 2rem; }

  .hero {
    padding: 8rem 0 5rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ax-columns {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .calc-controls input[type="range"] {
    width: 180px;
  }

  .grade-bands {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 479px) {
  .nav-links a .nav-abbr {
    display: inline;
  }

  .nav-links a .nav-full {
    display: none;
  }

  .nav-links {
    gap: 0.6rem;
  }

  h1 { font-size: 1.8rem; }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .grade-bands {
    grid-template-columns: repeat(3, 1fr);
  }

  .calc-row {
    flex-wrap: wrap;
  }

  .calc-controls {
    width: 100%;
  }

  .calc-controls input[type="range"] {
    flex: 1;
  }

  .resource-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .resource-item .res-name {
    min-width: 0;
  }
}

/* ── Container Wide (for AX Index table) ───────────────────── */

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Score Submission Form ─────────────────────────────────── */

.submit-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.submit-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.submit-subtext {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.submit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.submit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.submit-field label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.submit-field input,
.submit-field select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.submit-field input:focus,
.submit-field select:focus {
  border-color: var(--ax);
}

.submit-field input::placeholder {
  color: var(--text-dim);
}

.submit-field select option {
  background: var(--bg2);
  color: var(--text);
}

.submit-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.submit-actions button {
  background: var(--ax);
  border: none;
  border-radius: 3px;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  transition: background 0.15s;
}

.submit-actions button:hover {
  background: var(--ax-lt);
}

.submit-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#submit-status {
  font-size: 0.8rem;
  color: var(--text-mid);
}

#submit-status.success { color: var(--green); }
#submit-status.error   { color: var(--red); }

/* ── AX Index Table ────────────────────────────────────────── */

.index-controls {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.index-controls input[type="text"] {
  flex: 1;
  min-width: 180px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 12px;
  outline: none;
}

.index-controls input[type="text"]:focus,
.index-controls select:focus {
  border-color: var(--ax);
}

.index-controls input[type="text"]::placeholder {
  color: var(--text-dim);
}

.index-controls select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 10px;
  cursor: pointer;
  outline: none;
}

.index-controls select option {
  background: var(--bg2);
  color: var(--text);
}

.index-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.index-stats span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.index-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 1.5rem;
}

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

.index-table th {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.index-row {
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.3s ease both;
}

.index-row:hover {
  background: rgba(0,0,0,0.02);
}

.index-row td {
  padding: 12px 12px 12px 0;
  vertical-align: middle;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.col-rank {
  color: var(--text-dim);
  font-family: var(--font-body);
  width: 40px;
}

.col-brand { min-width: 140px; }

.brand-name {
  color: var(--text);
  font-size: 0.88rem;
}

.brand-domain {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 2px;
}

.col-category { min-width: 120px; }

.cat-badge {
  font-size: 0.65rem;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
}

.col-score {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}

.score-denom {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-left: 1px;
}

.col-grade {
  text-align: center;
  width: 50px;
}

.index-table .grade-badge {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid;
  border-radius: 3px;
  padding: 2px 7px;
  display: inline-block;
  background: transparent;
  margin-top: 0;
}

.col-source {
  font-size: 0.75rem;
  color: var(--text-mid);
  white-space: nowrap;
}

.col-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.result-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

#load-more {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  margin: 1.5rem auto;
  padding: 10px 24px;
  transition: border-color 0.15s, color 0.15s;
}

#load-more:hover {
  border-color: var(--ax);
  color: var(--ax);
}

#index-status {
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: center;
  padding: 2rem 0;
}

@media (max-width: 600px) {
  .submit-row {
    grid-template-columns: 1fr;
  }

  .index-controls {
    flex-direction: column;
  }

  .index-controls input[type="text"] {
    min-width: 0;
  }

  .container-wide {
    padding: 0 1rem;
  }
}

/* ── AX Score Analyzer ─────────────────────────────────────── */

.score-hero-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.score-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.score-hero-sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2rem;
}

.url-input-row {
  display: flex;
  max-width: 580px;
}

.url-input-row input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border-mid);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  padding: 13px 16px;
  transition: border-color 0.15s;
}

.url-input-row input:focus {
  border-color: var(--ax);
}

.url-input-row input::placeholder {
  color: var(--text-dim);
}

.url-input-row button {
  background: var(--ax);
  border: none;
  border-radius: 0 4px 4px 0;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 24px;
  transition: background 0.15s;
  white-space: nowrap;
}

.url-input-row button:hover {
  background: var(--ax-lt);
}

.url-input-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.url-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ── Analysis Progress ─────────────────────────────────────── */

.analysis-progress {
  max-width: 580px;
  padding: 2rem 0;
}

.progress-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--ax);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-step {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 1.25rem;
  position: relative;
  transition: color 0.3s;
}

.progress-step::before {
  content: '\25CB';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

.progress-step.active {
  color: var(--text-mid);
}

.progress-step.active::before {
  content: '\25CF';
  color: var(--ax);
}

.progress-step.done::before {
  content: '\2713';
  color: var(--green);
}

.progress-url {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 1rem;
}

/* ── Score Result ──────────────────────────────────────────── */

.score-result {
  max-width: 680px;
  padding-top: 0.5rem;
}

.result-header {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ax);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.result-domain {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.result-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.result-score {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
}

.result-denom {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.result-grade {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid currentColor;
  margin-left: 8px;
  align-self: center;
}

.result-summary {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ── Dimension Breakdown Bars ──────────────────────────────── */

.dimensions-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.dim-row {
  display: grid;
  grid-template-columns: 160px 1fr 52px;
  align-items: center;
  gap: 12px;
}

.dim-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-mid);
}

.dim-bar-track {
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  overflow: hidden;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dim-score-val {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: right;
}

@media (max-width: 520px) {
  .dim-row {
    grid-template-columns: 120px 1fr 40px;
  }
  .dim-name {
    font-size: 0.72rem;
  }
}

/* ── Findings Cards ────────────────────────────────────────── */

.findings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.finding-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.finding-card.strength { border-left: 3px solid var(--green); }
.finding-card.risk     { border-left: 3px solid var(--red); }
.finding-card.warn     { border-left: 3px solid var(--amber); }

.finding-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.finding-card.strength .finding-icon { color: var(--green); }
.finding-card.risk     .finding-icon { color: var(--red); }
.finding-card.warn     .finding-icon { color: var(--amber); }

.finding-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.finding-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Optagen CTA Card ──────────────────────────────────────── */

.optagen-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--signal);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.cta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--signal);
  margin-bottom: 0.6rem;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.cta-body {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.cta-button {
  display: inline-block;
  background: var(--signal);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.cta-button:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.cta-footnote {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── Run Again / Error ─────────────────────────────────────── */

.run-again-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 8px 18px;
  transition: border-color 0.15s, color 0.15s;
}

.run-again-btn:hover {
  border-color: var(--ax);
  color: var(--ax);
}

.score-error {
  max-width: 580px;
  padding: 2rem 0;
}

.error-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.error-body {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hidden {
  display: none !important;
}

/* ── Rubric Tables (Dimensions) ────────────────────────────── */

.rubric-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 2rem;
  font-size: 0.88rem;
}

.rubric-table caption {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  margin-bottom: 0.5rem;
  caption-side: top;
  padding-bottom: 6px;
}

.rubric-table th {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--border);
}

.rubric-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  line-height: 1.5;
  vertical-align: top;
}

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

.band-excellent { color: var(--green); font-weight: 500; }
.band-good      { color: var(--ax); font-weight: 500; }
.band-fair      { color: var(--amber); font-weight: 500; }
.band-poor      { color: var(--red); font-weight: 500; }

/* ── Glossary ──────────────────────────────────────────────── */

.glossary-list {
  margin-top: 2rem;
}

.glossary-list dt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ax);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.glossary-list dt:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.glossary-list dd {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-left: 0;
  margin-bottom: 0;
}

/* ── Checklist ─────────────────────────────────────────────── */

.checklist-section {
  margin-bottom: 2.5rem;
}

.checklist-dim-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.checklist-items {
  list-style: none;
  padding: 0;
}

.checklist-items li {
  margin-bottom: 0.5rem;
}

.checklist-items label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  cursor: pointer;
  padding: 0.5rem 0;
  min-height: 44px;
}

.checklist-items input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ax);
  cursor: pointer;
}

.checklist-tally {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-mid);
}

.checklist-tally p {
  margin-bottom: 0.5rem;
}

.checklist-tally p:last-child {
  margin-bottom: 0;
}

.checklist-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── Share Row + Badge (Score) ─────────────────────────────── */

.share-row {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-mid);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 7px 14px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.share-btn:hover {
  border-color: var(--ax);
  color: var(--ax);
}

.badge-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.badge-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.badge-preview {
  margin-bottom: 0.5rem;
}

.badge-code {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.72rem;
  padding: 8px 10px;
  resize: none;
  height: 48px;
  cursor: pointer;
  box-sizing: border-box;
}

/* ── Quick Start Steps (Resources) ─────────────────────────── */

.quickstart-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--ax);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.step-number {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ax);
  margin-bottom: 0.4rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.step-sub {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}

.code-block-wrap {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  margin-top: 0.5rem;
}

.code-block-wrap pre {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-mid);
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover { color: var(--ax); border-color: var(--ax); }

/* ── Tool Cards Grid (Resources) ───────────────────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s;
}

.tool-card:hover { border-color: var(--ax); }

.tool-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 3px;
  padding: 1px 6px;
  margin-bottom: 0.25rem;
  align-self: flex-start;
}

.tool-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
}

.tool-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ax);
  text-decoration: none;
  margin-top: 0.25rem;
}

.tool-link:hover { color: var(--ax-lt); }

/* ── Download List (Resources) ─────────────────────────────── */

.download-list {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.download-item:last-child { border-bottom: none; }
.download-item:hover { background: rgba(0,0,0,0.02); }

.download-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--text-dim);
  width: 24px;
  text-align: center;
}

.download-info { flex: 1; }

.download-title {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

.download-desc {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.format-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 6px;
}

.download-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ax);
  text-decoration: none;
}

.download-link:hover { color: var(--ax-lt); }

/* ── Community Cards (Resources) ───────────────────────────── */

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.community-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}

.community-card:hover { border-color: var(--ax); }

.community-card .tool-title { margin-bottom: 0.4rem; }
.community-card .tool-desc { margin-bottom: 0.5rem; }

/* ── Maturity Assessment ───────────────────────────────────── */

.maturity-progress {
  height: 4px;
  background: var(--bg3);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.maturity-progress-fill {
  height: 100%;
  background: var(--ax);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.maturity-question-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.maturity-dim-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.maturity-q-number {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ax);
  margin-bottom: 0.5rem;
}

.maturity-q-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.maturity-buttons {
  display: flex;
  gap: 0.75rem;
}

.maturity-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}

.maturity-btn-yes {
  background: var(--ax-bg);
  border: 1px solid var(--ax);
  color: var(--ax);
}

.maturity-btn-yes:hover { background: var(--ax); color: var(--bg); }

.maturity-btn-no {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-mid);
}

.maturity-btn-no:hover { border-color: var(--text-mid); color: var(--text); }

.maturity-result {
  border: 1px solid var(--border);
  border-top: 3px solid var(--ax);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.maturity-level-badge {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.maturity-level-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.maturity-level-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.maturity-next-actions {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.maturity-next-actions li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.maturity-next-actions li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--ax);
  border-radius: 50%;
}

/* ── Decision Tree ─────────────────────────────────────────── */

.decision-question-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.decision-q-number {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.decision-q-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.decision-result-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.decision-result-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.decision-result-desc {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.decision-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.decision-meta-item {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.decision-meta-item strong {
  color: var(--text-mid);
}

.decision-back-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 6px 14px;
  margin-bottom: 1rem;
  transition: border-color 0.15s, color 0.15s;
}

.decision-back-btn:hover { border-color: var(--ax); color: var(--ax); }

@media (max-width: 600px) {
  .tool-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .download-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .download-meta { align-self: flex-start; }
}
