/* spawnpoint: warm, restrained, iOS-6-Notes-inspired (minus the manila).
   Rutgers scarlet accent on a soft warm-paper canvas, DM Sans type,
   faint rule lines, gentle gloss. Light theme. Source of truth: DESIGN.md. */

:root {
  color-scheme: light;

  /* Warm paper canvas (a nod to Notes, kept light, not yellow) */
  --bg-1: #f7f4ee;
  --bg-2: #efe9df;
  --paper-line: rgba(120, 92, 58, 0.055);

  /* Text */
  --foreground: #221d18;
  --muted-foreground: #6b625a;

  /* Rutgers scarlet accent */
  --accent: #cc0033;
  --accent-deep: #a4002a;
  --accent-hi: #e0335a;
  --accent-soft: #fceaec;

  /* Semantic status colors */
  --green: #4f9a5f;
  --green-deep: #37764a;
  --amber: #9a6a12;

  /* Solid fills that must invert in dark mode */
  --pop: #fffdfa;   /* popovers, small buttons, table tiles */
  --field: #fffdfa; /* inputs */
  --band: rgba(255, 253, 250, 0.5); /* alternating section bands */

  /* Surfaces */
  --panel: rgba(255, 253, 250, 0.82);
  --panel-strong: rgba(255, 253, 250, 0.94);
  --panel-border: rgba(34, 29, 24, 0.12);
  --hairline: rgba(34, 29, 24, 0.09);

  --primary: var(--accent);
  --primary-foreground: #ffffff;

  --radius-sm: 0.35rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.8rem;
  --radius-pill: 999px;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --maxw: 1120px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--foreground);
  /* faint ruled paper over a warm gradient */
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 33px, var(--paper-line) 33px, var(--paper-line) 34px),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted-foreground); }
.bubbles { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .005em;
  padding: .55rem 1.1rem; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary {
  color: #fff;
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  border-color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 1px 2px rgba(80,10,25,.25);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { filter: brightness(0.95); }

.btn-secondary {
  color: var(--accent-deep);
  background: var(--panel-strong);
  border-color: var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 1px rgba(34,29,24,.06);
}
.btn-secondary:hover { background: var(--pop); }

.btn-ghost { color: var(--foreground); background: transparent; }
.btn-ghost:hover { color: var(--accent-deep); }

.btn-sm { padding: .42rem .8rem; font-size: 13px; }
.btn-lg { padding: .64rem 1.3rem; font-size: 15px; }
.btn-full { width: 100%; }

/* ---------- Divider ---------- */
.rule-fade {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--hairline) 15%, var(--hairline) 85%, transparent);
}

/* ---------- Surface helper ---------- */
.glass {
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  box-shadow: 0 1px 2px rgba(34,29,24,.05), 0 10px 24px rgba(34,29,24,.06);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; max-width: var(--maxw);
  padding: 0 24px;
  border-radius: var(--radius-pill);
}
.nav-inner {
  display: flex; align-items: center; gap: 1.25rem; height: 56px; padding: 0 12px 0 18px;
  border-radius: var(--radius-pill);
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(34,29,24,.06), 0 8px 20px rgba(34,29,24,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand-dot {
  width: 18px; height: 18px; border-radius: 5px;
  display: inline-grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 9px; letter-spacing: -0.06em; line-height: 1;
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 1px rgba(80,10,25,.25);
}
.brand-dot::before { content: "sp"; transform: translateY(-0.03em); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: .3rem;
  background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500;
  color: var(--foreground); padding: .4rem .7rem; border-radius: var(--radius-md); cursor: pointer;
}
.nav-trigger:hover { background: rgba(34,29,24,.05); }
.nav-trigger .caret { transition: transform .15s ease; font-size: 10px; color: var(--muted-foreground); }
.nav-item.open .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  border-radius: var(--radius-md); padding: 6px; display: none;
  background: var(--pop); border: 1px solid var(--panel-border);
  box-shadow: 0 12px 26px rgba(34,29,24,.14);
}
.nav-item.open .dropdown { display: block; }
.dropdown a { display: block; font-size: 14px; padding: .5rem .6rem; border-radius: var(--radius-sm); color: var(--muted-foreground); }
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.nav-right { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-toggle {
  display: none; background: var(--pop); border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm); width: 38px; height: 34px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 2px; background: var(--foreground); position: relative; border-radius: 2px;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; margin: 12px 0; }
.section-head p { font-size: 16px; color: var(--muted-foreground); margin: 0; }
.band { background: var(--band); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 84px 0 68px; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: 12.5px; font-weight: 500;
  color: var(--muted-foreground); padding: .3rem .75rem; border-radius: var(--radius-pill); margin-bottom: 22px;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
}
.badge b { color: var(--foreground); }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 58px); font-weight: 700; max-width: 21ch; margin: 0 auto 18px;
  color: var(--foreground);
}
.hero .shimmer {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted-foreground); max-width: 56ch; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* Grid children default to min-width:auto, so a wide child cannot be squeezed:
   the command block in a step card is 471px at its narrowest, which forced its
   track wider than a phone viewport and scrolled the whole page sideways. Let
   the tracks shrink; .snippet's own overflow-x then scrolls inside the card. */
.grid > *, .price-grid > *, .footer-grid > * { min-width: 0; }

/* How-it-works pyramid: step 1 sits centered on top of steps 2 and 3. */
.steps-pyramid { grid-template-columns: repeat(2, 1fr); }
.steps-pyramid .step { text-align: center; }
.steps-pyramid .step-apex { grid-column: 1 / -1; justify-self: center; width: min(620px, 100%); }
@media (max-width: 760px) { .steps-pyramid { grid-template-columns: 1fr; } }

/* A one-line command with its copy button. Overrides .snippet's pre layout:
   the code scrolls on its own and the button never leaves the row. */
.cmdline { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-align: left; }
.cmdline code { flex: 1; overflow-x: auto; }
.cmdline .btn { flex: none; }

.step { position: relative; }
.step .step-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px;
  border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff;
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 1px 2px rgba(80,10,25,.25);
}

code {
  font-family: var(--font-mono); font-size: .86em;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid rgba(204,0,51,.18); border-radius: var(--radius-sm); padding: .1em .38em;
}

.card {
  position: relative; border-radius: var(--radius-lg); padding: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  box-shadow: 0 1px 2px rgba(34,29,24,.05), 0 10px 22px rgba(34,29,24,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(34,29,24,.06), 0 14px 28px rgba(34,29,24,.08); }

.feature .icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--radius-md); margin-bottom: 15px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(204,0,51,.16);
}
.feature .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted-foreground); margin: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; margin: 0 auto; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(204,0,51,.45); box-shadow: 0 2px 6px rgba(164,0,42,.12), 0 12px 26px rgba(164,0,42,.12); }
.price-badge {
  position: absolute; top: -11px; right: 16px; z-index: 2; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; color: #fff; padding: .24rem .65rem; border-radius: var(--radius-pill);
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  border: 1px solid var(--accent-deep);
}
.price-card .gpu { font-size: 17px; font-weight: 700; }
.price-card .vram { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.price-card .price { margin: 18px 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--accent-deep); }
.price-card .price span { font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 22px; font-size: 13.5px; color: var(--muted-foreground); }
.price-card li { display: flex; gap: .5rem; padding: 4px 0; }
.price-card li::before { content: "+"; color: var(--accent); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted-foreground); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
  box-shadow: 0 1px 2px rgba(34,29,24,.05), 0 10px 22px rgba(34,29,24,.05);
}
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 500;
  color: var(--foreground); padding: 18px 22px; cursor: pointer;
}
.faq-q:hover { color: var(--accent-deep); }
.faq-q .plus { color: var(--accent); font-size: 20px; transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--muted-foreground); font-size: 14.5px; }
.faq-a > div { padding: 0 22px 18px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 30px; }
.footer-inner {
  border-radius: var(--radius-lg); padding: 40px 40px 26px;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
  box-shadow: 0 1px 2px rgba(34,29,24,.05), 0 10px 22px rgba(34,29,24,.05);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid-3 { grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer .brand { margin-bottom: 12px; }
.footer .tagline { font-size: 13.5px; color: var(--muted-foreground); max-width: 30ch; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 8px 0; }
.footer li a { font-size: 14px; color: var(--muted-foreground); }
.footer li a:hover { color: var(--accent-deep); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--muted-foreground); flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 18px; }

/* ================= Console ================= */
.console-wrap { max-width: 960px; margin: 0 auto; padding: 0 24px 80px; }
.console-top { display: flex; align-items: center; gap: 1rem; height: 64px; margin-bottom: 8px; }
.console-top .brand { font-size: 16px; }
.console-top .spacer { margin-left: auto; }
.console-top .who { font-size: 13px; color: var(--muted-foreground); margin-right: 4px; }

.panel {
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
  background: var(--panel-strong); border: 1px solid var(--panel-border);
  box-shadow: 0 1px 2px rgba(34,29,24,.05), 0 10px 22px rgba(34,29,24,.05);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; }
.panel-head h2 { font-size: 18px; font-weight: 700; margin: 0; }
.panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted-foreground); }

