/* ============================================================
   growth.css — components used only by
   /growth-hacking-with-ai-agents (EN + CS).

   The terminal window chrome itself comes from agentic.css, which
   this page loads alongside: the window is the same component as on
   /produktova-prioritizace-s-agentni-ai, only driven by a different
   script (growth.js) because this page runs one looping scene with
   no task list beside it. Everything below is this page's own.
   ============================================================ */

/* ---- Hero: the sub-agent window stands where the hero shot used to ----
   The window itself is left entirely to agentic.css: same 17/9 chrome as the
   terminal on /produktova-prioritizace-s-agentni-ai, and the same
   .terminal__disclaimer under it. Only the wrapper is this page's, and it exists
   so growth.js can scope its single-scene driver to the hero.
   The run is taller than the window, so it auto-scrolls as it plays — deliberate:
   matching the other terminal's proportions was preferred over fitting the whole
   fan-out on screen at once. */
.gh-hero__visual { min-width: 0; }

/* ---- Three speed-ups ----
   The cards are the site's plain .grid-3 / .feature-col, same as the three
   founder types on /product-development-for-founders. Each one draws an
   opportunity solution tree — the shape product people already know from
   Teresa Torres: the product at the root, the opportunities branching beneath
   it, and one node between them for whoever assembles the context. Same tree
   in all three cards; only who does that assembly, and how many trees run at
   once, changes.

   The caption lives outside the SVG: as <text> it scaled with the viewBox, so
   it never matched the page's type scale. The chart closes the card, set well
   clear of the prose above it. */
.gh-fig { margin: 42px 0 4px; }
/* Card copy runs to different lengths, so the last paragraph absorbs the slack
   and the charts sit level across the three cards — that is what keeps the dot
   rows on one line. Scoped to #speed; the site-wide .feature-col is untouched. */
/* throughput line between the title and the prose — needs to beat
   .feature-col p on specificity, hence the #speed prefix */
#speed .gh-cadence {
  font-size: 15px; font-weight: 700; line-height: 1.4;
  color: var(--c-primary); margin-bottom: 12px;
}
#speed .feature-col { display: flex; flex-direction: column; }
#speed .feature-col > p:last-of-type { margin-bottom: auto; }
/* two lines' worth, so a one-line caption does not pull its chart down relative
   to the other two (13px × 1.5 line-height × 2) */
#speed .gh-fig figcaption { min-height: 39px; }
/* small print set upright — it reads as a caption through its size and centring,
   without the italic that .terminal__disclaimer uses elsewhere on the site */
.gh-fig figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px; line-height: 1.5;
  color: var(--c-text);
}
.gh-tree { display: block; width: 100%; height: auto; overflow: visible; }
/* Connectors are the flow diagram's connectors from
   /produktova-prioritizace-s-agentni-ai (agentic.css .flow__link / .flow__dot):
   a dashed indigo line with a dot travelling along it. Same treatment, numbers
   re-scaled — the flow diagram is drawn in a 1680-unit space shrunk to fit the
   container, this chart is 340 units at roughly 1:1, so its raw dash and dot
   sizes would land half again too big here. The flow's labelled bubbles are
   deliberately left out: these connectors carry no label. */
.gh-tree__link {
  fill: none; stroke: rgba(109, 40, 217, .35); stroke-width: 1.2;
  stroke-dasharray: 3.5 5; animation: gh-tree-dash 1s linear infinite;
}
/* -17 = two whole dash patterns, so the loop is seamless; same cadence as flow-dash */
@keyframes gh-tree-dash { to { stroke-dashoffset: -17; } }
.gh-tree__dot { fill: var(--c-primary); }
@media (prefers-reduced-motion: reduce) {
  .gh-tree__link { animation: none; }
  .gh-tree__dot { display: none; }
}
/* The context layer behind the whole opportunity row — what we hold for every
   node, tested or not, which is the thing being sold. Drawn as a card to the
   same spec as the flow diagram's cards (agentic.css .flow__card): white,
   hairline border, 16px radius, one soft shadow. The radius is already on the
   rect in the markup; the shadow has to be a CSS filter because SVG shapes take
   no box-shadow. */
.gh-tree__band {
  fill: #fff; stroke: rgba(62, 50, 85, .10); stroke-width: 1;
  filter: drop-shadow(0 2px 8px rgba(62, 50, 85, .07));
}
.gh-tree__node--root { fill: var(--c-heading); }
.gh-tree__node--idea { fill: var(--c-primary-soft); }
.gh-tree__node--proto,
.gh-tree__node--test { fill: #8f86ef; }
.gh-tree__node--win { fill: var(--c-primary); }
.gh-tree__halo { fill: rgba(109, 40, 217, .10); }
/* The step between the product and its opportunities: somebody has to assemble
   the context and pick a priority before any value proposition exists.
   Red on the first chart is the human doing it; green on the other two is the
   machine. Chart 3 carries the green dots without a label — chart 2 sits
   directly beside it and names them. */
.gh-tree__node--ctx { fill: var(--c-danger); }
.gh-tree__halo--ctx { fill: oklch(0.577 0.245 27.325 / .12); }
.gh-tree__node--mach { fill: var(--c-success); }
.gh-tree__halo--mach { fill: rgba(21, 128, 61, .16); }
.gh-tree__ctxlabel {
  font-size: 11px; font-weight: 700; fill: var(--c-text-strong);
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
}
/* row labels sit in the gutter to the left of the tree */
.gh-tree__row { font-size: 11px; font-weight: 700; fill: var(--c-text); }
.gh-tree__row--win { fill: var(--c-primary); }
.gh-tree__cap { font-size: 11px; fill: var(--c-text); }


/* .split__shot--proof (uncropped market-check screenshot) now lives in sections.css. */

/* ---- Footnote under a section ---- */
.gh-note { max-width: 900px; margin: 28px auto 0; text-align: center; font-size: var(--fs-sm); color: var(--c-text); line-height: 1.6; }
.gh-note--left { text-align: left; margin-inline: 0; }
.gh-note code { font-family: var(--font-mono); font-size: .92em; color: var(--c-text-strong); background: var(--surface-band-50); padding: 2px 6px; border-radius: 6px; }

/* ---- Responsive ---- */
