/* ==========================================================================
   /strategy — stage 02 of the flowgen GEO System (powered by AI Demand + Opportunity Engine).
   The dashboard frame lives in css/signals-frame.css, the pv-* components in css/prompt-volumes.css,
   the opener / stage nav / next-stage card in css/features.css + css/flow.css. Everything here is scoped to .stg.
   ========================================================================== */

/* ---------- Hero ---------- */
.stg-hero { padding-top: 96px; }
.stg-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stg-hero .eyebrow b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(1,194,225,.4); color: var(--fl-a); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stg-hero h1 { max-width: 820px; margin: 0 auto; font-size: clamp(38px, 5.4vw, 60px); font-weight: 500; line-height: 1.06; letter-spacing: -0.045em; }
.stg-hero .hero-sub { max-width: 620px; }
.stg .stage-engine { margin: 16px auto 0; font-size: 13px; color: var(--fg-3); }
.stg .stage-engine span { display: inline-block; margin-left: 4px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); color: var(--fg-2); }
.stg-hero .hero-cta { margin-top: 26px; }
.stg-hero .pv-browser { margin-top: 56px; text-align: left; }
.stg-hero .pv-browser .sw-rail small { white-space: nowrap; }

/* ---------- Section rhythm: the opener (.ft-subhead) carries the top padding; blocks end flush ---------- */
.stg .ft-subhead { scroll-margin-top: 120px; }
.stg .ft-subhead strong { max-width: 640px; }
.stg-sec { padding: 28px 0 0; }
.stg-sec .pv-head h2 { font-size: clamp(30px, 3.8vw, 44px); max-width: 720px; }
.stg-sec .pv-head p { max-width: 640px; }
.stg-head-2 { padding-top: 72px; }
.stg-head-2 h3 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; max-width: 640px; }
.stg-head-2 .eyebrow { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fl-a); }

