/* Prompt Management Studio website. Colors and fonts match the app (include/css/app.css). */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-300-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-700-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-400-600-latin.woff2') format('woff2');
}

:root {
  --bg: #07090c;
  --bg-elev: #0d1116;
  --surface: #12171e;
  --surface-2: #19202a;
  --border: #1f2733;
  --border-strong: #2f3a4a;
  --fg: #eef2f6;
  --fg-muted: #9aa4b1;
  --fg-dim: #616b78;
  --accent: #4ade80;
  --accent-rgb: 74, 222, 128;
  --accent-deep: #16a34a;
  --on-accent: #052e16;
  --cyan: #22d3ee;
  --cyan-rgb: 34, 211, 238;
  --crimson: #f47174;
  --violet: #a78bfa;
  --amber: #f0a02e;
  --radius: 14px;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }

a { color: var(--accent); }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-2);
  color: var(--cyan);
  padding: 1px 6px;
  border-radius: 5px;
}
.icon { flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s, background 0.15s;
}
.btn .icon { width: 16px; height: 16px; transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary {
  background: linear-gradient(180deg, #5ee891, var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 12px 32px rgba(var(--accent-rgb), 0.42); }
.btn-ghost { border-color: var(--border-strong); color: var(--fg); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--fg-dim); background: rgba(255, 255, 255, 0.05); }
.btn-light { background: #fff; color: #06130b; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.site-nav { display: flex; gap: 28px; margin-right: auto; }
.site-nav a { color: var(--fg-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ===== Hero ===== */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 1000px;
  height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), transparent),
    radial-gradient(closest-side at 30% 60%, rgba(var(--cyan-rgb), 0.14), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-muted);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 28px;
  transition: border-color 0.15s, color 0.15s;
}
.pill:hover { border-color: rgba(var(--accent-rgb), 0.5); color: var(--fg); }
.pill .icon { width: 14px; height: 14px; }
.pill-tag {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 940px;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent) 0%, #86efac 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--fg-muted); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-dim);
}
.trust li { display: flex; align-items: center; gap: 6px; }
.trust .icon { width: 16px; height: 16px; color: var(--accent); }

/* ===== App window (hero screenshot) ===== */
.window {
  position: relative;
  margin: 72px auto 0;
  max-width: 1080px;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border-strong);
  border-bottom: none;
  background: var(--bg-elev);
  box-shadow: 0 -20px 80px rgba(var(--accent-rgb), 0.08), 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.window::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-title { margin-left: 12px; font-size: 12px; color: var(--fg-dim); }
/* Real app screenshot inside the window frame */
.window-shot { display: block; width: 100%; height: auto; }

/* ===== Stats ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elev); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 32px 24px; display: grid; gap: 4px; border-left: 1px solid var(--border); }
.stats-grid div:first-child { border-left: none; }
.stats strong { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--fg-muted); font-size: 14px; }

/* ===== Sections ===== */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.section-head h2, .cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.section-head p { color: var(--fg-muted); font-size: 18px; }
.section-head .eyebrow { color: var(--accent); font-size: 13px; }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.06));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--accent);
  margin-bottom: 18px;
}

/* Spotlight rows */
.spotlight { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-bottom: 112px; }
.spotlight.reverse .spotlight-copy { order: 2; }
.spotlight h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.spotlight-copy > p { color: var(--fg-muted); font-size: 17px; margin-bottom: 22px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; color: var(--fg); font-size: 15px; }
.checks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.spotlight-visual { position: relative; }
.spotlight-visual::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent);
  filter: blur(30px);
}
.shot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.shot-narrow { max-width: 420px; margin: 0 auto; }
/* A small detail (e.g. the export menu) overlapping the corner of a screenshot */
.shot-inset {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 34%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature { background: var(--bg); padding: 32px 28px; transition: background 0.2s; }
.feature:hover { background: var(--bg-elev); }
.feature h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature p { color: var(--fg-muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-elev));
}
.step-num { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 20px; }
.steps h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--fg-muted); font-size: 15px; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--fg-dim); transition: transform 0.2s, color 0.2s; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover .icon { color: var(--fg); }
.faq details p { color: var(--fg-muted); padding: 0 4px 22px; max-width: 700px; }

/* CTA */
.cta-section { padding-top: 0; }
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 32px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, #16a34a 0%, #0f766e 55%, #0e7490 100%);
  box-shadow: 0 40px 100px rgba(var(--accent-rgb), 0.18);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, 0.85); font-size: 18px; margin-bottom: 32px; }

/* ===== Text pages (legal) ===== */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.prose h1 { font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; margin-bottom: 8px; }
.prose .updated { color: var(--fg-dim); font-size: 14px; margin-bottom: 24px; }
.prose h2 { font-family: var(--font-display); font-size: 21px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose ul { color: var(--fg-muted); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--fg); }
.prose em { color: var(--fg-dim); font-size: 14px; }
.notice {
  margin: 24px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 113, 116, 0.4);
  background: rgba(244, 113, 116, 0.08);
  border-radius: 10px;
  color: var(--fg);
  font-size: 14px;
}

