/* Heatmap Tracker — product site
   Dark by default; [data-theme="light"] on <html> flips the tokens. */

:root {
  --bg: #07070b;
  --bg-soft: #0c0c13;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf3;
  --text-dim: #a2a2b8;
  --accent: #8b5cf6;
  --accent-2: #c084fc;
  --accent-ink: #ffffff;
  --green: #39d353;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --lvl0: rgba(255, 255, 255, 0.055);
}

[data-theme="light"] {
  --bg: #fbfbfe;
  --bg-soft: #f3f3fa;
  --surface: rgba(12, 10, 30, 0.035);
  --surface-2: rgba(12, 10, 30, 0.06);
  --border: rgba(12, 10, 30, 0.1);
  --border-strong: rgba(12, 10, 30, 0.18);
  --text: #14121f;
  --text-dim: #5b5871;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --shadow: 0 30px 70px -35px rgba(40, 20, 90, 0.35);
  --lvl0: rgba(12, 10, 30, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 600;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-2);
  text-decoration-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.38em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.shell--narrow {
  max-width: 820px;
}

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

.center {
  text-align: center;
}

.grad {
  background: linear-gradient(
    100deg,
    var(--accent-2),
    var(--accent) 45%,
    var(--green)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background aurora ------------------------------------------------------ */

.aurora {
  position: fixed;
  inset: -20vh -10vw auto;
  height: 120vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      45vw 45vw at 15% 5%,
      color-mix(in srgb, var(--accent) 35%, transparent),
      transparent 65%
    ),
    radial-gradient(
      40vw 40vw at 85% 0%,
      color-mix(in srgb, var(--green) 20%, transparent),
      transparent 60%
    ),
    radial-gradient(
      50vw 40vw at 60% 35%,
      color-mix(in srgb, var(--accent-2) 22%, transparent),
      transparent 70%
    );
  filter: blur(30px);
  opacity: 0.55;
}

[data-theme="light"] .aurora {
  opacity: 0.38;
}

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.nav.is-stuck {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--text-dim);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.icon-btn:hover {
  border-color: var(--border-strong);
}

.icon-btn__sun {
  display: none;
}

[data-theme="light"] .icon-btn__sun {
  display: inline;
}

[data-theme="light"] .icon-btn__moon {
  display: none;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.62rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px
    color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn--primary:hover {
  box-shadow: 0 16px 38px -12px
    color-mix(in srgb, var(--accent) 90%, transparent);
}

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

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

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1.02rem;
  border-radius: 14px;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 104px) 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin: 0 0 1.1rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent);
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--text-dim);
  max-width: 660px;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 26px 0 14px;
}

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

/* Demo card -------------------------------------------------------------- */

.demo {
  position: relative;
  margin-top: 44px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-soft) 88%, transparent);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.demo__dots {
  display: inline-flex;
  gap: 6px;
}

.demo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.demo__file {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
}

.demo__body {
  padding: clamp(16px, 3vw, 28px);
}

.demo__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip.is-active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.demo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.demo__title {
  font-size: 1.3rem;
  margin: 0 0 2px;
}

.demo__subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.demo__year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

/* Heatmap grid ----------------------------------------------------------- */

.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.heatmap .cell {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--lvl0);
  transform: scale(0.3);
  opacity: 0;
  animation: pop 0.4s ease forwards;
  transition: outline-color 0.15s ease;
  outline: 1px solid transparent;
}

.heatmap .cell[data-level="0"] {
  background: var(--lvl0);
}

.heatmap .cell:hover {
  outline-color: var(--text);
}

.heatmap .cell.is-today {
  outline: 1px solid var(--text);
}

.heatmap .gap {
  width: 5px;
  background: none;
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes pop {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.demo__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.demo__stats {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.demo__stats li {
  font-size: 0.86rem;
  color: var(--text-dim);
}

.demo__stats b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  color: var(--text);
  line-height: 1.2;
}

.legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--lvl0);
}

.tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.tooltip.is-on {
  opacity: 1;
}

/* Strip ------------------------------------------------------------------ */

.strip {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--border);
  background: var(--surface);
  margin-top: 60px;
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 38px;
  justify-content: center;
  padding-block: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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

