/* CFOoffsite brand tokens */
:root {
  --navy: #001F3F;
  --navy-700: #00284f;
  --navy-600: #003366;
  --navy-300: #4a6584;
  --navy-100: #e6ecf3;
  --gold: #FFC107;
  --gold-deep: #E5A800;
  --gold-100: #fff6da;
  --white: #FFFFFF;
  --paper: #fafaf7;
  --paper-2: #f3f1ea;
  --line: #d9d6cc;
  --line-soft: #ececea;
  --ink: #0c0c0e;
  --ink-2: #2a2a2e;
  --ink-3: #6b6b73;

  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ------- shared utilities (scoped per direction via .dirA/.dirB/.dirC) ------- */

.cfo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
}
.cfo-tag .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 999px; }

.cfo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; font-weight: 600; font-size: 14px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  font-family: var(--font-sans);
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.cfo-btn:hover { transform: translateY(-1px); }
.cfo-btn--gold { background: var(--gold); color: var(--navy); border-color: var(--gold-deep); }
.cfo-btn--gold:hover { background: var(--gold-deep); }
.cfo-btn--navy { background: var(--navy); color: var(--white); }
.cfo-btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.cfo-btn--ghost-light:hover { background: rgba(255,255,255,0.06); }
.cfo-btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line); }
.cfo-btn--ghost-dark:hover { background: var(--paper-2); }

.cfo-arrow { font-family: var(--font-sans); }
.cfo-nav-link { transition: color 0.2s ease; }
.cfo-nav-link:hover { color: #FFC107 !important; }

/* hex logo mark — reusable inline SVG sized 24/32/40 */
.cfo-mark { display: inline-block; flex: none; }

/* ------- Direction A — Operating System (navy dominant) ------- */
.dirA {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.dirA h1, .dirA h2, .dirA h3 { letter-spacing: -0.025em; font-weight: 700; }
.dirA .display { font-size: 88px; line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; }
.dirA .h2 { font-size: 44px; line-height: 1.05; font-weight: 700; }
.dirA .h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.dirA .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.dirA .muted { color: rgba(255,255,255,0.62); }
.dirA hr { border: 0; border-top: 1px solid rgba(255,255,255,0.08); margin: 0; }

/* ------- Direction B — The Ledger (paper dominant, editorial) ------- */
.dirB {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.dirB .display {
  font-size: 96px; line-height: 0.92; letter-spacing: -0.045em;
  font-weight: 800;
}
.dirB .h2 { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.dirB .h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.dirB .eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep);
}
.dirB .muted { color: var(--ink-3); }
.dirB hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.dirB .rule-gold { border-top: 2px solid var(--gold); }

/* ------- Direction C — Dashboard (split, product-feel) ------- */
.dirC {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.dirC .display { font-size: 80px; line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.dirC .h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.dirC .h3 { font-size: 20px; line-height: 1.2; font-weight: 600; }
.dirC .eyebrow {
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #001F3F; font-weight: 700;
  background: rgba(0,31,63,0.06); display: inline-block;
  padding: 6px 12px; border-radius: 6px; border-left: 3px solid #FFC107;
}
.dirC .muted { color: var(--ink-3); }

/* ------- placeholder pattern (striped) ------- */
.cfo-placeholder {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--paper-2) 0 8px,
    var(--paper) 8px 16px
  );
  border: 1px dashed var(--line);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cfo-placeholder--dark {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.04) 0 8px,
    rgba(255,255,255,0.02) 8px 16px
  );
  border: 1px dashed rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

/* dashed seam between sections, navy variant */
.dashed-bottom { border-bottom: 1px dashed rgba(255,255,255,0.08); }
.dashed-bottom-light { border-bottom: 1px dashed var(--line); }

/* small data-table feel */
.cfo-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.cfo-table th, .cfo-table td {
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.cfo-table thead th {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
}
.cfo-table.dark th, .cfo-table.dark td { border-bottom-color: rgba(255,255,255,0.08); color: var(--white); }
.cfo-table.dark thead th { color: rgba(255,255,255,0.55); border-bottom-color: rgba(255,255,255,0.16); }

.cfo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  font-weight: 500;
}
.cfo-pill--gold { background: var(--gold); color: var(--navy); }
.cfo-pill--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); }
.cfo-pill--ghost-dark { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }

/* "ready" check glyph */
.cfo-ready-check {
  width: 14px; height: 14px; flex: none;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}

/* ─── Mobile responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Display typography scale-down */
  .dirC .display { font-size: 42px !important; line-height: 1.05 !important; }
  .dirA .display { font-size: 48px !important; line-height: 1.05 !important; }
  .dirB .display { font-size: 52px !important; line-height: 1.05 !important; }
  .dirC .h2      { font-size: 28px !important; }
  .dirA .h2      { font-size: 28px !important; }
  .dirB .h2      { font-size: 30px !important; }

  /* Article body */
  .article-body { padding: 0 20px !important; }
  .article-body h1 { font-size: 32px !important; line-height: 1.15 !important; }
  .article-body h2 { font-size: 22px !important; }

  /* Buttons full-width on very small screens */
  .cfo-btn-block { width: 100%; justify-content: center; }

  /* Dashboard mock — shown on mobile with responsive grid fixes */
  .cfo-dashboard-mock { display: block !important; }

  /* Overflow safety */
  body { overflow-x: hidden; }
  img, svg { max-width: 100%; }
}
