/* Option C "Product, dark": one deliberate dark look, closest to the decks. Real platform panels do the persuading;
   cyan is the only accent, violet only marks approvals and counts. Loaded after site.css and overrides its tokens. */
:root:not(#_) {
  --paper: #0E1626; --paper-2: #111B2E; --ink: #E8EDF5; --ink-2: #C5CEDC; --muted: #9AA7BC;
  --rule: #233049; --ref: #38BDF8; --ref-bg: #12304A; --approve: #A78BFA; --on-ink: #0E1626;
  --panel: #131D31; --panel-line: #26324A;
  --display: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { color-scheme: dark } }
body { background: var(--paper); color: var(--ink) }
h1 { letter-spacing: -0.03em }

/* Buttons: cyan primary instead of ink */
.btn { border-color: var(--panel-line); color: var(--ink); border-radius: 6px }
.btn:hover { background: var(--panel) }
.btn.primary { background: var(--ref); border-color: var(--ref); color: var(--on-ink); font-weight: 700 }
.btn.primary:hover { background: #7DD3FC; border-color: #7DD3FC }

/* Hero: the product panel replaces the margin trace */
.hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center }
.panel { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 10px; overflow: hidden; min-width: 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6) }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--panel-line); font: 13px var(--mono); color: var(--muted) }
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-line); display: inline-block }
.panel-bar span { margin-left: 8px }
.panel-body { padding: 18px 20px 20px }
.panel-title { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 10px }
.panel-title b { font: 700 17px var(--display) }
.matrix { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px }
.matrix th { font: 500 12px var(--mono); color: var(--muted); padding: 10px 10px 10px 0; text-transform: uppercase; letter-spacing: .06em }
.matrix td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--panel-line); color: var(--ink-2); font-family: var(--text); font-weight: 400; width: auto }
.matrix td.id { font: 500 14px var(--mono); color: var(--ref); white-space: nowrap }
.matrix td.n { font: 500 14px var(--mono); color: var(--approve); text-align: right; white-space: nowrap }
.matrix tr.hl td { background: rgba(56, 189, 248, 0.06) }
.panel .caption { margin-top: 12px }

/* Cards and documents read as product panels */
.doc { background: var(--panel); border-color: var(--panel-line); border-radius: 10px }
.sec.tint { background: var(--paper-2) }
.stamp { transform: none; border-radius: 999px; padding: 6px 12px; background: rgba(167, 139, 250, 0.1) }
.table-wrap { border-top-color: var(--panel-line) }
.offers { border-top-color: var(--panel-line) }
.svc:first-of-type { border-top-color: var(--panel-line) }
.form input, .form select, .form textarea { background: var(--panel); border-color: var(--panel-line); border-radius: 6px }

/* Closing band: a raised panel instead of an inverted block */
.close { background: linear-gradient(180deg, var(--paper) 0%, #0B1A33 100%); border-top: 1px solid var(--rule) }
.close h2 { color: var(--ink) }
.close p { color: var(--muted) }
.close .btn { border-color: var(--panel-line); color: var(--ink) }
.close .btn.primary { background: var(--ref); color: var(--on-ink); border-color: var(--ref) }
.close .btn:hover { background: var(--panel) }
.close .btn.primary:hover { background: #7DD3FC }
.form-error { color: #FCA5A5 }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr } }

/* Real platform screenshots */
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.shot-frame { border: 1px solid var(--panel-line); border-radius: 10px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7) }
.shot-frame .panel-bar { border-bottom: 1px solid var(--panel-line) }
.shot img { width: 100%; height: auto; display: block }
.shot figcaption { font: 14px/1.5 var(--mono); color: var(--muted) }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px }
.shots .wide { grid-column: 1 / -1 }
.svc-shot { grid-column: 1 / -1; margin-top: 8px }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr } }
