/* ============================================================
   Keyholdr — minimal, editorial, monochrome
   ============================================================ */

:root {
  --paper: #f4f3ef;
  --paper-soft: #ecebe6;
  --ink: #121212;
  --ink-60: rgba(18, 18, 18, 0.6);
  --ink-40: rgba(18, 18, 18, 0.4);
  --ink-12: rgba(18, 18, 18, 0.12);
  --ink-06: rgba(18, 18, 18, 0.06);

  --coal: #121212;
  --coal-soft: #1a1a1a;
  --bone: #f4f3ef;
  --bone-60: rgba(244, 243, 239, 0.6);
  --bone-40: rgba(244, 243, 239, 0.4);
  --bone-14: rgba(244, 243, 239, 0.14);
  --bone-07: rgba(244, 243, 239, 0.07);

  --font-sans: "Onest", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 { font-weight: 500; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }

/* ============ Reveal animations ============ */

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

.line-mask {
  display: block;
  overflow: hidden;
  padding-block: 0.06em; /* keep descenders inside the mask */
  margin-block: -0.06em;
}
.line {
  display: block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.is-in .line, .line.is-in { transform: none; }
.line-mask:nth-child(2) .line { transition-delay: 0.08s; }
.line-mask:nth-child(3) .line { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .line { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none !important; }
}

/* ============ Header ============ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  color: var(--ink);
  transition: color 0.45s ease, background-color 0.45s ease;
}
body[data-theme="dark"] .site-header { color: var(--bone); }

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body[data-theme="dark"] .site-header.is-scrolled {
  background: color-mix(in srgb, var(--coal) 82%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  transform: translateY(0.27rem);
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.92rem;
}
.site-nav a {
  opacity: 0.62;
  transition: opacity 0.25s ease;
}
.site-nav a:hover { opacity: 1; }

.header-cta {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.header-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body[data-theme="dark"] .header-cta:hover { background: var(--bone); color: var(--coal); border-color: var(--bone); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #000; }
.btn-ghost { border: 1px solid var(--ink-12); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.beta-tag {
  font-family: var(--font-mono);
  font-size: 0.58em;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 0.45em;
  padding: 0.2em 0.55em;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.65;
  vertical-align: 0.35em;
  line-height: 1;
}

/* ============ Hero ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(3rem, 7vh, 6rem);
  padding: clamp(7rem, 16vh, 11rem) var(--gutter) clamp(3rem, 7vh, 5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.hero-title {
  font-size: clamp(3.2rem, 10.5vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.hero-title .muted { color: var(--ink-40); }

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  transition-delay: 0.25s;
}
.hero-sub {
  max-width: 26rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-60);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Download menu — a popover, like the product */
.dl-menu { position: relative; display: inline-block; }
.dl-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.dl-menu > summary::-webkit-details-marker { display: none; }
.dl-caret {
  display: inline-block;
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 0.35em;
  transition: transform 0.2s ease;
}
.dl-menu[open] .dl-caret { transform: rotate(180deg); }
.dl-pop {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  min-width: 28rem;
  max-width: min(29rem, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.14);
  text-align: left;
  z-index: 50;
}
/* Roll in: the panel sweeps open from its right edge toward the button.
   No fade — the revealed part is at full strength, the sweep is the show. */
.dl-pop {
  transform-origin: top left;
}
.dl-pop.is-rolling {
  animation: dl-roll-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes dl-roll-in {
  from {
    clip-path: inset(0 0 0 100%);
    transform: translateY(-4px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dl-pop.is-rolling { animation: none; }
}
.dl-row {
  display: block;
  width: 100%;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: 0.7rem;
  background: none;
  font: inherit;
  color: var(--ink);
  text-decoration: none;
  text-align: left; /* buttons center text by default */
  cursor: pointer;
}
.dl-row:hover { background: var(--ink-06); }
.dl-row + .dl-row { margin-top: 0.15rem; }
.dl-row-title { display: block; font-weight: 500; font-size: 1rem; }
.dl-row-sub {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-60);
}
.dl-copy-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-40);
  margin-left: 0.5rem;
}
/* Right-anchor when the panel would cross the viewport edge (set by JS) */
.dl-pop.is-flipped { left: auto; right: 0; transform-origin: top right; }
/* `translate` (not `transform`) so the centering survives the keyframes */
.cta-actions .dl-pop { left: 50%; translate: -50% 0; transform-origin: top center; }
.cta-actions .dl-pop.is-flipped { left: auto; translate: 0; }

/* ---- Hero demo window ---- */

.hero-demo {
  align-self: center;
  width: min(40rem, 100%);
  transition-delay: 0.35s;
}

.demo-window {
  border: 1px solid var(--ink-12);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(160deg, #fdfdfb, var(--paper-soft));
  box-shadow: 0 40px 80px -40px rgba(18, 18, 18, 0.25);
}

.demo-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ink-06);
  color: var(--ink-60);
}
.demo-menubar-left, .demo-menubar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.demo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-12);
}
.demo-tray-key {
  width: 1rem;
  height: 1rem;
  color: var(--ink);
}
#demo-clock { font-variant-numeric: tabular-nums; }