/* ---------- 02 Scope cards ---------- */
.stg-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stg-scope-item { position: relative; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); transition: border-color .3s; }
.stg-scope-item:hover { border-color: rgba(1,194,225,.4); }
.stg-scope-item small { font-size: 11px; color: var(--fg-4); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.stg-scope-item h4 { margin-top: 10px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.stg-scope-item p { margin-top: 8px; font-size: 14px; color: var(--fg-2); }

/* ---------- Two-column rows: a card with an engine visual beside supporting points ---------- */
.stg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 56px; }
.stg-card { display: flex; flex-direction: column; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.stg-card > small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-a); }
.stg-card h3 { margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.stg-card > p { margin-top: 14px; font-size: 14px; color: var(--fg-2); }
.stg-points { display: grid; align-content: start; gap: 12px; }
.stg-points > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.stg-points h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.stg-points p { margin-top: 6px; font-size: 14px; color: var(--fg-2); }

/* engine visuals from the homepage (Competitor Intelligence matrix, Opportunity Engine queue) */
.stg .fl-eviz { margin-top: 18px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-2); }
.stg .fl-eviz > p { margin: 10px 0 0; font-size: 11px; color: var(--fg-4); }
.stg .fl-cmpx { display: grid; gap: 7px; font-size: 12px; }
.stg .fl-cmpx .r { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 58px); gap: 8px; align-items: center; color: var(--fg-2); }
.stg .fl-cmpx .r.h { color: var(--fg-4); font-size: 10.5px; letter-spacing: .04em; }
.stg .fl-cmpx .r.h span { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stg .fl-cmpx .r > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg .fl-cmpx i { display: block; width: 10px; height: 10px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--fg-4); }
.stg .fl-cmpx i.y { background: var(--fg-3); border-color: var(--fg-3); }
.stg .fl-cmpx i.u { background: var(--fl-a); border-color: var(--fl-a); box-shadow: 0 0 8px rgba(1,194,225,.5); }
.stg .fl-cmpx .r.lost > span:first-child { color: var(--fl-warn); }
.stg .fl-opp { display: grid; gap: 8px; }
.stg .fl-opp div { display: grid; grid-template-columns: 22px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 12px; color: var(--fg-2); }
.stg .fl-opp div small { font-size: 10.5px; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.stg .fl-opp div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stg .fl-opp div span b { display: block; font-weight: 400; font-size: 10.5px; color: var(--fg-4); }
.stg .fl-opp div em { font-style: normal; font-weight: 500; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.stg .fl-opp div:first-child em { color: var(--fl-a); }

/* ---------- 03 Product UI mocks ---------- */
.stg-mocks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.stg-mocks .mock-top b { flex: 1; font-weight: 500; }
.stg-mocks .mock-body { padding: 18px; }
.stg-mocks .pv-demo { grid-template-columns: 1fr; }
.stg-mocks .pv-demo .row { grid-template-columns: 110px 1fr 40px; font-size: 13px; }
.stg-mocks .pv-demo h4, .stg-mocks .pv-tree { font-size: 13px; }
.stg-mocks .pv-tree { gap: 10px 18px; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
.stg-mocks .pv-tree .node { font-size: 12.5px; white-space: normal; }
.stg-mocks .pv-tree .node em { white-space: nowrap; }
.stg-mocks .stg-mock-cap { margin: 0; font-size: 13px; color: var(--fg-3); }

/* ---------- 04 Priority: urgency × impact ---------- */
.stg-prio { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg, 16px); background: var(--bg-1); }
.stg-prio-head h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.stg-prio-head p { margin-top: 10px; max-width: 560px; font-size: 15px; color: var(--fg-2); }
.stg-prio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.stg-matrix { position: relative; padding: 0 0 34px 34px; }
.stg-plane { position: relative; aspect-ratio: 1 / .86; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.stg-plane::before, .stg-plane::after { content: ""; position: absolute; border: 0 dashed var(--line-dash, #333); pointer-events: none; }
.stg-plane::before { left: 50%; top: 0; bottom: 0; border-left-width: 1px; }
.stg-plane::after { top: 50%; left: 0; right: 0; border-top-width: 1px; }
.stg-quad { position: absolute; left: 50%; top: 0; right: 0; bottom: 50%; display: flex; align-items: flex-start; justify-content: flex-end; padding: 10px 12px; background: rgba(1,194,225,.045); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-a); pointer-events: none; }
.stg-ax { position: absolute; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.stg-ax-y { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); margin-top: -17px; }
.stg-ax-x { left: 50%; bottom: 0; transform: translateX(-50%); margin-left: 17px; }
.stg-ax-hi, .stg-ax-lo { position: absolute; font-size: 10.5px; color: var(--fg-4); }
.stg-ax-hi-y { left: 10px; top: 4px; transform: rotate(-90deg); transform-origin: left top; margin-top: 30px; }
.stg-ax-hi-x { right: 0; bottom: 4px; }
.stg-ax-lo { left: 40px; bottom: 4px; }
.stg-dot { position: absolute; left: var(--x); bottom: var(--y); display: flex; align-items: center; gap: 7px; transform: translate(-7px, 7px); white-space: nowrap; font-size: 12px; color: var(--fg-2); transition: color .25s; }
.stg-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--fg-3); border: 2px solid var(--bg-2); box-shadow: 0 0 0 1px var(--fg-4); transition: background .25s, box-shadow .25s, transform .25s; }
.stg-dot b { font-size: 10.5px; font-weight: 500; color: var(--fg-4); font-variant-numeric: tabular-nums; }
.stg-dot[data-i="1"] { color: var(--fg); }
.stg-dot[data-i="1"]::before, .stg-dot[data-i="2"]::before { background: var(--fl-a); box-shadow: 0 0 0 1px var(--fl-a), 0 0 12px rgba(1,194,225,.5); }
.stg-dot[data-i="1"] b, .stg-dot[data-i="2"] b { color: var(--fl-a); }
/* dots near the right edge read their label to the left */
.stg-dot[data-i="1"], .stg-dot[data-i="2"], .stg-dot[data-i="3"] { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), 7px); }
.stg-rank { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stg-rank li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); transition: border-color .25s, background .25s; }
.stg-rank li b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.stg-rank li strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.stg-rank li span { display: block; margin-top: 3px; font-size: 13px; color: var(--fg-2); }
.stg-rank li[data-i="1"] b, .stg-rank li[data-i="2"] b { border-color: rgba(1,194,225,.5); color: var(--fl-a); }
/* hovering a rank row (or a dot) lights up its twin */
.stg-rank li:hover { border-color: rgba(1,194,225,.5); background: rgba(1,194,225,.05); }
.stg-prio:has(.stg-rank li[data-i="1"]:hover) .stg-dot[data-i="1"], .stg-prio:has(.stg-rank li[data-i="2"]:hover) .stg-dot[data-i="2"], .stg-prio:has(.stg-rank li[data-i="3"]:hover) .stg-dot[data-i="3"], .stg-prio:has(.stg-rank li[data-i="4"]:hover) .stg-dot[data-i="4"], .stg-prio:has(.stg-rank li[data-i="5"]:hover) .stg-dot[data-i="5"],
.stg-dot:hover { color: var(--fg); }
.stg-prio:has(.stg-rank li[data-i="1"]:hover) .stg-dot[data-i="1"]::before, .stg-prio:has(.stg-rank li[data-i="2"]:hover) .stg-dot[data-i="2"]::before, .stg-prio:has(.stg-rank li[data-i="3"]:hover) .stg-dot[data-i="3"]::before, .stg-prio:has(.stg-rank li[data-i="4"]:hover) .stg-dot[data-i="4"]::before, .stg-prio:has(.stg-rank li[data-i="5"]:hover) .stg-dot[data-i="5"]::before,
.stg-dot:hover::before { background: var(--fg); box-shadow: 0 0 0 1px var(--fg); transform: scale(1.25); }
.stg-prio:has(.stg-dot[data-i="1"]:hover) .stg-rank li[data-i="1"], .stg-prio:has(.stg-dot[data-i="2"]:hover) .stg-rank li[data-i="2"], .stg-prio:has(.stg-dot[data-i="3"]:hover) .stg-rank li[data-i="3"], .stg-prio:has(.stg-dot[data-i="4"]:hover) .stg-rank li[data-i="4"], .stg-prio:has(.stg-dot[data-i="5"]:hover) .stg-rank li[data-i="5"] { border-color: rgba(1,194,225,.5); background: rgba(1,194,225,.05); }
.stg-prio-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--fg-3); }

