/* Viska state-of-project update — long-scroll deck
 * Brand: viska.brand.json#marketing_register (navy + gold, system-ui, Nordic restraint)
 * Mode: hybrid IS chrome + EN narrative (per feedback_narrative_never_translated)
 * Density: aggressive compression (per feedback_client_deck_brevity)
 */

:root {
  --navy: #253F59;
  --navy-deep: #1A2D3F;
  --gold: #A59377;
  --gold-bright: #C5B08D;   /* on-dark accent */
  --gold-soft: #C9B999;
  --cyan: #155E75;
  --surface: #F9FAFB;
  --surface-warm: #F7F5F1;
  --border: #E5E7EB;
  --text: #111827;
  --text-muted: #6B7280;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --gutter: 64px;
  --max-w: 1220px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: #fff;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ============ section base ============ */
.section {
  padding: 88px var(--gutter);
}
.section > .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section.light { background: #fff; }
.section.warm  { background: var(--surface-warm); }
.section.surface { background: var(--surface); }

/* ============ dark sections (cover, dividers, footer) ============ */
.section.dark { background: var(--navy); color: #fff; }
.section.dark-deep { background: var(--navy-deep); color: #fff; }
.section.dark .eyebrow,
.section.dark-deep .eyebrow { color: var(--gold-bright); }
.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark-deep h1,
.section.dark-deep h2,
.section.dark-deep h3 { color: #fff; }
.section.dark p,
.section.dark li,
.section.dark td,
.section.dark th,
.section.dark-deep p,
.section.dark-deep li,
.section.dark-deep td,
.section.dark-deep th { color: rgba(255,255,255,0.88); }
.section.dark .meta,
.section.dark-deep .meta { color: rgba(255,255,255,0.66); }
.section.dark strong,
.section.dark-deep strong { color: #fff; }

/* ============ typography ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 14px 0;
  font-weight: 800;
}
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 22px; margin-top: 32px; }
h4 { font-size: 16px; margin-top: 22px; color: var(--text); }

p { margin: 0 0 14px 0; }
p.lead { font-size: 22px; line-height: 1.5; }
p.meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 14px 0;
}

ul, ol { margin: 0 0 14px 0; padding-left: 22px; }
ul li, ol li { margin-bottom: 6px; }
ul { list-style: none; padding-left: 0; }
ul li { position: relative; padding-left: 18px; }
ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.section.dark ul li::before { background: var(--gold-bright); }

strong { color: var(--navy); font-weight: 700; }
.section.dark strong, .section.dark-deep strong { color: #fff; }

/* ============ cover ============ */
.cover {
  min-height: 100vh;
  padding: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}
.cover .panel-left {
  background: var(--navy);
  color: #fff;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.cover .panel-left::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 0;
  bottom: 0;
  width: 120px;
  background: var(--navy);
  transform: skewX(-7deg);
  z-index: 1;
}
.cover .panel-left > * { position: relative; z-index: 2; }
.cover h1 { color: #fff; font-size: 64px; margin: 14px 0 18px; max-width: 10em; }
.cover .sub { color: var(--gold-soft); font-size: 20px; margin: 0; max-width: 24em; line-height: 1.4; }
.cover .panel-left .meta { color: rgba(255,255,255,0.66); }
.cover .panel-left .eyebrow { color: var(--gold-bright); }
.cover .panel-right {
  background: var(--surface-warm);
  position: relative;
  overflow: hidden;
  padding: 72px 64px;
  display: flex;
  align-items: flex-end;
}
.cover .panel-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gold) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.22;
}
.cover .stamp { position: relative; z-index: 2; }
.cover .stamp .num {
  display: block;
  font-size: 124px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-family: var(--font-display);
}
.cover .stamp .label {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

/* ============ TL;DR — hero numbers ============ */
.tldr h2 { max-width: none; }
.hero-numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.hn {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 20px 18px;
}
.hn:nth-child(odd) { border-top-color: var(--gold); }
.hn .val {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: var(--font-display);
}
.hn .lab {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.35;
}

/* ============ section divider strip ============ */
.divider {
  background: var(--navy);
  color: #fff;
  padding: 56px var(--gutter);
  position: relative;
  overflow: hidden;
}
.divider .inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.divider::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 700px;
  height: 600px;
  background: var(--navy-deep);
  transform: skewX(-12deg);
  z-index: 1;
}
.divider .eyebrow { color: var(--gold-bright); margin-bottom: 8px; }
.divider h2 {
  color: #fff;
  font-size: 44px;
  margin: 0;
}
.divider .sub {
  color: var(--gold-soft);
  margin-top: 14px;
  font-size: 17px;
}

/* ============ tables ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.4;
}
th {
  font-weight: 700;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--navy);
  background: var(--surface);
}
td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); white-space: nowrap; }
th.num { text-align: right; }
tr:hover td { background: rgba(165,147,119,0.04); }
tfoot td { font-weight: 700; color: var(--navy); border-bottom: none; border-top: 2px solid var(--navy); background: var(--surface); }
tfoot td.num { color: var(--navy); }

/* ============ callout box ============ */
.callout {
  background: var(--surface);
  border-left: 5px solid var(--gold);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout.navy { border-left-color: var(--navy); }
.callout .eyebrow { margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* ============ condition list (5 conditions) ============ */
.condition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.cond {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 16px 14px;
}
.cond .n {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-family: var(--font-display);
}
.cond h4 {
  font-size: 13px;
  margin: 8px 0 6px;
  color: var(--navy);
}
.cond p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ============ capability grid ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.cap {
  background: #fff;
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.cap.yes { border-left: 3px solid var(--cyan); }
.cap.no  { border-left: 3px solid #B45309; }
.cap.allowlist { border-left: 3px solid var(--gold); }
.cap .icon {
  font-weight: 800;
  color: var(--cyan);
  font-size: 18px;
  line-height: 1.1;
}
.cap.no .icon { color: #B45309; }
.cap.allowlist .icon { color: var(--gold); }
.cap p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.cap strong { color: var(--navy); }

/* ============ diagrams ============ */
.diagram {
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  margin: 24px 0;
  text-align: center;
}
.diagram img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.diagram .label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
  font-weight: 700;
  text-align: left;
}

/* ============ stage table (totals) ============ */
.stage-totals { margin-top: 32px; }
.stage-totals tfoot td { font-size: 16px; }

/* ============ step ladder (Section 5) ============ */
.steps {
  margin: 24px 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
.steps li {
  counter-increment: step;
  padding: 14px 16px 14px 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 15px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.steps li strong { color: var(--navy); }

/* ============ open items ============ */
.open-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.open-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--cyan);
  padding: 18px 20px;
}
.open-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--navy);
}
.open-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* ============ footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 32px var(--gutter);
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}
.site-footer .boas {
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  font-size: 12px;
}

/* ============ print ============ */
@media print {
  .cover { min-height: auto; page-break-after: always; }
  .section, .divider { page-break-inside: avoid; }
  body { font-size: 13px; }
}

/* ============ responsive ============ */
@media (max-width: 880px) {
  :root { --gutter: 28px; }
  .section { padding: 56px var(--gutter); }
  .cover { grid-template-columns: 1fr; min-height: auto; }
  .cover .panel-left::after { display: none; }
  .cover h1 { font-size: 44px; }
  .hero-numbers { grid-template-columns: repeat(2, 1fr); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-grid, .open-grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
