/* Agent Opportunity Finder: page styles. Builds on /styles.css tokens and classes. */

/* Hero */
.aof-hero { padding-bottom: clamp(110px, 12vw, 170px); }
.aof-hero .post__back { margin-bottom: 28px; }
.aof-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; color: #3c4047; }
.aof-meta li { display: inline-flex; align-items: center; gap: 10px; }
.aof-meta li::before { content: ""; width: 6px; height: 6px; background: var(--blue); }

/* Finder */
.aof { background: var(--bg-2); padding: clamp(80px, 9vw, 120px) 0; }
.aof__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.aof__head h2 { font-size: clamp(34px, 4.2vw, 56px); }
.aof__head p { color: var(--text); max-width: 30em; justify-self: end; }
.aof__noscript { padding: 20px; background: #fff; margin-bottom: 20px; }
.aof__noscript a { color: var(--blue); }
.aof__form { background: #fff; }
.aof__steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.aof__tab { display: flex; align-items: center; gap: 14px; width: 100%; height: 64px; padding: 0 24px; text-align: left; font-weight: 500; color: var(--soft); transition: color .25s ease, background-color .25s ease; }
.aof__tab .mono { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid var(--line); color: var(--soft); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.aof__tab em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--soft); margin-left: 6px; }
.aof__tab:hover { color: var(--ink); background: #fafafb; }
.aof__tab.is-done .mono { border-color: var(--blue); color: var(--blue); }
.aof__tab.is-current { color: var(--ink); }
.aof__tab.is-current .mono { background: var(--blue); border-color: var(--blue); color: #fff; }
.aof__tab[aria-disabled="true"] { cursor: not-allowed; }
.aof__tab:focus-visible { outline-offset: -3px; }
.aof__bar { display: block; height: 2px; background: var(--line); margin-top: -1px; }
.aof__bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(.3333); transform-origin: left; transition: transform .7s var(--ease); }

.aof__panels { padding: clamp(28px, 4vw, 48px); }
.aof__panel fieldset { border: 0; min-width: 0; }
.aof__panel.is-fwd { animation: aofInFwd .6s var(--ease) both; }
.aof__panel.is-back { animation: aofInBack .6s var(--ease) both; }
@keyframes aofInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes aofInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.aof__legend { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; padding: 0; outline: none; }
.aof__legend--sm { font-size: clamp(20px, 1.8vw, 24px); }
.aof__hint { margin: 10px 0 24px; color: var(--text); max-width: 40em; font-size: 15.5px; }
.aof__set2 { margin-top: 48px; }
.aof__err { min-height: 1.5em; margin-top: 14px; color: #b42318; font-size: 15px; font-weight: 500; }
.aof__err:empty { min-height: 0; margin: 0; }
.aof__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.aof__back { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); height: 44px; padding: 0 4px; transition: color .2s ease, transform .3s var(--ease); }
.aof__back:hover { color: var(--blue); transform: translateX(-3px); }

/* Function tiles */
.aof-fns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.aof-fn { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 18px; background: var(--bg-2); cursor: pointer; transition: background-color .3s ease, color .3s ease, transform .4s var(--ease); }
.aof-fn input, .aof-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.aof-fn__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; background: #fff; color: var(--blue); transition: background-color .3s ease, color .3s ease, transform .5s var(--ease); }
.aof-fn__name { margin-top: 18px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.aof-fn__n { color: #61666e; font-size: 12px; transition: color .3s ease; }
.aof-fn:hover { background: #eef0f6; transform: translateY(-3px); }
.aof-fn:hover .aof-fn__ic { transform: rotate(-6deg); }
.aof-fn.is-on { background: var(--blue); color: #fff; }
.aof-fn.is-on .aof-fn__ic { background: rgba(255, 255, 255, .14); color: #fff; }
.aof-fn.is-on .aof-fn__n { color: rgba(255, 255, 255, .75); }
.aof-fn:has(input:focus-visible), .aof-chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Chips (industry radio, systems checkbox) */
.aof-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aof-chip { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.aof-chip--check i { position: relative; width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid currentColor; opacity: .6; transition: background-color .2s ease, opacity .2s ease; }
.aof-chip--check.is-on i { background: #fff; border-color: #fff; opacity: 1; }
.aof-chip--check.is-on i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid var(--blue); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* Weights (reuses .calc / .calc__row from the ROI calculator) */
.aof-weights { margin-top: 8px; max-width: 760px; gap: 30px; }
.aof-weights .calc__row span small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: #6b7079; }

/* Results */
.aof-res { padding: clamp(80px, 9vw, 120px) 0 clamp(64px, 7vw, 96px); scroll-margin-top: 64px; }
.aof-res__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.aof-res__label { color: var(--blue); margin-bottom: 14px; }
.aof-res__head h2 { font-size: clamp(32px, 3.8vw, 52px); max-width: 18ch; outline: none; }
.aof-res__ctx { margin-top: 14px; font-size: 14.5px; color: var(--soft); }
.aof-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aof-presets__label { color: #6b7079; margin-right: 6px; }
.aof-note { margin-top: 32px; padding: 16px 20px; border-left: 3px solid var(--blue); background: var(--bg-2); font-size: 15px; color: var(--text); max-width: 72em; }
.aof-note strong { color: var(--ink); font-weight: 600; }
.aof-print-head { display: none; }

/* Suggested first deployment */
.aof-first { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 40px 56px; margin-top: 28px; padding: clamp(28px, 4vw, 48px); background-color: var(--navy); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.1'%3E%3Cpath d='M-50 360 C 300 260, 500 500, 1250 320'/%3E%3Cpath d='M-50 400 C 300 300, 500 540, 1250 360'/%3E%3Cpath d='M-50 440 C 300 340, 500 580, 1250 400'/%3E%3Cpath d='M-50 480 C 300 380, 500 620, 1250 440'/%3E%3Cpath d='M-50 520 C 300 420, 500 660, 1250 480'/%3E%3Cpath d='M-50 560 C 300 460, 500 700, 1250 520'/%3E%3C/g%3E%3C/svg%3E"); background-size: cover; }
.aof-first.is-swap > * { animation: aofSwap .7s var(--ease) both; }
.aof-first.is-swap > *:nth-child(2) { animation-delay: .08s; }
@keyframes aofSwap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.aof-first__label { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .8); }
.aof-first__dot { width: 7px; height: 7px; background: #fff; animation: livepulse 1.6s ease-in-out infinite; }
.aof-first h3 { margin-top: 18px; font-size: clamp(30px, 3.2vw, 44px); max-width: 14ch; }
.aof-first__desc { margin-top: 16px; color: rgba(255, 255, 255, .82); max-width: 30em; }
.aof-first__scores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.aof-first__scores li { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .85); }
.aof-first__scores b { color: #fff; font-weight: 500; margin-left: 4px; }
.aof-first__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; align-content: start; }
.aof-first__facts div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.aof-first__facts .aof-first__why { grid-column: 1 / -1; }
.aof-first__facts dt { color: rgba(255, 255, 255, .62); margin-bottom: 8px; }
.aof-first__facts dd { font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.aof-first__why dd { font-size: 17px; color: #fff; }

/* Matrix + list */
.aof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; margin-top: 56px; align-items: start; }
.aof-matrix { position: sticky; top: 88px; padding: 24px; background: var(--bg-2); }
.aof-matrix figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.aof-matrix figcaption .mono { color: var(--blue); }
.aof-matrix__sub { font-size: 13.5px; color: var(--soft); }
#aof-svg { width: 100%; height: auto; overflow: visible; }
.aof-ax__box { fill: #fff; stroke: none; }
.aof-ax__qw { fill: #eef1ff; }
.aof-ax__grid { stroke: var(--line); stroke-width: 1; }
.aof-ax__mid { stroke: #b9bfcc; stroke-width: 1; stroke-dasharray: 3 4; }
.aof-ax__tick { font-family: var(--mono); font-size: 14px; fill: var(--soft); }
.aof-ax__lab { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; fill: #3c4047; }
.aof-ax__q { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; fill: #a3a8b1; }
.aof-ax__q--on { fill: var(--blue); }
.aof-pt { cursor: pointer; outline: none; transition: transform .9s var(--ease), opacity .5s ease; }
.aof-pt__in { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.aof-pt rect { stroke-width: 1.5; transition: fill .3s ease, stroke .3s ease; }
.aof-pt text { font-family: var(--sans); font-size: 14px; font-weight: 600; pointer-events: none; }
.aof-pt--low rect { fill: var(--blue); stroke: var(--blue); }
.aof-pt--low text { fill: #fff; }
.aof-pt--mid rect { fill: var(--navy); stroke: var(--navy); }
.aof-pt--mid text { fill: #fff; }
.aof-pt--high rect { fill: #fff; stroke: var(--navy); }
.aof-pt--high text { fill: var(--navy); }
.aof-pt.is-hot .aof-pt__in { transform: scale(1.35); }
.aof-pt.is-hot rect { stroke: var(--ink); stroke-width: 2; }
.aof-pt:focus-visible rect { stroke: var(--ink); stroke-width: 2.5; }
.aof-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--text); font-size: 12px; }
.aof-legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 12px; height: 12px; border: 1.5px solid var(--navy); }
.lg--low { background: var(--blue); border-color: var(--blue); }
.lg--mid { background: var(--navy); }
.lg--high { background: #fff; }

.aof-list__head { display: flex; justify-content: space-between; padding: 0 0 12px; color: var(--soft); border-bottom: 1px solid var(--ink); }
.aof-list { display: grid; }
.aof-row { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px; gap: 16px 20px; padding: 24px 16px 24px 12px; border-bottom: 1px solid var(--line); background: #fff; outline: none; transition: background-color .3s ease, transform .6s var(--ease); }
.aof-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.aof-row.is-hot { background: #f2f4fb; }
.aof-row.is-hot::before, .aof-row:focus-visible::before { transform: scaleY(1); }
.aof-row:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.aof-row.is-moving { z-index: 1; box-shadow: 0 12px 32px rgba(13, 36, 99, .1); }
.aof-row.is-enter { animation: aofRow .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
@keyframes aofRow { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.aof-row.is-ping { animation: aofPing 1.2s ease; }
@keyframes aofPing { 0%, 40% { background: #e3e8ff; } 100% { background: #fff; } }
.aof-row__rank { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; color: var(--blue); line-height: 1.1; font-variant-numeric: tabular-nums; }
.aof-row h3 { font-size: 20px; letter-spacing: -0.025em; line-height: 1.25; }
.aof-badge { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 3px 7px; font-size: 12px; background: var(--blue); color: #fff; letter-spacing: .06em; }
.aof-row__main > p { margin-top: 8px; font-size: 15px; color: var(--text); }
.aof-row__metric { display: flex; gap: 10px; align-items: baseline; color: var(--ink) !important; }
.aof-row__metric .mono { flex: 0 0 auto; font-size: 12px; color: var(--blue); }
.aof-sys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.aof-sys li { padding: 3px 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; background: var(--bg-2); color: #3c4047; }
.aof-sys li.is-miss { background: transparent; box-shadow: inset 0 0 0 1px #c6cad3; color: var(--soft); }
.aof-sys li.is-miss::after { content: " · not ticked"; text-transform: none; letter-spacing: 0; }
.aof-row__score { display: grid; gap: 10px; align-content: start; }
.aof-fit { display: flex; align-items: baseline; gap: 8px; }
.aof-fit strong { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.aof-fit .mono { color: #6b7079; font-size: 12px; }
.aof-meters { display: grid; gap: 6px; }
.aof-m { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.aof-m dt { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #6b7079; }
.aof-m dd { display: flex; align-items: center; gap: 8px; }
.aof-m__cells { display: flex; gap: 3px; }
.aof-m__cells i { width: 9px; height: 9px; background: #e3e5ea; }
.aof-m__cells i.f { background: var(--blue); }
.aof-m__cells i.h { background: linear-gradient(90deg, var(--blue) 50%, #e3e5ea 50%); }
.aof-m__n { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 2.2em; }

/* Actions */
.aof-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: 56px; padding: 32px; background: var(--bg-2); }
.aof-actions h3 { font-size: clamp(24px, 2.2vw, 30px); }
.aof-actions p { margin-top: 8px; color: var(--text); max-width: 34em; }
.aof-actions__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.aof-line { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px; font-size: 15px; font-weight: 500; white-space: nowrap; color: var(--navy); box-shadow: inset 0 0 0 1px #c6cad3; background: #fff; transition: box-shadow .25s ease, color .25s ease, transform .2s var(--ease); }
.aof-line:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.aof-line:hover .ar { transform: translate(2px, -2px); }
.aof-line:active { transform: scale(.98); }

/* Rubric */
.aof-how { padding: clamp(80px, 9vw, 130px) 0; background: var(--bg-2); }
.aof-res[hidden] + .aof-how { padding-top: 0; }
.aof-how__head h2 { font-size: clamp(34px, 4.2vw, 56px); }
.aof-how__head p:not(.mono) { margin-top: 20px; max-width: 40em; color: var(--text); }
.aof-how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.aof-dim { padding: 28px; background: #fff; }
.aof-dim > .mono { color: var(--blue); }
.aof-dim h3 { margin-top: 14px; font-size: 24px; letter-spacing: -0.03em; }
.aof-dim > p { margin-top: 10px; font-size: 15.5px; color: var(--text); }
.aof-dim dl { display: grid; grid-template-columns: 30px 1fr; gap: 10px 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.aof-dim dt { font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.aof-dim dd { color: var(--text); }
.aof-how__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.aof-how__rules h3 { font-size: 22px; letter-spacing: -0.025em; }
.aof-how__rules ul { display: grid; gap: 10px; margin-top: 16px; }
.aof-how__rules li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--text); }
.aof-how__rules li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--blue); }
.aof-how__rules strong { color: var(--ink); font-weight: 600; }
.aof-formula { margin-top: 16px; padding: 14px 16px; background: #fff; color: var(--navy); line-height: 1.6; font-size: 12px; }

/* Tablet */
@media (max-width: 1000px) {
  .aof__head { grid-template-columns: 1fr; }
  .aof__head p { justify-self: start; }
  .aof-fns { grid-template-columns: repeat(2, 1fr); }
  .aof-first { grid-template-columns: 1fr; }
  .aof-grid { grid-template-columns: 1fr; }
  .aof-matrix { position: relative; top: 0; }
  .aof-actions { grid-template-columns: 1fr; }
  .aof-how__grid { grid-template-columns: 1fr; }
  .aof-how__rules { grid-template-columns: 1fr; gap: 36px; }
}

/* Phone */
@media (max-width: 760px) {
  .aof__tab { flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; height: 76px; padding: 0 14px; font-size: 14px; }
  .aof__tab .mono { width: 26px; height: 26px; flex-basis: 26px; }
  .aof__tab em { display: none; }
  .aof__panels { padding: 24px 18px; }
  .aof-fns { gap: 8px; }
  .aof-fn { min-height: 120px; padding: 14px; }
  .aof-fn__ic { width: 34px; height: 34px; }
  .aof-fn__name { margin-top: 12px; font-size: 16px; }
  .aof__nav .btn { padding: 0 14px; gap: 10px; }
  .aof-first__facts { grid-template-columns: 1fr; }
  .aof-matrix { padding: 16px 12px; margin: 0 calc(var(--pad) * -1); }
  .aof-row { grid-template-columns: 34px minmax(0, 1fr); padding: 20px 4px 20px 10px; gap: 14px 12px; }
  .aof-row__rank { font-size: 22px; }
  .aof-row h3 { font-size: 18px; }
  .aof-row__score { grid-column: 2; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
  .aof-actions { padding: 24px 20px; }
  .aof-actions__btns { flex-direction: column; align-items: stretch; }
  .aof-actions__btns .btn, .aof-actions__btns .aof-line { justify-content: center; }
  .aof-presets__label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .aof__panel.is-fwd, .aof__panel.is-back, .aof-first.is-swap > *, .aof-row.is-enter { animation: none; }
  .aof-pt, .aof-row { transition: none; }
}

/* Print / save as PDF */
@media print {
  @page { margin: 14mm; }
  body { font-size: 11pt; background: #fff; }
  .skip, .nav, .aof-hero, .aof, .cta, .foot, .aof-presets, .aof-actions__btns, .aof-matrix__sub, .ridge { display: none !important; }
  .js [data-rise] { opacity: 1 !important; transform: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
  .aof-print-head { display: block; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--soft); font-size: 9pt; }
  .aof-res { padding: 0; }
  .aof-res__head h2 { font-size: 26pt; }
  .aof-note { margin-top: 14px; }
  .aof-first { break-inside: avoid; grid-template-columns: 1fr 1.3fr; gap: 20px 32px; padding: 22px; margin-top: 16px; }
  .aof-first h3 { font-size: 22pt; }
  .aof-grid { display: block; margin-top: 24px; }
  .aof-matrix { position: static; break-inside: avoid; max-width: 520px; margin: 0 auto 20px; padding: 12px; }
  .aof-row { break-inside: avoid; transform: none !important; opacity: 1 !important; padding: 12px 8px; grid-template-columns: 34px minmax(0, 1fr) 140px; }
  .aof-row.is-hot { background: #fff; }
  .aof-row::before { display: none; }
  .aof-actions { margin-top: 20px; padding: 16px; break-inside: avoid; }
  .aof-actions p::after { content: " Email leron@baxtermountain.ai."; }
  .aof-how { padding: 24px 0 0; background: #fff; break-before: page; }
  .aof-dim { border: 1px solid var(--line); break-inside: avoid; }
  .aof-how__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
  .aof-how__rules { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
  .aof-res[hidden] + .aof-how { break-before: auto; }
}

/* ================= Field guide upgrade ================= */
.aof-hero .lx-hero { position: relative; z-index: 2; }
.aof-hero .lx-hero .phero__title { font-size: clamp(40px, 4.4vw, 64px); }
.aof-hero .lx-fig { justify-self: end; width: 100%; max-width: 560px; }
@media (max-width: 900px) { .aof-hero .lx-fig { justify-self: start; max-width: 460px; } }
.lx-guide__head > div > p.mono { justify-self: start; color: var(--blue); }

/* Teaching notes inside the form and the matrix */
.aof-why { max-width: 52em; margin-top: 18px; }
.aof-matrix .aof-why { margin-top: 16px; background: #fff; }
.aof-why b { color: var(--ink); font-weight: 600; }

/* What this means */
.aof-means { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); gap: 24px 56px; margin-top: 28px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); }
.aof-means__head { display: grid; align-content: start; gap: 6px; }
.aof-means__body { display: grid; gap: 22px; }
.aof-tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.aof-tally__c { display: grid; gap: 4px; padding: 14px 16px; background: #fff; }
.aof-tally__c strong { font-size: clamp(30px, 3vw, 42px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.aof-tally__c .mono { font-size: 11px; color: var(--soft); }
.aof-tally__c.is-key { background: var(--navy); }
.aof-tally__c.is-key strong { color: #fff; }
.aof-tally__c.is-key .mono { color: #9fb0ff; }
.aof-means__text { display: grid; gap: 12px; max-width: 46em; }
.aof-means__text p { font-size: 16px; color: var(--text); }
.aof-means__text .aof-means__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.aof-means__text b { color: var(--ink); font-weight: 600; }

/* Add to plan toggle on each row */
.aof-pin { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 11px; color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px #c6cad3; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.aof-pin:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.aof-pin[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.aof-pin--first { cursor: default; background: var(--navy); color: #fff; box-shadow: none; }
.aof-pin--first:hover { color: #fff; box-shadow: none; }

/* Leadership plan */
.aof-plan { margin-top: 56px; padding: clamp(28px, 4vw, 48px); background: #fff; border-top: 3px solid var(--blue); }
.aof-plan__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.aof-plan__head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em; }
.aof-plan__head > p { color: var(--text); font-size: 16px; max-width: 32em; justify-self: end; }
.aof-plan__head b { color: var(--ink); font-weight: 600; }
.aof-waves { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); }
.aof-wave { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; }
.aof-wave:first-child { background: #f3f5ff; }
.js .aof-res:not([hidden]) .aof-wave { animation: aofWave .7s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 200ms); }
@keyframes aofWave { from { opacity: 0; transform: translateY(14px); } }
.aof-wave__top { display: flex; justify-content: space-between; gap: 12px; }
.aof-wave__n { color: var(--blue); font-size: 11px; }
.aof-wave__when { color: var(--soft); font-size: 11px; }
.aof-wave h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.aof-wave__items { display: grid; gap: 12px; }
.aof-wave__items li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.aof-wave__rank { font-size: 12px; color: var(--blue); padding-top: 3px; }
.aof-wave__items b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--ink); }
.aof-wave__items span:not(.mono) { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text); }
.aof-wave__items .aof-wave__hitl { padding: 8px 10px; margin-top: 8px; background: #fff; border-left: 2px solid var(--blue); }
.aof-wave__note { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--soft); }
.aof-plan__foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; margin-top: 32px; align-items: start; }
.aof-ask__label { color: var(--blue); margin-bottom: 12px; }
.aof-ask__list { display: grid; gap: 10px; counter-reset: ask; }
.aof-ask__list li { position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.5; color: var(--text); counter-increment: ask; }
.aof-ask__list li::before { content: counter(ask, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.aof-ask__list b { color: var(--ink); font-weight: 600; }

/* Warm-up quiz */
.aof-call { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 24px 48px; margin-top: 48px; padding: clamp(24px, 3vw, 40px); background: #fff; }
.aof-call__head h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.025em; }
.aof-call__head > p:not(.mono) { margin-top: 12px; color: var(--text); font-size: 15.5px; }
.aof-call__stage { display: grid; gap: 16px; align-content: start; }
.aof-quiz__card { padding: 20px; background: var(--bg-2); animation: aofWave .5s var(--ease); }
.aof-quiz__n { color: var(--soft); font-size: 11px; }
.aof-quiz__card h4 { margin-top: 6px; font-size: 21px; letter-spacing: -0.02em; }
.aof-quiz__card > p:not(.mono) { margin-top: 6px; font-size: 15px; color: var(--text); }
.aof-quiz__facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.aof-quiz__facts .mono { font-size: 10.5px; color: var(--blue); }
.aof-quiz__opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.aof-quiz__opt { min-height: 48px; padding: 8px 10px; font: 500 15px var(--sans); color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px #c6cad3; cursor: pointer; transition: box-shadow .2s ease, color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.aof-quiz__opt:hover:not(:disabled) { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); transform: translateY(-1px); }
.aof-quiz__opt:disabled { cursor: default; opacity: .55; }
.aof-quiz__opt.is-right { opacity: 1; background: var(--blue); color: #fff; box-shadow: none; }
.aof-quiz__opt.is-wrong { opacity: 1; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); text-decoration: line-through; }
.aof-quiz__fb { font-size: 15px; line-height: 1.55; color: var(--text); }
.aof-quiz__fb:not(:empty) { animation: aofWave .45s var(--ease); }
.aof-quiz__fb b { color: var(--ink); }
.aof-quiz__next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 6px; padding: 0 4px; font: 500 15px var(--sans); color: var(--blue); background: none; cursor: pointer; }
.aof-quiz__next:hover .ar { transform: translate(2px, -2px); }
.aof-quiz__end { display: grid; gap: 12px; justify-items: start; padding: 20px; background: var(--bg-2); }
.aof-quiz__score strong { font-size: 52px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.aof-quiz__score span { font-size: 17px; color: var(--ink); }
.aof-quiz__end p:not(.aof-quiz__score) { color: var(--text); }
.aof-myth { margin-top: 20px; }

@media (max-width: 1000px) {
  .aof-means, .aof-call, .aof-plan__head, .aof-plan__foot { grid-template-columns: 1fr; }
  .aof-plan__head > p { justify-self: start; }
  .aof-waves { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .aof-means, .aof-call { padding: 24px 20px; }
  .aof-plan { padding: 24px 20px; }
  .aof-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aof-quiz__opts { grid-template-columns: 1fr 1fr; }
  .aof-row__score .aof-pin { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .js .aof-res:not([hidden]) .aof-wave, .aof-quiz__card, .aof-quiz__fb:not(:empty) { animation: none; }
}
@media print {
  .aof-why, .aof-pin, .aof-call, .aof-myth { display: none !important; }
  .aof-means { padding: 12px 0; background: #fff; grid-template-columns: 1fr; gap: 10px; break-inside: avoid; }
  .aof-plan { margin-top: 20px; padding: 16px 0 0; break-before: page; }
  .aof-wave { animation: none !important; break-inside: avoid; }
  .aof-waves { grid-template-columns: repeat(3, 1fr); }
  .aof-plan__foot { grid-template-columns: 1.4fr 1fr; }
}
