/* Rangefinder site styles. Dark felt, cream ink, one mint accent. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #070b0a;
  --bg-alt: #0a100e;
  --panel: #0d1513;
  --panel-2: #121c19;
  --line: rgba(236, 231, 218, 0.09);
  --line-strong: rgba(236, 231, 218, 0.18);
  --text: #ece7da;
  --muted: #9ca8a1;
  --dim: #6d7973;
  --cream: #f0e8d6;
  --ink: #0a100e;
  --mint: #5cf2b0;
  --mint-soft: rgba(92, 242, 176, 0.12);
  --danger: #ff8f7a;

  --act-fold: #6ea4ff;
  --act-passive: #5cf2b0;
  --act-bet1: #ffb98f;
  --act-bet2: #ff7d5c;
  --act-bet3: #e5483f;

  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 64px;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
pre,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: calc(800px + 2 * var(--gutter));
}

/* ---------- type ---------- */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  line-height: 1.06;
}
h1 em,
h2 em {
  font-style: italic;
  color: var(--mint);
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}
p code,
li code,
dd code,
td code,
summary code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(236, 231, 218, 0.07);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.lede {
  max-width: 44rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.verb {
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--mint);
}

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--cream);
  color: var(--ink);
}
.btn--primary:hover {
  background: #fff;
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(236, 231, 218, 0.05);
}
.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}
.btn--lg {
  height: 52px;
  padding: 0 26px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 560;
  color: var(--cream);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 40%, 68% 40%, 68% 0, 100% 50%, 68% 100%, 68% 60%, 0 60%);
  transition: transform 0.16s ease;
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 10, 0.78);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo__frame {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linecap: round;
}
.logo__pip {
  fill: var(--mint);
}
.logo__word {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}
.nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}
.nav-toggle__bars {
  transform: translateY(-4px);
}
.nav-toggle__bars::before {
  content: "";
  transform: translateY(8px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: rotate(-90deg);
}

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

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 520px at 16% -8%, rgba(42, 122, 97, 0.34), transparent 62%),
    radial-gradient(700px 420px at 92% 6%, rgba(92, 242, 176, 0.07), transparent 60%);
}
.hero__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 68px);
}
.hero__top .lede {
  margin-top: 26px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(236, 231, 218, 0.04);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.cta-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--dim);
}

/* ---------- demo ---------- */

