/* /aeo/ page: components on top of style.css + copy.css + plan.css. */

/* ---------- hero: phases ---------- */
.phases { display: flex; align-items: stretch; gap: 8px; margin-top: 28px; }
.ph2 { flex: 1; display: flex; flex-direction: column; gap: 6px; background: var(--paper); color: var(--ink); padding: 14px; text-decoration: none; border-top: 6px solid var(--neon); }
.ph2:hover { outline: 2px solid var(--neon); }
.ph2 .pn { font-size: 10px; text-transform: uppercase; color: var(--grey); }
.ph2 h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.ph2 p { font-size: 12.5px; line-height: 1.35; }
.ph2 .pk { margin-top: auto; font-size: 11.5px; background: var(--yellow); padding: 5px 7px; line-height: 1.3; }
.pa { align-self: center; font-size: 22px; font-weight: 700; color: var(--neon); }
.hero-econ { margin-top: 14px; }

/* ---------- 01 segments ---------- */
.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.seg { position: relative; background: var(--white); padding: 14px; display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--c, #000); }
.seg.g { --c: var(--g); } .seg.y { --c: var(--y); } .seg.r { --c: var(--r); }
.seg.bh { outline: 3px solid var(--ink); }
.seg .segp { position: absolute; top: 10px; right: 12px; font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1; }
.seg h3 { font-size: 17px; font-weight: 400; text-transform: uppercase; line-height: 1.05; padding-right: 40px; }
.seg .why { font-size: 12.5px; line-height: 1.35; }
.sf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.sf span { display: block; font-size: 9.5px; text-transform: uppercase; color: var(--grey); }
.sf b { font-size: 12.5px; line-height: 1.2; }
.sg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.gch { font-size: 10px; text-transform: uppercase; padding: 3px 6px; color: #fff; }
.gch.g { background: var(--g); } .gch.y { background: var(--y); color: #000; } .gch.r { background: var(--r); }
.sigbars { display: grid; gap: 6px; max-width: 980px; }
.sb { display: grid; grid-template-columns: 340px 1fr 90px; gap: 10px; align-items: center; font-size: 12.5px; }
.sb b { text-align: right; }

/* ---------- 02 funnel + channels ---------- */
.afun { display: grid; gap: 6px; }
.af { display: grid; grid-template-columns: 260px 1fr 140px; gap: 12px; align-items: center; background: var(--paper); padding: 10px 12px; }
.afl b { display: block; font-size: 13px; text-transform: uppercase; }
.afl small { display: block; font-size: 11px; color: var(--grey); line-height: 1.25; margin-top: 2px; }
.aft { position: relative; height: 26px; background: rgba(0,0,0,.05); }
.aft i { position: absolute; left: 0; top: 0; bottom: 0; }
.aft i.hi { background: var(--g); }
.aft i.lo { background: var(--forest); }
.afn { font-size: 15px; font-weight: 700; text-align: right; }
.afn small { display: block; font-size: 11px; font-weight: 400; color: var(--grey); }
.chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.chs .card { min-height: 0; border-top: 4px solid var(--c, #000); }
.chs .card.g { --c: var(--g); } .chs .card.y { --c: var(--y); } .chs .card.r { --c: var(--r); }
.chs .card .tag.g { background: var(--g); } .chs .card .tag.y { background: var(--y); color: #000; } .chs .card .tag.r { background: var(--r); }
.chs .card h3 { padding-right: 80px; font-size: 15px; }
.chs .card .big { font-size: 24px; margin-bottom: 6px; }
.first20 { counter-reset: f; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; max-width: 1100px; }
.first20 li { counter-increment: f; font-size: 13px; line-height: 1.35; padding-left: 30px; position: relative; }
.first20 li::before { content: counter(f); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }

/* ---------- 03 pitch ---------- */
.sec.forest .eng .es { background: var(--paper); color: var(--ink); }
.sec.forest .ea { color: var(--neon); }
.sec.forest .statement + .eng { margin-top: 26px; }
.pitchgrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 10px; }
.snap { background: var(--white); color: var(--ink); padding: 16px; box-shadow: 0 0 0 1px var(--line); }
.snap-h { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #000; padding-bottom: 10px; }
.snap .sk { display: block; font-size: 10px; text-transform: uppercase; color: var(--grey); }
.snap-h h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1.05; margin-top: 2px; }
.snap-h .sm { font-size: 11px; color: var(--grey); }
.snap .score { text-align: right; }
.snap .score span { display: block; font-size: 10px; text-transform: uppercase; color: var(--grey); }
.snap .score b { font-size: 40px; line-height: 1; color: var(--r); letter-spacing: -0.03em; }
.snap .score small { display: block; font-size: 10.5px; color: var(--grey); }
.snapt { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 10px; }
.snapt th { font-size: 9.5px; text-transform: uppercase; font-weight: 400; text-align: left; padding: 4px; border-bottom: 1px solid var(--line); }
.snapt td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.snapt td.c { text-align: center; }
.hit { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; }
.hit.y { background: var(--g); } .hit.n { background: var(--r); }
.snap-b { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; font-size: 12px; line-height: 1.35; }
.snap-b ul li { margin: 3px 0; } .snap-b ul li small { color: var(--grey); }
.snap-b ol { padding-left: 16px; list-style: decimal; } .snap-b ol li { margin: 3px 0; }
.snap-f { font-size: 10.5px; color: var(--grey); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }
.story { display: grid; gap: 6px; }
.story li { background: var(--paper); color: var(--ink); padding: 9px 12px; font-size: 12.5px; line-height: 1.35; }
.story li b { display: block; text-transform: uppercase; font-size: 12px; }
.opener { background: rgba(255,255,255,.08); border-left: 4px solid var(--neon); padding: 10px 12px; font-size: 13px; line-height: 1.4; margin: 0 0 8px; font-style: italic; }
.objs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.obj { background: var(--paper); color: var(--ink); padding: 10px 12px; }
.obj summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; }
.obj summary::before { content: "+ "; }
.obj[open] summary::before { content: "– "; }
.obj p { font-size: 12.5px; line-height: 1.4; margin-top: 6px; }
.dont { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dont div { background: rgba(255,77,103,.15); border-left: 4px solid var(--r); padding: 8px 10px; }
.dont b { display: block; font-size: 12.5px; }
.dont small { display: block; font-size: 11px; opacity: .85; margin-top: 3px; line-height: 1.3; }

/* ---------- 04 data ---------- */
.dgroups { display: grid; gap: 18px; }
.dgh { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dgh .when { font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--ink); color: #fff; padding: 3px 8px; }
.dgh h3 { font-size: 15px; text-transform: uppercase; font-weight: 700; }
.dtab td small.feeds { display: block; font-size: 10.5px; color: var(--grey); margin-top: 3px; text-transform: uppercase; }
.never { display: flex; flex-wrap: wrap; gap: 6px; }
.never span { background: var(--r-soft); border: 1px solid var(--r); padding: 5px 9px; font-size: 12px; }

/* ---------- 05 measure ---------- */
.mlad { display: grid; gap: 6px; }
.ml { display: grid; grid-template-columns: 50px 1fr 260px; background: var(--paper); border-left: 6px solid var(--c, var(--forest)); }
.ml.g { --c: var(--g); } .ml.y { --c: var(--y); }
.ml .mn { font-family: var(--cond); font-weight: 700; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.mlb { padding: 10px 12px; }
.mlb h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; }
.mlb code { display: block; font-size: 11.5px; background: var(--white); border: 1px solid var(--line); padding: 4px 6px; margin: 5px 0; white-space: normal; }
.mlb p { font-size: 12px; line-height: 1.35; }
.mls { padding: 10px 12px; background: var(--white); font-size: 12px; line-height: 1.3; }
.mls span { display: block; font-size: 9.5px; text-transform: uppercase; color: var(--grey); margin-top: 4px; }
.qgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proto { counter-reset: p; display: grid; gap: 5px; }
.proto li { counter-increment: p; font-size: 12.5px; line-height: 1.35; padding-left: 28px; position: relative; }
.proto li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--forest); color: #fff; font-size: 10.5px; font-weight: 700; }
.mtab { display: grid; gap: 6px; }
.mt { display: grid; grid-template-columns: 210px 1fr 70px; gap: 10px; align-items: center; font-size: 12px; }
.mt b { text-align: right; }
.rep { background: var(--white); border: 2px solid #000; padding: 14px; max-width: 1100px; }
.rep-h { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.rep-h b { text-transform: uppercase; font-size: 14px; }
.rep-h span { font-size: 12px; color: var(--grey); }
.rep-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.rep-k div { background: var(--paper); padding: 10px; }
.rep-k span { display: block; font-size: 10px; text-transform: uppercase; color: var(--grey); }
.rep-k b { font-size: 24px; letter-spacing: -0.03em; }
.rep-k small { display: block; font-size: 11px; }
.rep-k small.g { color: var(--g); font-weight: 700; } .rep-k small.r { color: var(--r); font-weight: 700; }
.rep-s { font-size: 13px; line-height: 1.4; margin-top: 10px; }

@media (max-width: 1100px) {
  .pitchgrid, .qgrid2 { grid-template-columns: 1fr; }
  .pitchgrid > div, .qgrid2 > div { min-width: 0; }
  .rep-k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .phases { flex-direction: column; }
  .pa { transform: rotate(90deg); }
  .af { grid-template-columns: 1fr; gap: 6px; }
  .afn { text-align: left; }
  .ml { grid-template-columns: 40px 1fr; }
  .ml .mls { grid-column: 1 / -1; }
  .objs, .first20 { grid-template-columns: 1fr; }
  .sb { grid-template-columns: 1fr 80px; } .sb .hb { grid-column: 1 / -1; grid-row: 2; }
  .snap-b { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mt { grid-template-columns: 130px 1fr 60px; font-size: 11px; }
  .snapt { font-size: 10.5px; }
  .snap .score b { font-size: 30px; }
}
.dgroups > .dg, .pitchgrid > div, .qgrid2 > div { min-width: 0; }

/* ---------- agent-ready: ladder ---------- */
.lad4 { display: grid; gap: 10px; }
.l4 { background: var(--paper); border-left: 8px solid var(--c, #000); }
.l4.lv1 { --c: #9fd3a9; } .l4.lv2 { --c: var(--g); } .l4.lv3 { --c: var(--forest); } .l4.lv4 { --c: #000; }
.l4h { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px 6px; }
.l4n { font-family: var(--cond); font-weight: 700; font-size: 40px; line-height: .9; }
.l4h h3 { font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.l4p { font-size: 13px; line-height: 1.35; margin-top: 3px; max-width: 900px; }
.l4b { display: grid; grid-template-columns: 1.1fr 1.2fr .8fr; gap: 12px; padding: 6px 14px 14px; }
.l4b > div { min-width: 0; }
.cl1 li { font-size: 12px; line-height: 1.3; padding-left: 14px; position: relative; margin: 3px 0; }
.cl1 li::before { content: "—"; position: absolute; left: 0; font-size: 10px; top: 1px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.uchip { font-size: 11px; padding: 3px 6px; background: var(--white); border-left: 4px solid var(--c); }
.uchip.g { --c: var(--g); } .uchip.y { --c: var(--y); } .uchip.r { --c: var(--r); }
.uchip em { font-style: normal; font-size: 9.5px; text-transform: uppercase; color: var(--grey); margin-left: 5px; }
.l4o { background: var(--white); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.l4o b { font-size: 13px; line-height: 1.25; }
.l4o .l4price { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.l4o small { font-size: 11px; color: var(--grey); line-height: 1.3; }

/* ---------- agent-ready: bad vs good ---------- */
.bgpair { margin-top: 22px; }
.bgh h3 { font-size: 16px; font-weight: 700; margin-top: 2px; }
.bgcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.bgc { background: var(--white); border-top: 6px solid var(--c); padding: 12px; min-width: 0; }
.bgc.bad, .bgcheck .bad { --c: var(--r); } .bgc.good, .bgcheck .good { --c: var(--g); }
.bgl { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--c); padding: 3px 8px; }
.mock { border: 1px solid var(--line); background: var(--paper); margin: 10px 0; padding: 8px; font-size: 12px; line-height: 1.35; display: grid; gap: 5px; }
.mkl { background: var(--white); padding: 5px 8px; border: 1px dashed var(--line); }
.mkl.wall { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }
.mkl.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; background: #0f1a0f; color: #d6f5d6; border-color: #0f1a0f; white-space: pre-wrap; }
.mkl.hi { background: var(--g-soft); border-style: solid; border-color: var(--g); }
.mkl.lo { background: var(--r-soft); border-style: solid; border-color: var(--r); }
.alog { display: grid; gap: 3px; margin: 6px 0; }
.alog li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; font-size: 12px; line-height: 1.3; }
.alog li span { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 11px; }
.alog li.ok span { background: var(--g); } .alog li.no span { background: var(--r); }
.bgo { font-size: 12.5px; line-height: 1.35; margin-top: 6px; }
.bgcheck { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bgcheck > div { background: var(--white); border-top: 6px solid var(--c); padding: 12px; }
.bgcheck ul { margin-top: 8px; } .bgcheck li { font-size: 12.5px; line-height: 1.35; margin: 4px 0; padding-left: 14px; position: relative; }
.bgcheck li::before { content: "•"; position: absolute; left: 0; }

/* ---------- agent-ready: offers ---------- */
.sec.forest .statement + .offs { margin-top: 26px; }
.offs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.off { background: var(--paper); color: var(--ink); padding: 14px; display: flex; flex-direction: column; gap: 6px; border-top: 6px solid var(--neon); }
.off .cn { font-size: 10.5px; text-transform: uppercase; }
.off h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.off > p { font-size: 12.5px; line-height: 1.35; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; }
.tool { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; padding: 2px 6px; border: 1px solid; }
.tool.r { background: var(--white); border-color: var(--line); } .tool.w { background: var(--y-soft); border-color: var(--y); }
.offm { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: auto; background: var(--ink); color: #fff; }
.offm div { padding: 8px 10px; border-right: 1px solid #333; border-bottom: 1px solid #333; }
.offm span { display: block; font-size: 9.5px; text-transform: uppercase; opacity: .75; }
.offm b { font-size: 14px; }
.sec.forest .legend .tool { color: var(--ink); }

/* ---------- agent-ready: safeguards ---------- */
.gflow { display: flex; align-items: stretch; gap: 6px; margin: 22px 0 16px; }
.gf { flex: 1; background: var(--paper); padding: 10px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gf h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.gf p { font-size: 11.5px; line-height: 1.3; }
.gtag { margin-top: auto; align-self: flex-start; font-size: 10px; text-transform: uppercase; background: var(--neon); padding: 2px 6px; }
.lvchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 7px; color: #fff; background: #000; }
.lvchip.lv1 { background: #9fd3a9; color: #000; } .lvchip.lv2 { background: var(--g); } .lvchip.lv3 { background: var(--forest); }

@media (max-width: 1100px) {
  .offs { grid-template-columns: 1fr; }
  .l4b { grid-template-columns: 1fr 1fr; } .l4o { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .bgcols, .bgcheck { grid-template-columns: 1fr; }
  .gflow { flex-direction: column; }
  .l4b { grid-template-columns: 1fr; }
}
.mock { grid-template-columns: minmax(0, 1fr); } .mkl { overflow-wrap: anywhere; min-width: 0; } .bgpair, .bgcols > div { min-width: 0; }
.lvchip.lv5 { background: #6B4FD8; }
