/* ScoutAI — site de présentation et documentation. Aucune dépendance : polices système, couleurs de la marque du portail. */

:root {
  --brand-50: oklch(0.97 0.02 255);
  --brand-100: oklch(0.93 0.04 255);
  --brand-300: oklch(0.78 0.11 260);
  --brand-400: oklch(0.69 0.16 262);
  --brand-500: oklch(0.6 0.19 262);
  --brand-600: oklch(0.53 0.2 264);
  --brand-700: oklch(0.46 0.19 265);
  --violet: oklch(0.62 0.2 300);
  --mint: oklch(0.78 0.13 165);
  --success: oklch(0.62 0.16 150);
  --warning: oklch(0.75 0.15 75);
  --danger: oklch(0.58 0.22 27);

  --ink: oklch(0.2 0.03 265);
  --ink-soft: oklch(0.45 0.03 265);
  --line: oklch(0.91 0.01 265);
  --paper: oklch(0.99 0.003 265);
  --paper-2: oklch(0.965 0.008 265);
  --card: #fff;
  --night: oklch(0.17 0.04 268);
  --night-2: oklch(0.22 0.05 268);

  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px -12px rgb(15 23 42 / 0.18);
  --shadow-lg: 0 30px 80px -30px rgb(30 41 120 / 0.55);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: oklch(0.94 0.01 265);
    --ink-soft: oklch(0.74 0.02 265);
    --line: oklch(0.3 0.03 265);
    --paper: oklch(0.16 0.025 266);
    --paper-2: oklch(0.2 0.03 266);
    --card: oklch(0.21 0.03 266);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--brand-300); } }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }
