@font-face { font-family: "NB International Pro"; src: url("fonts/NBInternationalPro_Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono_Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --pad: 32px;
  --bg: #fcfcfc;
  --panel: #f4f4f4;
  --text: #0a0a0a;
  --muted: #626870;
  --line: rgba(0, 0, 0, 0.08);
  --sans: "NB International Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font: 14px/1.4 var(--mono); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; word-break: break-word; }
b { font-weight: 400; color: var(--text); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.micro { font: 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }

.nav { position: sticky; top: 0; z-index: 5; background: rgba(252,252,252,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 22px; width: auto; display: block; }
.brand span { color: var(--muted); font-size: 16px; padding-left: 12px; border-left: 1px solid var(--line); line-height: 20px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.pill):hover { color: var(--muted); }

.pill { white-space: nowrap; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--text); color: #fff; text-decoration: none; font-size: 15px; border: 1px solid var(--text); transition: opacity .15s; }
.pill:hover { opacity: .85; }
.pill.ghost { background: transparent; color: var(--text); border-color: rgba(0,0,0,.14); }
.hero .pill { height: 44px; padding: 0 22px; font-size: 16px; }

h1, h2 { font-weight: 400; margin: 0; }
h1 { font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 19px; max-width: 640px; margin: 20px 0 0; }

.hero { padding-top: 120px; padding-bottom: 72px; }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }


.you-field { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 8px 24px; }
.you-field input { font: 16px var(--mono); height: 40px; padding: 0 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 4px; background: #fff; color: var(--text); width: 100%; max-width: 360px; outline: none; }
.you-field input:focus { border-color: var(--text); }
.you-field .hint { grid-column: 2; margin: 0; font-size: 14px; color: var(--muted); }

.track { padding-top: 88px; }
.track-head { display: grid; gap: 14px; margin-bottom: 28px; }
.track-head .muted { margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: 1.1fr 1.6fr .7fr; gap: 24px; padding: 20px 0; text-decoration: none; align-items: baseline; transition: background .15s; }
.rows a:hover { background: linear-gradient(90deg, transparent, rgba(0,0,0,.025) 20%, rgba(0,0,0,.025) 80%, transparent); }
.row-title { font-size: 18px; letter-spacing: -0.01em; }
.row-sum { color: var(--muted); font-size: 15px; }
.row-needs { font: 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; }
.rows.plain li { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 16px 0; align-items: baseline; }
.rows.plain .row-title { text-decoration: none; }

.lab-head { padding-top: 96px; padding-bottom: 48px; display: grid; }
.lab-head h1 { font-size: 52px; margin-top: 20px; max-width: 900px; }
.meta { display: flex; gap: 48px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.meta div { display: grid; gap: 8px; }
.meta dd { margin: 0; font-size: 16px; }

.block { padding-top: 48px; padding-bottom: 8px; }
.block h2 { margin-bottom: 20px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.block-head .you-field { padding: 10px 14px; grid-template-columns: auto 220px; }
.block-head .you-field input { height: 34px; font-size: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 13px/1.9 var(--mono); color: var(--muted); }
ul { margin: 0; padding-left: 18px; }
ul li { margin: 0 0 10px; }
ul li::marker { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two ul li { color: var(--text); }

.code { position: relative; background: #141414; border-radius: 6px; color: #e8e8e8; }
.code pre { margin: 0; padding: 24px 96px 24px 28px; font: 14px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.code .you { color: #fff; background: rgba(255,255,255,.12); border-radius: 3px; padding: 0 3px; }
.copy { position: absolute; top: 12px; right: 12px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #e8e8e8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; height: 28px; padding: 0 12px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.16); }

.next { padding-top: 64px; }
.next a { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.next-title { font-size: 28px; letter-spacing: -0.02em; }
.next a:hover .next-title { color: var(--muted); }

.foot { display: flex; justify-content: space-between; padding-top: 96px; padding-bottom: 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  h1 { font-size: 44px; }
  .lab-head h1 { font-size: 38px; }
  .hero { padding-top: 72px; }
  .two { grid-template-columns: 1fr; }
  .rows a { grid-template-columns: 1fr; gap: 6px; }
  .row-needs { text-align: left; }
  .rows.plain li { grid-template-columns: 1fr; gap: 4px; }
  .you-field { grid-template-columns: 1fr; }
  .you-field .hint { grid-column: 1; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.pill):nth-child(3) { display: none; }
  :root { --pad: 20px; }
  .brand span { display: none; }
  .block-head .you-field { grid-template-columns: 1fr; width: 100%; }
}
.rows.plain a { display: inline; padding: 0; }
.rows.plain a:hover { background: none; }
.by { display: inline-flex; align-items: center; gap: 10px; }
.by img { height: 16px; width: auto; opacity: .6; }
.inline-you { display: block; margin-top: 10px; }
.inline-you + .inline-you { margin-top: 8px; }
.inline-you input { font: 15px var(--mono); height: 38px; padding: 0 12px; border: 1px solid rgba(0,0,0,.14); border-radius: 4px; background: #fff; color: var(--text); width: 100%; max-width: 320px; outline: none; }
.inline-you input:focus { border-color: var(--text); }
a.url { font: 14px/1.6 var(--mono); word-break: break-all; }
a.url:not([href]) { color: var(--muted); text-decoration: none; }
.row-sum a { color: var(--text); text-decoration-color: rgba(0,0,0,.35); }
.callout { display: block; margin-top: 12px; padding: 12px 16px; background: #eaf2ff; border: 1px solid #c7dbff; border-radius: 6px; color: #0b2a5b; }
.callout code { background: rgba(255,255,255,.7); border-color: #c7dbff; }
.callout b { color: inherit; }
