/* SplitPipe site, "pipework" design. Fonts: Big Shoulders Display and Familjen Grotesk, both SIL Open Font License 1.1 (see assets/fonts/*-OFL.txt). */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/BigShouldersDisplay-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/FamiljenGrotesk-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/FamiljenGrotesk-Italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #eef0f3;
  --bg-2: #e5e8ee;
  --surface: #ffffff;
  --ink: #161c2e;
  --ink-2: #454e63;
  --ink-3: #5f687c;
  --line: rgba(22, 28, 46, 0.12);
  --line-2: rgba(22, 28, 46, 0.2);
  --navy: #1b2236;
  --navy-2: #252e47;
  --night: #121829;
  --night-2: #1b2338;
  --on-night: #e9ecf3;
  --on-night-2: #aab2c5;

  --vpn: #7c70ff;
  --vpn-ink: #5547e0;
  --direct: #34c27a;
  --direct-ink: #157a46;
  --default: #9aa2b3;
  --default-ink: #545d72;
  --block: #e5484d;
  --block-ink: #c22b31;
  --link: var(--vpn-ink);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --r-ctl: 10px;
  --r-card: 16px;
  --r-band: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 200ms;
  --header: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease); }
@media (hover: hover) { a:hover { color: var(--ink); } }
:focus-visible { outline: 2px solid var(--vpn-ink); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
b, strong { font-weight: 600; }
p { margin: 0 0 16px; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--r-ctl); transition: top var(--t) var(--ease); }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 20px; height: 20px; flex: none; }
.icon.lg { width: 28px; height: 28px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h1.display { font-size: clamp(60px, 8.4vw, 120px); line-height: 0.92; }
h2.display { font-size: clamp(42px, 5vw, 68px); line-height: 0.96; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.sub { color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.5; }
.label { font-size: 12.5px; line-height: 1.2; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 18px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 150ms var(--ease), box-shadow var(--t) var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.sm { --bh: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { --bh: 56px; padding: 0 24px; font-size: 17px; border-radius: 12px; }
@media (hover: hover) {
  .btn:hover { background: var(--bg-2); color: var(--ink); }
  .btn.primary:hover { background: var(--navy-2); color: #fff; }
}
.btn:active { transform: scale(0.96); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(3px); } }

/* ---------- route chips (pipe markers) ---------- */
.chip {
  --c: var(--default); --ci: var(--default-ink);
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ci); white-space: nowrap; line-height: 1;
}
.chip::before { content: ""; width: 16px; height: 8px; border-radius: 99px; background: var(--c); }
.chip.vpn { --c: var(--vpn); --ci: var(--vpn-ink); }
.chip.direct { --c: var(--direct); --ci: var(--direct-ink); }
.chip.block { --c: var(--block); --ci: var(--block-ink); }
.chip.plain::before { display: none; }
.chip.plain { padding: 0 12px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--header); background: rgba(238, 240, 243, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease); }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; border-radius: 8px; }
.brand img { width: 30px; height: 30px; }
.brand { transition: opacity var(--t) var(--ease); }
@media (hover: hover) { .brand:hover { color: var(--ink); opacity: 0.72; } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
@media (hover: hover) { .nav a:hover { background: var(--bg-2); color: var(--ink); } }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .top .btn.dl { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; }
.hero h1 { max-width: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; margin-top: 32px; }
.hero-row .lead { margin: 0; }
.dl-card { display: grid; gap: 10px; justify-items: start; }
.dl-card .meta { font-size: 13px; color: var(--ink-3); }
.hero-device { position: relative; margin: 48px auto 0; width: min(100%, 1040px); }
.hero-device img { width: 100%; height: auto; }
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero-row { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .lead { font-size: 18px; }
  .hero-device { margin-top: 32px; }
}

/* ---------- pipework ---------- */
.pipes { padding: 0 0 96px; }
.pipes svg { width: 100%; height: auto; overflow: visible; }
.pipe { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pipe.trunk { stroke: var(--ink); }
.pipe.vpn { stroke: var(--vpn); }
.pipe.direct { stroke: var(--direct); }
.pipe.default { stroke: var(--default); }
.pipe.block { stroke: var(--block); }
.joint { fill: var(--bg); stroke: var(--ink); }
.packet { fill: var(--surface); }
.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.station { padding: 18px 18px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.station .app { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.station .app img { width: 28px; height: 28px; border-radius: 7px; }
.station .glyph { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; }
.station p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.section-head .sub { margin: 0; }
.station { position: relative; }
.stations { list-style: none; padding: 0; }
@media (max-width: 900px) {
  .pipes svg.wide { display: none; }
  .pipes { padding-top: 0; }
  .stations { grid-template-columns: 1fr; gap: 12px; margin-top: 0; padding: 32px 0 0 44px; position: relative; }
  .stations::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 44px; width: 10px; border-radius: 10px; background: var(--ink); }
  .station::before { content: ""; position: absolute; left: -36px; top: 34px; width: 36px; height: 8px; border-radius: 0 8px 8px 0; background: var(--c); }
  .station .app { margin-bottom: 0; }
  .station { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .station p { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 420px) { .station { padding: 14px 16px; } .station .app { font-size: 16px; } }

.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 6px; border-radius: 6px; background: var(--ink); }
.steps li { position: relative; padding: 48px 24px 0 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 6px solid var(--ink); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 32ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 6px; height: auto; }
  .steps li { padding: 0 0 0 52px; }
}

/* ---------- sections ---------- */
.section { padding: 112px 0; }
.section.tight { padding-top: 0; }
@media (max-width: 820px) { .section { padding: 72px 0; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cell h3 { display: flex; align-items: center; gap: 12px; }
.cell p { margin: 0; color: var(--ink-2); font-size: 16px; }
.cell .icon { color: var(--ink); }
.c-4 { grid-column: span 4; }
.c-3 { grid-column: span 3; }
.c-2 { grid-column: span 2; }
.r-2 { grid-row: span 2; }
.cell.shot { padding-bottom: 0; overflow: hidden; }
.cell.shot figure { margin: auto -1px 0; padding-top: 12px; }
.cell.shot img { width: 100%; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px rgba(22, 28, 46, 0.1); }
.cell .chips { margin-top: auto; padding-top: 8px; }
.snippet { margin: auto 0 0; padding: 14px 16px; border-radius: 12px; background: var(--night); color: var(--on-night); font: 14px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.snippet .c { color: #8f99b3; }
@media (max-width: 960px) {
  .c-4, .c-3, .c-2 { grid-column: span 6; }
  .r-2 { grid-row: auto; }
}
@media (max-width: 420px) { .cell { padding: 22px; } }

/* outage demo */
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); max-width: 100%; }
.seg button { height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--text); cursor: pointer; white-space: nowrap; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
@media (hover: hover) { .seg button:hover { color: var(--ink); background: rgba(22, 28, 46, 0.05); } }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 28, 46, 0.12), 0 0 0 1px rgba(22, 28, 46, 0.06); }
.seg { align-self: start; }
.outage svg { width: 100%; height: auto; margin-top: 4px; }
.outage .lane { transition: opacity 300ms var(--ease); }
.outage .lane.off { opacity: 0; }
.outage .result { min-height: 3em; font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 420px) { .seg { grid-auto-flow: row; width: 100%; } .seg button { width: 100%; } }

/* ---------- kill switch band ---------- */
.band { background: var(--night); color: var(--on-night); border-radius: var(--r-band); padding: 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band .sub { color: var(--on-night-2); margin: 20px 0 28px; }
.band a { color: #c9c3ff; }
@media (hover: hover) { .band a:hover { color: #fff; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; color: var(--on-night); }
.checks .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--direct); }
.toggle-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; margin-inline: auto; }
.toggle-stage img, .toggle-stage .turntable { position: absolute; inset: 4%; width: 92%; height: 92%; }
.toggle-stage img { object-fit: contain; }
.toggle-stage .turntable { background-repeat: no-repeat; }
.toggle-stage.live img { visibility: hidden; }
.band .cap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: -8px; }
.band .chip { background: var(--night-2); border-color: rgba(255, 255, 255, 0.08); }
.band .chip.vpn { --ci: #b9b2ff; }
.band .chip.direct { --ci: #7fe0ad; }
.band .chip.block { --ci: #ff9a9d; }
@media (max-width: 960px) {
  .band { grid-template-columns: 1fr; padding: 48px 28px; }
  .toggle-stage { max-width: 320px; }
}
@media (max-width: 420px) { .band { padding: 40px 20px; border-radius: 22px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-2); width: fit-content; max-width: 100%; margin-bottom: 24px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--text); cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.tabs button .icon { width: 16px; height: 16px; }
@media (hover: hover) { .tabs button:hover { color: var(--ink); background: rgba(22, 28, 46, 0.05); } }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 28, 46, 0.12), 0 0 0 1px rgba(22, 28, 46, 0.06); }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.viewer figure { margin: 0 -3.5% 0; }
.viewer .panel[hidden] { display: none; }
.viewer img { width: 100%; height: auto; }
.viewer .caption { padding-top: 48px; }
.viewer .caption h3 { margin-bottom: 10px; }
.viewer .caption p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) {
  .viewer { grid-template-columns: 1fr; gap: 8px; }
  .viewer .caption { padding-top: 0; }
}

/* ---------- control split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split figure { margin: 0; }
.split figure img { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.rows { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.rows li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.rows .icon { width: 24px; height: 24px; margin-top: 2px; }
.rows h3 { margin-bottom: 6px; font-size: 18px; }
.rows p { margin: 0; color: var(--ink-2); font-size: 16px; }
.rows code { white-space: normal; word-break: break-all; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split figure { order: 2; } }

/* ---------- install ---------- */
.install { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-band); padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.install .sub { margin: 20px 0 28px; }
.specs { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; align-content: start; }
.specs dt, .specs dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.specs dt { font-weight: 600; font-size: 15px; }
.specs dd { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .install { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; border-radius: 22px; }
  .specs { grid-template-columns: 1fr; }
  .specs dd { border-top: 0; padding-top: 0; }
}

/* ---------- footer ---------- */
.foot { padding: 64px 0 48px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.foot nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
@media (hover: hover) { .foot nav a:hover { background: var(--bg-2); color: var(--ink); } }
.foot .copy { color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) { .foot nav { margin-left: -10px; width: 100%; } }

/* ---------- reveal ---------- */
.reveal { transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; } }

/* ---------- docs ---------- */
.docs-hero { padding: 56px 0 40px; }
.docs-hero h1 { font-size: clamp(56px, 6.4vw, 88px); line-height: 0.94; }
.docs-hero .lead { margin: 20px 0 0; max-width: 44ch; }
.docs { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: calc(var(--header) + 24px); max-height: calc(100dvh - var(--header) - 48px); overflow: auto; padding: 4px 4px 16px 0; scrollbar-width: thin; }
.toc ol { list-style: none; margin: 0; padding: 0; position: relative; }
.toc ol::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--line-2); }
.toc a { position: relative; display: block; padding: 6px 10px 6px 30px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.35; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.toc a::before { content: ""; position: absolute; left: 3px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line-2); transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease); }
@media (hover: hover) { .toc a:hover { background: var(--bg-2); color: var(--ink); } }
.toc a.active { color: var(--ink); font-weight: 600; }
.toc a.active::before { background: var(--ink); border-color: var(--ink); }
.toc-mobile { display: none; }
.doc { min-width: 0; max-width: 760px; }
.doc section { padding: 8px 0 48px; }
.doc section + section { border-top: 1px solid var(--line); padding-top: 48px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 50px); line-height: 1; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; }
.doc h2 .icon { width: 30px; height: 30px; flex: none; }
.doc h3 { margin: 32px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p b, .doc li b, .doc td b { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--ink-3); }
.doc pre { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--night); color: var(--on-night); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.doc pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; color: inherit; }
.doc pre .c { color: #8f99b3; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; }
.doc th { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg); }
.doc td { border-top: 1px solid var(--line); color: var(--ink-2); }
.doc td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc td code { white-space: nowrap; }
.note { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 18px 20px; margin: 4px 0 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.note .icon { width: 22px; height: 22px; margin-top: 2px; }
.note p { margin: 0; color: var(--ink-2); }
.note.vpn .icon { color: var(--vpn-ink); }
.note.direct .icon { color: var(--direct-ink); }
.note.block .icon { color: var(--block-ink); }
.figure { margin: 8px 0 24px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.figure svg { width: 100%; height: auto; }
.figure figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.figure text { font-family: var(--text); fill: var(--ink); }
.figure .mono { font-family: var(--mono); font-size: 13px; fill: var(--ink-3); }

/* rule order as a pipeline */
.pipeline { list-style: none; margin: 8px 0 24px; padding: 0; position: relative; counter-reset: st; }
.pipeline::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 6px; border-radius: 6px; background: var(--ink); }
.pipeline li { position: relative; padding: 0 0 22px 52px; margin: 0; counter-increment: st; }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 5px solid var(--ink); display: grid; place-items: center; font: 700 13px/1 var(--text); color: var(--ink); }
.pipeline > li > b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; padding-top: 4px; }
.pipeline > li > span { display: block; color: var(--ink-2); font-size: 16px; }
.doc .shot-inline { margin: 8px -3% 24px; }
.doc .shot-inline img { width: 100%; height: auto; }

@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; margin: 0 0 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
  .toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 14px; transition: background-color var(--t) var(--ease); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary .icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform var(--t) var(--ease); }
  .toc-mobile[open] summary .icon { transform: rotate(-90deg); }
  .toc-mobile ol { margin: 0; padding: 4px 18px 16px 38px; columns: 1; }
  .toc-mobile li { margin: 4px 0; }
  .toc-mobile a { display: inline-block; padding: 6px 0; color: var(--ink-2); text-decoration: none; }
  .docs-hero { padding: 32px 0 24px; }
  .doc td:first-child { white-space: normal; }
}
@media (hover: hover) and (max-width: 960px) { .toc-mobile summary:hover { background: var(--bg); } .toc-mobile a:hover { color: var(--ink); } }
.figure .chip { white-space: normal; height: auto; min-height: 28px; padding-block: 5px; line-height: 1.25; }
@media (max-width: 600px) { .doc td code { white-space: normal; word-break: break-all; } }
@media (max-width: 520px) {
  .dl-card, .dl-card .btn-row { width: 100%; }
  .dl-card .btn-row { display: grid; grid-template-columns: 1fr; }
}
