:root {
  --bg: #0a0a0a;
  --ink: #f5f5f4;
  --dim: rgba(245, 245, 244, 0.74);
  --quiet: rgba(245, 245, 244, 0.48);
  --line: #1c1c1e;
  --green: #3ddc97;
  --pad: clamp(18px, 3vw, 40px);
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #0a0a0a; }
body {
  margin: 0;
  background-color: #0a0a0a;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.skip { position: absolute; left: 12px; top: -40px; background: white; color: black; padding: 8px 12px; z-index: 3; }
.skip:focus { top: 12px; }
/* Safari 26 paints the tab bar from a full-width fixed strip at the top, not from theme-color. */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: #0a0a0a;
  pointer-events: none;
  z-index: 2;
  animation: nock-chrome linear both;
  animation-timeline: scroll();
  animation-range: 10px 11px;
}
@keyframes nock-chrome { to { transform: translateY(-100px); } }

.nav {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 42px 0 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav .brand { color: var(--ink); letter-spacing: 0.2em; text-decoration: none; }

.hero-grid {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: calc(7vh + 24px) auto calc(10vh + 48px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 440px);
  gap: 64px;
  align-items: start;
}
h1 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 12px 0 18px;
}
.hero-grid h1 {
  font-size: clamp(42px, 4.6vw, 64px);
}
.sheet h1 {
  font-size: clamp(36px, 4vw, 52px);
  max-width: 16ch;
}
.kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  margin: 0;
}
.lede { color: var(--dim); max-width: 34ch; margin: 0 0 36px; font-size: 17px; line-height: 1.5; }
.hero-grid .lede { margin-bottom: 0; }
.sheet .lede { max-width: 58ch; margin-bottom: 8px; }

.block {
  border: 1px solid #2a2a2c;
  background: #0e0e0f;
  position: relative;
}
.block:before {
  content: "NOCK  /  ESTIMATOR  /  REV C";
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--quiet);
  padding: 10px 14px;
  border-bottom: 1px solid #2a2a2c;
}
.meter { padding: 6px 18px 8px; }
.meter .row { padding: 16px 0 14px; border-bottom: 1px solid #1a1a1c; }
.meter .row:last-child { border-bottom: 0; }
.meter .top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: #3a3a3c;
  border-radius: 99px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 50%;
  background: white;
  border: 0;
  cursor: pointer;
}
input[type="range"]::-moz-range-track {
  height: 2px;
  background: #3a3a3c;
  border: 0;
  border-radius: 99px;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: white;
  cursor: pointer;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-top: 1px solid #2a2a2c;
}
.total b {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--green);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.total span { color: var(--quiet); font-size: 13px; line-height: 1.45; max-width: 36ch; }

.sheet { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto 10vh; }
.sheet.page { padding-top: 6vh; }
.sheet h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-weight: 500;
  margin: 10px 0 12px;
}
.sub { color: var(--dim); max-width: 54ch; margin: 0 0 22px; line-height: 1.5; }

pre, code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.code {
  border: 1px solid #2a2a2c;
  background: #0e0e0f;
  margin: 0;
  padding: 20px 22px;
  overflow: auto;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.65;
}
.code .g { color: var(--green); }

.tape {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
}
.tape::before,
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  z-index: 1;
  pointer-events: none;
}
.tape::before { left: 0; background: linear-gradient(90deg, #0a0a0a, transparent); }
.tape::after { right: 0; background: linear-gradient(90deg, transparent, #0a0a0a); }
.tape-track {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.tape ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0 12px 0 0;
  flex: 0 0 auto;
}
.tape li {
  border: 1px solid #2a2a2c;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 240px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--dim);
  background: #101011;
}
.tape .ok { color: var(--green); letter-spacing: 0.12em; font-size: 10px; }
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.ref { width: 100%; border-collapse: collapse; margin-top: 36px; }
.ref th, .ref td { text-align: left; padding: 20px 28px 20px 0; border-bottom: 1px solid #2a2a2c; vertical-align: top; }
.ref td:first-child { white-space: nowrap; padding-right: 32px; }
.ref th {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
  font-weight: 500;
}
.ref code { color: var(--green); font-size: 14px; }
.foot {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 20px 0 40px;
  color: var(--quiet);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #1c1c1e;
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
@media (min-width: 861px) {
  .hero-grid .block {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 440px;
  }
  #publish { margin-bottom: calc(10vh + 40px); }
}
@media (max-width: 860px) {
  .nav { padding: 22px 0 14px; }
  #price { scroll-margin-top: var(--pad); }

  .hero-grid,
  .sheet,
  .foot,
  .tape,
  .block { min-width: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 52px auto 80px;
  }
  .hero-grid h1 { font-size: clamp(34px, 9.2vw, 44px); margin: 18px 0 22px; }
  .sheet h1 { font-size: clamp(32px, 8vw, 42px); }
  .sheet h2 { font-size: clamp(28px, 7.6vw, 40px); }
  .hero-grid h1, .sheet h1, .sheet h2 { text-wrap: balance; }
  .kicker { letter-spacing: 0.08em; }
  .lede, .sub { max-width: none; }
  .sheet.page { padding-top: 28px; }
  .hero-grid .lede { margin-bottom: 0; }
  .sheet { margin-bottom: 56px; }
  #publish { margin-bottom: 80px; }
  .sub { margin-bottom: 16px; }

  .meter { padding: 2px 16px 4px; }
  .meter .row { padding: 18px 0 16px; }
  .total {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  .total b { font-size: 32px; }
  .total span { max-width: none; }
  .total .dot { display: none; }
  .total .rate { display: block; margin-top: 2px; }
  .total .rate:first-of-type { margin-top: 0; }

  .code {
    max-width: 100%;
    padding: 16px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
  }
  .tape { margin-top: 24px; }
  .tape li { min-width: 220px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 28px;
  }

  .ref { margin-top: 28px; }
  .ref thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .ref,
  .ref tbody,
  .ref tr,
  .ref td { display: block; width: 100%; }
  .ref tr {
    padding: 24px 0 26px;
    border-bottom: 1px solid #2a2a2c;
  }
  .ref tr:first-child { border-top: 1px solid #2a2a2c; }
  .ref td {
    border: 0;
    padding: 0 0 20px;
    white-space: normal;
  }
  .ref td:last-child { padding-bottom: 0; }
  .ref td::before {
    content: attr(data-label);
    display: block;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--quiet);
    margin-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  html { scroll-behavior: auto; }
}
