/* ==========================================================================
   /optimize — stage 07 OPTIMIZE page. Section scaffolding comes from prompt-volumes.css (.pv-*),
   the product mocks from agents.css (.ag-*, .lq-*), the flywheel ring from flow.css (.lp-*).
   This file only adds the hero, the scope cells, the approval strip, ring sizing and the KPI tiles.
   ========================================================================== */

/* ---------- Hero ---------- */
.op-hero { padding: 96px 0 72px; text-align: center; }
.op-hero .eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; font-size: 13px; letter-spacing: .02em; color: var(--fg-2); }
.op-hero .eyebrow > span + span::before { content: "·"; margin-right: 10px; color: var(--fg-4); }
.op-hero h1 { max-width: 880px; margin: 0 auto; font-size: clamp(36px, 5.2vw, 58px); font-weight: 500; line-height: 1.06; letter-spacing: -0.045em; }
.op-hero .op-sub { max-width: 600px; margin: 18px auto 0; font-size: 17px; color: var(--fg-2); }
.op-hero .stage-engine { margin-top: 16px; font-size: 12.5px; color: var(--fg-3); }
.op-hero .stage-engine span { display: inline-block; margin-left: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-2); }
.op-hero .ft-hero-visual { max-width: none; text-align: left; }
.op-hero .ft-hero-visual .net-note { margin-top: 14px; }

/* ---------- Scope cells (02) and problem cells (01) ---------- */
.op-scope .pv-cell, .op-problem .pv-cell { padding: 26px 28px; }
.op-scope .pv-cell h4, .op-problem .pv-cell h4 { font-size: 17px; }
.op-scope .pv-cell p, .op-problem .pv-cell p { margin-top: 8px; font-size: 14px; }
.op-scope .pv-cell small { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-a, #01c2e1); font-variant-numeric: tabular-nums; }
.op-problem .pv-cell small { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--line); font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.op-after { margin-top: 72px; }

/* ---------- Approval strip above the flywheel (04) ---------- */
.op-hitl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 40px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.op-hitl div { padding: 16px 20px; border-right: 1px solid var(--line); background: var(--bg-1); }
.op-hitl div:last-child { border-right: 0; }
.op-hitl small { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.op-hitl b { font-size: 15px; font-weight: 500; }
.op-hitl div:nth-child(2) { background: rgba(1,194,225,.05); }
.op-hitl div:nth-child(2) small { color: var(--fl-a, #01c2e1); }

/* ---------- Flywheel: seven stages around the FLOWGEN GEO ENGINE core ---------- */
.op-loop { padding-bottom: 40px; }
.op-loop .lp-core small { color: var(--fg-3); }
.op-loop .lp-core strong { font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.op-loop .lp-core p { min-height: 0; }
.op-loop .lp-list { margin: 22px 0 0; }
.op-steps { margin-top: 8px; }
.op-steps em { white-space: nowrap; }

/* ---------- Example (06): the sources the run reads from, labelled by stage ---------- */
.op .ag-src .ag-ico { display: grid; place-items: center; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); color: var(--bc); font-size: 10.5px; font-weight: 600; font-style: normal; font-variant-numeric: tabular-nums; }

/* ---------- Metrics (07) ---------- */
.op-kpis { grid-template-columns: repeat(4, 1fr); }
.op-kpis .pv-cell { padding: 26px 28px; }
.op-kpis small { display: block; font-size: 12px; letter-spacing: .04em; color: var(--fg-3); }
.op-kpis strong { display: block; margin-top: 10px; font-size: 38px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.op-kpis span { display: block; margin-top: 6px; font-size: 13px; color: var(--fg-2); }
.op-metrics-note { margin-top: 0; }
.op-metrics-note .pv-cell h4 { font-size: 17px; }
.op-metrics-note .pv-cell p { font-size: 14px; }

@media (max-width: 980px) {
  .op-kpis { grid-template-columns: 1fr 1fr; }
  .op-hitl { grid-template-columns: 1fr; }
  .op-hitl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .op-hitl div:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .op-hero { padding: 72px 0 56px; }
  .op-kpis strong { font-size: 30px; }
}
