/* DocFoil marketing site.
   Direction: a product company site. Plain words, one type family, one accent,
   and the product's own interface shown at true size instead of described.
   CSP: style-src 'self' means no inline style attributes anywhere, and the page
   ships no JavaScript. All motion is CSS. */

@font-face { font-family: "Geist"; src: url(/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --surface: #ffffff;
  --ink: #0e1013;
  --ink-2: #51555c;
  --ink-3: #8a8d93;
  --line: #dcd9cf;
  --line-2: #c9c5b9;
  --foil: #ffd23f;
  --foil-ink: #0e1013;
  --foil-soft: #fff1b8;
  --ok: #17803d;
  --ok-soft: #dff3e5;

  /* syntax */
  --tok-key: #2457c5;
  --tok-str: #17803d;
  --tok-dim: #8a8d93;
  --tok-hl: rgba(255, 210, 63, .28);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 12px;
  --r-sm: 8px;
  --gutter: 32px;
  --nav: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0d10;
    --paper-2: #14161a;
    --surface: #15171b;
    --ink: #f3f1ea;
    --ink-2: #a5a8af;
    --ink-3: #6f7279;
    --line: #25282e;
    --line-2: #363a42;
    --foil-soft: #3a3210;
    --ok: #4cc27a;
    --ok-soft: #12301f;
    --tok-key: #8db3ff;
    --tok-str: #7fd69b;
    --tok-dim: #6f7279;
  }
}
@media (max-width: 48em) { :root { --gutter: 20px; --nav: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: .8125rem; font-feature-settings: normal; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { left: .5rem; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }

/* ---------- icons ---------- */
.ic { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 1rem; height: 1rem; }
.brand { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; stroke: none; }
.brand-markdown, .brand-github { color: var(--ink); }
.brand-mkdocs { color: #526cfe; }
.brand-openapi { color: #6ba539; }
.brand-swagger { color: #85ea2d; }
.brand-google { color: #4285f4; }
.brand-cloudflare { color: #f38020; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 2.875rem; padding: 0 1.25rem; border-radius: var(--r-sm);
  border: 1px solid transparent; font: 600 .9375rem/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn .ic { transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 82%, var(--paper)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 2.25rem; padding: 0 .95rem; font-size: .875rem; }
.btn-foil { background: var(--foil); color: var(--foil-ink); }
.btn-foil:hover { background: #ffdf70; }

.link {
  text-decoration: none; font-weight: 550;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 2px; transition: background-size .2s ease;
}
.link:hover { background-size: 100% 1.5px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav); background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 650 1.1875rem/1 var(--sans); letter-spacing: -.03em; text-decoration: none; }
.logo-mark { height: 1.75rem; width: auto; border-radius: 0; }
.nav-links { display: flex; gap: 1.75rem; margin-left: .75rem; }
.nav-links a { font: 500 .9375rem/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav-cta .signin { font: 500 .9375rem/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.nav-cta .signin:hover { color: var(--ink); }

.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; line-height: 0; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu .ic-close { display: none; }
.menu[open] .ic-open { display: none; }
.menu[open] .ic-close { display: block; }
.menu-panel { position: fixed; inset: var(--nav) 0 0 0; z-index: 29; background: var(--paper); padding: 1.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: .25rem; overflow-y: auto; }
.menu-panel a { font: 600 1.5rem/1 var(--sans); letter-spacing: -.03em; text-decoration: none; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 1.5rem; height: 3.25rem; }
@media (max-width: 56em) {
  .nav-links, .nav-cta { display: none; }
  .menu { display: block; }
}

/* ---------- sections ---------- */
.sec { padding-block: clamp(4.5rem, 11vh, 7rem); }
.sec-screen { min-height: calc(100svh - var(--nav)); display: grid; align-content: center; }
.sec-line { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); }
h1 { font-weight: 600; font-size: clamp(2.5rem, 4.2vw, 3.75rem); line-height: .99; letter-spacing: -.045em; }
h2 { font-weight: 600; font-size: clamp(2rem, 3.7vw, 3.25rem); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.02em; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.sec-head { display: grid; gap: 1.25rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.sec-head p { font-size: 1.125rem; color: var(--ink-2); max-width: 36rem; }

/* ---------- hero ---------- */
.hero-band { background: linear-gradient(to bottom, var(--paper) 0, var(--paper) calc(100% - 15rem), var(--foil) calc(100% - 15rem), var(--foil) 100%); }
.hero { padding-block: clamp(1.75rem, 4.5vh, 3rem) clamp(2rem, 5vh, 3.5rem); min-height: calc(100svh - var(--nav)); display: grid; align-content: center; gap: clamp(1.75rem, 4.5vh, 3rem); }
.hero-top { display: grid; gap: 2rem 4rem; align-items: end; }
@media (min-width: 62em) { .hero-top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { text-wrap: balance; }
.hero-side { display: grid; gap: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.fine { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: .9375rem; color: var(--ink-2); }
.fine .sep { color: var(--ink-3); }
.fine .via { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); font-weight: 500; }
.fine .brand { width: 1.0625rem; height: 1.0625rem; }

/* ---------- the product window ---------- */
.win { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgb(0 0 0 / .03), 0 30px 60px -32px rgb(14 16 19 / .35); }
.win-bar { display: flex; align-items: center; gap: .75rem; height: 2.75rem; padding: 0 1rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.pill .t { overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; height: 1.75rem; padding: 0 .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 450 .75rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill b { font-weight: 550; color: var(--ink); }
.pill .ic { width: .8rem; height: .8rem; }
.win-body { display: grid; }
@media (min-width: 62em) { .hero .win-body { grid-template-columns: 22.5rem minmax(0, 1fr); height: 28rem; } }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane + .pane { border-left: 1px solid var(--line); }
.win-bar .live { margin-left: auto; }

.dash { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.proj { display: grid; gap: .3rem; }
.proj h4 { font: 600 1.25rem/1.2 var(--sans); letter-spacing: -.025em; }
.proj p { font-size: .8125rem; color: var(--ink-2); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.proj .host { font-family: var(--mono); font-size: .75rem; color: var(--ink); }
.upload { display: grid; gap: .6rem; }
.upload .fake-btn { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .9rem; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); font: 600 .8125rem/1 var(--sans); }
.upload small { font-size: .75rem; color: var(--ink-2); line-height: 1.4; }
.builds-title { font: 600 .75rem/1 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-transform: none; padding-top: .25rem; }
.builds { display: grid; border-top: 1px solid var(--line); }
.build { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .35rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.build time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: .4rem; height: 1.5rem; padding: 0 .6rem; border-radius: 999px; font: 550 .75rem/1 var(--sans); background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.chip::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.chip-work { background: var(--foil-soft); color: var(--ink); }
.build .bar { display: none; grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.build .bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 3px; }

/* the status slot cycles through the real build states */
.status { position: relative; display: block; width: 6.5rem; height: 1.5rem; justify-self: end; }
.status .chip { position: absolute; right: 0; top: 0; }
.status .s1, .status .s2, .status .s3 { display: none; }

/* the published docs site */
.site { display: flex; min-width: 0; background: #fff; color: #0e1013; --d-line: #e4e2da; --d-ink2: #5a5e65; }
.site .win-bar { background: #efece5; border-bottom-color: var(--d-line); }
.site .win-bar .pill { background: #fff; border-color: var(--d-line); color: var(--d-ink2); }
.site .win-bar .pill b { color: #0e1013; }
.live { display: inline-flex; align-items: center; gap: .4rem; font: 600 .75rem/1 var(--sans); color: #17803d; }
.live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #1fb85a; box-shadow: 0 0 0 3px #dff3e5; }
.docs { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; flex: 1; }
@media (min-width: 62em) { .docs { grid-template-columns: 10.5rem minmax(0, 1fr) 9.5rem; } }
.docs-nav { padding: 1.25rem 1rem; border-right: 1px solid var(--d-line); font: 500 .8125rem/1.3 var(--sans); display: none; }
@media (min-width: 40em) { .docs-nav { display: block; } .docs { grid-template-columns: 11rem minmax(0, 1fr); } }
@media (min-width: 62em) { .docs { grid-template-columns: 10.5rem minmax(0, 1fr) 9.5rem; } }
.docs-nav strong { display: block; font: 650 .9375rem/1 var(--sans); letter-spacing: -.02em; margin-bottom: 1rem; }
.docs-nav span { display: block; padding: .4rem .6rem; margin-inline: -.6rem; border-radius: 6px; color: var(--d-ink2); }
.docs-nav span.on { background: #f6f4ef; color: #0e1013; font-weight: 650; }
.docs-nav small { display: block; margin: 1rem 0 .3rem; font: 600 .6875rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #8a8d93; }
.docs-main { padding: 1.5rem 1.75rem; min-width: 0; }
.docs-main .crumb { font-size: .75rem; color: #8a8d93; margin-bottom: .5rem; }
.docs-main h3 { font-size: 1.75rem; letter-spacing: -.035em; margin-bottom: .6rem; color: #0e1013; }
.docs-main p { font-size: .875rem; line-height: 1.55; color: var(--d-ink2); }
.docs-main pre { margin-top: 1rem; background: #0e1013; color: #e9e7df; border-radius: 8px; padding: .85rem 1rem; line-height: 1.65; font-size: .75rem; overflow: hidden; position: relative; }
.docs-main pre .cp { position: absolute; right: .6rem; top: .6rem; color: #8a8d93; }
.docs-main pre .cp .ic { width: .9rem; height: .9rem; }
.docs-main .k { color: #8db3ff; }
.docs-main .s { color: #7fd69b; }
.docs-main .dim { color: #8a8d93; }
.note { margin-top: 1rem; padding: .7rem .9rem; border-left: 3px solid #0e1013; background: #f6f4ef; border-radius: 0 6px 6px 0; font-size: .8125rem; line-height: 1.5; color: #0e1013; }
.note b { font-weight: 650; }
.docs-toc { display: none; padding: 1.5rem 1rem 1rem 0; font-size: .75rem; line-height: 1.3; color: #8a8d93; }
@media (min-width: 62em) { .docs-toc { display: block; } }
.docs-toc strong { display: block; font-weight: 600; color: #0e1013; margin-bottom: .75rem; }
.docs-toc span { display: block; padding: .3rem 0 .3rem .75rem; border-left: 1px solid #e4e2da; }
.docs-toc span.on { border-left-color: #0e1013; color: #0e1013; font-weight: 550; }

/* hero build sequence: upload, queue, build, publish. One run on load. */
@keyframes st-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes st-1 { 0%, 24% { opacity: 1; } 28%, 100% { opacity: 0; visibility: hidden; } }
@keyframes st-2 { 0%, 24% { opacity: 0; visibility: hidden; } 28%, 52% { opacity: 1; visibility: visible; } 56%, 100% { opacity: 0; visibility: hidden; } }
@keyframes st-3 { 0%, 52% { opacity: 0; visibility: hidden; } 56%, 86% { opacity: 1; visibility: visible; } 90%, 100% { opacity: 0; visibility: hidden; } }
@keyframes st-4 { 0%, 86% { opacity: 0; } 94%, 100% { opacity: 1; } }
@keyframes fill { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
@keyframes bar-out { to { opacity: 0; } }
@keyframes flash { 0% { background-color: var(--foil); } 100% { background-color: #f6f4ef; } }
@media (prefers-reduced-motion: no-preference) {
  .status .s1, .status .s2, .status .s3 { display: inline-flex; }
  .status .s1 { animation: st-1 3.2s steps(1, end) both; }
  .status .s2 { animation: st-2 3.2s steps(1, end) both; }
  .status .s3 { animation: st-3 3.2s steps(1, end) both; }
  .status .s4 { animation: st-4 3.2s ease-out both; }
  .build-live .bar { display: block; }
  .build-live .bar i { transform-origin: left; animation: fill 2.9s cubic-bezier(.3, .1, .2, 1) both; }
  .site .win-bar .pill { animation: flash 1.2s ease-out 3s both; }
  .build-live .bar { animation: bar-out .4s ease-out 3.2s both; }
  .live { animation: st-in .4s ease-out 3s both; }
}

/* ---------- formats ---------- */
.bento { display: grid; gap: 1rem; }
@media (min-width: 62em) { .bento { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; } .bento .tall { grid-row: 1 / 3; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; transition: border-color .2s ease; }
.card:hover { border-color: var(--line-2); }
.card-text { display: grid; gap: .6rem; align-content: start; }
.card-text p { color: var(--ink-2); font-size: .9688rem; line-height: 1.5; }
.card-ico { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
@media (min-width: 62em) { .card.row { flex-direction: row; align-items: center; gap: 1.75rem; } .card.row .card-text { flex: 0 0 13.5rem; } .card.row .card-vis { flex: 1; min-width: 0; } }
.card-vis { display: flex; flex-direction: column; min-width: 0; }
.code { background: #0e1013; color: #e9e7df; border-radius: 10px; padding: 1rem 0; overflow: hidden; line-height: 1.75; font-size: .75rem; }
@media (prefers-color-scheme: dark) { .code { background: #08090b; border: 1px solid var(--line); } }
.code span.l { display: block; padding: 0 1rem; white-space: pre; border-left: 2px solid transparent; }
.code span.hl { background: rgb(255 210 63 / .14); border-left-color: var(--foil); }
.code .k { color: #8db3ff; }
.code .s { color: #7fd69b; }
.code .dim { color: #8a8d93; }
.then { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; color: var(--ink-3); font: 500 .75rem/1 var(--sans); }
.then::before, .then::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.then .ic { width: .95rem; height: .95rem; }
.ref { background: #fff; color: #0e1013; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ref-bar { padding: .55rem .8rem; border-bottom: 1px solid #e4e2da; background: #f6f4ef; }
.ref-bar .pill { background: #fff; border-color: #e4e2da; color: #5a5e65; }
.ref-bar .pill b { color: #0e1013; }
.ref-body { padding: 1rem 1.15rem 1.15rem; }
.endpoint { display: flex; align-items: center; gap: .6rem; font: 500 .875rem/1 var(--mono); }
.method { font: 700 .6875rem/1 var(--mono); padding: .3rem .45rem; border-radius: 4px; background: #dff3e5; color: #17803d; }
.ref-body h4 { font: 600 1.25rem/1.2 var(--sans); letter-spacing: -.025em; margin: .7rem 0 .2rem; }
.ref-body p { font-size: .8125rem; color: #5a5e65; }
.params { width: 100%; border-collapse: collapse; margin-top: .85rem; font-size: .75rem; }
.params th { text-align: left; font: 600 .6875rem/1 var(--sans); color: #8a8d93; padding: 0 .5rem .45rem 0; border-bottom: 1px solid #0e1013; }
.params td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid #e4e2da; font-family: var(--mono); }
.resp { display: flex; gap: .6rem; align-items: baseline; margin-top: .75rem; font-size: .8125rem; color: #5a5e65; }
.resp code { color: #17803d; font-weight: 700; }

.tree { display: grid; gap: 0; padding: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font: 450 .8125rem/1 var(--mono); }
.tree li { display: flex; align-items: center; gap: .55rem; padding: .5rem .55rem; border-radius: 6px; color: var(--ink-2); }
.tree li.on { background: var(--foil); color: var(--foil-ink); font-weight: 550; }
.tree .in { padding-left: 1.6rem; }
.tree li strong { font-weight: 550; color: var(--ink); }
.tree .ic { width: .95rem; height: .95rem; }
.then.v { padding: .55rem 0; }

/* ---------- private docs (dark ground) ---------- */
.dark { --paper: #0c0d10; --surface: #15171b; --ink: #f3f1ea; --ink-2: #a5a8af; --ink-3: #6f7279; --line: #25282e; --line-2: #363a42; --ok: #4cc27a; --ok-soft: #12301f; --foil-soft: #3a3210; background: #0c0d10; color: #f3f1ea; }
.dark .btn-primary { background: var(--foil); color: var(--foil-ink); }
.dark .btn-primary:hover { background: #ffdf70; }
.split { display: grid; gap: 3rem 5rem; align-items: center; }
@media (min-width: 62em) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.split-text { display: grid; gap: 1.5rem; align-content: center; }
.split-text > p { font-size: 1.125rem; color: var(--ink-2); max-width: 32rem; }
.facts { display: grid; border-top: 1px solid var(--line); max-width: 32rem; }
.facts li { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; line-height: 1.4; }
.facts .ic { color: var(--foil); margin-top: .1rem; }
.stack { display: grid; gap: 1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.panel-head h4 { font: 600 1rem/1.2 var(--sans); letter-spacing: -.015em; }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font: 550 .75rem/1 var(--sans); }
.seg span { padding: .4rem .75rem; border-radius: 6px; color: var(--ink-2); }
.seg span.on { background: var(--foil); color: var(--foil-ink); }
.cred { display: grid; gap: .6rem; }
.cred > div { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: .75rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: .8125rem; }
.cred dt { color: var(--ink-2); font-weight: 500; }
.cred dd { font: 500 .8125rem/1 var(--mono); }
.cred .ic { color: var(--ink-3); width: .95rem; height: .95rem; }
.hint { margin-top: .85rem; font-size: .8125rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: center; }
.hint .ic { width: .95rem; height: .95rem; color: var(--foil); }
.row-btns { display: flex; gap: .6rem; margin-top: 1.1rem; }
.mini { display: inline-flex; align-items: center; height: 2.125rem; padding: 0 .85rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); font: 550 .8125rem/1 var(--sans); color: var(--ink); }
.gate { background: #fff; color: #0e1013; border-radius: var(--r); padding: 1.5rem; display: grid; gap: .5rem; border: 1px solid #e4e2da; }
.gate .host { font: 500 .75rem/1 var(--mono); color: #5a5e65; display: flex; align-items: center; gap: .45rem; }
.gate .host .ic { width: .85rem; height: .85rem; }
.gate h4 { font: 600 1.375rem/1.15 var(--sans); letter-spacing: -.03em; margin-top: .6rem; }
.gate p { font-size: .875rem; color: #5a5e65; }
.gate .fields { display: grid; gap: .75rem; margin-top: .75rem; }
.gate .f span { display: block; font: 600 .75rem/1 var(--sans); margin-bottom: .4rem; }
.gate .f div { border: 1px solid #c9c5b9; border-radius: 8px; padding: .65rem .75rem; font: 500 .8125rem/1 var(--mono); }
.gate .go { margin-top: .5rem; height: 2.5rem; border-radius: 8px; background: #0e1013; color: #fff; display: grid; place-items: center; font: 600 .875rem/1 var(--sans); }

/* ---------- how builds work ---------- */
.pipe { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 62em) { .pipe { grid-template-columns: 1fr 2.75rem 1fr 2.75rem 1fr 2.75rem 1fr 2.75rem 1fr; } }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .45rem; align-content: start; min-height: 11rem; }
.node .ico { display: flex; align-items: center; gap: .5rem; height: 1.75rem; margin-bottom: .6rem; }
.node b { font: 600 1.0625rem/1.2 var(--sans); letter-spacing: -.02em; }
.node span.t { font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.node.iso { border: 1.5px dashed var(--ink); background: var(--foil-soft); }
.node.iso .tag { justify-self: start; margin-top: .25rem; padding: .3rem .55rem; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 .6875rem/1 var(--sans); }
.node .host { font: 500 .8125rem/1.2 var(--mono); color: var(--ink); }
.wire { position: relative; align-self: center; height: 2px; background: var(--line-2); }
.wire::after { content: ""; position: absolute; top: -2px; left: 0; width: .75rem; height: 6px; border-radius: 3px; background: var(--ink); }
.pipe-m { display: none; }
@media (max-width: 61.99em) {
  .pipe { gap: 0; }
  .wire { width: 2px; height: 1.75rem; justify-self: center; }
  .wire::after { left: -2px; top: 0; width: 6px; height: .75rem; }
  .node { min-height: 0; }
}
@keyframes run-x { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - .75rem); opacity: 0; } }
@keyframes run-y { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - .75rem); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .wire::after { animation: run-x 3s cubic-bezier(.4, 0, .6, 1) infinite; }
  .wire:nth-of-type(2)::after { animation-delay: .4s; }
  .wire:nth-of-type(3)::after { animation-delay: .8s; }
  .wire:nth-of-type(4)::after { animation-delay: 1.2s; }
  .pipe:hover .wire::after { animation-duration: 1.8s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 61.99em) {
  .wire::after { animation-name: run-y; }
}
.trio { display: grid; gap: 0 3rem; margin-top: clamp(2rem, 5vh, 3.5rem); }
@media (min-width: 56em) { .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trio div { border-top: 1.5px solid var(--ink); padding: 1.1rem 0 1.5rem; }
.trio dt { font: 600 1.1875rem/1.25 var(--sans); letter-spacing: -.02em; margin-bottom: .5rem; }
.trio dd { color: var(--ink-2); font-size: 1rem; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; }
@media (min-width: 62em) { .plans { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.plan { border-radius: var(--r); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.plan.main { border-color: var(--ink); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan h3 { font-size: 1.125rem; color: var(--ink-2); font-weight: 550; }
.price { font: 600 clamp(3.25rem, 6vw, 4.75rem)/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price small { font: 450 1rem/1 var(--sans); letter-spacing: 0; color: var(--ink-2); margin-left: .5rem; }
.price.soft { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; color: var(--ink-2); font-weight: 550; }
.plan ul { display: grid; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: .75rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.plan li .ic { color: var(--ok); width: 1.05rem; height: 1.05rem; }
.plan.later li .ic { color: var(--ink-3); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan.later { background: transparent; border-style: dashed; }

/* ---------- faq ---------- */
.faq-grid { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 62em) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .faq-grid h2 { position: sticky; top: calc(var(--nav) + 2rem); align-self: start; } }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.02em; transition: color .15s ease; }
summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-2); }
.faq summary .ic { transition: transform .2s ease; color: var(--ink-2); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 40rem; }

/* ---------- closing ---------- */
.close { background: var(--foil); color: var(--foil-ink); }
.close .wrap { display: grid; gap: 2rem; align-content: center; }
.close h2 { color: var(--foil-ink); max-width: 16ch; }
.close .host { max-width: none; font: 600 clamp(2rem, 8.2vw, 7rem)/1 var(--sans); letter-spacing: -.055em; white-space: nowrap; }
.close .host b { font-weight: inherit; }
.close .host span { opacity: .45; }
.close .btn-primary { background: #0e1013; color: #f3f1ea; }
.close .btn-primary:hover { background: #2a2d33; }
.close p { font-size: 1.125rem; max-width: 32rem; }

/* ---------- footer ---------- */
.foot { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); background: var(--paper); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: .9375rem; color: var(--ink-2); }
.foot nav { display: flex; gap: 1.5rem; }
.foot .logo { color: var(--ink); }
.foot a { text-decoration: none; color: var(--ink-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s ease, color .15s ease; padding-bottom: 2px; }
.foot a:hover { color: var(--ink); background-size: 100% 1px; }

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 1.5rem; padding: 2rem var(--gutter); max-width: 38rem; margin-inline: auto; }
.lost p { color: var(--ink-2); }

/* ---------- small screens ---------- */
@media (max-width: 40em) {
  .actions .btn, .plan .btn, .close .btn { width: 100%; }
  .card { padding: 1.25rem; }
  .plan { padding: 1.5rem; }
  .cred > div { grid-template-columns: 4.5rem 1fr auto; padding: .6rem .7rem; }
  .win-body .dash { border-right: 0; border-bottom: 1px solid var(--line); }
  .site .docs-main { padding: 1.25rem; }
  .sec-screen { min-height: 0; }
  .hero { min-height: 0; }
}
@media (max-width: 61.99em) {
  .win-body .dash { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 61.99em) {
  .sec-screen { min-height: 0; }
}

@media print { .nav, .menu { display: none; } }