.demo {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.demo__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo__tabs::-webkit-scrollbar {
  display: none;
}
.demo__tab {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.demo__tab:hover {
  color: var(--text);
}
.demo__tab[aria-pressed="true"] {
  border-color: var(--line-strong);
  background: rgba(236, 231, 218, 0.07);
  color: var(--text);
}
.demo__endpoint {
  flex: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.demo__endpoint .verb {
  margin-right: 6px;
  font-size: 0.72rem;
}

.demo__body {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
}
.demo__view {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.vf {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #050908;
  aspect-ratio: 16 / 10;
}
.vf__img,
.vf__img svg {
  width: 100%;
  height: 100%;
}
.vf__scan {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: var(--mint);
  box-shadow: 0 0 18px 2px rgba(92, 242, 176, 0.7);
  opacity: 0;
  pointer-events: none;
}
.vf__scan::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 90px;
  background: linear-gradient(to top, rgba(92, 242, 176, 0.16), transparent);
}
.vf.is-scanning .vf__scan {
  animation: scan 1.05s cubic-bezier(0.45, 0.05, 0.3, 1) forwards;
}
@keyframes scan {
  0% {
    top: 0;
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.vf__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--mint);
  opacity: 0.85;
  pointer-events: none;
}
.vf__corner--tl {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 5px;
}
.vf__corner--tr {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 5px;
}
.vf__corner--bl {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 5px;
}
.vf__corner--br {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 5px;
}
.vf__meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}
.vf__meta span {
  margin-right: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}

/* table drawing (inline SVG built in demo.js) */
.tb-bg {
  fill: #050908;
}
.tb-rail {
  fill: #0f1916;
  stroke: #1c2b26;
  stroke-width: 1.5;
}
.tb-line {
  fill: none;
  stroke: rgba(240, 232, 214, 0.07);
  stroke-width: 1;
}
.tb-plate {
  fill: #09100e;
  stroke: rgba(240, 232, 214, 0.16);
  stroke-width: 1;
}
.tb-seat--hero .tb-plate {
  stroke: rgba(92, 242, 176, 0.6);
}
.tb-seat--out {
  opacity: 0.46;
}
.tb-name {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  fill: #9ca8a1;
}
.tb-seat--hero .tb-name {
  fill: var(--mint);
}
.tb-stack {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  fill: #f0e8d6;
}
.tb-card {
  fill: #f4eddc;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.75;
}
.tb-back {
  fill: #e9dfc8;
  stroke: #1d2a26;
  stroke-width: 1;
}
.tb-back-in {
  fill: none;
  stroke: #26433a;
  stroke-width: 0.75;
}
.tb-rank {
  font-family: var(--mono);
  font-weight: 700;
}
.tb-suit {
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
}
.tb-s {
  fill: #141c19;
}
.tb-h {
  fill: #d23b33;
}
.tb-d {
  fill: #2468d8;
}
.tb-c {
  fill: #178a4b;
}
.tb-pot {
  fill: rgba(4, 9, 8, 0.6);
  stroke: rgba(240, 232, 214, 0.14);
  stroke-width: 1;
}
.tb-pot-text {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  fill: #f0e8d6;
}
.tb-chip {
  fill: #f0e8d6;
  stroke: #0a100e;
  stroke-width: 1.5;
}
.tb-chip-2 {
  fill: #ff7d5c;
  stroke: #0a100e;
  stroke-width: 1.5;
}
.tb-bet-text {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  fill: #f0e8d6;
}
.tb-dealer {
  fill: #f0e8d6;
  stroke: #0a100e;
  stroke-width: 1;
}
.tb-dealer-text {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  fill: #0a100e;
}
.det {
  opacity: 0;
  transition: opacity 0.28s ease;
}
.det rect.det__box {
  fill: rgba(92, 242, 176, 0.07);
  stroke: var(--mint);
  stroke-width: 1.25;
}
.det rect.det__tag {
  fill: var(--mint);
}
.det text {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  fill: #04130d;
}
.vf.is-read .det {
  opacity: 1;
}
.vf.is-read .det--1 {
  transition-delay: 0.1s;
}
.vf.is-read .det--2 {
  transition-delay: 0.2s;
}
.vf.is-read .det--3 {
  transition-delay: 0.3s;
}

/* response side */
.demo__out {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.out__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.out__status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.out__status .ok {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--mint-soft);
  color: var(--mint);
  font-weight: 600;
}
.demo.is-busy .out__status .ok {
  background: rgba(236, 231, 218, 0.07);
  color: var(--muted);
}
.seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seg__btn {
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 0.8rem;
  font-weight: 520;
  color: var(--muted);
  cursor: pointer;
}
.seg__btn[aria-selected="true"] {
  background: var(--cream);
  color: var(--ink);
}

.out__panel {
  flex: 1;
  min-height: 0;
  padding: 20px 18px 18px;
  transition: opacity 0.25s ease;
}
.demo.is-busy .out__panel {
  opacity: 0.25;
}
.out__panel--code {
  padding: 0;
}
.out__panel--code pre {
  height: 100%;
  max-height: 352px;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  font-size: 0.76rem;
  line-height: 1.6;
}

.out__title {
  font-size: 0.98rem;
  font-weight: 600;
}
.read-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.read-chips span {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.mix {
  display: flex;
  gap: 3px;
  height: 14px;
  margin-top: 22px;
}
.mix__seg {
  flex: 0 1 0%;
  min-width: 0;
  border-radius: 4px;
  background: var(--c);
  transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.acts {
  margin-top: 16px;
}
.act {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.act:first-child {
  border-top: 0;
}
.act__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}
.act__name {
  font-weight: 540;
}
.act__name small {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}
.act__freq {
  min-width: 3.2em;
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
}
.act__ev {
  min-width: 6.4em;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.act--zero .act__name,
.act--zero .act__freq {
  color: var(--dim);
}
.act--fold {
  --c: var(--act-fold);
}
.act--passive {
  --c: var(--act-passive);
}
.act--bet1 {
  --c: var(--act-bet1);
}
.act--bet2 {
  --c: var(--act-bet2);
}
.act--bet3 {
  --c: var(--act-bet3);
}

.out__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--dim);
}
.out__foot b {
  font-weight: 500;
  color: var(--text);
}

.demo__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--dim);
  text-align: center;
}

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

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section--tight {
  padding-top: 24px;
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}
.section__lede {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--muted);
  text-wrap: pretty;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}
.split--code {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}
.split--code.split--flip {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #060a09;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.steps {
  margin-top: 36px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mint);
}
.steps p {
  margin-top: 6px;
  color: var(--muted);
}

.keys {
  margin-top: 32px;
}
.keys > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.keys dt code {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--mint);
}
.keys dd {
  margin-top: 6px;
  color: var(--muted);
}

.points {
  margin-top: 28px;
}
.points li {
  position: relative;
  padding: 16px 0 16px 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 8px;
  height: 8px;
  background: var(--mint);
  transform: rotate(45deg);
}
.points strong {
  font-weight: 600;
  color: var(--text);
}

/* ---------- code ---------- */

