/* mrsentry website. Apple-inspired: system SF typography, generous whitespace, large rounded tiles,
   translucent navigation, light and dark themes. No external fonts or frameworks. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --code-bg: #f5f5f7;
  --code-text: #1d1d1f;
  --pre-bg: #1d1d1f;
  --pre-text: #f5f5f7;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --grad: linear-gradient(90deg, #5e5ce6 0%, #0a84ff 45%, #30b0c7 100%);
  --grad-warm: linear-gradient(90deg, #ff375f 0%, #ff9f0a 100%);
  --crit: #ff3b30;
  --high: #ff9500;
  --med: #ffcc00;
  --low: #0a84ff;
  --ok: #34c759;
  --radius: 18px;
  --radius-lg: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial,
          system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --nav-h: 48px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #101012;
    --bg-elev: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #38383a;
    --line-soft: #2c2c2e;
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --link: #2997ff;
    --nav-bg: rgba(22, 22, 23, 0.8);
    --code-bg: #1c1c1e;
    --code-text: #f5f5f7;
    --pre-bg: #1c1c1e;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101012;
  --bg-elev: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: #38383a;
  --line-soft: #2c2c2e;
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --link: #2997ff;
  --nav-bg: rgba(22, 22, 23, 0.8);
  --code-bg: #1c1c1e;
  --code-text: #f5f5f7;
  --pre-bg: #1c1c1e;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(0, 113, 227, 0.2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.nav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); opacity: 0.8; font-size: 13px; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff !important; opacity: 1 !important; padding: 5px 13px;
  border-radius: 980px; font-weight: 500; }
.nav-cta:hover { background: var(--accent-hover); }
.theme-btn, .menu-btn { background: none; border: 0; color: var(--text); opacity: .8; cursor: pointer; padding: 6px;
  border-radius: 8px; display: grid; place-items: center; }
.theme-btn:hover, .menu-btn:hover { opacity: 1; }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.02em; transition: background .2s, transform .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--link); border: 1px solid var(--link); }
.btn-ghost:hover { background: color-mix(in srgb, var(--link) 8%, transparent); }
.link-arrow::after { content: " ›"; }

/* ---------- landing ---------- */
.hero { text-align: center; padding: 96px 22px 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(10, 132, 255, .16), transparent 70%),
              radial-gradient(ellipse 30% 30% at 25% 40%, rgba(94, 92, 230, .14), transparent 70%),
              radial-gradient(ellipse 30% 30% at 75% 40%, rgba(48, 176, 199, .14), transparent 70%);
}
.eyebrow { font-size: 21px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; letter-spacing: .004em; }
.eyebrow .new { color: var(--high); }
.hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em;
  margin: 0 auto; max-width: 14ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; color: var(--text-2); max-width: 38ch;
  margin: 22px auto 34px; font-weight: 400; letter-spacing: .004em; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.hero-shot { max-width: 1080px; margin: 64px auto 0; padding: 0 22px; }

.window { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-elev);
  border: 1px solid var(--line-soft); }
.window img { width: 100%; }

section.band { padding: 110px 22px; }
section.band.alt { background: var(--bg-alt); }
section.band.dark { background: #000; color: #f5f5f7; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #86868b;
  --line-soft: #2c2c2e; --bg-elev: #1c1c1e; --bg-alt: #101012; }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 18px;
  font-weight: 700; }
.section-head p { font-size: clamp(19px, 2vw, 24px); color: var(--text-2); margin: 0; line-height: 1.33; }
.kicker { display: block; font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; text-align: center; }
.stat b { display: block; font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--text-2); font-size: 15px; }

