/* The Marvin one-pagers — one shell for all four cuts (underwriter, leadership, technical, QBR). */
:root {
  --signal: #1C7AFE; --signal-tint: #E8F0FE; --signal-dark: #0F5BC9;
  --mainframe: #111E45; --ink: #111E45; --ink-2: #3F4A6E;
  --ink-3: #6B7490; --ink-4: #9AA1B4;
  --indigo-500: #1E1A4E; --matrix: #1FB879;
  --adverse: #DC3E3E; --caution: #E5A33A;
  --paper: #FAFAFA; --paper-cool: #F7F9FD;
  --line: #E5E8EF; --line-cool: #E2E6EF;
  --core-plus-1: #0A8C82; --core-plus-2: #07685F; --warm: #8A7B6E; --warm-deep: #6B5F54;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
em, i { font-style: normal; font-weight: 300; }
@page { size: letter; margin: 0; }

body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #E0E4EC;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center;
  padding: 40px 20px;
}
@media print {
  body { background: white; padding: 0; }
  .pdf-page { box-shadow: none; border: none; border-radius: 0; }
}

.pdf-page {
  width: 8.5in; min-height: 11in;
  padding: 34px 48px 70px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(17,30,69,0.12), 0 2px 6px rgba(17,30,69,0.06);
  position: relative;
}

/* ── HEADER ───────────────────────────────────────── */
.pdf-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 24px;
}
.pdf-brand { display: flex; align-items: center; gap: 10px; }
.pdf-logo {
  width: 32px; height: 32px; flex-shrink: 0;
  background: url(assets/r6-circle-navy.svg) center / contain no-repeat;
  color: transparent; font-size: 0;
}
/* The wordmark is always mixed case — it never inherits the footer’s caps. */
.pdf-brand-name { font-weight: 700; font-size: 17px; color: var(--ink); text-transform: none; letter-spacing: 0; }
/* The footer line carries the name and the tagline, so it stays mixed case too. */
.pdf-foot > span { text-transform: none; letter-spacing: 0.02em; }
.pdf-brand-name span { color: var(--signal); }
.pdf-header-meta {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 9px;
  letter-spacing: 0.06em; color: var(--ink-3); text-align: right; line-height: 1.7;
text-transform: uppercase;
font-weight: 600;
}

/* ── HEADLINE ─────────────────────────────────────── */
.pdf-headline-wrap {
  margin-bottom: 10px;
}
.pdf-kicker {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--signal); font-weight: 600; margin-bottom: 8px;
}
.pdf-title {
  font-size: 31px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--ink); margin-bottom: 8px;
}
.pdf-title em { color: var(--signal); font-weight: 300; }
.pdf-sub {
  font-size: 13.5px; line-height: 1.5;
  color: var(--ink-2); max-width: 700px;
}

/* Stats column */
.pdf-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 8px 0; margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdf-stat-label {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 9px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 3px;
font-weight: 600;
}
.pdf-stat-value {
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.022em; color: var(--ink); line-height: 1;
}
.pdf-stat-value em { color: var(--signal); font-weight: 300; }
.pdf-stat-cap { font-size: 10px; color: var(--ink-3); margin-top: 2px; }