.demo-popover { position: relative; padding: 0.85rem; }

.demo-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--ink-12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.6);
}
.demo-search svg { width: 0.9rem; height: 0.9rem; color: var(--ink-40); flex-shrink: 0; }
.demo-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  color: var(--ink);
}
.demo-search input::placeholder { color: var(--ink-40); }

.demo-list { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.25rem; }

.demo-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.2s ease;
}
.demo-row:hover { background: var(--ink-06); }

.demo-row-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  flex-shrink: 0;
}
.demo-row-meta { min-width: 0; flex: 1; }
.demo-row-meta strong { display: block; font-size: 0.9rem; font-weight: 500; }
.demo-row-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-row-action {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-40);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.demo-row:hover .demo-row-action { color: var(--ink); }
.demo-row.is-copied .demo-row-action { color: var(--ink); }

.demo-empty {
  padding: 1.6rem 0.7rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-40);
}

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding: 0.65rem 0.7rem 0.1rem;
  border-top: 1px solid var(--ink-06);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--ink-40);
}
.demo-lock { display: inline-flex; align-items: center; gap: 0.4rem; }
.demo-lock svg { width: 0.8rem; height: 0.8rem; }

/* biometric overlay */
.demo-bio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.demo-bio.is-active { opacity: 1; }
.demo-bio-print { width: 3.4rem; height: 3.4rem; color: var(--ink); }
.demo-bio.is-active .demo-bio-print path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: print-draw 0.9s var(--ease-out) forwards;
}
@keyframes print-draw { to { stroke-dashoffset: 0; } }
#demo-bio-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-hint {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ============ Ticker ============ */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--ink-12);
  padding: 1.1rem 0;
  background: var(--paper);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track i { font-style: normal; color: var(--ink-40); }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ============ Sections ============ */

.section {
  padding: clamp(6rem, 14vh, 11rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  background: var(--paper);
  color: var(--ink);
}
@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; }
}

.section-head { position: relative; }
.section-head .index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-40);
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  position: sticky;
  top: 7rem;
}
.section-head h2 em { color: var(--ink-40); }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-60);
  max-width: 36rem;
  text-wrap: pretty;
}

/* feature grid (01) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
  border-radius: 1.25rem;
  overflow: hidden;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color 0.3s ease;
}
.feature:hover { background: var(--paper-soft); }
.feature-no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-40);
}
.feature h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 1.6rem 0 0.5rem;
}
.feature p { font-size: 0.95rem; color: var(--ink-60); }

/* ============ Dark sections ============ */

.section-dark {
  background: var(--coal);
  color: var(--bone);
}
.section-dark ::selection { background: var(--bone); color: var(--coal); }
.section-dark .section-head .index { color: var(--bone-40); }
.section-dark .section-head h2 em { color: var(--bone-40); }
.section-dark .lede { color: var(--bone-60); }

#security { border-radius: 2rem 2rem 0 0; padding-bottom: clamp(3rem, 7vh, 5rem); }
#specs { padding-top: clamp(3rem, 7vh, 5rem); border-radius: 0 0 2rem 2rem; }

/* ledger rows (02) */
.ledger { margin-top: clamp(2.5rem, 6vh, 4.5rem); }
.ledger-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  grid-template-areas: "no title" "no body" "no link";
  padding: 1.75rem 0;
  border-top: 1px solid var(--bone-14);
}
.ledger-row:last-child { border-bottom: 1px solid var(--bone-14); }
.ledger-no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--bone-40);
  padding-top: 0.35rem;
}
.ledger-row h3 {
  grid-area: title;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}
.ledger-row p {
  grid-area: body;
  margin-top: 0.5rem;
  color: var(--bone-60);
  max-width: 34rem;
}
.ledger-links {
  grid-area: link;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.9rem;
}
.ledger-link {
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--bone-40);
  padding-bottom: 0.1rem;
  transition: border-color 0.25s ease;
}
.ledger-link:hover { border-color: var(--bone); }

