/* Journey Lanes public site. Light for reading, dark when the system is; the product window is always the app's own dark canvas. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --sunk: #eef0f4;
  --ink: #141922;
  --muted: #566074;
  --faint: #7c8596;
  --line: #dfe3ea;
  --accent: #2f63e0;
  --accent-hover: #2552c4;
  --accent-ink: #ffffff;
  --accent-soft: #e6edfd;
  --ok: #17865a;
  --fail: #c23b3b;
  --dot: #d5dae3;
  /* The product's lane colours, one per area: build, run, live, watch, team. */
  --violet: #6d4ff0; --violet-soft: #efebff;
  --sky: #0b8fca; --sky-soft: #e2f4fc;
  --green: #0f9b6e; --green-soft: #dff6ec;
  --amber: #c27a06; --amber-soft: #fdf1da;
  --pink: #d23c8a; --pink-soft: #fde6f2;
  --radius: 10px;
  --wrap: 1120px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171d;
    --surface: #1b1f27;
    --sunk: #181b22;
    --ink: #e4e7ed;
    --muted: #9aa3b2;
    --faint: #6f7889;
    --line: #2d3441;
    --accent: #5b8cff;
    --accent-hover: #7aa2ff;
    --accent-ink: #0d1220;
    --accent-soft: #1f2a44;
    --ok: #3ccb8f;
    --fail: #f06a6a;
    --dot: #262c37;
    --violet: #a48dff; --violet-soft: #241d45;
    --sky: #4cc3f5; --sky-soft: #10293a;
    --green: #3fd19f; --green-soft: #0f2e24;
    --amber: #f5b544; --amber-soft: #33270e;
    --pink: #f27bbd; --pink-soft: #36182b;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--sunk); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--ink); text-decoration: none; font-weight: 500; }
.link:hover { color: var(--accent); }
.more { font-weight: 500; }

/* ---------- Top bar ---------- */
/* A floating bar: glass over the page, a pill for where you are, a shadow once the page scrolls under it. */
.topbar { position: sticky; top: 0; z-index: 40; padding: 10px 0; transition: padding .2s; }
.topbar-in {
  position: relative; display: flex; align-items: center; gap: 20px; min-height: 56px; padding: 0 8px 0 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
  transition: box-shadow .2s, background-color .2s;
}
.topbar.scrolled .topbar-in { background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 10px 30px -12px rgb(16 24 40 / 22%), 0 1px 2px rgb(16 24 40 / 6%); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; flex: none; }
.brand:hover { color: var(--ink); }
.menu { display: flex; align-items: center; flex: 1; gap: 16px; }
.menu-links { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 4px; border-radius: 10px; background: color-mix(in srgb, var(--sunk) 70%, transparent); }
.menu-links a { display: block; padding: 6px 13px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s, background-color .15s, box-shadow .15s; }
.menu-links a:hover { color: var(--ink); }
.menu-links a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgb(16 24 40 / 10%), 0 0 0 1px var(--line); }
.menu-hint { display: none; }
.menu-account { display: flex; align-items: center; gap: 6px; flex: none; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--sunk); color: var(--ink); }
.btn-quiet[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.menu-toggle:hover { background: var(--sunk); }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 919px) {
  .topbar { padding: 8px 0; }
  .js .menu-toggle { display: block; }
  .js .menu { display: none; }
  /* The phone menu: a sheet under the bar, each link with a line about where it goes, the account at the bottom. */
  .js .menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    max-height: calc(100dvh - 90px); overflow-y: auto; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 24px 48px -16px rgb(16 24 40 / 30%);
    animation: sheet-in .18s ease-out;
  }
  .menu-links { flex-direction: column; margin: 0; padding: 0; background: none; gap: 0; }
  .menu-links a { display: grid; gap: 1px; padding: 11px 12px; border-radius: 9px; }
  .menu-links a:hover { background: var(--sunk); }
  .menu-links a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); }
  .menu-label { color: var(--ink); font-size: 15.5px; }
  .menu-hint { display: block; color: var(--faint); font-size: 13px; font-weight: 400; }
  .menu-account { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 4px 4px; border-top: 1px solid var(--line); }
  .menu-account .btn { min-height: 44px; }
  .menu-account .btn-quiet { border: 1px solid var(--line); }
  html:not(.js) .topbar-in { flex-wrap: wrap; padding: 8px 12px; }
  html:not(.js) .menu-links { flex-direction: row; flex-wrap: wrap; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .js .menu.open { animation: none; } .topbar, .topbar-in { transition: none; } }

