/* csaspaces.com landing page. Static CSS, no build step, no JavaScript.
 * Colors are the CSAspaces design tokens in ../shared/theme.json (checked by
 * scripts/check-site.mjs); type is the native system sans serif, like the app. */
:root {
  --bg: #f6f8fc;
  --surface: #fcfdff;
  --text: #202b3f;
  --muted: #59677e;
  --primary: #315bc7;
  --primary-text: #ffffff;
  --border: #cbd3e1;
  --sidebar: #e9eef7;
  --panel: #f0f4fa;
  --band: #172031;
  --band-text: #edf1f9;
  --band-muted: #aab8ce;
  --band-accent: #a6bfff;
  --ok: #1d6b45;
  --radius: 12px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151b27;
    --surface: #1c2433;
    --text: #edf1f9;
    --muted: #aab8ce;
    --primary: #a6bfff;
    --primary-text: #151b27;
    --border: #46536a;
    --sidebar: #172031;
    --panel: #222e43;
    --band: #101827;
    --ok: #7fd1a4;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--primary); color: var(--primary-text);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0; }
.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; display: grid; gap: 14px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 24px;
  border-radius: 8px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.band .btn-secondary { color: var(--band-text); border-color: #46536a; }
.band .btn-secondary:hover { border-color: var(--band-accent); color: var(--band-accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-weight: 800; }
.brand span { font-weight: 400; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: .9375rem; font-weight: 500; }
.nav a:not(.btn):hover { background: var(--panel); }
.nav .btn { min-height: 44px; padding: 8px 18px; margin-left: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--primary); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 300px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; display: grid; box-shadow: 0 12px 32px rgb(0 0 0 / .18); }
.menu-panel a { padding: 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.menu-panel a:hover { background: var(--panel); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); justify-items: center; }
.hero-copy { text-align: center; max-width: 820px; display: grid; justify-items: center; }
.hero-copy .actions { justify-content: center; }
.hero .shot { width: 100%; max-width: 1040px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { margin: 20px 0 28px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 24px 60px -24px rgb(32 43 63 / .35); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--sidebar); border-bottom: 1px solid var(--border); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot figcaption { padding: 10px 14px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--border); background: var(--surface); }

/* Proof strip */
.strip { border-block: 1px solid var(--border); background: var(--surface); }
.strip ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--muted); font-size: .96875rem; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--panel); color: var(--primary); display: grid; place-items: center; margin-bottom: 4px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; }

/* Dark band (bots) */
.band { background: var(--band); color: var(--band-text); }
.band .kicker { color: var(--band-accent); }
.band .lede, .band p { color: var(--band-muted); }
.band h2, .band h3 { color: var(--band-text); }
.band .card { background: #1c2433; border-color: #46536a; }
.band .card p { color: var(--band-muted); }
.band .icon { background: #222e43; color: var(--band-accent); }
.band a:not(.btn) { color: var(--band-accent); }
.bot-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (max-width: 900px) { .bot-grid { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--primary); color: var(--primary-text); }
.band .steps li::before { background: var(--band-accent); color: #101827; }
.steps strong { display: block; color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border: 1px solid #46536a; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--band-text); }
.post { margin-top: 24px; border: 1px solid #46536a; border-radius: var(--radius); padding: 16px 18px; background: #1c2433; display: grid; gap: 4px; }
.post .who { font-weight: 700; color: var(--band-text); }
.post .badge { font-size: .6875rem; font-weight: 800; letter-spacing: .06em; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--band-accent); color: var(--band-accent); margin-left: 6px; vertical-align: 1px; }
.post .meta { font-size: .8125rem; color: var(--band-muted); }

/* Deployment */
.deploy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .deploy-grid { grid-template-columns: 1fr; } }
.deploy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.deploy-card ul, .list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.deploy-card li, .list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .96875rem; }
.deploy-card li::before, .list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg) translateY(-50%); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8125rem; background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre; color: var(--text); }
.placeholder { border: 2px dashed var(--primary); background: var(--panel); border-radius: var(--radius); padding: 16px 18px; font-size: .9375rem; color: var(--text); }
.placeholder strong { color: var(--primary); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .96875rem; }
caption { text-align: left; padding: 16px 18px; font-weight: 700; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
thead th { background: var(--sidebar); font-size: .875rem; border-top: 0; }
tbody th { font-weight: 600; width: 24%; }
td.nw { white-space: nowrap; }
td.yes::before { content: "✓ "; color: var(--ok); font-weight: 800; }
td { color: var(--muted); }
td.us { color: var(--text); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.fine { font-size: .8125rem; color: var(--muted); margin-top: 14px; max-width: 80ch; }

/* Platforms */
.platform { text-align: center; justify-items: center; }
.platform .icon { width: 48px; height: 48px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 52px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* CTA + footer */
.cta { background: var(--primary); color: var(--primary-text); text-align: center; }
.cta h2 { color: inherit; }
.cta p { color: inherit; opacity: .92; max-width: 56ch; margin-inline: auto; }
.cta .actions { justify-content: center; margin-top: 8px; }
.cta .btn-primary { background: var(--primary-text); color: var(--primary); }
.cta .btn-secondary { color: var(--primary-text); border-color: color-mix(in srgb, var(--primary-text) 60%, transparent); }
.cta .btn-secondary:hover { color: var(--primary-text); border-color: var(--primary-text); }
.cta a:not(.btn) { color: inherit; }
footer { padding: 40px 0 48px; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--muted); display: inline-block; padding: 6px 0; }
.foot a:hover { color: var(--primary); }
.legal { margin-top: 24px; font-size: .8125rem; max-width: 90ch; }

/* Not found */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 20px; }
.nf .actions { justify-content: center; margin-top: 20px; }

/* Layout helpers (kept out of the HTML so the page needs no inline styles) */
.sprite { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.shot { margin: 0; }
.alt { background: var(--surface); border-block: 1px solid var(--border); }
.grid.top { align-items: start; gap: 40px; }
.section-head.sub { margin: 56px 0 24px; }
.section-head.sub h3 { font-size: 1.5rem; }
.bot-cards { margin-top: 48px; }
.band .lede { margin-top: 14px; }
.deploy-card > p { color: var(--muted); }
.deploy-card .fine { margin: 0; }
.placeholder { margin-top: 20px; }
.cta-inner { display: grid; gap: 16px; }
.cta-inner .small { font-size: .9375rem; }
.foot .brand + p { margin-top: 10px; }
.section-head .lede { margin: 0; }
