/* The Operative console's look (web/operative-app.html: brand tokens, ops-kpis,
 * ops-panel), for a public page. Same font stacks, so nothing loads from elsewhere. */
:root {
  color-scheme: dark;
  --cd-base:         #0A0A0A;
  --cd-surface:      #141414;
  --cd-panel:        #1A1A1A;
  --cd-charcoal:     #0D0D0D;
  --cd-border:       #262626;
  --cd-border-light: #333333;
  --cd-tangerine:    #FF6B00;
  --cd-tangerine-hover: #E56000;
  --cd-white:        #F0EBE1;
  --cd-muted:        #8A857D;
  --cd-dark:         #52525B;
  --cd-font-sans:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --cd-font-serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --cd-font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --accent: var(--cd-tangerine);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cd-base);
  color: var(--cd-white);
  font-family: var(--cd-font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--cd-base); }

.wrap {
  min-height: 100vh;
  background: radial-gradient(circle at 78% 0%, rgba(255, 107, 0, .07), transparent 30%), var(--cd-base);
}
.inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }

/* masthead: the marketing site's header, carrying the logo alone — this page is
 * not part of that nav, so none of its links or CTAs belong here. Values mirror
 * common-defense-web/src/components/Header.astro: a 64px sticky bar, the base
 * colour at 80% over a 12px blur, a hairline of cd-white at 10%, and its
 * px-6/md:12/lg:20/xl:32 run-in. The logo ships beside the page and loads by
 * relative path, so it is same-origin on both of the page's hosts and passes
 * the CSP's img-src 'self'. The wordmark falls back to Georgia: Lora is bundled
 * into the marketing site's hashed /_astro/ paths, and this page has no
 * font-src to load it with. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(240, 235, 225, .1);
  background: rgba(10, 10, 10, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-inner { height: 64px; display: flex; align-items: center; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cd-white); }
.brand-logo { width: 32px; height: 32px; object-fit: contain; }
.brand-name { font-family: var(--cd-font-serif); font-size: 15px; font-weight: 400; letter-spacing: -.02em; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (min-width: 768px)  { .site-header-inner { padding: 0 48px; } }
@media (min-width: 1024px) { .site-header-inner { padding: 0 80px; } }
@media (min-width: 1280px) { .site-header-inner { padding: 0 128px; } }

/* header: kicker, serif title, muted subtitle, mono sub-line */
.kicker { font-family: var(--cd-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.title { max-width: 26ch; text-wrap: balance; margin: 8px 0 0; font-family: var(--cd-font-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }
.subtitle { max-width: 760px; margin: 12px 0 0; color: var(--cd-muted); font-size: 14px; }
.sub { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-muted); letter-spacing: .06em; text-transform: uppercase; }
.sub b { color: var(--accent); font-weight: 400; }
.hero { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--cd-border); }

.note { padding: 12px; border: 1px solid var(--cd-border); background: var(--cd-charcoal); font-size: 12px; color: var(--cd-muted); }

/* KPI strip, as .ops-kpis, sized up for a page people read */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--cd-border); border-right: 0; border-bottom: 0; margin-bottom: 18px; }
.kpi { padding: 18px 18px 16px; border-right: 1px solid var(--cd-border); border-bottom: 1px solid var(--cd-border); background: rgba(13, 13, 13, .9); }
.kpi.lead { background: linear-gradient(180deg, rgba(255, 107, 0, .08), rgba(13, 13, 13, .9) 70%); box-shadow: inset 0 2px 0 var(--accent); }
.kpi .n { font-family: var(--cd-font-mono); font-size: 34px; line-height: 1.1; letter-spacing: -.01em; }
.kpi.lead .n { color: var(--accent); }
.kpi .l { margin-top: 6px; font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-muted); letter-spacing: .1em; text-transform: uppercase; }
.kpi .parts { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--cd-border); font-family: var(--cd-font-mono); font-size: 10px; color: var(--cd-dark); }
.kpi .parts li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.kpi .parts b { color: var(--cd-white); font-weight: 400; }

/* panels, as .ops-panel */
.panel { border: 1px solid var(--cd-border); background: rgba(20, 20, 20, .86); margin-bottom: 18px; }
.panel-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--cd-border); }
.panel-title { font-family: var(--cd-font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.panel-meta { font-family: var(--cd-font-mono); font-size: 9px; color: var(--cd-dark); text-align: right; }

/* how we count */
.how { margin: 0; }
.how > div { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 6px 24px; padding: 14px 15px; border-top: 1px solid var(--cd-border); }
.how > div:first-child { border-top: 0; }
.how dt { font-family: var(--cd-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.how dd { margin: 0; color: var(--cd-muted); font-size: 13px; max-width: 76ch; }

/* closing CTA, as .panel with the hero's tangerine wash */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--cd-border); background: linear-gradient(180deg, rgba(255, 107, 0, .06), rgba(20, 20, 20, .86) 70%); }
.cta-title { font-family: var(--cd-font-serif); font-size: 20px; }
.cta-sub { margin: 6px 0 0; max-width: 56ch; color: var(--cd-muted); font-size: 13px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 10px 18px; font-family: var(--cd-font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--cd-base); }
.btn-primary:hover { background: var(--cd-tangerine-hover); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.foot { margin-top: 26px; font-family: var(--cd-font-mono); font-size: 10px; letter-spacing: .04em; color: var(--cd-dark); }

@media (max-width: 640px) {
  .inner { padding-top: 28px; }
  .kpi .n { font-size: 28px; }
  .how > div { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .btn { display: block; text-align: center; }
}
