:root {
  --ink-900: #0f172a;
  --ink-700: #1f2937;
  --ink-500: #475569;
  --ink-300: #cbd5e1;
  --accent: #0e6e6b;
  --accent-dark: #0a4f4d;
  --accent-soft: #e6f1f0;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --white: #ffffff;
  --slate-50: #f8fafc;
  --emerald-50: #ecfdf5;
  --emerald-300: #6ee7b7;
  --emerald-900: #064e3b;
  --rose-50: #fff1f2;
  --rose-300: #fda4af;
  --rose-900: #881337;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "kern";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  border-radius: 4px;
  background: var(--accent);
  color: var(--white);
  padding: 8px 12px;
}

.shell {
  width: min(64rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  color: var(--ink-900);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--ink-500);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.resource-grid a:hover strong {
  color: var(--accent-dark);
}

.section-border {
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
}

.hero .shell,
.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .hero .shell,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.soft {
  background: var(--slate-50);
}

.eyebrow,
.mini-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin: 8px 0 0;
  color: var(--ink-900);
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

h4 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 650;
}

.lede,
.section-intro,
.prose {
  max-width: 70ch;
  color: var(--ink-500);
}

.lede {
  margin: 16px 0 0;
  font-size: 18px;
}

.prose {
  display: grid;
  gap: 16px;
  color: var(--ink-700);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 16px;
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: none;
}

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

.button.primary {
  background: var(--accent);
  color: var(--white);
}

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

.snapshot-note {
  margin: 24px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.stat-grid,
.fit-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

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

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

.stat-grid article,
.fit-grid article,
.callout,
.tab-shell,
.panel-card,
.roadmap li,
.resource-grid a {
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  background: var(--white);
}

.stat-grid article,
.fit-grid article,
.callout,
.roadmap li {
  padding: 20px;
}

.stat {
  margin: 4px 0;
  color: var(--ink-900);
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}

.stat-grid p:last-child,
.callout p:last-child,
.fit-grid li,
.roadmap p,
.resource-grid span {
  color: var(--ink-500);
  font-size: 14px;
}

.callout {
  margin-top: 24px;
  border-color: rgba(14, 110, 107, 0.3);
  background: rgba(230, 241, 240, 0.4);
}

.callout-title {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-weight: 650;
}

.tab-shell {
  margin-top: 24px;
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ink-300);
  padding: 8px;
}

.tab-list button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
}

.tab-list button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tab-list button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.tab-panel {
  padding: 24px;
}

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

.text-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 500;
}

.fit-line {
  max-width: 76ch;
  margin: 14px 0 0;
  color: var(--ink-700);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.panel-card {
  padding: 20px;
}

.panel-card.wide {
  grid-column: 1 / -1;
}

.panel-card ul,
.fit-grid ul {
  margin: 0;
  padding-left: 20px;
}

.panel-card li + li,
.fit-grid li + li {
  margin-top: 8px;
}

.panel-card li {
  color: var(--ink-700);
  font-size: 14px;
}

.positive {
  border-color: var(--emerald-300);
  background: var(--emerald-50);
}

.positive h3,
.positive h4 {
  color: var(--emerald-900);
}

.negative {
  border-color: var(--rose-300);
  background: var(--rose-50);
}

.negative h3,
.negative h4 {
  color: var(--rose-900);
}

.example-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.example-list a {
  display: block;
  min-height: 150px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  background: var(--slate-50);
  padding: 16px;
  text-decoration: none;
}

.example-list strong,
.resource-grid strong {
  display: block;
  color: var(--ink-900);
}

.example-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 12px;
}

.example-list p {
  margin: 12px 0 0;
  color: var(--ink-700);
  font-size: 14px;
}

.roadmap {
  display: grid;
  gap: 20px;
  margin: 32px 0 0;
  padding-left: 0;
  list-style: none;
}

.roadmap span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
}

.roadmap h3 {
  margin-top: 4px;
  font-size: 17px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.resource-grid a {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.resource-grid span {
  display: block;
  margin-top: 4px;
}

.footer {
  margin-top: 64px;
  border-top: 1px solid rgba(203, 213, 225, 0.6);
}

.footer .shell {
  display: grid;
  gap: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--ink-500);
  font-size: 14px;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-grid,
  .fit-grid,
  .panel-grid,
  .example-list,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 1.5rem, 64rem);
  }

  .tab-panel {
    padding: 16px;
  }

  .panel-head {
    display: block;
  }

  .text-link {
    display: inline-block;
    margin-top: 8px;
  }
}