code { overflow-wrap: anywhere; background: var(--paper-2); border: 1px solid var(--line); padding: 0.1em 0.38em; border-radius: 6px; }
kbd { background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; padding: 0.05em 0.45em; border-radius: 6px; }
pre {
  background: var(--night); color: oklch(0.92 0.02 265); padding: 1.1rem 1.25rem; border-radius: 12px; overflow-x: auto;
  line-height: 1.55; position: relative; margin: 0 0 1.4em; font-size: 0.86rem;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand-600); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in oklch, var(--paper) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar.on-dark { background: color-mix(in oklch, var(--night) 72%, transparent); border-color: rgb(255 255 255 / 0.08); color: #fff; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1rem; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: inherit; text-decoration: none; font-size: 0.95rem; opacity: 0.82; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { font-weight: 600; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid currentColor; color: inherit; border-radius: 10px; padding: 6px 10px; font: inherit; opacity: 0.85; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .topbar.on-dark .nav { background: var(--night); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 4px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 0.72rem 1.25rem;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand-500), var(--violet)); color: #fff; box-shadow: 0 10px 30px -10px oklch(0.55 0.2 280 / 0.8); }
.btn-ghost { color: inherit; border-color: color-mix(in oklch, currentColor 30%, transparent); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.88rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, oklch(0.5 0.22 290 / 0.55), transparent 60%),
    radial-gradient(700px 500px at 0% 20%, oklch(0.5 0.2 255 / 0.5), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
  padding: 72px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px oklch(0.78 0.13 165 / 0.25); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; margin: 22px 0 18px; max-width: 16ch; letter-spacing: -0.035em; }
.grad { background: linear-gradient(90deg, var(--brand-300), oklch(0.82 0.12 300), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; color: rgb(255 255 255 / 0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-note { font-size: 0.88rem; color: rgb(255 255 255 / 0.6); }

/* product mock */
.mock {
  margin: 56px auto -1px; max-width: 1040px; border-radius: 16px 16px 0 0; overflow: hidden;
  background: oklch(0.99 0.003 265); color: oklch(0.2 0.03 265); box-shadow: var(--shadow-lg);
  border: 1px solid rgb(255 255 255 / 0.18); border-bottom: 0;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: oklch(0.95 0.01 265); border-bottom: 1px solid oklch(0.9 0.01 265); font-size: 0.78rem; color: oklch(0.5 0.02 265); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: oklch(0.82 0.02 265); display: inline-block; }
.mock-bar span { margin-left: 12px; background: #fff; border: 1px solid oklch(0.9 0.01 265); padding: 3px 12px; border-radius: 999px; }
.mock-body { display: grid; grid-template-columns: 170px 280px 1fr; min-height: 430px; font-size: 0.82rem; }
.mock-side { background: oklch(0.975 0.006 265); border-right: 1px solid oklch(0.92 0.01 265); padding: 16px 12px; }
.mock-side b { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 14px; }
.mock-side b em { width: 22px; height: 22px; border-radius: 6px; background: var(--brand-600); color: #fff; font-style: normal; display: grid; place-items: center; font-size: 0.75rem; }
.mock-side li { list-style: none; padding: 7px 10px; border-radius: 8px; color: oklch(0.45 0.03 265); }
.mock-side li.on { background: oklch(0.93 0.04 255); color: var(--brand-700); font-weight: 600; }
.mock-side ul { margin: 0; padding: 0; }
.mock-list { border-right: 1px solid oklch(0.92 0.01 265); padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.mock-list h4 { font-size: 0.95rem; margin: 2px 0 6px; }
.mock-item { border: 1px solid oklch(0.91 0.01 265); border-radius: 10px; padding: 10px; background: #fff; }
.mock-item.on { border-color: var(--brand-600); background: var(--brand-50); }
.mock-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mock-item strong { font-size: 0.82rem; }
.mock-item small { color: oklch(0.5 0.02 265); display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 1px 8px; font-size: 0.72rem; font-weight: 650; }
.pill.ok { background: oklch(0.62 0.16 150 / 0.15); color: oklch(0.45 0.14 150); }
.pill.mid { background: oklch(0.75 0.15 75 / 0.22); color: oklch(0.42 0.1 70); }
.pill.brand { background: var(--brand-100); color: var(--brand-700); }
.pill.warn { background: oklch(0.58 0.22 27 / 0.12); color: oklch(0.5 0.2 27); }
.mock-detail { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.mock-card { border: 1px solid oklch(0.91 0.01 265); border-radius: 12px; padding: 12px 14px; background: #fff; }
.mock-card h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: oklch(0.5 0.02 265); margin: 0 0 8px; }
.mock-card p { margin: 0 0 6px; }
.fact { display: block; background: oklch(0.62 0.16 150 / 0.1); border-left: 3px solid var(--success); padding: 5px 8px; border-radius: 6px; margin-top: 6px; font-size: 0.78rem; }
.mock-field { border: 1px solid oklch(0.9 0.01 265); border-radius: 8px; padding: 7px 9px; margin-bottom: 8px; background: oklch(0.99 0.003 265); }
.mock-field.body { min-height: 120px; line-height: 1.5; }
.mock-actions { display: flex; gap: 8px; margin-top: 10px; }
.mock-actions span { border-radius: 8px; padding: 6px 12px; font-weight: 650; font-size: 0.78rem; }
.mock-actions .a { background: var(--brand-600); color: #fff; }
.mock-actions .b { border: 1px solid oklch(0.88 0.01 265); }
.mock-actions .c { color: oklch(0.5 0.02 265); }
@media (max-width: 980px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side, .mock-list { display: none; }
  .mock-detail { grid-template-columns: 1fr; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.kicker { color: var(--brand-600); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
@media (prefers-color-scheme: dark) { .kicker { color: var(--brand-300); } }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 780; max-width: 22ch; }
.section-lead { color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; }
.center { text-align: center; }
.center .section-title, .center .section-lead { margin-left: auto; margin-right: auto; }
.center .section-title { max-width: 30ch; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 26px 0; color: var(--ink-soft); font-size: 0.93rem; border-bottom: 1px solid var(--line); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; counter-reset: step; }
.pipe {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow);
}
.pipe::before {
  counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 18px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 0.85rem;
  color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--violet));
}
.pipe h3 { font-size: 1.05rem; margin-top: 8px; }
.pipe p { color: var(--ink-soft); font-size: 0.93rem; margin: 0; }
.pipe .human { display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 700; color: var(--brand-700); background: var(--brand-100); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 980px) { .pipeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--violet));
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: oklch(0.62 0.16 150 / 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322a061' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }

/* email preview */
.email { font-size: 0.92rem; }
.email .meta { display: grid; grid-template-columns: 60px 1fr; gap: 4px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; color: var(--ink-soft); }
.email .meta b { color: var(--ink); font-weight: 600; }
.email .foot { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 0.8rem; }
.email mark { background: oklch(0.62 0.16 150 / 0.16); color: inherit; padding: 0 3px; border-radius: 4px; }

/* stats strip */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi b { display: block; font-size: 1.6rem; letter-spacing: -0.03em; }
.kpi small { color: var(--ink-soft); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 16px; }
.bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); }
.bars span.r { background: linear-gradient(180deg, var(--mint), var(--success)); }
@media (max-width: 620px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* safeguards */
.guards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.guard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--card); }
.guard h3 { font-size: 1rem; }
.guard p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
@media (max-width: 980px) { .guards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guards { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-500); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 12px 0 0; }

/* cta */
.cta {
  border-radius: 26px; padding: 56px 40px; color: #fff; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 80% 0%, oklch(0.55 0.22 300 / 0.7), transparent 60%), linear-gradient(135deg, var(--brand-700), var(--night));
}
.cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cta p { color: rgb(255 255 255 / 0.78); max-width: 56ch; margin: 0 auto 26px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-soft); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: inherit; }

/* reveal on scroll */
/* Hidden only when the script runs: without it, everything stays visible */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* ---------- documentation ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 36px; padding-bottom: 80px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 0.93rem; padding-right: 8px; }
.docs-nav h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin: 22px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; opacity: 0.8; }
.docs-nav a:hover { background: var(--paper-2); opacity: 1; }
.docs-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); opacity: 1; font-weight: 650; }
@media (prefers-color-scheme: dark) { .docs-nav a[aria-current="page"] { background: oklch(0.3 0.08 265); color: var(--brand-100); } }
.docs-nav ul ul a { padding-left: 22px; font-size: 0.88rem; }
.docs-nav details summary { display: none; }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .docs-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
  .docs-nav details summary { display: block; cursor: pointer; padding: 10px 2px; font-weight: 650; }
  .docs-nav details:not([open]) > :not(summary) { display: none; }
}

