/* ============================================================
   PhotoFresco marketing landing — dark, cinematic, confident.
   Self-contained: system fonts only, no external assets.
   ============================================================ */

:root {
  --bg: #101216;
  --bg-raised: #15171c;
  --surface: #1b1e25;
  --surface-2: #21252e;
  --line: rgba(230, 233, 238, 0.08);
  --line-strong: rgba(230, 233, 238, 0.14);
  --text: #e6e9ee;
  --text-dim: #9aa3b2;
  --text-faint: #6b7280;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --amber: #f0a35e;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-lg: 18px;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, #4b8ef8 0%, #2f6fe0 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 24px -8px rgba(59, 130, 246, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 14px 32px -10px rgba(59, 130, 246, 0.7);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(230, 233, 238, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(230, 233, 238, 0.08);
  border-color: rgba(230, 233, 238, 0.24);
  transform: translateY(-1px);
}

.btn-lg { font-size: 17px; padding: 17px 32px; border-radius: 13px; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 22, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: url(/logo-mark.svg) center / contain no-repeat;
}

.brand-word {
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.brand .fresco {
  background-image: linear-gradient(105deg, #8ab4ff 0%, #b98ad8 55%, #f3ac5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--text-dim);
}

.nav-links a:not(.btn) { transition: color 0.15s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav .btn { font-size: 14px; padding: 10px 18px; border-radius: 10px; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 0;
  overflow: hidden;
}

/* layered atmosphere: blue key light + a sunset ember echoing the artwork */
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 900px;
  background:
    radial-gradient(560px 420px at 72% 30%, rgba(224, 118, 59, 0.16), transparent 68%),
    radial-gradient(820px 560px at 30% 12%, rgba(59, 130, 246, 0.2), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 233, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 233, 238, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(230, 233, 238, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}

.hero h1 {
  font-size: clamp(42px, 6.6vw, 76px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 14ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 20%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; /* fallback */
}

.hero h1 .free {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 55%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 56ch;
  text-wrap: balance;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* hero screenshot in a window frame */

.hero-shot {
  position: relative;
  z-index: 1;
  margin: 72px auto 0;
  max-width: 1120px;
  padding: 0 24px;
}

.window {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 30px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 120px -30px rgba(59, 130, 246, 0.25);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: linear-gradient(180deg, #23272f 0%, #1d2129 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.window-bar .wdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(230, 233, 238, 0.16);
}

.window-bar .wdot:nth-child(1) { background: #f66a5c; }
.window-bar .wdot:nth-child(2) { background: #f5bf4f; }
.window-bar .wdot:nth-child(3) { background: #63c554; }

.window-bar .wurl {
  margin-left: 12px;
  flex: 1;
  max-width: 380px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window img { width: 100%; }

.hero-fade {
  position: relative;
  height: 110px;
  margin-top: -110px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ---------- ticker strip ---------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 20px 0;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.strip-inner svg { color: var(--accent); flex: none; }

/* ---------- features ---------- */

.features { padding: 110px 0 40px; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17.5px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
}

.feature + .feature { border-top: 1px solid var(--line); }

.feature.flip .feature-media { order: 2; }
.feature.flip .feature-copy { order: 1; }

.feature-copy .kicker { margin-bottom: 16px; }

.feature-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17px;
}

.feature-copy .points {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 11px;
}

.feature-copy .points li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-dim);
}

.feature-copy .points li strong { color: var(--text); font-weight: 600; }

.points .check {
  flex: none;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7fb0fa;
}

.feature-media { position: relative; min-width: 0; }

.feature-media .glow {
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(59, 130, 246, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.feature-media.warm .glow {
  background: radial-gradient(60% 60% at 50% 50%, rgba(224, 118, 59, 0.14), transparent 70%);
}

.shot {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 60px -18px rgba(0, 0, 0, 0.6);
}

.shot img { width: 100%; }

/* cropped viewport: zooms a screenshot region (keeps text in shots legible) */
.shot.crop { aspect-ratio: 4 / 3.1; }

.shot.crop img {
  position: absolute;
  width: 172%;
  max-width: none;
  top: 0;
  right: 0;
}

.shot-caption {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shot-caption::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

/* privacy "network monitor" card (feature 3 has no screenshot — build one) */

.netmon {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 24px 60px -18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.netmon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.netmon-bar .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34d399;
}

.netmon-bar .live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 7px rgba(52, 211, 153, 0.9);
}

.netmon-rows { padding: 8px 0; }

.netmon-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
}

.netmon-row + .netmon-row { border-top: 1px solid rgba(230, 233, 238, 0.045); }

.netmon-row .op { color: var(--text); }
.netmon-row .op .path { color: var(--text-dim); }

.netmon-row .val { color: var(--text-dim); white-space: nowrap; }
.netmon-row .val.ok { color: #34d399; }

.netmon-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line-strong);
  background: rgba(52, 211, 153, 0.06);
  color: #34d399;
  font-weight: 600;
}

.netmon-total .zero { font-size: 22px; letter-spacing: -0.02em; }

/* pricing chips under the premium feature */

.price-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.price-chip {
  border: 1px solid var(--line-strong);
  background: rgba(230, 233, 238, 0.03);
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.45;
}

.price-chip b {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.price-chip.hot {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--accent-soft);
}

.price-chip.hot b { color: #9cc1fb; }

.price-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.price-note + .price-note { margin-top: 6px; }

.price-note strong { color: var(--text); }

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  /* copy leads on small screens; the shot follows it */
  .feature .feature-copy,
  .feature.flip .feature-copy { order: 1; }
  .feature .feature-media,
  .feature.flip .feature-media { order: 2; }
  .features { padding: 72px 0 20px; }
}

/* ---------- final CTA ---------- */

.cta {
  position: relative;
  margin: 40px 0 0;
  padding: 96px 0 108px;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: auto -20% -60%;
  height: 620px;
  background:
    radial-gradient(500px 340px at 66% 80%, rgba(224, 118, 59, 0.13), transparent 70%),
    radial-gradient(700px 460px at 38% 90%, rgba(59, 130, 246, 0.22), transparent 68%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.cta h2 .free {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 60%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 18px;
  max-width: 48ch;
  text-wrap: balance;
}

.cta .hero-ctas { margin-top: 34px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
}

.footer .brand { font-size: 15px; }
.footer .brand-mark { width: 22px; height: 22px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }

.footer-legal {
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #565d6b;
}

/* ---------- entrance animation (CSS only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
  }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.16s; }
  .rise-3 { animation-delay: 0.27s; }
  .rise-4 { animation-delay: 0.38s; }
  .rise-5 { animation-delay: 0.52s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   PhotoFresco docs — reference-material layer over the landing
   design system. Appended after landing.css by scripts/
   build-site.mjs (tokens, nav, footer, buttons come from there).

   Layout: three-rail Stripe/Linear-style shell —
     sidebar (topic tree + search) · article · "On this page" ToC
   Collapses to a toggleable sidebar below 981px; the ToC rail
   drops below 1180px. Behavior lives in src/landing/docs.js.
   ============================================================ */

.docs-page {
  position: relative;
  min-height: 60vh;
}

/* faint key light echoing the landing hero, dimmer than the blog's */
.docs-page::before {
  content: '';
  position: absolute;
  inset: -20% -20% auto;
  height: 480px;
  background:
    radial-gradient(420px 300px at 78% 12%, rgba(224, 118, 59, 0.05), transparent 68%),
    radial-gradient(640px 400px at 22% 0%, rgba(59, 130, 246, 0.07), transparent 65%);
  pointer-events: none;
}

.docs-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 208px;
  gap: 56px;
  max-width: 1320px;
  padding: 40px 32px 96px;
}

/* ---------- sidebar ---------- */

.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 233, 238, 0.14) transparent;
}

.docs-nav { margin-top: 22px; }

.docs-nav-group + .docs-nav-group { margin-top: 26px; }

.docs-nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 10px 7px;
}

.docs-nav ul { list-style: none; display: grid; gap: 1px; }

.docs-nav a {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.13s ease, background 0.13s ease;
}

.docs-nav a:hover {
  color: var(--text);
  background: rgba(230, 233, 238, 0.05);
}

.docs-nav a[aria-current='page'] {
  color: #9cc1fb;
  font-weight: 600;
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.22);
}

/* ---------- search ---------- */

.docs-search {
  position: relative;
}

.docs-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.docs-search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 34px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: rgba(230, 233, 238, 0.045);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.docs-search input::placeholder { color: var(--text-faint); }

.docs-search input:focus {
  border-color: rgba(59, 130, 246, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.docs-search input::-webkit-search-cancel-button { display: none; }

.docs-search-hint {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font: 600 11px/1 var(--font-mono);
  color: var(--text-faint);
  background: rgba(230, 233, 238, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 4px 7px;
  pointer-events: none;
}

.docs-search.is-searching .docs-search-hint { display: none; }

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  padding: 6px;
}

.docs-search-results a {
  display: block;
  padding: 9px 11px;
  border-radius: 8px;
}

.docs-search-results a .result-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.docs-search-results a .result-section {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: none;
  margin-left: auto;
}

.docs-search-results a .result-context {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--text-dim);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search-results mark {
  background: none;
  color: #9cc1fb;
  font-weight: 600;
}

.docs-search-results a:hover,
.docs-search-results a.active {
  background: var(--accent-soft);
}

.docs-search-results a.active .result-title { color: #cfe0fd; }

.docs-search-results .no-results {
  padding: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

/* hero variant on the docs index */

.docs-search-hero { max-width: 560px; margin-top: 28px; }

.docs-search-hero input {
  height: 48px;
  font-size: 15px;
  border-radius: 12px;
  padding-left: 40px;
}

.docs-search-hero .docs-search-icon { left: 14px; width: 17px; height: 17px; }

/* ---------- mobile nav toggle ---------- */

.docs-scrim { display: none; }

.docs-nav-toggle {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 55;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  font: 500 14px/1 var(--font-sans);
  color: var(--text-dim);
  text-align: left;
  background: rgba(21, 23, 28, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.docs-nav-toggle svg { width: 15px; height: 15px; flex: none; }

.docs-nav-toggle .toggle-section { color: var(--text); font-weight: 600; }
.docs-nav-toggle .toggle-sep { color: var(--text-faint); }
.docs-nav-toggle .toggle-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- article ---------- */

.docs-article {
  min-width: 0;
  max-width: 720px;
}

.docs-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.docs-crumbs a { color: var(--accent); transition: color 0.14s ease; }
.docs-crumbs a:hover { color: #9cc1fb; }
.docs-crumbs .sep { color: var(--text-faint); }

.docs-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 25%, #b9c2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.docs-lede {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  text-wrap: pretty;
}

.docs-head { margin-bottom: 36px; }

/* index hero variant */

.docs-index-head { margin-bottom: 48px; }

.docs-index-head h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  margin-top: 4px;
}

.docs-index-head .accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #f6c177 0%, #e0763b 55%, #f6c177 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.docs-index-head .kicker { margin-bottom: 14px; }

/* ---------- docs body — sans reference typography ---------- */

.docs-body {
  font-size: 15.5px;
  line-height: 1.72;
  color: #c3cad6;
}

.docs-body > * + * { margin-top: 1.1em; }

.docs-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2.6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  text-wrap: balance;
  scroll-margin-top: 88px;
}

.docs-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.docs-body h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-top: 1.9em;
  scroll-margin-top: 88px;
}

.docs-body h4 {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-top: 1.6em;
  scroll-margin-top: 88px;
}

.docs-body strong { color: var(--text); font-weight: 600; }

.docs-body a {
  color: #8ab4ff;
  text-decoration: underline;
  text-decoration-color: rgba(138, 180, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.docs-body a:hover {
  color: #aecbff;
  text-decoration-color: rgba(138, 180, 255, 0.8);
}

.docs-body ul,
.docs-body ol {
  padding-left: 1.35em;
  display: grid;
  gap: 0.45em;
}

.docs-body li::marker { color: var(--text-faint); }

/* blockquotes read as note callouts in reference material */
.docs-body blockquote {
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left: 3px solid rgba(59, 130, 246, 0.65);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.07);
  padding: 13px 17px;
  color: #c3cad6;
  font-size: 14.5px;
}

.docs-body blockquote p + p { margin-top: 0.7em; }

.docs-body hr {
  border: 0;
  height: 1px;
  background: var(--line-strong);
  margin: 2.2em 0;
}

.docs-body code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: #d7dde8;
  background: rgba(230, 233, 238, 0.07);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

.docs-body pre {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

.docs-body pre code { background: none; border: 0; padding: 0; white-space: pre; font-size: inherit; }

.docs-body kbd {
  font: 600 0.78em/1.5 var(--font-mono);
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

.docs-body .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.docs-body th,
.docs-body td {
  text-align: left;
  padding: 10px 14px;
  vertical-align: top;
}

.docs-body th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.docs-body td { border-bottom: 1px solid var(--line); color: var(--text-dim); }
.docs-body tr:last-child td { border-bottom: 0; }
.docs-body td strong, .docs-body td code, .docs-body td kbd { color: var(--text); }

.docs-body figure { margin: 1.6em 0; }

.docs-body img {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 18px 44px -16px rgba(0, 0, 0, 0.5);
}

/* shortcuts page bits (generated by build-site.mjs) */

.docs-body .shortcut-table td:nth-child(2),
.docs-body .shortcut-table td:nth-child(3) { white-space: nowrap; width: 1%; }

.docs-body .note-ref {
  color: var(--amber);
  text-decoration: none;
  font-weight: 700;
  padding: 0 2px;
}

.docs-body .shortcut-note {
  border: 1px solid rgba(240, 163, 94, 0.28);
  border-left: 3px solid rgba(240, 163, 94, 0.6);
  border-radius: 10px;
  background: rgba(240, 163, 94, 0.06);
  padding: 13px 17px;
  font-size: 14.5px;
}

.docs-body .shortcut-note + .shortcut-note { margin-top: 10px; }

.docs-body .shortcut-note-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.docs-body .shortcut-note-head strong { flex: 1 1 auto; }

.docs-body .shortcut-note-head .chords {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.docs-body .shortcut-note-head .platform {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 4px;
}

.docs-body .shortcut-note p { margin-top: 6px; color: var(--text-dim); font-size: 13.5px; }

/* ---------- updated stamp / pager / CTA ---------- */

.docs-updated {
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.docs-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.pager-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.2s ease;
}

.pager-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.6);
}

.pager-card.next { text-align: right; }

.pager-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pager-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pager-spacer { visibility: hidden; }

.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(340px 160px at 8% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
}

.docs-cta p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 46ch;
}

.docs-cta p strong { color: var(--text); }

.docs-cta .btn { flex: none; font-size: 14px; padding: 11px 20px; border-radius: 10px; }

/* ---------- "On this page" ToC rail ---------- */

.docs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 13px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 233, 238, 0.14) transparent;
}

.docs-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.docs-toc ul {
  list-style: none;
  border-left: 1px solid var(--line-strong);
  display: grid;
}

.docs-toc a {
  display: block;
  padding: 4px 0 4px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-dim);
  line-height: 1.45;
  transition: color 0.13s ease, border-color 0.13s ease;
}

.docs-toc li.lv3 a { padding-left: 26px; font-size: 12.5px; }

.docs-toc a:hover { color: var(--text); }

.docs-toc a.active {
  color: #9cc1fb;
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ---------- docs index cards ---------- */

.docs-index-group + .docs-index-group { margin-top: 44px; }

.docs-index-group h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.docs-index-group h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raised) 100%);
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 18px 40px -16px rgba(0, 0, 0, 0.55), 0 0 46px -20px rgba(59, 130, 246, 0.35);
}

.docs-card h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}

.docs-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.docs-card-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.docs-card:hover .docs-card-more { color: #9cc1fb; }
.docs-card .docs-card-more .arrow { transition: transform 0.15s ease; }
.docs-card:hover .docs-card-more .arrow { transform: translateX(3px); }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 236px minmax(0, 1fr); gap: 44px; }
  .docs-toc { display: none; }
}

@media (max-width: 980px) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 28px 24px 72px;
  }

  .docs-nav-toggle { display: flex; }

  /* sidebar becomes a dropdown panel under the toggle bar */
  .docs-sidebar {
    display: none;
    position: fixed;
    top: calc(64px + 42px);
    left: 0;
    right: 0;
    z-index: 54;
    max-height: calc(100dvh - 106px);
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    padding: 18px 24px 28px;
  }

  .docs-page.nav-open .docs-sidebar { display: block; }
  .docs-page.nav-open .docs-nav-toggle { color: var(--text); }

  /* scrim behind the open panel; docs.js closes on tap */
  .docs-page.nav-open .docs-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 53;
    background: rgba(8, 9, 11, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .docs-head { margin-bottom: 28px; }
  .docs-index-head { margin-bottom: 36px; }
  .docs-pager { grid-template-columns: 1fr; }
  .pager-card.next { text-align: left; }
  .docs-cta { padding: 18px 20px; }
  .docs-cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .docs-shell { padding: 22px 18px 60px; }
  .docs-body { font-size: 15px; }
  .docs-lede { font-size: 15.5px; }
  .docs-card-grid { grid-template-columns: 1fr; }
}
