/* ============================================
   INFOGRAPHICS · LAYER 2
   4 novos infográficos institucionais
   ============================================ */

/* ============ 1 · OPERATION RADAR (após hero) ============ */
.op-radar-section {
  padding: clamp(64px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
}
.op-radar-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.op-radar-text .eyebrow { margin-bottom: 24px; }
.op-radar-text h2 { margin-bottom: 24px; }
.op-radar-text p { color: var(--ink-3); line-height: 1.7; max-width: 48ch; }

.op-radar-vis {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.op-radar-vis svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.op-radar-grid-circle {
  fill: none;
  stroke: rgba(212, 175, 55, 0.12);
  stroke-width: 0.6;
}
.op-radar-axis {
  stroke: rgba(212, 175, 55, 0.18);
  stroke-width: 0.6;
}
.op-radar-shape {
  fill: rgba(212, 175, 55, 0.08);
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.35));
}
.op-radar-vertex {
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
}
.op-radar-label {
  fill: var(--ink);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.op-radar-value {
  fill: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 16px;
  letter-spacing: -0.02em;
}

/* Reveal animation */
.op-radar-shape {
  opacity: 0;
  transform: scale(0.85);
  transform-origin: 50% 50%;
  transition: opacity 1s ease 0.2s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.op-radar-vertex {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.op-radar-label, .op-radar-value {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.op-radar-section.in .op-radar-shape { opacity: 1; transform: scale(1); }
.op-radar-section.in .op-radar-vertex { opacity: 1; }
.op-radar-section.in .op-radar-vertex:nth-of-type(1) { transition-delay: 0.6s; }
.op-radar-section.in .op-radar-vertex:nth-of-type(2) { transition-delay: 0.8s; }
.op-radar-section.in .op-radar-vertex:nth-of-type(3) { transition-delay: 1.0s; }
.op-radar-section.in .op-radar-vertex:nth-of-type(4) { transition-delay: 1.2s; }
.op-radar-section.in .op-radar-vertex:nth-of-type(5) { transition-delay: 1.4s; }
.op-radar-section.in .op-radar-label,
.op-radar-section.in .op-radar-value { opacity: 1; transition-delay: 1.6s; }

/* Score readout */
.op-radar-readout {
  display: grid;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 360px;
}
.op-radar-readout-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.op-radar-readout-row:last-child { border-bottom: none; }
.op-radar-readout-label {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.op-radar-readout-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.op-radar-readout-fill {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.op-radar-section.in .op-radar-readout-fill { width: var(--fill, 70%); }
.op-radar-readout-val {
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

@media (max-width: 900px) {
  .op-radar-grid { grid-template-columns: 1fr; gap: 56px; }
  .op-radar-vis { max-width: 380px; }
  .op-radar-readout { max-width: 100%; margin-left: 0; margin-right: 0; }
}

/* ============ 2 · REVENUE COMPOSITION DONUT ============ */
.rev-comp-section {
  padding: clamp(64px, 7vw, 96px) var(--pad);
}
.rev-comp-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.rev-comp-text .eyebrow { margin-bottom: 24px; }
.rev-comp-text h2 { margin-bottom: 24px; }

.rev-comp-vis {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.rev-comp-vis svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.rev-comp-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 28;
}
.rev-comp-arc {
  fill: none;
  stroke-width: 28;
  stroke-linecap: butt;
  stroke-dasharray: var(--len) 942;
  stroke-dashoffset: var(--off);
  opacity: 0;
  transition: opacity 0.6s ease, stroke-dasharray 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.rev-comp-section.in .rev-comp-arc { opacity: 1; }
.rev-comp-arc.a1 { stroke: var(--gold); }
.rev-comp-arc.a2 { stroke: rgba(212, 175, 55, 0.7); }
.rev-comp-arc.a3 { stroke: rgba(212, 175, 55, 0.5); }
.rev-comp-arc.a4 { stroke: rgba(212, 175, 55, 0.32); }
.rev-comp-section.in .rev-comp-arc.a1 { transition-delay: 0.2s; }
.rev-comp-section.in .rev-comp-arc.a2 { transition-delay: 0.4s; }
.rev-comp-section.in .rev-comp-arc.a3 { transition-delay: 0.6s; }
.rev-comp-section.in .rev-comp-arc.a4 { transition-delay: 0.8s; }

.rev-comp-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.rev-comp-center-eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.rev-comp-center-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.rev-comp-center-cap {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}

.rev-comp-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.rev-comp-legend li {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rev-comp-legend li:last-child { border-bottom: none; padding-bottom: 0; }
.rev-comp-legend .sw {
  width: 4px;
  height: 28px;
  border-radius: 2px;
  align-self: center;
}
.rev-comp-legend .sw.s1 { background: var(--gold); }
.rev-comp-legend .sw.s2 { background: rgba(212, 175, 55, 0.7); }
.rev-comp-legend .sw.s3 { background: rgba(212, 175, 55, 0.5); }
.rev-comp-legend .sw.s4 { background: rgba(212, 175, 55, 0.32); }
.rev-comp-legend .lbl {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.rev-comp-legend .lbl small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: -0.005em;
}
.rev-comp-legend .pct {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .rev-comp-grid { grid-template-columns: 1fr; gap: 48px; }
  .rev-comp-vis { max-width: 320px; }
}

/* ============ 3 · TIMELINE 49 DAYS ============ */
.tl49-section {
  padding: clamp(64px, 7vw, 96px) var(--pad);
}
.tl49-section > .tl49-head,
.tl49-section > .tl49-grid,
.tl49-section > .tl49-key,
.tl49-section > .tl49-axis {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.tl49-head {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
}
.tl49-head .eyebrow { margin-bottom: 24px; }

.tl49-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  position: relative;
}

/* Phase strips */
.tl49-strip {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tl49-strip:last-child { border-bottom: none; }
.tl49-strip-label {
  display: grid;
  gap: 4px;
}
.tl49-strip-label .num {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}
.tl49-strip-label .name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.tl49-strip-label .span {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 2px;
}

.tl49-bar {
  position: relative;
  height: 56px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(49, 1fr);
}
.tl49-day {
  border-right: 1px solid rgba(212, 175, 55, 0.04);
}
.tl49-day:last-child { border-right: none; }

.tl49-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.4));
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  width: 0;
  opacity: 0;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.tl49-section.in .tl49-fill { opacity: 1; }
.tl49-section.in .tl49-strip:nth-child(1) .tl49-fill { width: var(--w, 100%); transition-delay: 0.1s; }
.tl49-section.in .tl49-strip:nth-child(2) .tl49-fill { transition-delay: 0.4s; }
.tl49-section.in .tl49-strip:nth-child(3) .tl49-fill { transition-delay: 0.7s; }
.tl49-section.in .tl49-strip:nth-child(4) .tl49-fill { transition-delay: 1.0s; }

.tl49-fill-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}

.tl49-axis {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tl49-axis-ticks {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.tl49-axis-ticks span:last-child { text-align: right; }

@media (max-width: 800px) {
  .tl49-strip { grid-template-columns: 1fr; gap: 12px; }
  .tl49-axis { grid-template-columns: 1fr; }
  .tl49-bar { height: 40px; }
  .tl49-fill-label { font-size: 9px; }
}

/* ============ 4 · DECAY CURVE — POST-PEAK RECURRENCE ============ */
.decay-section {
  padding: clamp(64px, 7vw, 96px) var(--pad);
}
.decay-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.decay-text .eyebrow { margin-bottom: 24px; }
.decay-text h2 { margin-bottom: 24px; }
.decay-text p { color: var(--ink-3); line-height: 1.7; max-width: 44ch; }

.decay-stats {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.decay-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.decay-stat-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  color: var(--gold);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.decay-stat-lbl {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.decay-vis {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 6px;
  overflow: hidden;
}
.decay-vis svg {
  width: 100%;
  height: 100%;
}
.decay-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}
.decay-baseline {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
  fill: none;
}
.decay-curve {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.decay-section.in .decay-curve { stroke-dashoffset: 0; }

.decay-fill {
  fill: url(#decayFill);
  opacity: 0;
  transition: opacity 1s ease 1.5s;
}
.decay-section.in .decay-fill { opacity: 1; }

.decay-marker {
  fill: var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.decay-section.in .decay-marker { opacity: 1; }
.decay-section.in .decay-marker.m1 { transition-delay: 0.8s; }
.decay-section.in .decay-marker.m2 { transition-delay: 1.4s; }
.decay-section.in .decay-marker.m3 { transition-delay: 2.0s; }
.decay-section.in .decay-marker.m4 { transition-delay: 2.4s; }

.decay-marker-label {
  fill: var(--ink);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.decay-marker-value {
  fill: var(--gold);
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.decay-section.in .decay-marker-label,
.decay-section.in .decay-marker-value { opacity: 1; }
.decay-section.in .decay-marker-label.l1,
.decay-section.in .decay-marker-value.v1 { transition-delay: 0.9s; }
.decay-section.in .decay-marker-label.l2,
.decay-section.in .decay-marker-value.v2 { transition-delay: 1.5s; }
.decay-section.in .decay-marker-label.l3,
.decay-section.in .decay-marker-value.v3 { transition-delay: 2.1s; }
.decay-section.in .decay-marker-label.l4,
.decay-section.in .decay-marker-value.v4 { transition-delay: 2.5s; }

.decay-axis-label {
  fill: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .decay-grid { grid-template-columns: 1fr; gap: 48px; }
  .decay-vis { aspect-ratio: 4 / 3; }
}
