/* xpsflow site: the same system as the report and the workbench. */
:root {
  --paper: #F6F6F1; --paper-2: #ECEDE6; --ink: #15171A; --ink-2: #3E4247; --muted: #5F646B; --line: #D9DBD3;
  --acc: #0F9D6B; --acc-d: #0A7A53; --acc-s: #DDF3E8; --cu: #C0632B;
  --sans: "Inter", system-ui, -apple-system, sans-serif; --display: "Inter Tight", "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--acc-d); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--acc); }
code { font-family: var(--mono); font-size: .92em; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(18px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.brand em { font-style: normal; color: var(--acc); }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 56px); }

.hero { padding: clamp(48px, 9vw, 110px) 0 24px; position: relative; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 5.2vw, 4.2rem); letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 20px; max-width: 16ch; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; margin: 0 0 26px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color 150ms, background 150ms, transform 150ms var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: var(--acc-d); border-color: var(--acc-d); }
.fine { font-size: 13px; color: var(--muted); max-width: 62ch; margin: 14px 0 0; }
.trace { display: block; width: 100%; height: 90px; margin-top: 34px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; margin: 10px 0 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; }
.shots figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.what { margin-top: clamp(56px, 8vw, 90px); }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; border-top: 1px solid var(--ink); padding-top: 18px; }
.flow div { display: flex; flex-direction: column; gap: 6px; }
.flow b { font-weight: 600; font-size: 15px; }
.flow span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: clamp(56px, 8vw, 90px); }
.two p { color: var(--ink-2); margin: 0 0 10px; max-width: 58ch; }
.two a { font-weight: 600; text-decoration: none; }
.two a:hover { text-decoration: underline; }
.install { margin-top: clamp(56px, 8vw, 90px); }
.install pre { background: var(--ink); color: #E6E8E0; padding: 18px 20px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 0; }
.install pre code { font-size: inherit; }
.docs-list { margin-top: clamp(56px, 8vw, 90px); margin-bottom: 60px; }
.docs-list ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; }
.docs-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.docs-list li a { font-weight: 600; text-decoration: none; }
.docs-list li span { font-size: 13.5px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 18px clamp(18px, 5vw, 56px) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* docs */
.doc-wrap { max-width: 1080px; margin: 0 auto; padding: 32px clamp(18px, 5vw, 56px) 60px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.doc-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 24px; align-self: start; }
.doc-nav a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 5px 8px; border-radius: 6px; }
.doc-nav a:hover { background: var(--paper-2); color: var(--ink); }
.doc-nav a[aria-current] { background: var(--acc-s); color: var(--acc-d); font-weight: 600; }
.doc-md { font-size: 12.5px; margin: 14px 8px 0; color: var(--muted); }
.prose { max-width: 72ch; }
.prose h1 { font-family: var(--display); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; margin: 34px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--ink-2); }
.prose pre { background: var(--ink); color: #E6E8E0; padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.prose code { background: var(--paper-2); padding: 0 4px; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0; }
.prose th, .prose td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { border-bottom: 1px solid var(--ink); font-weight: 600; }
@media (max-width: 760px) { .doc-wrap { grid-template-columns: 1fr; gap: 20px; } .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