/* ---------- 06 Example ---------- */
.stg-sec .pv-banner { margin-top: 0; }
.stg-split--example { margin-top: 14px; }
.stg-walk { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.stg-walk h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.stg-walk .cmp-flow { margin-top: 14px; }
.stg-walk .cmp-flow span { font-size: 13px; padding: 7px 12px; }
.stg-walk .cmp-flow span:last-child { color: var(--fg); border-color: rgba(1,194,225,.5); }
.stg-walk-steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.stg-walk-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; color: var(--fg-2); }
.stg-walk-steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--fg-3); }
.stg-walk-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 12.5px; color: var(--fg-3); }

/* ---------- 07 Metrics ---------- */
.stg-kpis > div { display: flex; flex-direction: column; }
.stg-kpis small { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.stg-kpis strong { margin-top: 12px; font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stg-kpis strong sub { vertical-align: baseline; margin-left: 4px; font-size: 16px; color: var(--fg-3); }
.stg-kpis em { margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--fl-a); }
.stg-kpis p { margin-top: 10px; font-size: 13.5px; color: var(--fg-2); }
.stg-kpi-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--fg-3); }

/* ---------- FAQ / final CTA ---------- */
.stg #faq .pv-head { padding-bottom: 8px; }
.stg .faq { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stg-scope { grid-template-columns: 1fr 1fr; }
  .stg-split, .stg-mocks, .stg-prio-grid { grid-template-columns: 1fr; }
  .stg-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .stg-hero { padding-top: 72px; }
  .stg-hero .eyebrow { flex-wrap: wrap; justify-content: center; }
  .stg-hero .pv-browser { margin-top: 40px; }
  .stg .ft-subhead { padding-top: 64px; flex-wrap: wrap; }
  .stg-scope { grid-template-columns: 1fr; }
  .stg-prio { padding: 22px 18px; }
  .stg-matrix { padding-left: 28px; }
  .stg-dot { font-size: 11px; }
  .stg-dot span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .stg-kpis { grid-template-columns: 1fr; }
  .stg-kpis strong { font-size: 34px; }
  .stg-mocks .pv-tree { grid-template-columns: 1fr; gap: 8px; }
  .stg-mocks .pv-tree .node.seed { grid-row: auto; }
}