/* ---------- Hero ---------- */
/* Soft light in the lane colours behind the canvas dots, fading into the page. */
/* It starts under the glass bar, so the light shows through it instead of stopping at its edge. */
.hero { --bar: 76px; position: relative; isolation: isolate; margin-top: calc(-1 * var(--bar)); padding: calc(48px + var(--bar)) 0 56px; overflow: hidden; text-align: center; }
.hero-glow {
  position: absolute; inset: 0 0 auto; height: 820px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 30%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    radial-gradient(34% 42% at 78% 26%, color-mix(in srgb, var(--sky) 20%, transparent), transparent 70%),
    radial-gradient(40% 40% at 50% 62%, color-mix(in srgb, var(--green) 12%, transparent), transparent 70%);
  filter: blur(8px);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-news {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 22px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--muted); font-size: 13.5px; text-decoration: none; box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
  transition: border-color .15s, color .15s;
}
.hero-news:hover { border-color: var(--faint); color: var(--ink); }
.hero-news-tag { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }
.hero-news-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); max-width: 17ch; letter-spacing: -0.035em; line-height: 1.05; }
.hero-accent {
  display: block; background: linear-gradient(100deg, var(--violet), var(--accent) 45%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin: 22px auto 0; max-width: 60ch; }
.lede { font-size: clamp(15.5px, 1.3vw, 17.5px); color: var(--muted); max-width: 64ch; margin: 16px 0 0; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-primary.btn-lg { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hero .hero-actions { justify-content: center; margin-top: 30px; }
.hero-sources { margin: 14px 0 0; color: var(--faint); font-size: 13.5px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero .demo { width: 100%; text-align: left; }
.hero .demo-window { box-shadow: 0 40px 80px -30px rgb(16 24 40 / 45%), 0 0 0 1px rgb(255 255 255 / 4%); }
@media (max-width: 600px) {
  .hero { --bar: 72px; padding: calc(28px + var(--bar)) 0 40px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Product window (the app, dark) ---------- */
.demo { margin: 44px 0 0; }
.demo-window {
  --c-canvas: #14171d; --c-panel: #1b1f27; --c-raised: #232833; --c-line: #2d3441;
  --c-ink: #e4e7ed; --c-muted: #8a93a3; --c-faint: #5d6676; --c-accent: #5b8cff; --c-live: #f2b84b; --c-ok: #3ccb8f; --c-fail: #f06a6a;
  background: var(--c-canvas); color: var(--c-ink);
  border: 1px solid #0c0e12; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -30px rgba(10, 20, 45, .45);
}
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--c-panel); border-bottom: 1px solid var(--c-line); font-size: 13px; }
.demo-project { font-weight: 500; }
.demo-sep { color: var(--c-faint); margin: 0 4px; }
.demo-env { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--c-line); border-radius: 6px; color: var(--c-muted); }
.demo-env .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); }
.demo-run { margin-left: auto; padding: 5px 12px; border-radius: 6px; background: var(--c-accent); color: #0d1220; font-weight: 500; transition: transform .15s, box-shadow .15s; }
.demo-run.pressed { transform: scale(.95); box-shadow: 0 0 0 4px rgba(91,140,255,.3); }
.demo-describe { padding: 14px 16px; border-bottom: 1px solid var(--c-line); background: var(--c-panel); }
.demo-label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.demo-text { margin: 0; font-size: 14.5px; line-height: 1.55; min-height: 3.1em; max-width: 110ch; }
.caret { display: none; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--c-accent); }
.demo.typing .caret { display: inline-block; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-canvas {
  padding: 16px; overflow-x: auto;
  background-image: radial-gradient(#2b313c 1.2px, transparent 1.2px); background-size: 22px 22px;
}
.demo-svg { width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.lane rect { fill: rgba(27,31,39,.72); stroke: var(--c-line); }
.lane-system rect { fill: rgba(20,23,29,.6); stroke-dasharray: 4 4; }
.lane-name { fill: var(--c-ink); font-size: 14px; font-weight: 600; }
.lane-sub { fill: var(--c-muted); font-size: 11.5px; font-family: var(--mono); }
.dn-card { fill: var(--c-panel); stroke: var(--c-line); stroke-width: 1.2; transition: stroke .25s, fill .25s; }
.dn-kind { fill: var(--c-muted); font-size: 11.5px; }
.dn-label { fill: var(--c-ink); font-size: 15px; font-weight: 600; }
.dn-call, .dn-detail { fill: var(--c-muted); font-size: 11.5px; font-family: var(--mono); }
.dn-status { font-size: 12px; font-family: var(--mono); font-weight: 500; }
.dn.running .dn-card { stroke: var(--c-live); stroke-width: 2; }
.dn.running .dn-status { fill: var(--c-live); }
.dn.passed .dn-card { stroke: var(--c-ok); }
.dn.passed .dn-status { fill: var(--c-ok); }
.dn-data.touched .dn-card { stroke: var(--c-accent); }
.de { fill: none; stroke: #4a5466; stroke-width: 1.6; }
.de-data { stroke: #343c4a; stroke-dasharray: 3 5; }
.de.active { stroke: var(--c-live); stroke-width: 2.2; }
.de.done { stroke: #3a7a62; }
.packet { fill: var(--c-live); opacity: 0; }
.packet.on { opacity: 1; }
.m-GET { fill: #3ccb8f; color: #3ccb8f; }
.m-POST { fill: #f2b84b; color: #f2b84b; }
.m-PUT { fill: #5b8cff; color: #5b8cff; }
.m-PATCH { fill: #9a7bff; color: #9a7bff; }
.m-DELETE { fill: #f06a6a; color: #f06a6a; }
.demo-console { list-style: none; margin: 0; padding: 10px 16px 12px; border-top: 1px solid var(--c-line); background: var(--c-panel); font: 12.5px/1.9 var(--mono); height: calc(5 * 1.9em + 22px); overflow: hidden; }
.demo-console li { display: flex; gap: 14px; align-items: baseline; white-space: nowrap; }
.demo-console .c-actor { color: var(--c-muted); width: 13ch; flex: none; overflow: hidden; text-overflow: ellipsis; }
.demo-console .call { background: none; border: 0; padding: 0; font-size: inherit; color: var(--c-ink); overflow: hidden; text-overflow: ellipsis; }
.demo-console .c-status { margin-left: auto; color: var(--c-ok); }
.demo figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Animated: everything starts hidden and is revealed by site.js. Without it, the finished flow shows. */
.demo.anim .dn, .demo.anim .de, .demo.anim .lane { opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.demo.anim .dn { transform-box: fill-box; }
.demo.anim .lane.on, .demo.anim .de.on { opacity: 1; }
.demo.anim .dn.on { opacity: 1; }
.demo.anim .demo-console li { display: none; }
.demo.anim .demo-console li.on { display: flex; animation: line-in .25s ease; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* A section in one area's colour. */
.tint-violet { background: var(--violet-soft); } .tint-sky { background: var(--sky-soft); } .tint-green { background: var(--green-soft); }
.tint-amber { background: var(--amber-soft); } .tint-pink { background: var(--pink-soft); }
.section-title { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-intro { font-size: 15.5px; margin-bottom: 0; }
.section p { color: var(--muted); max-width: 62ch; }
.features { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.features article { padding: 22px 0 22px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; box-shadow: inset 3px 0 0 var(--c, var(--accent)); }
.features h3 { font-size: 16.5px; }
.features p { margin: 0; }
@media (min-width: 800px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .features article { padding: 24px 0 24px 18px; }
}
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.stack-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.stack-list div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (min-width: 560px) { .stack-list div { grid-template-columns: 110px 1fr; gap: 16px; } }
.stack-list dt { font-weight: 600; }
.stack-list dd { margin: 0; color: var(--muted); }
.trio { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 860px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trio article { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--c, var(--ink)); }
.trio h3 { font-size: 16.5px; }
.trio p { margin: 0; flex: 1; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ---------- Call-to-action band ---------- */
.cta-band { background: #14171d; color: #e4e7ed; padding: 56px 0; background-image: linear-gradient(to right, #6d4ff0 0 20%, #0b8fca 20% 40%, #0f9b6e 40% 60%, #c27a06 60% 80%, #d23c8a 80%); background-size: 100% 4px; background-repeat: no-repeat; }
.cta-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .cta-in { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.cta-band p { color: #9aa3b2; margin: 12px 0 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #5b8cff; color: #0d1220; }
.cta-band .btn-primary:hover { background: #7aa2ff; }
.cta-band .btn-ghost { background: transparent; color: #e4e7ed; border-color: #3b4454; }
.cta-band .btn-ghost:hover { border-color: #8a93a3; }

/* ---------- Subpages ---------- */
.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.025em; max-width: 22ch; }
.kicker { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.doc { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 960px) { .doc { grid-template-columns: 220px 1fr; gap: 64px; } }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.toc a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; border: 1px solid var(--line); }
@media (min-width: 960px) {
  .toc { position: sticky; top: 96px; align-self: start; }
  .toc ul { flex-direction: column; gap: 2px; }
  .toc a { border: 0; padding: 6px 10px; }
}
.toc a:hover, .toc a.here { color: var(--ink); background: var(--sunk); }
.doc-body { min-width: 0; max-width: 72ch; }
.doc-body section { padding: 8px 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-body h2 { font-size: 21px; margin-bottom: 12px; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul { padding-left: 20px; margin: 0 0 1em; }
.doc-body li { margin-bottom: 8px; }
.example { margin: 24px 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.example-quote { color: var(--ink) !important; font-size: 16px; margin-bottom: 16px; }
.example-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.example-steps li { counter-increment: s; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-size: 15px; }
.example-steps li::before { content: counter(s); font: 500 12px/20px var(--mono); width: 22px; height: 22px; border-radius: 50%; text-align: center; background: var(--sunk); color: var(--muted); flex: none; border: 1px solid var(--line); }
.example-steps li > span { color: var(--ink); min-width: 13ch; }
.call { white-space: nowrap; }
@media (prefers-color-scheme: light) {
  .example .m-GET, .doc-body .m-GET, .steps .m-GET { color: #11845a; }
  .example .m-POST, .doc-body .m-POST, .steps .m-POST { color: #a86a00; }
  .example .m-PATCH, .doc-body .m-PATCH, .steps .m-PATCH { color: #6a4be0; }
  .example .m-PUT, .doc-body .m-PUT, .steps .m-PUT { color: #2f63e0; }
  .example .m-DELETE, .doc-body .m-DELETE, .steps .m-DELETE { color: #c23b3b; }
}

.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--ink); background: var(--sunk); }
td { color: var(--muted); }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 44px 0 64px; counter-reset: step; max-width: 76ch; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 48px 64px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 600 16px/1 var(--font); color: var(--accent); background: var(--accent-soft);
}
.steps > li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h2 { font-size: 18px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Security */
.facts { display: grid; gap: 0; padding: 28px 0 64px; }
@media (min-width: 900px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.facts section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.facts h2 { font-size: 18px; margin-bottom: 12px; }
.facts ul { margin: 0; padding-left: 20px; color: var(--muted); }
.facts li { margin-bottom: 8px; }

/* Pricing */
.plans { display: grid; gap: 16px; padding-top: 48px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(var(--plans, 3), 1fr); } }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.plan-mid { border: 2px solid var(--accent); }
.plan h2 { font-size: 17px; }
.plan-price { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; color: var(--muted); font-size: 14px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plans-note { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.compare-title { margin-top: 56px; }
.compare td { white-space: nowrap; }
.compare tbody th { font-weight: 500; color: var(--ink); }
.build-for-you { padding: 44px 0 0; max-width: 76ch; }
.build-for-you p { color: var(--muted); margin: 0 0 16px; }
.faq { padding: 44px 0 64px; max-width: 76ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* ---------- Log in, sign up ---------- */
.auth { padding: 64px 0 96px; min-height: calc(100vh - 64px - 260px); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.auth-in { display: grid; gap: 40px; justify-content: center; }
@media (min-width: 900px) { .auth-in { grid-template-columns: minmax(0, 440px) minmax(0, 340px); gap: 72px; align-items: start; } }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; }
@media (min-width: 560px) { .auth-card { padding: 40px; } }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-intro { color: var(--muted); margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 14.5px; font-weight: 500; }
.field input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--fail); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--fail) 12%, transparent); color: var(--fail); font-size: 14.5px; }
.form-fine { color: var(--faint); font-size: 13.5px; margin: 0; }
.form [hidden], form[hidden], [data-login-links][hidden] { display: none !important; }
.code-input { font-family: var(--mono, ui-monospace, monospace); font-size: 22px; letter-spacing: .4em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.form-done h2 { font-size: 20px; margin-bottom: 8px; }
.form-done p { color: var(--muted); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 24px 0 0; font-size: 14.5px; color: var(--muted); }
.auth-aside { padding-top: 8px; max-width: 340px; }
.auth-aside h2 { font-size: 18px; margin-bottom: 16px; }
.auth-aside ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 12px; }
.auth-aside strong { color: var(--ink); font-weight: 600; }
.auth-aside .checklist { color: var(--muted); }
.auth-aside .form-fine { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 44px 0 0; font-size: 14px; }
.footer-in { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-in { grid-template-columns: 1fr 2.4fr; gap: 56px; } }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 36ch; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; }
.footer-cols h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { margin-top: 36px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.footer-base p { margin: 0; }

.notfound { min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Colour per area ---------- */
.c-violet { --c: var(--violet); --c-soft: var(--violet-soft); }
.c-sky { --c: var(--sky); --c-soft: var(--sky-soft); }
.c-green { --c: var(--green); --c-soft: var(--green-soft); }
.c-amber { --c: var(--amber); --c-soft: var(--amber-soft); }
.c-pink { --c: var(--pink); --c-soft: var(--pink-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--c, var(--accent)); background: var(--c-soft, var(--accent-soft)); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Everything in one place: one card per area, in its colour. */
.areas { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 700px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 18px 18px 16px; }
.area h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.area h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.area ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.area li { padding-left: 14px; position: relative; }
.area li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); opacity: .7; }
.area li strong { color: var(--ink); font-weight: 600; }

/* Photos */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px color-mix(in srgb, var(--ink) 35%, transparent); }
.photo figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); }
.photo figcaption a { color: inherit; }
.split-photo { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split-photo { grid-template-columns: 1fr 1fr; gap: 56px; } .split-photo.flip > :first-child { order: 2; } }
.page-photo { margin-top: 24px; max-width: 760px; }
.page-photo img { aspect-ratio: 16 / 6; object-fit: cover; }

/* Small feature list next to a photo */
.mini { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.mini li { display: grid; grid-template-columns: 10px 1fr; gap: 0 12px; font-size: 14px; color: var(--muted); }
.mini li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; margin-top: .45em; background: var(--c, var(--accent)); }
.mini strong { color: var(--ink); display: block; font-size: 14.5px; }

/* ---------- Release notes ---------- */
.releases { padding: 36px 0 64px; display: grid; gap: 0; max-width: 880px; }
.release { display: grid; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .release { grid-template-columns: 170px 1fr; } .release header { display: contents; } }
.release time { color: var(--faint); font-size: 13px; padding-top: 3px; }
.release h2 { font-size: 18px; margin-bottom: 10px; }
.release ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-column: 2; }
@media (max-width: 799px) { .release ul { grid-column: auto; } }
.release li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; font-size: 14px; color: var(--muted); }
.release li .tag { justify-content: center; padding: 2px 8px; font-size: 11.5px; }
.release li .tag::before { display: none; }

/* ---------- Status ---------- */
.status-head h1 { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 0%, transparent); }
.status-ok { background-color: var(--green-soft); } .status-ok .status-dot { background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 22%, transparent); }
.status-down { background-color: color-mix(in srgb, var(--fail) 12%, var(--bg)); } .status-down .status-dot { background: var(--fail); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fail) 22%, transparent); }
.status-stale, .status-unknown { background-color: var(--amber-soft); } .status-stale .status-dot { background: var(--amber); }
.status-list { padding: 28px 0 64px; display: grid; gap: 14px; max-width: 920px; }
.status-part { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.status-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.status-part h2 { font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.status-part h2 .status-dot { width: 10px; height: 10px; }
.status-part.is-ok h2 .status-dot { background: var(--green); }
.status-part.is-down h2 .status-dot { background: var(--fail); }
.status-row p { margin: 2px 0 0 20px; color: var(--muted); font-size: 13.5px; }
.status-now { text-align: right; font-size: 13px; color: var(--muted); display: grid; }
.status-now strong { font-size: 14px; }
.is-ok .status-now strong { color: var(--green); } .is-down .status-now strong { color: var(--fail); }
.status-days { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.status-days li { height: 28px; border-radius: 3px; background: var(--sunk); }
.status-days .day-ok { background: var(--green); } .status-days .day-some { background: var(--amber); } .status-days .day-bad { background: var(--fail); }
.status-uptime { display: flex; justify-content: space-between; margin: 0; font-size: 12px; color: var(--faint); }
.status-uptime span:nth-child(2) { color: var(--muted); }
.status-foot, .status-empty { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }

/* Long call paths (token endpoints) wrap instead of widening the page on phones. */
.example-steps li { min-width: 0; }
.example-steps code, .example-steps .call { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }

/* Pricing: the trial, the price per month and per year */
.plan-trial { margin: -6px 0 0; }
.plan-per { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-year { margin: -10px 0 0; font-size: 13px; color: var(--green); }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); } }
@media (min-width: 860px) and (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cases ---------- */
/* A case is marked with the lanes of the roles it affects, stacked like the logo. */
.case-lanes { display: flex; flex-direction: column; gap: 4px; width: 36px; padding-top: 6px; flex: none; }
.case-lanes span { display: block; height: 6px; border-radius: 3px; background: var(--c); }

.case-list { list-style: none; margin: 0 0 72px; padding: 0; }
.case-list-short { margin: 24px 0 20px; border-top: 1px solid var(--line); }
.case-list li { border-bottom: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 15rem); gap: 6px 22px; align-items: start; padding: 22px 4px; color: var(--ink); text-decoration: none; }
.case-row-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.case-row-summary { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; max-width: 64ch; }
.case-row-by { color: var(--faint); font-size: 13px; line-height: 1.45; padding-top: 3px; }
.case-row:hover .case-row-title { color: var(--accent); }
.case-row:hover .case-lanes span { filter: saturate(1.25); }
@media (max-width: 760px) {
  .case-row { grid-template-columns: 28px minmax(0, 1fr); }
  .case-lanes { width: 28px; }
  .case-row-by { grid-column: 2; padding-top: 0; }
}

.case-roles { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.case-roles li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; background: var(--c-soft); color: var(--ink); font-size: 13px; font-weight: 500; }
.case-roles li::before { content: ""; width: 14px; height: 5px; border-radius: 3px; background: var(--c); }
.case-head .kicker a { color: inherit; text-decoration: none; }
.case-head .kicker a:hover { color: var(--accent); }

.case-body { padding-top: 44px; padding-bottom: 64px; }
.case-body > section, .case-next { max-width: 860px; margin-bottom: 52px; }
.case-body h2 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.015em; margin-bottom: 14px; }
.case-why p { font-size: 16.5px; line-height: 1.65; max-width: 66ch; color: var(--ink); }
.case-flow { margin: 18px 0 8px; }
.case-flow figcaption, .caught figcaption { margin-top: 10px; color: var(--faint); font-size: 13px; }
.case-steps { padding: 28px 0 0; }
.case-steps > li { padding-bottom: 30px; }
.case-steps > li p { margin: 6px 0 0; color: var(--ink); font-size: 15.5px; line-height: 1.6; max-width: 64ch; }

/* The moment it's caught: the product's own run log, alert or finding. */
.caught { margin: 18px 0 0; }
.caught-where { color: var(--c-muted); font-size: 13px; }
.caught-log { list-style: none; margin: 0; padding: 8px 0; font: 13px/1.6 var(--mono); }
.caught-log li { display: grid; grid-template-columns: 2.2ch minmax(0, 13ch) auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 7px 18px; }
.caught-log li > .caught-text:nth-child(2) { grid-column: 2 / -1; }
.caught-mark { font-weight: 600; }
.caught-ok .caught-mark { color: var(--c-ok); }
.caught-fail { background: rgba(240, 106, 106, .09); box-shadow: inset 3px 0 0 var(--c-fail); }
.caught-fail .caught-mark, .caught-fail .caught-text { color: var(--c-fail); }
.caught-info .caught-text { color: var(--c-muted); }
.caught-who { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caught-log .call { background: none; border: 0; padding: 0; font-size: inherit; color: var(--c-ink); white-space: nowrap; }
.caught-text { color: var(--c-ink); }
@media (max-width: 760px) {
  .caught-log li { grid-template-columns: 2.2ch minmax(0, 1fr); gap: 2px 10px; padding: 8px 14px; }
  .caught-log li > * { grid-column: 2; }
  .caught-log li > .caught-text:nth-child(2) { grid-column: 2; }
  .caught-log li > .caught-mark { grid-column: 1; grid-row: 1 / span 3; }
  .caught-log .call { white-space: normal; overflow-wrap: anywhere; }
}
.case-after { margin-top: 16px; font-size: 15.5px; color: var(--ink); max-width: 64ch; }
.case-uses ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.case-uses a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.case-uses a:hover { border-color: var(--accent); color: var(--accent); }
.case-next { border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); }

/* Legal pages: privacy policy, terms, cookie policy, data processing agreement */
.legal { display: grid; gap: 32px; padding: 8px 0 72px; }
@media (min-width: 900px) { .legal { grid-template-columns: 220px minmax(0, 1fr); } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
@media (min-width: 900px) { .legal-nav { flex-direction: column; position: sticky; top: 88px; } }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--ink); }
.legal-body { max-width: 760px; color: var(--muted); }
.legal-body h2 { color: var(--ink); font-size: 18px; margin: 36px 0 10px; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--ink); }
.legal-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } }

/* ---------- Prices with or without VAT ---------- */
.vat-switch { display: flex; width: fit-content; margin: 0 auto 22px; padding: 4px; gap: 2px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); }
.vat-switch button { padding: 7px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 500 13.5px var(--font); cursor: pointer; }
.vat-switch button span { color: var(--faint); font-weight: 400; margin-left: 4px; }
.vat-switch button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(16 24 40 / 10%), 0 0 0 1px var(--line); }
html:not(.js) .vat-switch { display: none; }
.plan-vat { margin: 2px 0 0; color: var(--faint); font-size: 13px; }
/* Without the script both prices show, one after the other. */
html:not(.js) [data-vat="incl"]::before { content: " · "; color: var(--faint); }
.js [data-vat-mode="excl"] [data-vat="incl"], .js [data-vat-mode="incl"] [data-vat="excl"] { display: none; }
@media (max-width: 520px) { .vat-switch { width: 100%; } .vat-switch button { flex: 1; padding: 7px 8px; } .vat-switch button span { display: block; margin: 0; } }

/* ---------- Product section: sub-navigation, area cards, diagrams ---------- */
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.subnav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.subnav a[class*="c-"]::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: .85; }
.subnav a:hover { color: var(--ink); background: var(--sunk); }
.subnav a[aria-current="page"] { color: var(--ink); background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }

.cards { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: var(--c); transform: translateY(-2px); box-shadow: 0 16px 32px -24px color-mix(in srgb, var(--c) 60%, transparent); }
.card h2 { font-size: 16.5px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; color: var(--muted); flex: 1; align-content: start; }
.card li { padding-left: 14px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c); opacity: .7; }
.card-more { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--c); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

.pipeline { margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.pipeline-svg { display: block; min-width: 760px; width: 100%; height: auto; font: 500 12.5px var(--font); }
.pipeline-svg .p-lane { stroke: none; }
.pipeline-svg .l-violet { fill: var(--violet-soft); }
.pipeline-svg .l-sky { fill: var(--sky-soft); }
.pipeline-svg .l-green { fill: var(--green-soft); }
.pipeline-svg .p-node { fill: var(--surface); stroke: var(--line); }
.pipeline-svg .p-key { stroke: var(--accent); stroke-width: 1.5; }
.pipeline-svg text { fill: var(--ink); }
.pipeline-svg .p-edges path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; animation: lane-flow 1.6s linear infinite; }
@keyframes lane-flow { to { stroke-dashoffset: -20; } }
@media (prefers-reduced-motion: reduce) { .pipeline-svg .p-edges path { animation: none; } }

.diagram { margin: 8px 0 24px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.agent-svg { display: block; min-width: 620px; width: 100%; height: auto; font: 500 12.5px var(--font); }
.agent-svg .a-zone { fill: var(--sunk); stroke: var(--line); stroke-dasharray: 6 5; }
.agent-svg .a-zone-label { fill: var(--muted); font-weight: 600; }
.agent-svg .a-box { fill: var(--surface); stroke: var(--line); }
.agent-svg .a-key { stroke: var(--accent); stroke-width: 1.5; }
.agent-svg .a-off { stroke-dasharray: 4 4; }
.agent-svg .a-off + text { fill: var(--faint); }
.agent-svg .a-title { fill: var(--ink); font-weight: 600; font-size: 14px; }
.agent-svg .a-sub { fill: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.agent-svg .a-line { fill: none; stroke: var(--green); stroke-width: 1.5; }
.agent-svg .a-line-off { stroke: var(--fail); stroke-dasharray: 4 4; opacity: .7; }
.agent-svg .a-wire { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 5; }
.agent-svg .a-wire-label { fill: var(--accent); font-weight: 600; }

.note { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--ink) !important; font-size: 14.5px; border-left: 3px solid var(--accent); }
.code { margin: 16px 0 20px; padding: 14px 16px; overflow-x: auto; background: var(--sunk); border: 1px solid var(--line); border-radius: 10px; font: 13px/1.6 var(--mono); color: var(--ink); }
.code code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }
.next-area { margin-top: 8px; color: var(--muted); }
.anchor-list div { scroll-margin-top: 96px; }
.anchor-list dt a { color: var(--ink); text-decoration: none; }
.anchor-list dt a:hover { color: var(--accent); }
.getting-more, .faq-more { color: var(--muted); }
.getting-more { margin: 0 0 56px; }

/* Home: the stack strip */
.fit-grid { margin: 24px 0 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
.fit-grid div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 3px 0 0 var(--c); }
.fit-grid dt { font-weight: 600; margin-bottom: 4px; }
.fit-grid dd { margin: 0; color: var(--muted); font-size: 14px; }

/* Integrations and FAQ: a row of section links above long pages */
.toc-row { padding: 28px 0 4px; }
.toc-row ul { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
.toc-row a { border: 1px solid var(--line) !important; padding: 6px 10px !important; }
@media (min-width: 960px) { .toc-row { position: static; } }
.integrations section { padding: 28px 0 8px; scroll-margin-top: 88px; }
.integrations section:last-child { padding-bottom: 64px; }
.integrations h2 { font-size: 21px; margin-bottom: 4px; }
.integrations section > p { color: var(--muted); max-width: 72ch; }
.integrations tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .integrations tbody th { white-space: normal; } }
.faq-page .faq { padding: 28px 0 12px; scroll-margin-top: 88px; }
.faq-page .faq:last-child { padding-bottom: 64px; }
.faq details p .more { margin-left: 4px; white-space: nowrap; }
.doc-body section { scroll-margin-top: 88px; }

/* Guides and search-facing pieces */
.hero-kicker { margin: 18px 0 10px; color: var(--accent); font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em; }
.features h3 a { color: inherit; text-decoration: none; }
.features h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.area-guides { margin-top: 8px; color: var(--muted); }
.doc-body .guide-faq { padding: 8px 0 40px; max-width: none; }
.doc-body .guide-faq details p { color: var(--muted); }
.guide-related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.doc-body .case-flow { margin: 20px 0; }
.guides-nl { margin-top: 28px; color: var(--muted); }

/* ---------- Help centre and contact ---------- */
.help { padding: 8px 20px 72px; }
.help-search { display: flex; gap: 8px; max-width: 640px; margin: 0 0 40px; }
.help-search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.help-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.help-cats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.help-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.help-cat h2 { font-size: 16px; margin-bottom: 10px; }
.help-cat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.help-cat a { color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.help-cat a:hover { color: var(--accent); text-decoration: underline; }
.help-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; max-width: 76ch; }
.help-list a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); }
.help-list a:hover { border-color: var(--accent); }
.help-list span { color: var(--muted); font-size: 14px; }
.help-contact { margin-top: 32px; color: var(--muted); }
/* Article and contact pages: a reading column, with a sticky "In this category" list beside it on wide screens. */
.help-layout { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 72px; }
.help-main { width: 100%; max-width: 720px; }
.help-main .steps { padding-top: 8px; padding-bottom: 32px; }
@media (min-width: 960px) {
  .help-layout { grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; gap: 64px; }
  .help-layout.help-single { grid-template-columns: minmax(0, 720px); }
  .help-aside { position: sticky; top: 96px; align-self: start; }
}
.help-aside { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; }
.help-aside h2 { font-size: 14px; margin-bottom: 10px; color: var(--ink); }
.help-aside ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.help-aside a { display: block; padding: 5px 8px; margin: 0 -8px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.help-aside a:hover { color: var(--ink); background: var(--sunk); }
.help-aside a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.help-aside p { margin: 0; font-size: 13.5px; }
.help-aside p a { display: inline; padding: 0; margin: 0; color: var(--accent); text-decoration: underline; }
.contact-form { display: grid; gap: 16px; max-width: 560px; margin-top: 8px; }
.contact-form select, .contact-form textarea { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.contact-form .btn { justify-self: start; }
.form-note { color: var(--faint); font-size: 13.5px; margin: 0; }
/* The field people don't see: bots fill it in. Kept off screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .help-search { flex-direction: column; } .help-search .btn { width: 100%; } }
