/* ================================================================
   squish — promotional landing page
   Fonts: Archivo (variable: wght + wdth) for display/UI,
          JetBrains Mono for anything a terminal would say.
   ================================================================ */

/* ---------- tokens ---------- */

:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #e9f0f9;
  --ink: #101827;
  --muted: #5b6b84;
  --line: #d9e2f0;
  --brand: #4a8df0;
  --brand-deep: #1d5fc4;
  --brand-soft: rgba(74, 141, 240, 0.14);
  --green: #1d8a3e;
  --btn-ink: #ffffff;
  --term-bg: #0d1424;
  --term-ink: #e4ecf8;
  --term-dim: #7284a1;
  --term-accent: #7db1ff;
  --term-green: #56d07c;
  --shadow: 0 18px 50px -18px rgba(23, 48, 92, 0.22);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0c1220;
  --surface: #141d30;
  --surface-2: #1b2740;
  --ink: #e8eef9;
  --muted: #93a3bd;
  --line: #263450;
  --brand: #6ea8ff;
  --brand-deep: #6ea8ff;
  --brand-soft: rgba(110, 168, 255, 0.13);
  --green: #4cc26b;
  --btn-ink: #0c1220;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1220;
    --surface: #141d30;
    --surface-2: #1b2740;
    --ink: #e8eef9;
    --muted: #93a3bd;
    --line: #263450;
    --brand: #6ea8ff;
    --brand-deep: #6ea8ff;
    --brand-soft: rgba(110, 168, 255, 0.13);
    --green: #4cc26b;
    --btn-ink: #0c1220;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

code,
pre,
kbd {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

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

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-mark {
  width: 26px;
  height: 22px;
  fill: var(--brand);
  transition: transform 0.45s var(--spring);
}

.nav-brand:hover .nav-mark {
  transform: scaleY(0.65);
  transform-origin: bottom;
}

.nav-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-inline: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current='page'] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-github:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--spring);
}

.theme-toggle:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.theme-toggle:active {
  transform: scale(0.9);
}

.icon-moon {
  display: none;
}

:root[data-theme='dark'] .icon-sun {
  display: none;
}

:root[data-theme='dark'] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .icon-sun {
    display: none;
  }

  :root:not([data-theme='light']) .icon-moon {
    display: block;
  }
}

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

.hero {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem 3rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin-top: 1.2rem;
  line-height: 1;
}