/* ── PRODUCT SHOT ─────────────────────────────────── */
.product-shot {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  box-shadow: 0 8px 24px rgba(17,30,69,0.1), 0 2px 4px rgba(17,30,69,0.06);
}
/* Browser chrome */
.ps-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: #F0F1F5;
  border-bottom: 1px solid var(--line-cool);
}
.ps-dot { width: 9px; height: 9px; border-radius: 50%; }
.ps-dot.r { background: #FF5F57; }
.ps-dot.y { background: #FEBC2E; }
.ps-dot.g { background: #28C840; }
.ps-url {
  margin-left: 10px; font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif);
  font-size: 10px; color: var(--ink-3);
  background: #fff; padding: 3px 10px;
  border-radius: 5px; border: 1px solid var(--line-cool); flex: 1; font-variant-numeric: tabular-nums;
}

/* App layout */
.ps-body { display: block;
  background:
    linear-gradient(140deg, rgba(28,122,254,0.08) 0%, rgba(30,26,78,0.05) 35%, transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, #F4F7FD 100%);
}

/* Sidebar */
.ps-sidebar {
  width: 120px; flex-shrink: 0;
  padding: 12px 8px;
  background: linear-gradient(180deg, #1A2A55 0%, #12204A 60%, #0D1940 100%);
  color: rgba(255,255,255,0.88);
}
.ps-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; margin-bottom: 2px;
  font-size: 10.5px; border-radius: 6px;
  color: rgba(255,255,255,0.74); font-weight: 500;
}
.ps-nav.active {
  color: white; font-weight: 600;
  background: var(--signal);
  box-shadow: 0 1px 2px rgba(28,122,254,0.30), inset 0 1px 0 rgba(255,255,255,0.10);
}
.ps-nav.dim { color: rgba(255,255,255,0.4); font-size: 10px; }
.ps-nav-icon { font-size: 10px; width: 13px; text-align: center; opacity: 0.75; display: inline-flex; align-items: center; justify-content: center; }
.ps-nav-icon svg { width: 13px; height: 13px; stroke-width: 2.5; }
.ps-nav.active .ps-nav-icon { opacity: 1; }
.ps-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 6px 8px; }

/* Main panel */
.ps-main { padding: 10px 16px; overflow: hidden; background: transparent; }
.ps-company-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 12px;
}
.ps-company-name {
  font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 2px;
}
.ps-renewal-kicker {
  font-family: 'Onest', sans-serif; font-size: 8px;
  color: var(--ink-4); text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600;
}
.ps-renewal-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  background: white; border: 1px solid var(--line-cool);
  font-family: 'Onest', sans-serif; font-size: 9.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
  box-shadow: 0 1px 2px rgba(17,30,69,0.04);
}
.ps-renewal-icon { display: inline-flex; align-items: center; color: var(--signal); font-weight: 700; }
.ps-renewal-icon svg { width: 11px; height: 11px; stroke-width: 2.5; }

/* Company info card */
.ps-co-card {
  background: #fff; border: 1px solid rgba(17,30,69,0.06);
  box-shadow: 0 1px 2px rgba(17,30,69,0.02);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 6px;
}
.ps-co-kicker {
  font-family: 'Onest', sans-serif; font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 4px;
}
/* dropped from the printed sheet to hold one page; the facts grid carries the same information */
.ps-co-prose { display: none;
}
.ps-co-facts {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px 16px; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ps-co-fact { display: flex; gap: 8px; align-items: baseline; }
.ps-co-fact-label {
  font-family: 'Onest', sans-serif; font-size: 7.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; flex-shrink: 0; min-width: 56px;
}
.ps-co-fact-value { font-size: 9.5px; color: var(--ink); line-height: 1.4; font-weight: 500; }

/* Action chips */
.ps-chip-row { display: flex; flex-wrap: wrap; gap: 4px; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--paper-cool); border: 1px solid var(--line);
  font-size: 7.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
}
.ps-chip-glyph { font-size: 8px; display: inline-flex; align-items: center; }
.ps-chip-glyph svg { width: 10px; height: 10px; stroke-width: 2.5; }
.ps-chip.unlocked {
  background: rgba(10,140,130,0.05); border-color: rgba(10,140,130,0.30);
  color: var(--core-plus-2);
}
.ps-chip.unlocked .ps-chip-glyph { color: var(--core-plus-1); }
.ps-chip.locked {
  background: rgba(10,140,130,0.05); border-color: rgba(10,140,130,0.30);
  color: var(--core-plus-1);
}
.ps-chip.locked .ps-chip-glyph { color: var(--core-plus-1); }
.ps-chip-pill {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: 'Onest', sans-serif; font-size: 7px;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; margin-left: 2px;
  padding: 1px 5px; border-radius: 100px;
}
.ps-chip.unlocked .ps-chip-pill {
  color: var(--core-plus-2);
  background: rgba(10,140,130,0.14);
}
.ps-chip.locked .ps-chip-pill {
  color: var(--core-plus-2);
  background: rgba(10,140,130,0.14);
}
.ps-chip-pill svg { width: 6px; height: 6px; stroke-width: 2.5; }
.ps-chip.soon { background: var(--paper-cool); border-color: var(--line); color: var(--ink-4); }
.ps-chip.soon .ps-chip-glyph { color: var(--ink-4); }
.ps-chip-soon-pill {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 7px; letter-spacing: 0.05em;
  padding: 1px 4px; border-radius: 3px; background: rgba(17,30,69,0.06);
  color: var(--ink-4); font-weight: 700; text-transform: uppercase; margin-left: 3px;
}
.ps-chip-grp {
  flex-basis: 100%; font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 7.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4);
  font-weight: 600; margin: 6px 0 1px;
}
.ps-soon-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 6px 12px;
  background: rgba(138,123,110,0.10); border: 1px solid rgba(138,123,110,0.30);
  border-radius: 8px; font-size: 11px; color: var(--warm-deep);
}
.ps-soon-note-label {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm-deep);
}
.ps-soon-note-label svg { width: 11px; height: 11px; stroke-width: 2.2; }
.ps-soon-note-items { color: var(--warm-deep); font-weight: 500; }

