/* report/infographic.css
   ─────────────────────────────────────────────────────────────────────────────
   Infographic export styles — 1080×1350px (4:5 portrait)
   All .ig-* classes. Rendered into #ig-report, captured by html2canvas → PNG.

   Design language: The Steward app theme lifted to a static canvas.
   Off-white background, white component cards, dark hero, gold accents.
   Footer only — no header. The number hits first, branding sits quietly below.
   ─────────────────────────────────────────────────────────────────────────────
*/

/* ── Off-screen container during capture ────────────────────────────────── */
#ig-report {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 99997;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SHELL
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-page {
  width: 1080px;
  height: 1350px;
  display: flex;
  flex-direction: column;
  background: #e2e3e4;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
  overflow: hidden;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BODY — all content, footer pushed to bottom
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 52px 56px 0;
  gap: 20px;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO CARD — dark glass, matches calc-hero exactly
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-hero {
  flex-shrink: 0;
  background: #0f172a;
  border-radius: 24px;
  padding: 44px 52px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.ig-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(133, 66, 240, 0.45) 0%, transparent 65%), radial-gradient(ellipse at 100% 100%, rgba(19, 236, 236, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.ig-hero-inner {
  position: relative;
}

.ig-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}

.ig-hero-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 88px;
  font-weight: 700;
  color: #ffffff;
  line-height: 0.95;
  letter-spacing: -2px;
  text-align: center;
  margin-bottom: 32px;
}

.ig-hero-stats {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 24px;
}

.ig-hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
}

.ig-hero-stat + .ig-hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  height: 90%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ig-stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ig-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ig-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSIGHT CARD — the educational moment. Second thing the eye lands on.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-insight {
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  border-left: 4px solid #d4a843;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ig-insight-text {
  font-size: 21px;
  color: #334155;
  line-height: 1.55;
  font-weight: 400;
  margin: 0;
}

.ig-insight-text strong {
  color: #0f172a;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPORTION BAR CARD
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-bar-card {
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.ig-bar-track {
  display: flex;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 18px;
}

.ig-bar-segment {
  height: 100%;
}

.ig-bar-legend {
  display: flex;
  justify-content: space-between;
}

.ig-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ig-bar-item-label {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ig-bar-item-value {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM ROW — milestones + inputs side by side
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-bottom-row {
  flex: 1;
  display: flex;
  gap: 20px;
  min-height: 0;
}

/* ── Milestones card ── */
.ig-milestones {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.ig-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ig-milestones-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ig-milestone {
  flex: 1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e6eaf2;
}

.ig-milestone-year {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.ig-milestone-value {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

.ig-milestone--final {
  background: #0f172a;
  border-color: #0f172a;
}

.ig-milestone--final .ig-milestone-year {
  color: #d4a843;
}
.ig-milestone--final .ig-milestone-value {
  color: #ffffff;
}

/* ── Inputs card ── */
.ig-inputs {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.ig-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.ig-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
  font-size: 15px;
  border-radius: 7px;
}

.ig-input-row:nth-child(odd) {
  background: #f8fafc;
}

.ig-input-label {
  color: #64748b;
}
.ig-input-value {
  font-weight: 700;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER — branding watermark, single line
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-footer {
  flex-shrink: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 56px;
  gap: 16px;
  border-top: 1px solid #e6eaf2;
}

.ig-footer-shield {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ig-footer-company {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ig-footer-disclaimer {
  flex: 1;
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  padding: 0 16px;
}

.ig-footer-site {
  font-size: 13px;
  font-weight: 700;
  color: #d4a843;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