.code-card {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #080e0c;
  overflow: hidden;
}
.code-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.code-card__head span:first-child {
  color: var(--mint);
}
.code-card__head--tabs {
  justify-content: flex-start;
  gap: 4px;
  padding: 8px 10px;
}
.code-card__head--tabs button {
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
}
.code-card__head--tabs button[aria-selected="true"] {
  background: rgba(236, 231, 218, 0.09);
  color: var(--text);
}

pre {
  position: relative;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.68;
  color: #cfd8d2;
  tab-size: 2;
}
pre code {
  font-size: inherit;
}
.code-card pre {
  font-size: 0.76rem;
}
.tk-key {
  color: #b9c9c1;
}
.tk-str {
  color: #f1d9a2;
}
.tk-num {
  color: var(--mint);
}
.tk-lit {
  color: #7fb0ff;
}
.tk-com {
  color: var(--dim);
  font-style: italic;
}
.tk-punc {
  color: #66736d;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0d1513;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.16s ease, color 0.16s ease;
}
.codewrap {
  position: relative;
  min-width: 0;
}
.codewrap:hover .copy,
.copy:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .copy {
    opacity: 1;
  }
}
.copy:hover {
  color: var(--text);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card__suit {
  margin-bottom: 22px;
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}
.suit-s {
  color: var(--cream);
}
.suit-h {
  color: #ff6b5e;
}
.suit-d {
  color: #6ea4ff;
}
.suit-c {
  color: var(--mint);
}
.card p {
  margin-top: 8px;
  font-size: 0.98rem;
  color: var(--muted);
}
.card--ask {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.card--ask .link-arrow {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- coverage spec ---------- */

.spec {
  margin-top: 44px;
  border-bottom: 1px solid var(--line);
}
.spec__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.spec__key {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.spec__val {
  max-width: 46rem;
}
.spec__sub {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.tag--on {
  border-color: rgba(92, 242, 176, 0.5);
  background: var(--mint-soft);
  color: var(--mint);
}

/* ---------- plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.plans--flush {
  margin-top: 0;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.plan--featured {
  border-color: rgba(92, 242, 176, 0.55);
  background: linear-gradient(180deg, rgba(92, 242, 176, 0.07), transparent 42%), var(--panel);
}
.plan__name {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.plan__blurb {
  min-height: 3.1em;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
}
.plan__amount {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}
.plan__meta {
  margin-top: 20px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--muted);
}
.plan__meta li:first-child {
  color: var(--text);
}
.plan__features {
  flex: 1;
  margin: 16px 0 24px;
  font-size: 0.93rem;
  color: var(--muted);
}
.plan__features li {
  position: relative;
  padding: 5px 0 5px 22px;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 13px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.plans__more {
  margin-top: 26px;
  color: var(--muted);
}
.plans__more a {
  color: var(--text);
}

/* ---------- faq ---------- */

.faq {
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 14px 2px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 42rem;
  padding-bottom: 24px;
  color: var(--muted);
}
.faq details p a {
  color: var(--text);
}

/* ---------- access form ---------- */

.access {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.access__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 10, 0.2), rgba(7, 11, 10, 0.86) 62%),
    linear-gradient(180deg, var(--bg) 0, var(--bg) 250px, transparent 540px, transparent 88%, var(--bg) 100%),
    url("../img/felt.webp") left 0 top 250px / cover no-repeat;
}
.access__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}
.access__copy {
  padding-top: 12px;
}
.access__lede {
  max-width: 30rem;
  margin-top: 20px;
  color: var(--muted);
}
.ticks {
  margin-top: 28px;
}
.ticks li {
  position: relative;
  padding: 6px 0 6px 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.access__contact {
  margin-top: 26px;
  color: var(--muted);
}
.access__contact a,
.access__contact strong {
  font-weight: 560;
  color: var(--text);
}
.site-footer__contact {
  font-size: 0.93rem;
  color: var(--muted);
}
.site-footer__contact a,
.site-footer__contact strong {
  font-weight: 500;
  color: var(--text);
}
.plans__more strong {
  font-weight: 560;
  color: var(--text);
}
.access__panel {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(9, 15, 13, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
}
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.field label,
.field legend {
  font-size: 0.86rem;
  font-weight: 540;
  color: var(--text);
}
.field legend {
  margin-bottom: 8px;
  padding: 0;
}
.opt {
  margin-left: 6px;
  font-weight: 400;
  color: var(--dim);
}
.field input[type="email"],
.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #080e0c;
  font-size: 1rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239ca8a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field ::placeholder {
  color: var(--dim);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checks legend {
  width: 100%;
}
.check {
  position: relative;
  cursor: pointer;
}
.check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.check span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.check:hover span {
  color: var(--text);
}
.check input:checked + span {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: var(--mint);
}
.check input:focus-visible + span {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--danger);
}
.form__status:empty {
  display: none;
}
.form__fine {
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
}

.form-done {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px 8px;
  text-align: center;
}
.form-done:focus {
  outline: none;
}
.form-done svg {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-done h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}
.form-done p {
  max-width: 24rem;
  color: var(--muted);
}
.form-done .btn {
  margin-top: 8px;
}

/* ---------- inner pages ---------- */

.page-head {
  padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  background: radial-gradient(900px 480px at 14% -20%, rgba(42, 122, 97, 0.3), transparent 62%);
}
.page-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}
.page-head .lede {
  margin-top: 22px;
}
.page-head--center {
  min-height: 62vh;
  display: grid;
  align-items: center;
  text-align: center;
}
.page-head--center .lede {
  margin-inline: auto;
}
.notice {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(236, 231, 218, 0.04);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- docs ---------- */

.docs {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(72px, 9vw, 120px);
}
.docs__nav {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
}
.docs__nav-title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.docs__nav a {
  display: block;
  padding: 7px 14px;
  border-left: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.docs__nav a:hover {
  color: var(--text);
}
.docs__nav a[aria-current="true"] {
  border-left-color: var(--mint);
  color: var(--text);
}
.docs__nav .verb {
  margin-right: 4px;
  font-size: 0.66rem;
}

.prose {
  min-width: 0;
  max-width: 780px;
}
.prose__head h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
}
.prose__head .lede {
  margin-top: 20px;
}
.callout {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(92, 242, 176, 0.35);
  border-radius: 12px;
  background: var(--mint-soft);
  font-size: 0.96rem;
}
.callout a {
  color: var(--mint);
}
.prose section {
  padding-top: 56px;
}
.prose h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.prose h2 .verb {
  margin-right: 10px;
  font-size: 0.42em;
  vertical-align: 0.35em;
}
.prose h3 {
  margin-top: 30px;
}
.prose p,
.prose ul {
  margin-top: 16px;
  color: #c3ccc6;
}
.prose ul li {
  position: relative;
  padding: 5px 0 5px 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--mint);
  transform: rotate(45deg);
}
.prose strong {
  font-weight: 600;
  color: var(--text);
}
.prose a {
  color: var(--text);
}
.prose pre {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080e0c;
}
.prose .codewrap {
  margin-top: 18px;
}
.prose .codewrap pre {
  margin-top: 0;
}
.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}
.prose table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.table-wrap table {
  min-width: 560px;
  margin-top: 0;
}
.prose th,
.prose td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.prose td {
  color: #c3ccc6;
}
.prose td:first-child {
  white-space: nowrap;
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__in {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.site-footer__brand p {
  margin-top: 12px;
  font-size: 0.93rem;
  color: var(--muted);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.site-footer__nav a {
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer__nav a:hover {
  color: var(--text);
}
.site-footer__legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--dim);
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__top > *,
  .hero .demo {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__top > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .hero__top > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .hero__top > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .hero .demo {
    animation-delay: 0.26s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

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

@media (max-width: 1080px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .demo__body {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo__view {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .out__panel--code pre {
    max-height: 340px;
  }
  .split,
  .split--code.split--flip,
  .access__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .split--flip > .code-card {
    order: 2;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access__bg {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(7, 11, 10, 0.55) 30%, rgba(7, 11, 10, 0.9) 100%),
      url("../img/felt.webp") left top / cover no-repeat;
  }
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs__nav {
    position: static;
    max-height: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
  }
  .docs__nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }
  .docs__nav a {
    padding: 7px 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }
  body {
    font-size: 1rem;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: rgba(7, 11, 10, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open {
    display: flex;
  }
  .nav__link {
    padding: 12px 4px;
    font-size: 1.0625rem;
  }
  .nav .btn {
    height: 48px;
    margin: 8px 0 0;
  }
  .demo__bar {
    padding: 10px 12px;
  }
  .demo__endpoint {
    display: none;
  }
  .demo__view {
    padding: 12px;
  }
  .vf__corner {
    width: 14px;
    height: 14px;
    top: 7px;
    left: 7px;
  }
  .vf__corner--tr,
  .vf__corner--br {
    left: auto;
    right: 7px;
  }
  .vf__corner--bl,
  .vf__corner--br {
    top: auto;
    bottom: 7px;
  }
  .act {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }
  .act__ev {
    grid-column: 2 / -1;
    min-width: 0;
    margin-top: -6px;
    text-align: left;
  }
  .cards,
  .plans,
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .plan__blurb {
    min-height: 0;
  }
  .spec__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .steps li {
    padding-left: 44px;
  }
  .access__panel {
    padding: 20px;
  }
  .cta-row {
    width: 100%;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .docs__nav ul {
    grid-template-columns: minmax(0, 1fr);
  }
}