.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { grid-column: span 4; background: var(--bg-elev); border-radius: var(--radius-lg); padding: 36px 34px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; }
section.alt .tile { background: var(--bg); }
.tile.w6 { grid-column: span 6; }
.tile.w8 { grid-column: span 8; }
.tile.w12 { grid-column: span 12; }
.tile .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  color: #fff; font-size: 22px; }
.tile h3 { font-size: 24px; line-height: 1.17; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700; }
.tile p { color: var(--text-2); margin: 0; font-size: 17px; }
.tile .tile-img { margin: 28px -34px -36px; }
.tile .more { margin-top: auto; padding-top: 18px; font-size: 15px; }
.i-blue { background: linear-gradient(135deg, #0a84ff, #5e5ce6); }
.i-teal { background: linear-gradient(135deg, #30b0c7, #0a84ff); }
.i-green { background: linear-gradient(135deg, #34c759, #30b0c7); }
.i-orange { background: linear-gradient(135deg, #ff9f0a, #ff375f); }
.i-purple { background: linear-gradient(135deg, #bf5af2, #5e5ce6); }
.i-pink { background: linear-gradient(135deg, #ff375f, #bf5af2); }
.i-gray { background: linear-gradient(135deg, #8e8e93, #48484a); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; }
.split p.big { font-size: 21px; color: var(--text-2); line-height: 1.38; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.checks li b { color: var(--text); font-weight: 600; }

.providers { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 44px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 980px;
  background: var(--bg-elev); box-shadow: var(--shadow); font-weight: 500; font-size: 16px; color: var(--text); }
.chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.code-card { background: var(--pre-bg); color: var(--pre-text); border-radius: var(--radius); padding: 26px 28px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.65; overflow-x: auto; box-shadow: var(--shadow-lg);
  white-space: pre; }
.code-card .c { color: #8e8e93; }
.code-card .k { color: #ff7ab2; }
.code-card .s { color: #ffa14f; }
.code-card .v { color: #6bdfff; }
.code-card .g { color: #67e480; }

.cta { text-align: center; padding: 120px 22px; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 20px; }
.cta p { color: var(--text-2); font-size: 21px; margin: 0 0 34px; }
.install-line { display: inline-flex; align-items: center; gap: 14px; background: var(--bg-alt); border-radius: 14px;
  padding: 14px 16px 14px 22px; font-family: var(--mono); font-size: 15px; max-width: 100%; overflow-x: auto;
  border: 1px solid var(--line-soft); }
.install-line code { white-space: nowrap; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1),
  transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- docs layout ---------- */
.docs { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px;
  padding: 0 22px; }
.sidebar { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h));
  overflow-y: auto; padding: 36px 6px 40px 0; }
.sidebar h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px 12px; }
.sidebar ul { list-style: none; padding: 0; margin: 0 0 24px; }
.sidebar a { display: block; padding: 7px 12px; border-radius: 9px; color: var(--text); font-size: 15px; }
.sidebar a small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.35; margin-top: 1px; }
.sidebar a:hover { background: var(--bg-alt); text-decoration: none; }
.sidebar a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
  font-weight: 600; }
.sidebar a[aria-current="page"] small { color: color-mix(in srgb, var(--accent) 75%, var(--text-3)); font-weight: 400; }

.doc { padding: 44px 0 100px; min-width: 0; max-width: 860px; }
.doc .crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; }
.doc .lead { font-size: 21px; color: var(--text-2); line-height: 1.4; margin: 0 0 36px; }
.doc h2 { font-size: 30px; letter-spacing: -0.025em; line-height: 1.15; margin: 56px 0 14px; padding-top: 8px; }
.doc h3 { font-size: 21px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.doc h2 a.anchor, .doc h3 a.anchor { opacity: 0; margin-left: 8px; color: var(--text-3); font-weight: 400; }
.doc h2:hover a.anchor, .doc h3:hover a.anchor { opacity: 1; text-decoration: none; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin: 6px 0; }
.doc figure { margin: 30px 0; }
.doc figure .window { box-shadow: var(--shadow); }
.doc figcaption { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 12px; }
.doc .diagram { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }

code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); color: var(--code-text);
  padding: 2px 6px; border-radius: 6px; letter-spacing: 0; }
pre { position: relative; background: var(--pre-bg); color: var(--pre-text); border-radius: 14px;
  padding: 20px 22px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 18px 0 24px; }
pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
pre .c { color: #8e8e93; }
.copy { position: absolute; top: 10px; right: 10px; font: 500 12px var(--font); color: #f5f5f7;
  background: rgba(255,255,255,.12); border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer;
  opacity: 0; transition: opacity .2s; }
pre:hover .copy, .copy:focus { opacity: 1; }
.copy.done { background: var(--ok); }

.table-wrap { overflow-x: auto; margin: 18px 0 28px; border: 1px solid var(--line-soft); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600;
  background: var(--bg-alt); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
td.desc { min-width: 260px; color: var(--text-2); }
td .dflt { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-word; }

.callout { border-radius: 14px; padding: 16px 20px; margin: 22px 0; background: var(--bg-alt);
  border-left: 4px solid var(--accent); }
.callout.warn { border-left-color: var(--high); }
.callout.ok { border-left-color: var(--ok); }
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }
.callout b:first-child { display: block; margin-bottom: 4px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 980px;
  background: color-mix(in srgb, var(--ok) 18%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--text));
  vertical-align: middle; white-space: nowrap; }
.badge.org { background: color-mix(in srgb, var(--text-3) 18%, transparent); color: var(--text-2); }

.tabs { margin: 18px 0 26px; }
.tab-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: -8px; }
.tab-list button { font: 500 14px var(--font); padding: 8px 14px; border-radius: 980px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); cursor: pointer; }
.tab-list button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.card { display: block; border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px 22px; color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s; background: var(--bg-elev); }
.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.card b { display: block; font-size: 17px; margin-bottom: 4px; }
.card span { color: var(--text-2); font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; margin: 18px 0 28px; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 20px 24px 20px 76px; margin: 0;
  background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 18px; width: 36px; height: 36px;
  border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700;
  font-size: 15px; }
.steps > li > b:first-child { display: block; font-size: 19px; margin: 6px 0 6px; letter-spacing: -0.015em; }
.steps > li > p { color: var(--text-2); margin: 0 0 10px; }
.steps > li > p:last-child { margin-bottom: 0; }
.steps > li pre { margin: 10px 0 12px; }
.steps > li .table-wrap { margin: 12px 0 4px; }
.steps > li > ul { color: var(--text-2); margin: 0; }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 28px; }
.mode { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-elev); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; }
.mode .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.mode h3 { margin: 0 !important; font-size: 17px; display: flex; align-items: center; }
.mode p { margin: 0; color: var(--text-2); font-size: 15px; }
.mode .verdict { margin-top: auto; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.mode .verdict small { display: block; font-weight: 400; color: var(--text-2); margin-bottom: 2px; }
.verdict.good { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.verdict.warn { background: color-mix(in srgb, var(--high) 13%, transparent); }
@media (max-width: 834px) { .modes { grid-template-columns: 1fr; } .steps > li { padding: 70px 18px 18px; }
  .steps > li::before { left: 18px; top: 18px; } }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--line-soft); }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--line-soft); border-radius: 14px; flex: 1;
  color: var(--text); }
.pager a:hover { text-decoration: none; border-color: var(--accent); }
.pager small { display: block; color: var(--text-3); font-size: 13px; }
.pager .next { text-align: right; }

.cmd { border: 1px solid var(--line-soft); border-radius: 16px; padding: 4px 22px 10px; margin: 22px 0; }
.cmd h3 { font-family: var(--mono); font-size: 18px; letter-spacing: 0; }

/* ---------- footer ---------- */
footer { background: var(--bg-alt); color: var(--text-2); font-size: 12.5px; padding: 30px 22px 40px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 20px; }
footer a { color: var(--text-2); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1068px) {
  .tile, .tile.w6, .tile.w8 { grid-column: span 6; }
  .tile.w12 { grid-column: span 12; }
  .docs { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 834px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 22px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 17px; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-links .nav-cta { margin-top: 12px; border: 0; width: auto; padding: 8px 16px; }
  .menu-btn { display: grid; margin-left: auto; }
  .theme-btn { margin-left: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .docs { grid-template-columns: 1fr; padding: 0 16px; }
  .sidebar { position: static; height: auto; padding: 18px 0 0; border-bottom: 1px solid var(--line-soft); }
  .sidebar details:not([open]) ul { display: none; }
  .sidebar h4 { display: none; }
  .sidebar summary { cursor: pointer; font-weight: 600; padding: 8px 12px; list-style: none; }
  .doc { padding-top: 26px; }
  .cards { grid-template-columns: 1fr; }
  section.band { padding: 80px 16px; }
}
@media (min-width: 835px) { .sidebar summary { display: none; } }
@media (max-width: 640px) {
  .tile, .tile.w6, .tile.w8, .tile.w12 { grid-column: span 12; }
  .hero { padding: 64px 16px 24px; }
  .hero-shot { padding: 0 16px; margin-top: 44px; }
  .pager { flex-direction: column; }
}

/* ---------- docs: flow pages (how it works) ---------- */
.doc.wide { max-width: 980px; }
.eyebrow-chip { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); color: var(--text-2);
  background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: 980px; padding: 4px 12px; }
.section-intro { color: var(--text-2); font-size: 19px; line-height: 1.45; margin: 6px 0 26px; max-width: 64ch; }
.doc h2.plain { margin-bottom: 8px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 20px; }
.pipe-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg);
  color: var(--text); background: var(--bg-elev); border: 1px solid var(--line-soft); box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.pipe-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pipe-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.pipe-card.sched::after { background: var(--grad-warm); }
.pipe-card .kick { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.pipe-card.sched .kick { color: var(--high); }
.pipe-card h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; margin: 0; }
.pipe-card p { margin: 0; color: var(--text-2); font-size: 16px; }
.pipe-card .eyebrow-chip { align-self: flex-start; }
.mini-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.mini-steps span { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 980px; background: var(--bg-alt);
  color: var(--text-2); white-space: nowrap; }
.mini-steps span + span::before { content: "›"; margin-right: 6px; color: var(--text-3); }

.flow { list-style: none; padding: 0 !important; margin: 0 0 12px; position: relative; }
.flow::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(var(--line), var(--line-soft)); }
.flow.warm::before { background: linear-gradient(color-mix(in srgb, var(--high) 45%, transparent), var(--line-soft)); }
.flow > li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; margin: 0 0 14px; }
.flow-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg); }
.flow-icon svg { width: 24px; height: 24px; }
.flow-body { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 22px; }
.flow-body h3 { margin: 0 0 4px !important; font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.flow-body h3 .step-no { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }
.flow-body > p { margin: 0; color: var(--text-2); }
.flow-body details { margin-top: 10px; }
.flow-body summary { cursor: pointer; color: var(--link); font-size: 14.5px; list-style: none; display: inline-flex;
  align-items: center; gap: 6px; }
.flow-body summary::-webkit-details-marker { display: none; }
.flow-body summary::after { content: "›"; transition: transform .2s; display: inline-block; }
.flow-body details[open] summary::after { transform: rotate(90deg); }
.flow-body details > div { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 15.5px;
  color: var(--text-2); }
.flow-body details > div p { margin: 0 0 8px; color: var(--text-2); }
.flow-body details > div ul { margin: 0; padding-left: 20px; }
.flow-body details > div li { color: var(--text-2); margin: 4px 0; }
.tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 980px; letter-spacing: .01em;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.tag.opt { background: var(--bg-alt); color: var(--text-3); }

.feature-card { border-radius: var(--radius-lg); padding: 30px; background: var(--bg-alt); margin: 26px 0; }
.feature-card h3 { margin: 0 0 8px !important; font-size: 22px; }
.feature-card > p { color: var(--text-2); margin: 0 0 22px; max-width: 70ch; }
.lane { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.lane .node { background: var(--bg-elev); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px 16px; }
.lane .node b { display: block; font-size: 15px; }
.lane .node code { font-size: 12.5px; }
.lane .node small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 4px; line-height: 1.4; }
.lane .arrow { align-self: center; color: var(--text-3); font-size: 22px; }
.lane .node.accent { border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  background: color-mix(in srgb, var(--ok) 8%, var(--bg-elev)); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.duo .card-lg { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 26px; background: var(--bg-elev); }
.duo .card-lg .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  margin-bottom: 14px; }
.duo .card-lg .icon svg { width: 22px; height: 22px; }
.duo .card-lg h3 { margin: 0 0 8px !important; font-size: 20px; }
.duo .card-lg p { color: var(--text-2); margin: 0 0 10px; font-size: 16px; }
.file-list { list-style: none; padding: 0 !important; margin: 8px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); margin: 0 !important; }
.file-list code { font-size: 12.5px; }

@media (max-width: 834px) {
  .pair, .duo { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr; }
  .lane .arrow { transform: rotate(90deg); justify-self: center; }
  .flow > li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .flow-icon { width: 40px; height: 40px; border-radius: 12px; }
  .flow::before { left: 19px; }
}

/* Long identifiers (API names, keys) wrap instead of overflowing on phones. */
:not(pre) > code { overflow-wrap: anywhere; }