/* Risk card */
.ps-risk-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--adverse);
  border-radius: 8px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.ps-risk-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1px dotted rgba(17,30,69,0.18);
}
.ps-risk-level-label {
  font-family: 'Onest', sans-serif; font-size: 7.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px; font-weight: 600;
}
.ps-risk-level-value {
  font-size: 32px; font-weight: 700; color: #946011; line-height: 0.95;
  font-family: 'Onest', sans-serif; letter-spacing: -0.02em;
}
.ps-risk-conf-value {
  font-size: 26px; font-weight: 700; color: var(--ink); line-height: 0.95;
  font-family: 'Onest', sans-serif; letter-spacing: -0.02em;
  margin-top: 6px;
}
.ps-risk-meter {
  position: absolute; bottom: -2px; left: 50%;
  width: 50%; height: 3px;
  background: rgba(17,30,69,0.08); border-radius: 999px;
}
.ps-risk-meter-fill {
  height: 100%; border-radius: 999px;
  background: var(--matrix);
}
.ps-risk-meta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.ps-risk-meta-item {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; color: var(--ink-2);
}
.ps-risk-meta-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ps-risk-meta-dot.adverse { background: var(--adverse); }
.ps-risk-meta-dot.caution { background: var(--caution); }
.ps-risk-meta-dot.matrix { background: var(--matrix); }

/* Legacy — kept for structure */
.psd { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.psd.r { background: var(--adverse); }
.psd.a { background: var(--caution); }
.psd.p { background: var(--indigo-500); }
.psd.g { background: var(--matrix); }
.ps-cat-badge {
  margin-left: auto; font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif);
  font-size: 8.5px; color: var(--ink-4);
text-transform: uppercase;
letter-spacing: .08em;
font-weight: 600;
}
.ps-cat-chevron { margin-left: 4px; color: var(--ink-4); font-size: 8px; }