/* Sections --------------------------------------------------------------- */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 9vw, 110px) 0;
}

.section--tint {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.section__title {
  max-width: 18ch;
}

.section__lede {
  color: var(--text-dim);
  max-width: 62ch;
  font-size: 1.05rem;
}

/* Steps ------------------------------------------------------------------ */

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

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  position: relative;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Code blocks ------------------------------------------------------------ */

.code {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 70%, black 10%);
}

[data-theme="light"] .code {
  background: #fff;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
}

.copy {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 7px;
  padding: 0.18rem 0.5rem;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.copy:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
}

.code code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.code .k {
  color: var(--accent-2);
}

.code .n {
  color: var(--green);
}

.code .s {
  color: #7dd3fc;
}

.code .c {
  color: var(--text-dim);
}

[data-theme="light"] .code .s {
  color: #0369a1;
}

[data-theme="light"] .code .n {
  color: #15803d;
}

.note {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

/* Cards ------------------------------------------------------------------ */

.grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.grid--features {
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.grid--install {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--uses {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.card .btn {
  margin-top: 16px;
}

.card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 10px;
}

.use {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.use:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.use span {
  font-size: 1.35rem;
}

.use h3 {
  margin: 8px 0 8px;
  font-size: 1.02rem;
}

.use code {
  font-size: 0.78rem;
  color: var(--accent-2);
}

.use p {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* Split section ---------------------------------------------------------- */

.split {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--green));
}

.shot {
  margin: 44px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.shot--split {
  margin: 0;
}

/* Comparison table ------------------------------------------------------- */

.table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

.cmp th,
.cmp td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}

.cmp thead th {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.cmp tbody th {
  font-weight: 500;
  color: var(--text);
}

.cmp tr:last-child th,
.cmp tr:last-child td {
  border-bottom: 0;
}

.cmp .y {
  color: var(--green);
  font-weight: 600;
}

.cmp .n {
  color: var(--text-dim);
}

/* FAQ -------------------------------------------------------------------- */

.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 14px;
  max-width: 68ch;
}

/* CTA + footer ----------------------------------------------------------- */

.cta {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 96px) 0;
  text-align: center;
  background:
    radial-gradient(
      60% 120% at 50% 0%,
      color-mix(in srgb, var(--accent) 24%, transparent),
      transparent 70%
    ),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}

.cta p {
  color: var(--text-dim);
  max-width: 54ch;
  margin-inline: auto;
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 46px 0 40px;
  background: var(--bg);
}

.footer__inner {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
}

.footer__brand p {
  font-size: 0.86rem;
  max-width: 42ch;
  margin-top: 12px;
}

.footer__cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.footer__cols h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.footer__cols a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 3px 0;
}

.footer__cols a:hover {
  color: var(--accent-2);
}

/* Reveal animation ------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 980px) {
  .nav__links,
  .nav__github {
    display: none;
  }

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

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .heatmap .cell {
    width: 11px;
    height: 11px;
  }

  .demo__foot {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .heatmap .cell {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .card:hover,
  .use:hover {
    transform: none;
  }
}

/* Guide pages ------------------------------------------------------------ */

.doc {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 72px) 0 clamp(60px, 8vw, 96px);
}

.crumbs {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.crumbs a {
  color: var(--text-dim);
}

.doc h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  max-width: 20ch;
}

.doc__lede {
  font-size: 1.14rem;
  color: var(--text-dim);
  max-width: 64ch;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  color: var(--text-dim);
}

.prose li {
  margin-bottom: 0.5em;
}

.prose .code {
  margin: 1.4em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.94rem;
}

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

.prose thead th {
  color: var(--text-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 22px;
  margin: 32px 0 8px;
  max-width: 72ch;
}

.toc h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.doc__cta {
  margin-top: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  max-width: 72ch;
}

.doc__cta h2 {
  margin-top: 0;
}

.related {
  margin-top: 46px;
  max-width: 72ch;
}

.related h2 {
  font-size: 1.1rem;
}

.related a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.related a:hover {
  color: var(--accent-2);
}

.related span {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.grid--guides {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 760px) {
  .grid--guides {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-card {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.guide-card h3 {
  margin-bottom: 8px;
}
