/* Capita guides: the same palette and type as the app, for plain fast pages. */
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/plex-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/plex-sans-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/plex-sans-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --canvas: #07090e;
  --surface: #0e1221;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef1f7;
  --ink-2: #aab2c2;
  --ink-3: #7c8698;
  --brand: #5b4cf5;
  --brand-2: #6d5ff7;
  --violet: #a69dfb;
  --gold: #e9b44c;
  --pos: #4cc38a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(74, 58, 223, 0.28), transparent 70%),
    radial-gradient(700px 480px at 100% 0%, rgba(233, 180, 76, 0.06), transparent 70%),
    var(--canvas);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(7, 9, 14, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.top-nav { display: none; gap: 28px; }
.top-nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.top-nav a:hover { color: var(--ink); }
@media (min-width: 760px) { .top-nav { display: flex; } }
.top-actions { display: flex; align-items: center; gap: 8px; }

.btn, .btn-ghost, .btn-quiet { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 500; font-size: 14px; border-radius: 10px; padding: 8px 14px; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.btn { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.btn:hover { background: var(--brand-2); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.07); }
.btn-quiet { color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.btn-lg { font-size: 15px; padding: 12px 20px; border-radius: 12px; }

/* Article */
.article { max-width: 760px; padding-top: 40px; padding-bottom: 80px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1 { margin: 22px 0 0; font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; }
.lead { margin: 18px 0 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.meta { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }

.prose { margin-top: 36px; font-size: 17px; line-height: 1.75; color: #d5dae4; }
.prose h2 { margin: 44px 0 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.prose p { margin: 14px 0 0; max-width: 68ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--violet); text-underline-offset: 3px; }

/* Numbered steps: a real sequence, so the numbers carry meaning. */
.steps { counter-reset: step; list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(233, 180, 76, 0.4); background: rgba(233, 180, 76, 0.1); color: var(--gold); font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500; }

.note { margin: 28px 0 0; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(166, 157, 251, 0.25); background: rgba(91, 76, 245, 0.08); }
.note p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.65; }
.note .note-title { margin: 0; font-weight: 600; color: var(--ink); font-size: 15.5px; }

/* Call to action */
.cta { position: relative; overflow: hidden; margin-top: 56px; padding: 36px 28px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); background:
  radial-gradient(70% 90% at 0% 0%, rgba(74, 58, 223, 0.42), transparent),
  radial-gradient(60% 80% at 100% 100%, rgba(233, 180, 76, 0.16), transparent),
  var(--surface); }
.cta h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 600; }
.cta p { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Related and overview cards */
.related { margin-top: 56px; }
.related h2, .hub h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.related ul, .cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.related a, .cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.related a:hover, .cards a:hover { border-color: rgba(166, 157, 251, 0.4); background: rgba(91, 76, 245, 0.07); }
.tag { font-size: 12px; color: var(--gold); font-weight: 500; }
.related-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.related-desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cards .meta { margin-top: auto; padding-top: 4px; }

.hub { padding-top: 48px; padding-bottom: 80px; }
.hub h1 { margin-top: 0; }
.hub h2 { margin-top: 44px; }

/* Footer */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.foot-inner { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 760px) { .foot-inner { grid-template-columns: 1fr 1.2fr; } }
.foot-note { margin: 12px 0 0; max-width: 42ch; font-size: 13px; color: var(--ink-3); }
.foot-links { display: grid; gap: 8px; font-size: 13.5px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.foot-copy a { text-decoration: none; }
.foot-copy a:hover { color: var(--ink); }

@media (max-width: 420px) {
  .top-actions .btn-quiet { display: none; }
}