.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-foreground); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.ptable td { padding: 12px 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable a.pname { font-weight: 600; color: var(--foreground); }
.ptable a.pname:hover { color: var(--accent-deep); }

.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: 11.5px; font-weight: 700;
  padding: .2rem .6rem; border-radius: var(--radius-pill); text-transform: capitalize; border: 1px solid transparent; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-running     { color: var(--green-deep); background: rgba(79,154,95,.14); border-color: rgba(79,154,95,.32); }
.st-spawning    { color: var(--amber); background: rgba(210,160,40,.15); border-color: rgba(210,160,40,.34); }
.st-error       { color: var(--accent-deep); background: rgba(204,0,51,.1); border-color: rgba(204,0,51,.28); }
.st-terminated  { color: var(--muted-foreground); background: rgba(107,98,90,.1); border-color: var(--hairline); }

.linkcell a { color: var(--accent-deep); font-size: 13px; }
.linkcell .muted { font-size: 13px; }

.reveal {
  display: flex; gap: 8px; align-items: center; margin-top: 12px;
  background: #241b18; color: #f0e6df; border-radius: var(--radius-md);
  padding: 12px 14px; font-family: var(--font-mono); font-size: 13px; overflow-x: auto;
}
.reveal code { background: none; border: 0; color: inherit; padding: 0; }
.reveal .btn { flex: none; }
.note { font-size: 13px; color: var(--muted-foreground); margin-top: 8px; }

/* Copy-pasteable command block (step cards, docs). A light paper inset rather
   than a dark terminal slab: on a warm-paper page inside a warm-white card, a
   near-black block was the loudest element on the screen. Scrolls on its own
   rather than widening the card on narrow screens. */
.snippet {
  margin: 12px 0 0; background: #f5f0e7; color: #4a4039;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 11px 13px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.65;
  overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch;
}
.snippet code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }

.empty { text-align: center; padding: 32px; color: var(--muted-foreground); font-size: 14px; }

.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.input {
  font-family: inherit; font-size: 14px; padding: .58rem .8rem; border-radius: var(--radius-md);
  border: 1px solid var(--panel-border); background: var(--field); color: var(--foreground); min-width: 240px; flex: 1;
  box-shadow: inset 0 1px 2px rgba(34,29,24,.05);
}
.input:focus { outline: 2px solid rgba(204,0,51,.35); outline-offset: 1px; }