/* specs table (03) */
.specs {
  border: 1px solid var(--bone-14);
  border-radius: 1.25rem;
  overflow: hidden;
}
.specs-row {
  display: grid;
  /* Windows column hidden until testing completes — was: minmax(5.5rem, 1fr) 2fr 2fr */
  grid-template-columns: minmax(5.5rem, 1fr) 4fr;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 2.5vw, 1.75rem);
  font-size: 0.95rem;
  border-top: 1px solid var(--bone-07);
}
.specs-row:first-child { border-top: 0; }
.specs-row > span:first-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone-40);
  padding-top: 0.15rem;
}
.specs-head {
  background: var(--bone-07);
  font-weight: 500;
}
.specs-head > span { font-family: var(--font-sans) !important; font-size: 0.95rem !important; text-transform: none !important; color: var(--bone) !important; letter-spacing: 0 !important; }
@media (max-width: 600px) {
  .specs-row { grid-template-columns: 1fr; gap: 0.2rem; padding-block: 0.9rem; }
  .specs-head { display: none; }
  /* Windows column hidden until testing completes — restore with the column:
  .specs-row > span:nth-child(2)::before { content: "macOS — "; color: var(--bone-40); }
  .specs-row > span:nth-child(3)::before { content: "Windows — "; color: var(--bone-40); }
  */
}

/* ============ CTA ============ */

.cta {
  background: var(--paper);
  padding: clamp(7rem, 18vh, 13rem) var(--gutter);
  text-align: center;
}
.cta-title {
  font-size: clamp(3.5rem, 12vw, 11rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.cta-title em { color: var(--ink-40); }
.cta-dot {
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.05em;
  object-fit: contain;
  vertical-align: baseline;
  transform: translateY(0.164em);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.cta-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ============ Docs page ============ */

.docs {
  padding: clamp(6.5rem, 13vh, 8.5rem) var(--gutter) 0;
}
.docs-shell {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 74rem;
  margin: 0 auto;
  padding-bottom: clamp(5rem, 10vh, 8rem);
}
.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: sticky;
  top: 6.5rem;
  align-self: start;
  font-size: 0.9rem;
}
.docs-nav a { color: var(--ink-60); padding: 0.15rem 0; transition: color 0.2s ease; }
.docs-nav a:hover, .docs-nav a.is-active { color: var(--ink); }

.docs-content { min-width: 0; }
.docs-intro {
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.docs-intro .eyebrow { margin-bottom: 1rem; }
.docs-intro h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 1rem;
}
.docs-intro .lede { max-width: 40rem; }

.docs-section {
  padding-block: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--ink-12);
}
.docs-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.docs-section h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}
.docs-section h3:first-of-type { margin-top: 1.5rem; }
.docs-section p, .docs-section li { color: var(--ink-60); font-size: 0.98rem; }
.docs-section p { margin-bottom: 1rem; max-width: 42rem; }
.docs-section ul, .docs-section ol { margin: 0 0 1rem 1.2rem; }
.docs-section ul { list-style: disc; }
.docs-section ol { list-style: decimal; }
.docs-section li { margin-bottom: 0.35rem; }
.docs-section strong { color: var(--ink); font-weight: 600; }

.docs-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ink-06);
  padding: 0.15em 0.4em;
  border-radius: 0.35em;
}
.docs-section pre {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  line-height: 1.65;
  background: var(--coal);
  color: var(--bone-60);
  padding: 1.1rem 1.3rem;
  border-radius: 0.85rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.docs-section pre code {
  background: none;
  padding: 0;
  color: var(--bone);
  font-size: 1em;
}
.docs-section pre .c { color: var(--bone-40); }

.docs-section .code-block { position: relative; }
.docs-section .code-block pre { margin-bottom: 0; }
.docs-section .code-block + p,
.docs-section .code-block + pre { margin-top: 1.25rem; }
.docs-section .copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.3rem 0.65rem;
  background: var(--coal-soft);
  border: 1px solid var(--bone-14);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--bone-60);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.docs-section .copy-btn:hover { border-color: var(--bone-60); color: var(--bone); }
.docs-section .copy-btn[data-copied="true"] { border-color: var(--bone-60); color: var(--bone); }

.docs-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.docs-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.docs-table th, .docs-table td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--ink-12);
  vertical-align: top;
}
.docs-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  font-weight: 500;
}
.docs-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.85em;
  white-space: nowrap;
  color: var(--ink);
}

@media (max-width: 860px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--ink-12);
  }
}

/* ============ Footer ============ */

.footer {
  background: var(--coal);
  color: var(--bone);
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) 0;
  overflow: hidden;
}
.footer ::selection { background: var(--bone); color: var(--coal); }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-40);
  margin-bottom: 0.35rem;
}
.footer-col a { color: var(--bone-60); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--bone); }
.footer-note {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--bone-40);
  text-align: right;
}
@media (max-width: 720px) {
  .footer-note { margin-left: 0; text-align: left; }
}

.footer-wordmark {
  font-size: clamp(4rem, 17.5vw, 17rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-align: center;
  color: var(--bone-14);
  user-select: none;
  transform: translateY(0.08em);
}
