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

   Design language:
   • Light canvas (#f1f5f9) - flat, no panels except where attention is needed
   • Dark hero card - strong visual anchor at top, brand gradient intact
   • White chips for snapshot cards + fact cards - lift without boxing everything
   • Gold accents (#d4a843) for highlights and crossover
   ─────────────────────────────────────────────────────────────────────────────
*/

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

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER - Brand strip at top. Shield + company + title on left, URL on right.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-header {
  flex-shrink: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ig-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-header-shield {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.ig-header-sep {
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 300;
}

.ig-header-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.2px;
}

.ig-header-right {
  display: flex;
  align-items: center;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   BODY - flex column (hero / timeline / facts / inputs / proportion bar)
   Header and disclaimer live outside, pushed to edges by the page shell.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 52px 24px;
  gap: 28px;
  min-height: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO - Row 1 (flex 32). Dark card - stays dark as the visual anchor.
   Contains: kicker → large value → insight sentence → proportion bar.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-hero {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 52px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.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;
}

/* V2 hero - proportional flex, column layout */
.ig-hero--v2 {
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
}

.ig-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
}

.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: 20px;
  position: relative;
}

.ig-hero-insight {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  text-align: center;
  position: relative;
}

.ig-hero-insight strong {
  color: #d4a843;
  font-weight: 700;
}

/* Proportion bar - pinned to bottom of hero card */
.ig-hero-prop-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 22px;
  margin-top: auto;
  position: relative;
}

/* ── Proportion bar track + legend (used inside hero) ── */
.ig-bar-track {
  display: flex;
  height: 16px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
  margin-bottom: 16px;
}

.ig-bar-seg {
  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;
}

/* Legend text lives inside the dark hero - keep light colours */
.ig-bar-item-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.ig-bar-item-value {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED SECTION LABEL - small-caps label above a content row
   On light background so uses dark muted colour.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPOUNDING - Row 2 (flex 28). Flat - no card wrapper.
   Header text floats on the light canvas.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-compounding {
  flex: 28;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ig-section-header {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ig-snap-grid {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

/* Snapshot cards - white chips, soft shadow, no border */
.ig-snap-card {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.ig-snap-year {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

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

.ig-snap-invested {
  font-size: 11px;
  color: #94a3b8;
}

/* Final snapshot card - gold tint */
.ig-snap-card--final {
  background: #fffbeb;
  box-shadow: 0 2px 16px rgba(212, 168, 67, 0.18);
}

.ig-snap-card--final .ig-snap-year {
  color: #d4a843;
}

.ig-snap-card--final .ig-snap-value {
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FACTS - Row 3 (flex 20). "Good to Know". Section label + three white cards.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-facts-section {
  flex: 20;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ig-facts-row {
  flex: 1;
  display: flex;
  gap: 16px;
  min-height: 0;
}

/* Fact cards - white chips, soft shadow, no border */
.ig-fact-card {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.ig-fact-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ig-fact-text {
  font-size: 16px;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.ig-fact-text strong {
  color: #d4a843;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INPUTS - Row 4 (flex 13). Flat - no card wrapper. Label + 3×2 pill grid.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-inputs-flat {
  flex: 13;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ig-pills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}

/* Pills - white chips with a very subtle border */
.ig-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}

.ig-pill-label {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ig-pill-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIMELINE - Row 2. Horizontal journey: values above a gradient track, years below.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-timeline {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 200px;
}

.ig-timeline-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Top row: portfolio values pinned to the bottom of their cells */
.ig-tl-values {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ig-tl-value-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding-bottom: 14px;
}

.ig-tl-val {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.05;
}

.ig-tl-val--final {
  color: #d4a843;
}

.ig-tl-invested {
  font-size: 10px;
  color: #94a3b8;
}

/* Rail: gradient line + milestone dots */
.ig-tl-rail {
  height: 36px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.ig-tl-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #e2e8f0, #d4a843);
}

.ig-tl-dots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.ig-tl-dot-slot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ig-tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #94a3b8;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
}

.ig-tl-dot--final {
  width: 20px;
  height: 20px;
  background: #d4a843;
  border-color: #f1f5f9;
  box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.2);
}

/* Year labels below the rail */
.ig-tl-years {
  height: 28px;
  flex-shrink: 0;
  display: flex;
}

.ig-tl-year-cell {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.ig-tl-year-cell--final {
  color: #d4a843;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPORTION BAR (CANVAS) - Bottom frame. Light background variant.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-prop-bar-section {
  flex: 12;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 0;
}

.ig-bar-track--lg {
  height: 20px;
  border-radius: 6px;
  margin-bottom: 0;
}

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

.ig-pbar-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DISCLAIMER - Single-line legal text below ig-body.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-disclaimer {
  flex-shrink: 0;
  margin: 0;
  padding: 0 52px 14px;
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER - Row 5 (7%). Flat on light canvas.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-footer {
  flex-shrink: 0;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 52px;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.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;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO NARRATIVE - V3 hero: sentence → big value (underlined) → sub-line.
   Floats on the light canvas - no card, no dark background, no shadow.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-hero--narrative {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 64px 8px;
  /* Strip the dark card */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Kill the purple/teal gradient overlay */
.ig-hero--narrative::before {
  display: none;
}

/* Setup sentence - inputs in gold, rest in muted slate */
.ig-hero-sentence {
  font-size: 22px;
  color: #94a3b8;
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 14px;
  text-align: center;
  position: relative;
}

.ig-hero-sentence strong {
  color: #d4a843;
  font-weight: 700;
}

/* "Becomes" value - dark on light canvas, gold underline */
.ig-hero--narrative .ig-hero-value {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 67, 0.6);
  text-underline-offset: 12px;
  text-decoration-thickness: 3px;
  margin-bottom: 14px;
}

/* Sub-line below the value - softer, smaller */
.ig-hero-sub {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
  text-align: center;
  position: relative;
}

.ig-hero-sub strong {
  color: #94a3b8;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO PILLS - compact input tags inside the dark hero card (V3 layout)
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  position: relative;
}

.ig-hero-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.ig-hero-pill-val {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHART SECTION - glass panel matching the website's calc card style.
   Gradient baked into background (no pseudo-elements) so the SVG sits above
   without needing z-index gymnastics.
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-chart-section {
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, hsla(263, 45%, 25%, 0.4) 0px, transparent 70%), radial-gradient(ellipse 60% 50% at 85% 80%, hsla(180, 50%, 20%, 0.25) 0px, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 110%, hsla(38, 80%, 45%, 0.08) 0px, transparent 60%), #0b1221;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 0 0;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.18),
    inset 0 10px 20px rgba(255, 255, 255, 0.04),
    inset 0 -15px 30px rgba(0, 0, 0, 0.35),
    0 25px 50px -12px rgba(11, 18, 33, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}

.ig-chart-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 28px;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INSIGHTS BLOCK - proportion bar + discovery bullets (V3 layout)
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-insights-block {
  padding: 28px 36px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ig-insights-block .ig-section-label {
  margin-bottom: 16px;
}

.ig-bar-legend--insights {
  margin-top: 14px;
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.ig-insights-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
}

.ig-insight-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ig-insight-row:last-child {
  border-bottom: none;
}

/* Label column - uppercase, fixed width, muted */
.ig-insight-label {
  flex-shrink: 0;
  width: 148px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #475569;
  padding-top: 2px;
  line-height: 1.4;
}

/* Description column */
.ig-insight-text {
  flex: 1;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

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

/* Legacy bullet style kept for other calcs */
.ig-insight-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4a843;
  margin-top: 6px;
  flex-shrink: 0;
}

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

.ig-insight-line strong {
  color: #d4a843;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGACY - glass card system (kept for backward compat, not used in V2 layout)
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 28px 32px;
}

.ig-glass--arcade {
  background: rgba(212, 168, 67, 0.08);
  border-color: rgba(212, 168, 67, 0.2);
  border-left: 3px solid #d4a843;
}

.ig-glass--milestones,
.ig-glass--inputs {
  flex: 1;
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 28px 28px;
}

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

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

.ig-bottom-row {
  flex: 1;
  display: flex;
  gap: 20px;
  min-height: 0;
}

.ig-section-label-dark {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.ig-milestones-grid {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.ig-milestone {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.ig-milestone--final .ig-milestone-year {
  color: rgba(15, 23, 42, 0.65);
}
.ig-milestone--final .ig-milestone-value {
  color: #0f172a;
}

.ig-inputs-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: space-between;
}

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

.ig-input-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}
.ig-input-label {
  color: #64748b;
}
.ig-input-value {
  font-weight: 700;
  color: #e2e8f0;
}

/* Legacy hero stats */
.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: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.ig-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #e2e8f0;
}