.auth-card { max-width: 420px; margin: 12vh auto 0; text-align: center; }
.auth-card h1 { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.auth-card p { color: var(--muted-foreground); font-size: 14px; margin: 0 0 20px; }
.auth-card .brand { justify-content: center; margin-bottom: 20px; font-size: 20px; }

.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.meta-grid .m { padding: 14px 16px; border-radius: var(--radius-md); background: var(--pop); border: 1px solid var(--panel-border); }
.meta-grid .m .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); font-weight: 700; }
.meta-grid .m .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.biglink { display: block; font-size: 18px; font-weight: 700; color: var(--accent-deep); word-break: break-all; }
.rowgap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (max-width: 560px) { .meta-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-right .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-inner {
    border-radius: var(--radius-lg); flex-wrap: wrap; height: auto; row-gap: 0;
    /* height:auto drops the closed pill's 56px of breathing room, which left the
       brand and the toggle jammed against the top edge. Pad both ends instead. */
    padding: 10px 12px 12px 18px;
    /* Opaque while open: the panel floats over the hero copy, and a translucent
       fill plus backdrop blur let that text read through the menu. */
    background: var(--pop); backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; gap: 0; padding-top: 8px; }
  .nav.open .dropdown { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .nav.open .caret { display: none; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid-3 { grid-template-columns: 1fr; }
  .footer-inner { padding: 32px 24px 24px; }
}

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

/* ================= Docs pages ================= */
.doc { max-width: 760px; padding-top: 44px; padding-bottom: 90px; }
.doc-back { display: inline-block; font-size: 13px; color: var(--muted-foreground); margin-bottom: 20px; }
.doc-back:hover { color: var(--accent-deep); }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -.02em; margin: 8px 0 14px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.doc .lead { font-size: 19px; color: var(--muted-foreground); margin: 0 0 30px; line-height: 1.6; }
.doc p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { font-size: 16px; line-height: 1.7; margin: 6px 0; }
.doc a.link { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc a.link:hover { color: var(--accent); }
.doc hr { border: 0; border-top: 1px solid var(--hairline); margin: 34px 0; }
.doc .callout {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: 14.5px; color: var(--muted-foreground); margin: 0 0 20px;
}
.doc .callout b { color: var(--foreground); }
.doc pre {
  background: var(--pop); border: 1px solid var(--panel-border); border-radius: var(--radius-md);
  padding: 14px 16px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px;
  line-height: 1.6; margin: 0 0 20px; color: var(--foreground);
}
.doc pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.doc .steps { list-style: none; padding: 0; counter-reset: s; }
.doc .steps li { counter-increment: s; padding-left: 42px; position: relative; margin: 14px 0; }
.doc .steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700;
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
}
.person { display: flex; gap: 20px; align-items: center; margin: 4px 0 26px; }
.person .avatar {
  width: 84px; height: 84px; flex: none; border-radius: 20px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 38px; letter-spacing: -.06em;
  background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-deep));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 6px 18px rgba(164,0,42,.3);
}
.person .avatar span { transform: translateY(-.03em); }
.person .who h1 { margin: 0; font-size: 30px; }
.person .who p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 15px; }
.linkrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.btn-icon { padding: .42rem .55rem; }
.btn-icon svg { width: 16px; height: 16px; display: block; fill: currentColor; }
.who-link:hover { color: var(--accent-deep); }
.person .who h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.person .who h2 + p { margin: 4px 0 0; color: var(--muted-foreground); font-size: 14px; }

/* Compact footer (docs pages have only the bottom bar, no column grid):
   drop the empty top block so it doesn't leave a tall blank panel. */
.footer-inner > .footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-inner:has(> .footer-bottom:first-child) { padding-top: 22px; padding-bottom: 22px; }

/* Back-link should sit on its own line above the eyebrow. */
.doc-back { display: block; width: fit-content; }

/* Text selection uses the brand scarlet. */
::selection { background: var(--accent); color: #fff; }
::-moz-selection { background: var(--accent); color: #fff; }