.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
.prose .intro { font-size: 1.15rem; color: var(--ink-soft); }
.prose h2 { font-size: 1.55rem; margin-top: 2.4em; padding-top: 0.3em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.18rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: 0.3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--paper-2); }
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: inherit; }

.callout { border-radius: 12px; padding: 14px 16px 14px 48px; margin: 0 0 1.4em; position: relative; border: 1px solid; font-size: 0.96rem; }
.callout::before { position: absolute; left: 16px; top: 13px; font-weight: 800; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; color: #fff; }
.callout p:last-child { margin: 0; }
.callout.tip { background: oklch(0.62 0.16 150 / 0.08); border-color: oklch(0.62 0.16 150 / 0.35); }
.callout.tip::before { content: "✓"; background: var(--success); }
.callout.info { background: var(--brand-50); border-color: var(--brand-100); }
@media (prefers-color-scheme: dark) { .callout.info { background: oklch(0.26 0.06 265); border-color: oklch(0.36 0.09 265); } }
.callout.info::before { content: "i"; background: var(--brand-600); }
.callout.warn { background: oklch(0.75 0.15 75 / 0.12); border-color: oklch(0.75 0.15 75 / 0.5); }
.callout.warn::before { content: "!"; background: oklch(0.65 0.15 70); }

.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 0 0 1.6em; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 52px; border-left: 2px solid var(--line); margin-left: 16px !important; }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: -17px; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--violet)); font-size: 0.9rem;
}
.steps > li > strong:first-child { display: block; font-size: 1.05rem; margin-bottom: 4px; }

.ui { font-weight: 650; background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 0.93em; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.2em 0 2em; }
.cards a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--card); transition: border-color .2s, transform .2s; }
.cards a:hover { border-color: var(--brand-500); transform: translateY(-2px); }
.cards b { display: block; margin-bottom: 4px; }
.cards span { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.pager a small { display: block; color: var(--ink-soft); }
.pager a:hover { border-color: var(--brand-500); }
.pager .next { text-align: right; margin-left: auto; }

.copy-btn {
  position: absolute; top: 8px; right: 8px; font: 600 0.72rem var(--font); color: oklch(0.85 0.02 265);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); border-radius: 6px; padding: 3px 8px; cursor: pointer;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.16); }

.status-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0.6em 0 1.4em; }
.status-flow .pill { font-size: 0.8rem; padding: 3px 10px; }
.status-flow .arrow { color: var(--ink-soft); }