/* ===== Docs ===== */
.doc-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-side { position: sticky; top: 88px; padding-top: 64px; display: grid; gap: 14px; }
.doc-side-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); font-weight: 600; }
.doc-nav { display: grid; gap: 2px; }
.doc-nav a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--fg-muted); border: 1px solid transparent; }
.doc-nav a:hover { background: var(--bg-elev); color: var(--fg); }
.doc-nav a[aria-current="page"] { background: var(--surface); border-color: var(--border-strong); color: var(--fg); }
.doc-nav span { font-weight: 600; font-size: 14px; }
.doc-nav small { font-size: 12px; color: var(--fg-dim); }
.doc-cta { justify-self: start; margin-top: 8px; }
.doc-body { padding-left: 0; padding-right: 0; margin: 0; }
.doc-body.doc-wide { max-width: 1000px; }
.doc-body .eyebrow { margin-bottom: 8px; }
.doc-lead { font-size: 18px; color: var(--fg-muted); margin-bottom: 28px; }
.prose h2 { scroll-margin-top: 88px; }
.prose h3 { font-family: var(--font-display); font-size: 17px; margin: 28px 0 8px; color: var(--fg); scroll-margin-top: 88px; }
.prose ol { color: var(--fg-muted); margin-bottom: 14px; padding-left: 22px; }
.prose a { color: var(--accent); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose pre { margin: 0 0 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--border); overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--fg); }
.prose pre code { background: none; padding: 0; border: 0; font-size: inherit; color: inherit; }
.prose kbd { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface); color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border-strong); }
.prose td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--fg-muted); vertical-align: top; }
.prose td code { white-space: nowrap; }
.prose figure { margin: 8px 0 28px; }
.prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border-strong); border-radius: 12px; }
.prose figure.narrow img { max-width: 460px; }
.prose figcaption { font-size: 13px; color: var(--fg-dim); margin-top: 8px; }
.prose .toc { padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); margin-bottom: 32px; }
.prose .toc ol { margin: 6px 0 0; columns: 2; column-gap: 32px; }
.prose .toc li { margin-bottom: 4px; }
.prose .tip { padding: 12px 16px; border-left: 3px solid var(--accent); background: rgba(var(--accent-rgb), 0.06); border-radius: 0 10px 10px 0; color: var(--fg-muted); margin: 0 0 16px; font-size: 15px; }
.prose .tip strong { color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.table-scroll table { margin: 0; min-width: 640px; }

/* Changelog */
.release + .release { border-top: 1px solid var(--border); margin-top: 40px; }
.release h2 { color: var(--fg); }
.release h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* Providers page */
.prov-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.prov-stats div { background: var(--bg-elev); padding: 16px 18px; display: grid; gap: 2px; }
.prov-stats strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; }
.prov-stats span { font-size: 13px; color: var(--fg-muted); }
.prov-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 40px; }
.prov-jump a { font-size: 13px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg-muted); text-decoration: none; background: var(--bg-elev); }
.prov-jump a:hover { border-color: var(--accent); color: var(--fg); }
.prov { padding-top: 8px; margin-bottom: 36px; scroll-margin-top: 80px; }
.prov-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; }
.prov-head h2 { margin: 0 6px 0 0; }
.prov-key { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; }
.prov-key .icon { width: 14px; height: 14px; }
.prov-note { font-size: 14px; }
.prov-note.warn { color: #f8a5a7; }
.prov-url { font-size: 13px; color: var(--fg-dim); }
.prov-url code { font-size: 12px; word-break: break-all; }
.prov-model { color: var(--fg); }
.prov-id { font-size: 11.5px; color: var(--fg-dim); }
.prov-source { font-size: 13px; color: var(--fg-dim); border-top: 1px solid var(--border); padding-top: 16px; }
.prose td.num, .prose th.num { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--fg-muted); white-space: nowrap; }
.badge-warn { background: rgba(244, 113, 116, 0.12); color: #f47174; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); font-size: 14px; color: var(--fg-dim); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: var(--fg-muted); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h4 { font-size: 13px; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--fg-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid var(--border); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-side { position: static; padding-top: 32px; }
  .doc-nav { grid-template-columns: repeat(2, 1fr); }
  .doc-cta { display: none; }
  .doc-body { padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .spotlight { grid-template-columns: 1fr; gap: 36px; margin-bottom: 80px; }
  .spotlight.reverse .spotlight-copy { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: none; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .prose > table { display: block; overflow-x: auto; }   /* wide Markdown tables scroll instead of the page */
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 56px; }
  .lead { font-size: 17px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .shot-inset { right: -6px; bottom: -16px; width: 42%; }
}
@media (max-width: 560px) {
  .prose .toc ol { columns: 1; }
  .prov-stats { grid-template-columns: 1fr; }
  .prov-key { margin-left: 0; width: 100%; }
  .container { padding: 0 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid div { border-left: none; border-top: 1px solid var(--border); padding: 22px 8px; }
  .stats-grid div:first-child { border-top: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cta-card { padding: 56px 20px; border-radius: 18px; }
}

/* Screenshots open full size */
.shot-link { display: block; position: relative; cursor: zoom-in; }
.shot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.shot-link:hover .shot { border-color: rgba(var(--accent-rgb), 0.5); }