/* The signature: a wordmark you can physically squish. */
.wordmark {
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(4.2rem, 14vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  padding: 0 0.1em;
}

.wm-letter {
  display: inline-block;
  transform-origin: 50% 88%;
  font-variation-settings: 'wdth' 118;
  transition:
    transform 0.55s var(--spring),
    font-variation-settings 0.55s var(--spring);
  animation: letter-arrive 0.9s var(--spring) backwards;
}

.wm-letter:nth-child(1) { animation-delay: 0.05s; }
.wm-letter:nth-child(2) { animation-delay: 0.12s; }
.wm-letter:nth-child(3) { animation-delay: 0.19s; }
.wm-letter:nth-child(4) { animation-delay: 0.26s; }
.wm-letter:nth-child(5) { animation-delay: 0.33s; }
.wm-letter:nth-child(6) { animation-delay: 0.4s; }
.wm-letter:nth-child(7) { animation-delay: 0.5s; }

@keyframes letter-arrive {
  from {
    transform: scaleY(0.2) scaleX(1.3);
    opacity: 0;
  }

  60% {
    transform: scaleY(1.08) scaleX(0.97);
    opacity: 1;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.wm-dot {
  color: var(--brand);
}

/* Pressed state: the type itself compresses — width axis + squash. */
.wordmark.is-squished .wm-letter {
  transform: scaleY(0.55) scaleX(0.92);
  font-variation-settings: 'wdth' 62;
  transition-duration: 0.16s;
  transition-timing-function: ease-in;
}

.wordmark.is-squished .wm-letter:nth-child(2) { transition-delay: 0.015s; }
.wordmark.is-squished .wm-letter:nth-child(3) { transition-delay: 0.03s; }
.wordmark.is-squished .wm-letter:nth-child(4) { transition-delay: 0.045s; }
.wordmark.is-squished .wm-letter:nth-child(5) { transition-delay: 0.06s; }
.wordmark.is-squished .wm-letter:nth-child(6) { transition-delay: 0.075s; }
.wordmark.is-squished .wm-letter:nth-child(7) { transition-delay: 0.09s; }

.hero-hint {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.hero-sub {
  max-width: 38rem;
  margin: 1.8rem auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  padding: 0.8rem 0.8rem 0.8rem 1.2rem;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.pill-cmd {
  white-space: nowrap;
  overflow-x: auto;
}

.pill-prompt {
  color: var(--brand-deep);
  font-weight: 700;
}

.hero-alt {
  font-size: 0.88rem;
  color: var(--muted);
}

.copy-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}

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

.copy-btn:active {
  transform: scale(0.85, 0.75);
}

.copy-btn.is-copied {
  color: var(--green);
  border-color: var(--green);
}

.hero-footnote {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-footnote code {
  font-size: 0.82rem;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

/* ---------- terminal ---------- */

.terminal {
  max-width: 44rem;
  margin: 2.8rem auto 0;
  text-align: left;
  background: var(--term-bg);
  border: 1px solid rgba(125, 177, 255, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(125, 177, 255, 0.14);
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5b503a;
}

.term-dot:first-child {
  background: #c96b5d;
}

.term-dot:nth-child(2) {
  background: #d8ab5c;
}

.term-dot:nth-child(3) {
  background: #7ba869;
}

.term-title {
  margin-inline: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--term-dim);
}

.term-replay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(125, 177, 255, 0.3);
  border-radius: 999px;
  background: none;
  color: var(--term-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.25s var(--spring);
}

.term-replay:hover {
  background: rgba(125, 177, 255, 0.14);
}

.term-replay:active {
  transform: scale(0.92);
}

.term-body {
  overflow-x: auto;
  padding: 1.1rem 1.3rem 1.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.72rem, 1.9vw, 0.86rem);
  line-height: 1.9;
  color: var(--term-ink);
  min-height: 15.5em;
}

.term-line {
  white-space: nowrap;
}

.term-cmd .t-prompt {
  color: var(--term-accent);
  font-weight: 700;
}

.t-typed::after {
  content: '';
}

.term-body.is-typing .t-typed::after {
  content: '▋';
  color: var(--term-accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.t-file {
  display: grid;
  grid-template-columns: minmax(9em, 1.2fr) 1.6fr auto;
  gap: 1em;
  padding-left: 1.2em;
}

.t-name {
  color: var(--term-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-note {
  color: var(--term-dim);
}

.t-size {
  color: var(--term-dim);
}

.t-arrow {
  color: var(--term-accent);
}

.t-pct {
  color: var(--term-green);
  font-weight: 700;
  text-align: right;
}

.t-summary {
  margin-top: 0.5em;
  font-weight: 700;
}

.t-check {
  color: var(--term-green);
}

/* Playback: JS hides lines, then reveals each with a squash-settle. */
.term-line.is-hidden {
  display: none;
}

.term-line.is-revealed {
  animation: line-in 0.45s var(--spring) backwards;
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(0.5em) scaleY(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

.section {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) 1.5rem 0;
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-variation-settings: 'wdth' 108;
}

.section-sub {
  max-width: 36rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s var(--spring);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ---------- format cards ---------- */

.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}

/* Four kinds read best as a 2×2 — never a 3+1 orphan row. */
@media (min-width: 52rem) {
  .kind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.kind-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.4s var(--spring), border-color 0.25s, box-shadow 0.25s;
}

.kind-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.kind-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kind-name::before {
  content: '';
  display: block;
  width: 26px;
  height: 5px;
  margin-bottom: 0.7rem;
  border-radius: 3px;
  background: var(--brand);
  transition: width 0.4s var(--spring);
}

.kind-card:hover .kind-name::before {
  width: 44px;
}

.kind-desc {
  font-size: 0.92rem;
  color: var(--muted);
  flex-grow: 1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.chip-row li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.kind-cmd {
  display: block;
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
  background: var(--term-bg);
  color: var(--term-accent);
  border-radius: 9px;
  overflow-x: auto;
  white-space: nowrap;
}

/* ---------- results chart ---------- */

.chart {
  margin-top: 2.4rem;
  display: grid;
  gap: 0.85rem;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 13rem) 1fr 3.6rem;
  align-items: center;
  gap: 1rem;
}

.chart-label {
  font-size: 0.92rem;
  font-weight: 600;
  text-align: right;
}

.chart-note {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
}

.chart-track {
  position: relative;
  height: 26px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  min-width: 6px;
  background: var(--brand);
  border-radius: 6px 4px 4px 6px;
  transition: width 1.1s var(--spring);
}

/* Before animation: bars sit at the original (full) size… */
.chart.is-primed .chart-bar {
  width: 100%;
  transition: none;
}

/* …then squish down to what's left. Stagger top to bottom. */
.chart.is-squishing .chart-bar {
  width: var(--w);
  transition: width 1.1s var(--spring);
}

.chart.is-squishing .chart-row:nth-child(2) .chart-bar { transition-delay: 0.09s; }
.chart.is-squishing .chart-row:nth-child(3) .chart-bar { transition-delay: 0.18s; }
.chart.is-squishing .chart-row:nth-child(4) .chart-bar { transition-delay: 0.27s; }
.chart.is-squishing .chart-row:nth-child(5) .chart-bar { transition-delay: 0.36s; }
.chart.is-squishing .chart-row:nth-child(6) .chart-bar { transition-delay: 0.45s; }
.chart.is-squishing .chart-row:nth-child(7) .chart-bar { transition-delay: 0.54s; }

.chart-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
}

.chart-caption {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.chart-caption code {
  font-size: 0.78rem;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Eight features read best as 4×2 — never a 3+3+2 ragged tail. */
@media (min-width: 62rem) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s;
}

.feature:hover {
  border-color: var(--brand);
}

.feature-flag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 7px;
}

.feature p {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature p code {
  font-size: 0.8rem;
  background: var(--surface-2);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* ---------- everywhere ---------- */

.everywhere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.ev-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ev-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.ev-desc {
  font-size: 0.92rem;
  color: var(--muted);
}

.code-block {
  position: relative;
  padding: 1rem 1.2rem;
  background: var(--term-bg);
  color: var(--term-ink);
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.7;
  overflow-x: auto;
}

.c-key {
  color: var(--term-accent);
}

.c-str {
  color: var(--term-green);
}

.c-comment {
  color: var(--term-dim);
}

/* Finder context-menu mock */
.finder-mock {
  display: grid;
  place-items: center;
  padding: 1.6rem 1rem;
  background: var(--surface-2);
  border-radius: 12px;
}

.fm-menu {
  display: flex;
  flex-direction: column;
  min-width: 12rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.fm-item {
  position: relative;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
}

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

.fm-sep {
  height: 1px;
  margin: 0.3rem 0.5rem;
  background: var(--line);
}

.fm-item:not(.fm-dim)::after {
  content: '›';
  float: right;
  color: var(--muted);
}

.fm-flyout {
  position: absolute;
  left: calc(100% - 0.6rem);
  top: -0.2rem;
  min-width: 8.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.fm-active {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand);
  color: var(--btn-ink);
  font-weight: 600;
}

.fm-active::after {
  content: none !important;
}

@media (max-width: 40rem) {
  .fm-flyout {
    position: static;
    margin-top: 0.3rem;
    box-shadow: none;
  }
}

/* ---------- install ---------- */

.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
}

.tab {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--spring);
}

.tab:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.tab-panel {
  margin-top: 1.2rem;
  max-width: 34rem;
}

.tab-panel .code-block {
  font-size: 0.92rem;
}

.code-block.has-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.code-block .copy-btn {
  background: rgba(125, 177, 255, 0.12);
  border-color: rgba(125, 177, 255, 0.3);
  color: var(--term-accent);
  flex-shrink: 0;
}

.tab-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.tab-note code {
  font-size: 0.82rem;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--brand-deep);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.3s var(--spring), box-shadow 0.25s;
}

.btn:hover {
  box-shadow: var(--shadow);
}

.btn:active {
  transform: scale(0.96, 0.9);
}

.install-check {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.install-check code {
  font-size: 0.85rem;
  background: var(--surface-2);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--ink);
}

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

.footer {
  margin-top: clamp(4rem, 10vh, 7rem);
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-mark {
  width: 34px;
  height: 29px;
  fill: var(--brand);
}

.footer-line {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-tag {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- small screens ---------- */

@media (max-width: 46rem) {
  .nav {
    gap: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-github span {
    display: none;
  }

  .chart-row {
    grid-template-columns: 1fr 3.4rem;
  }

  .chart-label {
    grid-column: 1 / -1;
    text-align: left;
    margin-bottom: -0.4rem;
  }

  .chart-note {
    display: inline;
    margin-left: 0.4rem;
  }

  .install-pill {
    font-size: 0.78rem;
  }
}

/* ---------- reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
