/* DBH Insights landing page. Colours come from theme.css, the same palette as the app. */

:root {
  --wrap: 1160px;
  --radius: 10px;
  --glow: rgba(73, 175, 217, 0.18);
  --page-bg: #111c22;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font: 16px/1.6 "Metropolis", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--accent-hover);
  background: rgba(73, 175, 217, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--text-faint); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 860px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: #08232e;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { top: 12px; color: #08232e; }

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--accent); color: #08232e; box-shadow: 0 6px 20px rgba(73, 175, 217, 0.25); }
.btn-primary:hover { background: var(--accent-hover); color: #08232e; transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; box-shadow: none; }

/* ---- top navigation ---- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 23, 28, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(49, 67, 81, 0.7);
}
.topnav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.topnav-links { display: flex; gap: 22px; margin-left: auto; }
.topnav-links a { color: var(--text-dim); font-size: 14px; }
.topnav-links a:hover { color: var(--text); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: 0.01em; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  box-shadow: 0 0 0 1px rgba(137, 203, 223, 0.25), 0 4px 12px rgba(73, 175, 217, 0.3);
}

/* ---- hero ---- */

.hero {
  position: relative;
  padding-block: 84px 0;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -80px, var(--glow), transparent 70%),
    radial-gradient(600px 400px at 90% 30%, rgba(14, 79, 110, 0.35), transparent 70%),
    linear-gradient(180deg, var(--sidebar-bg) 0%, var(--page-bg) 100%);
}
.hero::before {
  /* A faint grid, masked so it fades toward the edges. */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(73, 175, 217, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 175, 217, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(34, 52, 60, 0.7);
  color: var(--text-dim);
  font-size: 13.5px;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #08232e;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 20ch;
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.grad {
  background: linear-gradient(92deg, var(--accent-hover) 0%, var(--accent) 45%, #2f8fb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin: 16px 0 0; color: var(--text-faint); font-size: 14px; }

/* ---- framed screenshots ---- */

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--sidebar-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 14px;
  background: #16242b;
  border-bottom: 1px solid var(--border);
}
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.shot-bar i:nth-child(1) { background: #f54f47; opacity: 0.8; }
.shot-bar i:nth-child(2) { background: #f5c348; opacity: 0.8; }
.shot-bar i:nth-child(3) { background: #60b515; opacity: 0.8; }
.shot-bar span {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 6px;
  background: var(--app-bg);
  color: var(--text-faint);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shot figcaption { padding: 12px 16px; color: var(--text-dim); font-size: 14px; border-top: 1px solid var(--border); background: var(--surface-alt); }

.shot-hero {
  position: relative;
  margin-top: 56px;
  margin-bottom: -2px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
  box-shadow: 0 -10px 80px rgba(73, 175, 217, 0.16), var(--shadow);
}

/* ---- stats ---- */

.stats { border-block: 1px solid var(--border); background: var(--sidebar-bg); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.stat span { color: var(--text-faint); font-size: 14px; }

/* ---- sections ---- */

.section { padding-block: 96px; }
.section-alt { background: linear-gradient(180deg, var(--sidebar-bg), #0f1a20); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
.section-head p:not(.eyebrow) { margin: 16px 0 0; color: var(--text-dim); font-size: 1.05rem; }

/* ---- what's new ---- */

.section-new {
  position: relative;
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(73, 175, 217, 0.12), transparent 70%),
    var(--page-bg);
}
.new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.new-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(73, 175, 217, 0.45);
  background: linear-gradient(180deg, rgba(73, 175, 217, 0.08) 0%, var(--surface) 38%, var(--surface-alt) 100%);
  box-shadow: 0 0 40px rgba(73, 175, 217, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.new-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(73, 175, 217, 0.12); }
.new-card-top { display: flex; align-items: center; justify-content: space-between; }
.new-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #08232e;
  font-size: 11.5px;
  font-weight: 700;
}
.new-card h3 { font-size: 1.15rem; font-weight: 650; margin-top: 16px; }
.new-card > p { margin: 8px 0 0; color: var(--text-dim); font-size: 15px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; color: var(--text-dim); font-size: 14px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.new-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 32px 0 0; font-size: 14.5px; }

/* ---- features ---- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(73, 175, 217, 0.55); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }
.feature h3 { font-size: 1.1rem; font-weight: 650; margin-top: 16px; }
.feature p { margin: 8px 0 0; color: var(--text-dim); font-size: 15px; }
.feature-accent { border-color: rgba(73, 175, 217, 0.45); box-shadow: inset 0 0 0 1px rgba(73, 175, 217, 0.12), 0 0 40px rgba(73, 175, 217, 0.08); }
.feature-accent::after {
  content: "New";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(73, 175, 217, 0.15);
  color: var(--accent-hover);
  font-size: 11.5px;
  font-weight: 700;
}

.icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(73, 175, 217, 0.12);
  border: 1px solid rgba(73, 175, 217, 0.25);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- tour ---- */

.tour-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 26px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--app-bg);
}
.tour-tabs button {
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.tour-tabs button:hover { color: var(--text); }
.tour-tabs button[aria-selected="true"] { background: var(--accent); color: #08232e; }
.tour img { transition: opacity 0.2s; }
.tour img.swapping { opacity: 0.25; }

/* ---- how it works ---- */

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin-bottom: 56px; }
.flow-node {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.flow-node strong { font-size: 1.05rem; }
.flow-node span:last-child { color: var(--text-dim); font-size: 14.5px; }
.flow-node-helper { border-color: rgba(245, 150, 60, 0.45); background: linear-gradient(180deg, rgba(245, 150, 60, 0.08), var(--surface) 60%); }
.flow-node-helper img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 4px; }
.flow-kicker { color: var(--text-faint); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.flow-link { position: relative; width: 84px; display: flex; align-items: center; justify-content: center; }
.flow-link::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  border-top: 2px dashed rgba(73, 175, 217, 0.55);
}
.flow-link::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 5px);
  border: 6px solid transparent;
  border-left-color: var(--accent);
  border-right: 0;
}
.flow-link span {
  position: relative;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  color: var(--accent-hover);
  font: 11.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.how-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-left: 62px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(73, 175, 217, 0.25);
}
.steps h3 { font-size: 1.15rem; font-weight: 650; }
.steps p { margin: 6px 0 0; color: var(--text-dim); }
.steps .btn { margin-top: 14px; }

.helper-shot { margin: 0; max-width: 360px; justify-self: center; }
.helper-shot img { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.helper-shot figcaption { margin-top: 12px; text-align: center; color: var(--text-faint); font-size: 13.5px; }

/* ---- security ---- */

.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sec-item { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-alt); border-top: 3px solid var(--success); }
.sec-item h3 { font-size: 1.05rem; font-weight: 650; }
.sec-item p { margin: 8px 0 0; color: var(--text-dim); font-size: 14.5px; }

/* ---- downloads ---- */

.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dl-card:hover { transform: translateY(-3px); border-color: rgba(73, 175, 217, 0.5); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); }
.dl-card.mine { border-color: rgba(73, 175, 217, 0.6); box-shadow: 0 0 40px rgba(73, 175, 217, 0.1); }
.dl-card.unavailable { opacity: 0.72; }
.dl-card.unavailable:hover { transform: none; border-color: var(--border); box-shadow: none; }

.dl-icon { width: 34px; height: 34px; fill: var(--accent); stroke: none; }
.dl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dl-head h3 { font-size: 1.15rem; font-weight: 650; }
.dl-note { margin: 6px 0 0; color: var(--text-dim); font-size: 14.5px; }

.dl-btn { width: 100%; margin-top: 18px; }
.dl-size { color: rgba(8, 35, 46, 0.65); font-weight: 600; font-size: 13px; }
.dl-none {
  display: inline-flex;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px dashed var(--border-strong);
  color: var(--text-faint);
  font-weight: 600;
  font-size: 15px;
}
.dl-file {
  margin: 10px 0 0;
  width: 100%;
  color: var(--text-faint);
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.dl-tip { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; }
.dl-tip code { font-size: 11.5px; }

.download-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 28px 0 0; font-size: 14px; }

/* ---- release notes ---- */

.releases { position: relative; display: flex; flex-direction: column; gap: 18px; }
.release {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  overflow: hidden;
}
.release[open] { background: var(--surface); }
.release.latest { border-color: rgba(73, 175, 217, 0.5); box-shadow: 0 0 40px rgba(73, 175, 217, 0.08); }
.release summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding: 18px 22px;
}
.release summary::-webkit-details-marker { display: none; }
.release summary:hover .release-title { color: var(--accent-hover); }
.release summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s;
  grid-column: 3;
  grid-row: 1 / span 2;
  margin-right: 4px;
}
.release[open] summary::after { transform: rotate(225deg); }
.version {
  grid-row: 1 / span 2;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(73, 175, 217, 0.12);
  border: 1px solid rgba(73, 175, 217, 0.35);
  color: var(--accent-hover);
  font: 700 15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.release-title { font-size: 1.05rem; font-weight: 650; transition: color 0.15s; }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text-faint); font-size: 13.5px; }
.chip { padding: 1px 9px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 12px; color: var(--text-dim); }
.chip-latest { border-color: transparent; background: var(--accent); color: #08232e; font-weight: 700; }
.release-body { padding: 4px 22px 22px; border-top: 1px solid var(--border); }
.change-group h4 {
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.change-group h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); }
.change-group[data-type="new"] { --dot: var(--accent); }
.change-group[data-type="improved"] { --dot: #a37be8; }
.change-group[data-type="fixed"] { --dot: var(--warning); }
.change-group[data-type="security"] { --dot: var(--success); }
.change-group[data-type="docs"] { --dot: var(--text-faint); }
.change-group ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.change-group li { color: var(--text-dim); font-size: 15px; }
.change-group li::marker { color: var(--border-strong); }

/* ---- closing CTA ---- */

.cta {
  padding-block: 88px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 100%, var(--glow), transparent 70%),
    var(--sidebar-bg);
  border-top: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; }
.cta p { margin: 12px 0 28px; color: var(--text-dim); font-size: 1.05rem; }

/* ---- footer ---- */

.footer { padding-block: 36px; background: #0b1317; border-top: 1px solid var(--border); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.fine { flex-basis: 100%; margin: 8px 0 0; color: var(--text-faint); font-size: 12.5px; }

/* ---- responsive ---- */

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .new-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .security { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-link { width: auto; height: 56px; }
  .flow-link::before { left: 50%; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 2px dashed rgba(73, 175, 217, 0.55); }
  .flow-link::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 4px; border: 6px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
}

@media (max-width: 720px) {
  .topnav-links { display: none; }
  .topnav-inner { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .section { padding-block: 68px; }
  .features, .security, .downloads { grid-template-columns: 1fr; }
  .topnav-inner .btn-ghost { display: none; }
  .shot-hero { margin-top: 40px; }
  .stat { padding: 20px 14px; }
  .stat strong { font-size: 1.25rem; }
  .release summary { grid-template-columns: 1fr auto; padding: 16px; }
  .release summary > * { grid-column: 1; }
  .version { grid-row: auto; justify-self: start; }
  .release summary::after { grid-column: 2; grid-row: 1 / span 3; }
  .release-body { padding: 4px 16px 18px; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--border); }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
