/* Standalone diagram: no absolute positioning or inherited SVG dimensions. */
.hero-flow-figure { box-sizing: border-box; margin: 0; min-width: 0; padding: 28px; border: 1px solid #9cc5b3; border-radius: 18px; background: #d1eee1; box-shadow: 0 30px 90px -65px #00C88C55; }
.hero-flow-stack { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-flow-card { box-sizing: border-box; position: static; flex: none; height: auto; border: 1px solid #cadfd3; border-radius: 10px; background: #ffffff; }
.hero-flow-support { display: flex; align-items: center; gap: 14px; width: 82%; min-height: 78px; padding: 17px 20px; }
.hero-flow-support strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.hero-flow-support div > span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.5; color: var(--faint); }
.hero-flow-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--accent); }
.hero-flow-icon > svg { display: block; width: 26px; height: 26px; }
.hero-flow-inference { width: 96%; min-height: 198px; padding: 24px 28px; border-color: var(--ink); border-radius: 12px; background: var(--ink); box-shadow: 0 0 35px -18px #00C88C55; }
.hero-flow-inference .hero-flow-icon { color: var(--light-mint); }
.hero-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-flow-badge { padding: 4px 7px; border: 1px solid #779d89; border-radius: 3px; font: 8px/1.4 var(--mono); color: var(--light-mint); letter-spacing: 1px; }
.hero-flow-inference > strong { display: block; font: 700 clamp(24px, 2.5vw, 32px)/1.2 var(--display); letter-spacing: -.7px; color: var(--panel); }
.hero-flow-inference > strong br { display: none; }
.hero-flow-inference > p { color: var(--light-mint); font-size: 12px; margin: 12px 0 18px; }
.hero-flow-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-flow-tags > span { color: var(--muted); border-top: 1px solid #b6d2c3; padding-top: 7px; font: 10px/1.5 var(--mono); }
.hero-flow-stack > svg.hero-flow-arrow { display: block; flex: 0 0 44px; width: 32px; height: 44px; min-width: 32px; max-width: 32px; color: var(--accent); overflow: visible; }
.hero-flow-pulse {
  stroke: var(--on-action);
  stroke-width: 5;
  stroke-dasharray: 24 100;
  animation: hero-flow-travel 1.05s ease-in-out infinite alternate;
}
.hero-flow-arrow:nth-of-type(2) .hero-flow-pulse { animation-delay: -.55s; }
@keyframes hero-flow-travel { to { stroke-dashoffset: -76; } }
.hero-flow-note { margin: 14px 0 0; color: var(--faint); font: 10px/1.5 var(--mono); text-align: center; }
@media (max-width: 480px) {
  .hero-flow-figure { padding: 20px 12px; }
  .hero-flow-support { width: 90%; padding: 14px; min-height: 72px; gap: 10px; }
  .hero-flow-support strong { font-size: 12px; }
  .hero-flow-support div > span { font-size: 10px; }
  .hero-flow-inference { width: 100%; padding: 22px; min-height: 186px; }
  .hero-flow-inference > strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .hero-flow-pulse { animation: none; display: none; } }

.hero-flow-highlight-note { display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; width: 96%; margin-top: 16px; padding: 14px 16px; border: 1px solid #83b39e; border-radius: 8px; background: var(--light-mint); }
.hero-flow-highlight-note > span { color: var(--accent); flex: none; font-size: 17px; line-height: 1.5; }
.hero-flow-highlight-note > p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.7; }
@media (max-width: 480px) { .hero-flow-highlight-note { width: 100%; padding: 12px; } }

/* Match the diagram to the copy column on desktop. */
@media (min-width: 951px) {
  .inference-hero { align-items: stretch; }
  .hero-copy { align-self: center; }
  .hero-flow-figure { contain: size; align-self: stretch; display: flex; padding: 18px; }
  .hero-flow-stack { height: 100%; justify-content: space-between; }
  .hero-flow-support { min-height: 58px; padding: 10px 16px; gap: 12px; }
  .hero-flow-support strong { font-size: 13px; }
  .hero-flow-support div > span { margin-top: 3px; font-size: 10px; }
  .hero-flow-stack > svg.hero-flow-arrow { flex-basis: 28px; height: 28px; }
  .hero-flow-inference { min-height: 0; padding: 16px 20px; }
  .hero-flow-top { margin-bottom: 10px; }
  .hero-flow-inference > strong { font-size: 26px; }
  .hero-flow-inference > p { margin: 8px 0 0; font-size: 11px; }
  .hero-flow-highlight-note { margin-top: 10px; padding: 10px 12px; }
  .hero-flow-highlight-note > p { font-size: 11px; line-height: 1.5; }
}

@media (min-width: 951px) and (max-width: 1150px) {
  .hero-flow-figure { padding: 14px; }
  .hero-flow-support { min-height: 52px; padding: 8px 12px; }
  .hero-flow-support strong { font-size: 12px; }
  .hero-flow-stack > svg.hero-flow-arrow { flex-basis: 22px; height: 22px; }
  .hero-flow-inference { padding: 12px 16px; }
  .hero-flow-top { margin-bottom: 6px; }
  .hero-flow-inference > strong { font-size: 22px; }
  .hero-flow-highlight-note { margin-top: 8px; padding: 8px 10px; }
  .hero-flow-highlight-note > p { font-size: 10px; line-height: 1.4; }
}


/* Keep diagram labels readable at every breakpoint. */
.hero-flow-support strong { font-size: 15px; }
.hero-flow-support div > span { font-size: 12px; color: var(--muted); }
.hero-flow-badge { font-size: 11px; }
.hero-flow-inference > p { font-size: 13px; }
.hero-flow-highlight-note > p { font-size: 13px; line-height: 1.5; }
@media (min-width: 951px) {
  .hero-flow-figure { padding: 16px; }
  .hero-flow-support { padding-block: 8px; }
  .hero-flow-stack > svg.hero-flow-arrow { flex-basis: 22px; height: 22px; }
  .hero-flow-inference { padding-block: 14px; }
  .hero-flow-highlight-note { padding-block: 8px; }
}
@media (min-width: 951px) and (max-width: 1150px) {
  .hero-flow-figure { padding: 12px; }
  .hero-flow-support { padding-block: 6px; }
  .hero-flow-support strong { font-size: 14px; }
  .hero-flow-stack > svg.hero-flow-arrow { flex-basis: 20px; height: 20px; }
  .hero-flow-inference { padding-block: 10px; }
  .hero-flow-highlight-note { padding-block: 6px; }
  .hero-flow-highlight-note > p { font-size: 12px; }
}