/* Expanded drawer */
.ps-drawer { padding: 0 10px 8px; }
.ps-drawer-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
  padding-top: 8px;
}
.ps-drawer-item {
  background: rgba(220,62,62,0.04); border: 1px solid rgba(220,62,62,0.12);
  border-radius: 6px; padding: 7px 10px;
}
.ps-drawer-item.warn {
  background: rgba(30,26,78,0.04); border-color: rgba(30,26,78,0.15);
}
.ps-drawer-label {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--adverse); font-weight: 600; margin-bottom: 3px;
}
.ps-drawer-item.warn .ps-drawer-label { color: var(--indigo-500); }
.ps-drawer-text { font-size: 10.5px; color: var(--ink); line-height: 1.4; }
.ps-drawer-text strong { font-weight: 600; }
.ps-source {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 8px;
  color: var(--signal); font-weight: 600; margin-top: 3px;
text-transform: uppercase;
letter-spacing: .08em;
}

/* Collapsed row body */
.ps-cat-body { padding: 6px 10px; font-size: 10.5px; color: var(--ink-2); line-height: 1.4; }

/* Marvin recommendation */
.ps-marvin {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 10px; padding: 8px 12px;
  background: rgba(28,122,254,0.05); border: 1px solid rgba(28,122,254,0.15);
  border-radius: 8px;
}
.ps-marvin-mark {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--signal), var(--indigo-500));
  color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; padding-bottom: 1px;
}
.ps-marvin-kicker {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal); font-weight: 600; margin-bottom: 2px;
}
.ps-marvin-text { font-size: 11px; color: var(--ink); line-height: 1.4; }
.ps-marvin-text strong { color: var(--signal); font-weight: 600; }

/* ── VALUE PROPS ──────────────────────────────────── */
.pdf-value-section { margin-bottom: 0; }
.pdf-value-head {
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.pdf-value-title {
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.018em; color: var(--ink);
  line-height: 1.2;
}
.pdf-value-meta {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 9px;
  letter-spacing: 0.06em; color: var(--ink-3);
text-transform: uppercase;
font-weight: 600;
}

.pdf-pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.pdf-pillar {
  padding: 10px 12px;
  background: var(--paper-cool);
  border: 1px solid var(--line-cool);
  border-radius: 10px; border-top: 3px solid var(--line);
}
.pdf-pillar.speed  { border-top-color: var(--signal); }
.pdf-pillar.audit  { border-top-color: var(--matrix); }
.pdf-pillar.align  { border-top-color: var(--indigo-500); }
.pdf-pillar.scale  { border-top-color: var(--caution); }

.pdf-pillar-kicker {
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 5px;
}
.pdf-pillar.speed  .pdf-pillar-kicker { color: var(--signal); }
.pdf-pillar.audit  .pdf-pillar-kicker { color: var(--matrix); }
.pdf-pillar.align  .pdf-pillar-kicker { color: var(--indigo-500); }
.pdf-pillar.scale  .pdf-pillar-kicker { color: var(--caution); }

.pdf-pillar-title {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.25;
}
.pdf-pillar-text {
  font-size: 10.5px; line-height: 1.5; color: var(--ink-2);
}
.pdf-pillar-stat {
  margin-top: 8px; padding-top: 7px;
  border-top: 1px solid var(--line-cool);
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 8.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
font-weight: 600;
}

/* ── CTA STRIP ────────────────────────────────────── */
.pdf-cta {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--mainframe) 0%, #1A2950 100%);
  border-radius: 10px;
  color: white; display: flex;
  align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 10px;
}
.pdf-cta-title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pdf-cta-title em { color: #BBD7FF; font-weight: 300; }
.pdf-cta-sub { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; }
.pdf-cta-btn {
  flex-shrink: 0; padding: 9px 18px;
  background: white; color: var(--ink);
  border-radius: 7px; font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}

/* ── FOOTER ───────────────────────────────────────── */
.pdf-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-label, 'Onest', system-ui, -apple-system, sans-serif); font-size: 8.5px;
  letter-spacing: 0.06em; color: var(--ink-4);
  position: absolute; bottom: 20px; left: 48px; right: 48px;
text-transform: uppercase;
font-weight: 600;
}
.pdf-foot b { color: var(--ink-3); font-weight: 600; }
