/* ===================== v7 · enterprise visual language (site + app). Loaded last on every page.
   Type: JetBrains Mono stays the brand face (headings, numbers, labels, buttons, tags); Inter carries body/UI
   text for legibility at small sizes. Palette: Shkirap warm neutrals + one gold accent, crisp 1px borders. ===================== */
:root {
  --ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: var(--ui);
  --surface: oklch(0.993 0.002 85);
  --surface-2: oklch(0.975 0.004 85);
  --line: oklch(0.905 0.006 75);
  --line-strong: oklch(0.84 0.008 70);
  --side-bg: oklch(0.19 0.008 60);
  --side-ink: oklch(0.93 0.005 85);
  --side-faint: oklch(0.62 0.008 70);
  --side-line: oklch(0.29 0.008 60);
  --side-hover: oklch(0.25 0.008 60);
  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow-1: 0 1px 0 oklch(0.2 0.01 60 / 0.03), 0 1px 2px oklch(0.2 0.01 60 / 0.04);
  --shadow-2: 0 1px 2px oklch(0.2 0.01 60 / 0.05), 0 12px 32px -16px oklch(0.2 0.01 60 / 0.18);
  --good: oklch(0.55 0.12 150); --bad: oklch(0.56 0.17 35); --warn: oklch(0.62 0.13 70);
}
[data-theme="dark"] {
  --surface: oklch(0.2 0.008 60); --surface-2: oklch(0.18 0.008 60); --line: oklch(0.3 0.008 60); --line-strong: oklch(0.38 0.008 60);
  --side-bg: oklch(0.13 0.006 60); --side-line: oklch(0.24 0.006 60); --side-hover: oklch(0.2 0.006 60);
}
html, body { font-family: var(--ui); font-feature-settings: "cv11", "ss01", "ss03"; }
body { font-size: 14px; line-height: 1.5; letter-spacing: -0.006em; }
.h-serif, .display, .serif, h1, h2, .btn, .seg button, .tag, .qchip, .pill-s, .ribbon, kbd, .num, .price, .mover-d,
.dist-cell b, .kpis .num, .side-teams-h, .mono, code, .tswitch-btn, .qswitch, .live-tag, .pb-plan, .pb-count { font-family: var(--mono); }
.balance, h1, h2, h3, .h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.muted { color: var(--ink-soft); }

/* ---------- Marketing: hero + rhythm ---------- */
.m-body { background: var(--bg); }
.m-hero { padding-bottom: 72px; }
.m-hero .lede { font-size: 17px; line-height: 1.55; max-width: 480px; }
.m-chart.chart-card, .m-dash, .chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.section-eyebrow { margin-bottom: 18px; }
.m-body .h2 { font-size: clamp(26px, 2.7vw, 40px); letter-spacing: -0.05em; line-height: 1.1; }

/* ---------- Pain points: visual-led cards ---------- */
.m-pains { padding-top: 64px; padding-bottom: 24px; }
.m-pains .h2 { max-width: none; }
@media (min-width: 1100px) { .m-pains .h2 { white-space: nowrap; } }
.pain-grid { gap: 12px; margin-top: 28px; }
.pain-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-1); }
.pain-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pain-vis { height: 132px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; display: grid; place-items: center; overflow: hidden; }
.pain-card h3 { font-family: var(--mono); font-size: 14.5px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; }
.pain-card p { font-size: 13px; line-height: 1.45; margin: 0; }
.pv { width: 100%; height: 100%; max-width: 260px; overflow: visible; font-family: var(--mono); }
.pv text { font-size: 9px; fill: var(--ink-faint); text-anchor: middle; letter-spacing: .02em; }
.pv .pv-l { text-anchor: start; } .pv .pv-r { text-anchor: end; }
.pv-cell { fill: var(--surface); stroke: var(--line-strong); }
.pv .pv-num { font-size: 12px; fill: var(--ink-soft); font-weight: 600; }
.pv-axis { stroke: var(--line-strong); }
.pv-thr { stroke: var(--accent); stroke-dasharray: 4 4; }
/* 1 · three managers land on different scores */
.pv-pin circle { fill: var(--ink); } .pv-pin text { fill: var(--bg); font-size: 9px; font-weight: 700; }
.pv-pin-0 { transform: translate(37px, 40px); } .pv-pin-1 { transform: translate(121px, 40px); } .pv-pin-2 { transform: translate(205px, 40px); }
.pv-pin-1 circle { fill: var(--accent); } .pv-pin-2 circle { fill: oklch(0.6 0.08 230); }
.is-live .pv-pin-0 { animation: pvPin0 5.4s cubic-bezier(.5,0,.2,1) infinite; }
.is-live .pv-pin-1 { animation: pvPin1 5.4s cubic-bezier(.5,0,.2,1) infinite; }
.is-live .pv-pin-2 { animation: pvPin2 5.4s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes pvPin0 { 0%,18% { transform: translate(79px, 40px); } 33%,58% { transform: translate(37px, 40px); } 72%,100% { transform: translate(79px, 40px); } }
@keyframes pvPin1 { 0%,18% { transform: translate(121px, 40px); } 33%,58% { transform: translate(205px, 40px); } 72%,100% { transform: translate(163px, 40px); } }
@keyframes pvPin2 { 0%,18% { transform: translate(205px, 40px); } 33%,58% { transform: translate(121px, 40px); } 72%,100% { transform: translate(37px, 40px); } }
/* 2 · same rep, four managers, four heights */
.pv-bar { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 100%; }
.pv-bar-1 { fill: var(--accent); } .pv-bar-2 { fill: oklch(0.6 0.08 230); } .pv-bar-3 { fill: var(--line-strong); }
.pv-bar-0 { transform: scaleY(.82); } .pv-bar-1 { transform: scaleY(.45); } .pv-bar-2 { transform: scaleY(.66); } .pv-bar-3 { transform: scaleY(.3); }
.is-live .pv-bar { animation: pvBar 4.8s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1.1s); }
.pv-bar-1 { --k: 1; } .pv-bar-2 { --k: 2; } .pv-bar-3 { --k: 3; }
@keyframes pvBar { 0%,100% { transform: scaleY(.82); } 25% { transform: scaleY(.38); } 50% { transform: scaleY(.62); } 75% { transform: scaleY(.28); } }
/* 3 · quota fills, then the hidden behaviour score is revealed */
.pv-track { fill: var(--line); } .pv-fill { fill: var(--good); transform-box: fill-box; transform-origin: 0 50%; }
.pv-risk { fill: var(--bad); }
.pv .pv-good { fill: var(--good); font-weight: 600; } .pv .pv-bad { fill: var(--bad); font-weight: 600; }
.pv-veil { fill: var(--surface-2); opacity: 0; }
.pv-tag rect { fill: color-mix(in oklch, var(--bad) 14%, var(--surface)); stroke: var(--bad); } .pv-tag text { fill: var(--bad); font-size: 8px; font-weight: 600; }
.is-live .pv-fill { animation: pvFill 6s cubic-bezier(.3,0,.2,1) infinite; }
.is-live .pv-veil { animation: pvVeil 6s ease infinite; }
.is-live .pv-tag { animation: pvTag 6s ease infinite; }
@keyframes pvFill { 0% { transform: scaleX(0); } 22%,100% { transform: scaleX(1); } }
@keyframes pvVeil { 0%,30% { opacity: .96; } 46%,88% { opacity: 0; } 100% { opacity: .96; } }
@keyframes pvTag { 0%,46% { opacity: 0; transform: translateY(4px); } 54%,88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
/* 4 · a slow slide nobody sees until it's too late */
.pv-line { fill: none; stroke: var(--ink-soft); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pv-dot { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.4; }
.pv-dot-4 { fill: var(--bad); stroke: var(--bad); }
.pv-alert rect { fill: var(--bad); } .pv-alert text { fill: #fff; font-size: 9px; font-weight: 600; }
.is-live .pv-line { animation: pvLine 6s ease-in-out infinite; }
.is-live .pv-dot { animation: pvDot 6s ease infinite; }
.pv-dot-1 { animation-delay: .25s !important; } .pv-dot-2 { animation-delay: .5s !important; } .pv-dot-3 { animation-delay: .75s !important; } .pv-dot-4 { animation-delay: 1s !important; }
.is-live .pv-alert { animation: pvAlert 6s cubic-bezier(.2,.8,.2,1.2) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pvLine { 0% { stroke-dashoffset: 1; } 40%,100% { stroke-dashoffset: 0; } }
@keyframes pvDot { 0%,8% { opacity: 0; } 20%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pvAlert { 0%,44% { opacity: 0; transform: translateY(6px) scale(.9); } 52%,88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Platform: accordion + isometric layers ---------- */
.m-platform { position: relative; margin-top: 72px; }
.m-platform.pinned { height: 340vh; }
.m-platform.pinned .plat-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.plat-sticky { width: 100%; background: linear-gradient(180deg, var(--bg), var(--surface-2) 30%, var(--surface-2) 70%, var(--bg)); }
.plat-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; width: 100%; padding-top: 56px; padding-bottom: 40px; }
.m-body .plat-h { max-width: 600px; margin-bottom: 26px; font-size: clamp(24px, 2.35vw, 34px); line-height: 1.14; }
.acc { border-top: 1px solid var(--line); max-width: 520px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 2px; text-align: left; color: var(--ink-soft); transition: color 200ms; }
.acc-btn:hover, .acc-item.on .acc-btn { color: var(--ink); }
.acc-n { font-size: 10.5px; color: var(--ink-faint); width: 22px; flex: none; transition: color 200ms; }
.acc-item.on .acc-n { color: var(--accent); }
.acc-t { flex: 1; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.acc-ic { width: 12px; height: 12px; position: relative; flex: none; }
.acc-ic::before, .acc-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; background: currentColor; border-radius: 1px; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.acc-ic::after { transform: rotate(90deg); }
.acc-item.on .acc-ic::before { transform: rotate(45deg); } .acc-item.on .acc-ic::after { transform: rotate(135deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms cubic-bezier(.2,.7,.2,1); }
.acc-panel > div { overflow: hidden; }
.acc-item.on .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 2px 18px 36px; color: var(--ink-soft); font-size: 14px; line-height: 1.55; max-width: 460px; opacity: 0; transform: translateY(-4px); transition: opacity 300ms 80ms, transform 300ms 80ms; }
.acc-item.on .acc-panel p { opacity: 1; transform: none; }
.plat-progress { display: flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--ink-faint); }
.plat-progress i { width: 18px; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background 300ms, width 300ms; }
.plat-progress i.on { background: var(--ink); width: 26px; }
.plat-progress span { margin-left: 10px; }

.iso { position: relative; height: 560px; perspective: 1800px; overflow: clip; }
.iso-floor { position: absolute; inset: 8% -10% -6% -10%; background:
  linear-gradient(115deg, transparent 49.8%, var(--line) 50%, transparent 50.2%),
  linear-gradient(25deg, transparent 49.8%, var(--line) 50%, transparent 50.2%); opacity: .8;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.iso-stage { position: absolute; left: 50%; top: 50%; width: 440px; height: 272px; transform-style: preserve-3d;
  transform: translate(-50%, -40%) rotateX(52deg) rotateZ(-34deg); }
.iso-card { position: absolute; inset: 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 oklch(1 0 0 / .6) inset, -14px 18px 30px -16px oklch(0.2 0.01 60 / .28);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  transform: translateZ(calc(var(--i) * 46px)); transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 500ms, background 500ms, color 500ms, border-color 500ms, box-shadow 700ms; }
.iso-card.is-above { opacity: 0; transform: translateZ(calc(var(--i) * 46px + 160px)); pointer-events: none; }
.iso-card.is-below { transform: translateZ(calc(var(--i) * 46px)); opacity: calc(1 - var(--d) * 0.12); }
.iso-card.is-on { background: var(--side-bg); color: var(--side-ink); border-color: oklch(0.3 0.01 60); transform: translateZ(calc(var(--i) * 46px + 26px));
  box-shadow: 0 0 0 1px oklch(0.3 0.01 60), -24px 34px 50px -18px oklch(0.2 0.01 60 / .45); }
.iso-head { display: flex; align-items: center; gap: 8px; }
.iso-head .mono { font-size: 11px; letter-spacing: .12em; }
.iso-mark { width: 22px; height: 22px; border-radius: 6px; border: 1px solid currentColor; display: grid; place-items: center; opacity: .7; }
.iso-mark svg, .iso-mark img { width: 12px; height: 12px; }
.iso-card.is-on .iso-mark img { filter: invert(1); }
.iso-dots { margin-left: auto; display: flex; gap: 3px; } .iso-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.iso-sub { margin-top: auto; font-size: 9.5px; opacity: .6; }
.ly-body { flex: 1; min-height: 0; font-size: 12.5px; }
.ly-fw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ly-fw div { border: 1px solid color-mix(in oklch, currentColor 20%, transparent); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.ly-fw b { font-family: var(--mono); font-size: 32px; line-height: 1; letter-spacing: -0.05em; }
.iso-card.is-on .ly-fw b { color: var(--accent); }
.ly-fw span { font-size: 11.5px; } .ly-fw i { font-style: normal; font-size: 10px; opacity: .55; font-family: var(--mono); }
.ly-rate { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.ly-row { display: flex; align-items: center; gap: 10px; } .ly-row > span:first-child { width: 112px; }
.ly-dots { display: flex; gap: 4px; } .ly-dots i { width: 28px; height: 9px; border-radius: 4px; background: color-mix(in oklch, currentColor 16%, transparent); }
.ly-dots i.on { background: var(--accent); }
.ly-row b { font-family: var(--mono); margin-left: auto; }
.ly-grid svg { width: 100%; height: 100%; }
.lg-frame { fill: none; stroke: color-mix(in oklch, currentColor 25%, transparent); } .lg-split { stroke: color-mix(in oklch, currentColor 30%, transparent); stroke-dasharray: 3 3; }
.ly-grid { color: inherit; } .lg-q { font-family: var(--mono); font-size: 6px; fill: currentColor; opacity: .55; text-anchor: end; letter-spacing: .08em; } .lg-q.l { text-anchor: start; }
.ly-decide { display: flex; flex-direction: column; gap: 6px; }
.ly-act { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; border: 1px solid color-mix(in oklch, currentColor 18%, transparent); border-left: 3px solid var(--qc, var(--accent)); }
.ly-act span { font-family: var(--mono); font-size: 10px; width: 64px; opacity: .7; } .ly-act b { font-weight: 600; } .ly-act em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--qc); }
.ly-act.q-star { --qc: oklch(0.72 0.13 85); } .ly-act.q-compass { --qc: oklch(0.62 0.08 230); } .ly-act.q-time_bomb { --qc: oklch(0.62 0.17 35); }
@media (max-width: 979px) {
  .plat-in { grid-template-columns: 1fr; gap: 8px; padding-top: 48px; }
  .plat-left { display: contents; } .plat-left > .section-eyebrow { order: 0; } .m-body .plat-h { order: 1; margin-bottom: 0; } .iso { height: 340px; order: 2; } .acc { order: 3; }
  .iso-stage { width: 300px; height: 190px; }
  .ly-fw b { font-size: 20px; }
}
@media (max-width: 520px) { .ly-fw { gap: 4px; } .ly-fw div { padding: 5px; } .ly-fw b { font-size: 16px; } .ly-fw span { font-size: 8.5px; } .ly-fw i { display: none; } .iso { height: 300px; } .iso-stage { width: 250px; height: 168px; } .iso-card { padding: 12px; gap: 6px; } .ly-body { font-size: 9.5px; } .ly-row > span:first-child { width: 70px; } .ly-dots i { width: 14px; } }

/* ---------- Pricing: centered, accent counts ---------- */
.m-pricing { text-align: center; display: flex; flex-direction: column; align-items: center; }
.m-pricing .h2 { margin-inline: auto; }
.m-pricing .plans { justify-content: center; margin-inline: auto; width: 100%; grid-template-columns: repeat(2, minmax(0, 380px)); }
.m-pricing .plan { text-align: left; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.m-pricing .plan.on { background: color-mix(in oklch, var(--accent) 7%, var(--surface)); border-color: var(--accent); }
.plan-people { color: var(--ink-soft); font-size: 14px; }
.plan-people b { color: var(--accent); font-weight: 600; font-family: var(--mono); letter-spacing: -0.02em; }
.plan-note { margin-top: 16px; }
@media (max-width: 860px) { .m-pricing .plans { grid-template-columns: minmax(0, 420px); } }

@media (prefers-reduced-motion: reduce) {
  .is-live .pv-pin-0, .is-live .pv-pin-1, .is-live .pv-pin-2, .is-live .pv-bar, .is-live .pv-fill, .is-live .pv-veil, .is-live .pv-tag, .is-live .pv-line, .is-live .pv-dot, .is-live .pv-alert { animation: none !important; }
  .pv-veil { opacity: 0; }
  .iso-card, .acc-panel, .acc-panel p, .acc-ic::before, .acc-ic::after { transition: none !important; }
}

/* hero: two lines that never orphan a word on desktop */
@media (min-width: 1101px) { .m-hero { grid-template-columns: 1.15fr 1fr; } }
.m-hero > *, .m-two > *, .plat-in > * { min-width: 0; }
.m-body .m-hero h1.display { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04; text-wrap: balance; }
.m-hero h1 .ln { display: block; }
@media (min-width: 1100px) { .m-hero h1 .ln { white-space: nowrap; } }
.m-pricing .plan .price { font-family: var(--mono); letter-spacing: -0.05em; }
.m-pricing .plan > .btn { margin-top: auto !important; }
.m-pricing .plan ul.plan-feats { margin-bottom: 20px; }

/* =====================================================================================
   App shell — dark sidebar, inset light workspace (target: compact enterprise dashboard)
   ===================================================================================== */
.cage-body:has(.shell) { background: var(--side-bg); }
.shell { grid-template-columns: 232px 1fr; background: var(--side-bg); }
.side { background: var(--side-bg); color: var(--side-ink); border-right: 0; padding: 18px 12px 14px; gap: 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--side-line) transparent; }
.side a, .side button { color: inherit; }
.side .brand-lockup b { color: var(--side-ink); } .side .brand-lockup small { color: var(--side-faint); }
.side .brand-lockup, .side .brand-lockup .bird, .topbar .brand-lockup .bird { color: var(--side-ink); }
.side-top { gap: 10px; }
.side-cust { background: oklch(1 0 0 / 0.04); border-color: var(--side-line); border-radius: 9px; padding: 8px; }
.side-cust .side-logo { width: 30px; height: 30px; border-radius: 7px; background: oklch(1 0 0 / 0.08); }
.side-cust .cust-mono { color: var(--side-ink); font-size: 11px; }
.side-cust .faint, .side .faint { color: var(--side-faint); }
.side-ws { font-size: 13px; }
.side-search { border-color: var(--side-line); color: var(--side-faint); border-radius: 8px; padding: 6px 9px; }
.side-search:hover { border-color: var(--side-faint); color: var(--side-ink); }
.side-search kbd, .side kbd { background: transparent; border-color: var(--side-line); color: var(--side-faint); }
.side-nav { gap: 1px; }
.side-nav a { font-family: var(--ui); font-size: 13px; font-weight: 450; padding: 6px 10px; border-radius: 7px; color: oklch(0.8 0.006 80); gap: 10px; transition: background 140ms, color 140ms; }
.side-nav a:hover { background: var(--side-hover); color: var(--side-ink); }
.side-nav a.on, [data-theme="dark"] .side-nav a.on { background: oklch(1 0 0 / 0.1); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-nav .ico, .side-nav .ico-svg { width: 15px; opacity: .75; }
.side-nav a.is-locked { color: var(--side-faint); }
.side-nav .nav-lock { margin-left: auto; opacity: .6; }
.side-sec, .side-teams-h { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--side-faint); padding: 8px 10px 4px; }
.side-teams { border-top: 1px solid var(--side-line); margin-top: 2px; padding-top: 6px; gap: 1px; }
.side-teams-h { padding: 4px 10px 4px; }
.side-teams-h a { color: var(--side-faint); }
.side-teams button { font-family: var(--ui); font-size: 12.5px; padding: 5px 10px; border-radius: 7px; color: oklch(0.8 0.006 80); gap: 9px; }
.side-teams button em { color: var(--side-faint); }
.side-teams button:hover { background: var(--side-hover); color: var(--side-ink); }
.side-teams button.on { background: oklch(1 0 0 / 0.1); color: #fff; }
.side-recent { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--side-line); padding-top: 6px; }
.side-recent a { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; color: oklch(0.8 0.006 80); transition: background 140ms, color 140ms; }
.side-recent a:hover, .side-recent a.on { background: var(--side-hover); color: var(--side-ink); }
.rc-av { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 8.5px; font-weight: 600; background: oklch(1 0 0 / 0.08); color: var(--side-ink); flex: none; }
.rc-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-q { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.rc-q.q-star { background: oklch(0.72 0.13 85); } .rc-q.q-compass { background: oklch(0.62 0.08 230); } .rc-q.q-flight_risk { background: oklch(0.66 0.12 60); } .rc-q.q-time_bomb { background: oklch(0.6 0.17 35); }
.side-foot { gap: 6px; border-top: 1px solid var(--side-line); padding-top: 10px; }
.side-foot .btn { background: var(--side-ink); color: var(--side-bg); border-color: var(--side-ink); }
.side-foot .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.side .plan-badge { border-color: var(--side-line); background: oklch(1 0 0 / 0.04); color: var(--side-ink); }
.side .plan-badge .pb-meter { background: var(--side-line); }

.app-main { background: var(--surface-2); margin: 8px 8px 8px 0; border-radius: 14px; border: 1px solid oklch(0.3 0.008 60); min-height: calc(100vh - 16px); overflow: clip; }
[data-theme="dark"] .app-main { border-color: var(--side-line); }
.app-top { padding: 10px 24px; background: color-mix(in oklch, var(--surface-2) 88%, transparent); border-bottom: 1px solid var(--line); gap: 8px; justify-content: flex-start; }
.app-top .cmdk-btn { margin-left: auto; min-width: 0; max-width: 300px; flex: 0 1 300px; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.qswitch, .tswitch-btn, .cmdk-btn { height: 30px; border-radius: 7px; border-color: var(--line); background: var(--surface); font-size: 12px; }
.qswitch > button { height: 28px; width: 26px; font-size: 14px; }
.qswitch .qsel select { font-size: 12px; }
.tswitch-btn { height: 30px; padding: 0 8px 0 6px; }
.banner { padding: 8px 24px; font-size: 13px; border-bottom-color: color-mix(in oklch, var(--accent) 50%, var(--line)); }
.app-wrap { padding: 22px 24px 72px; max-width: 1400px; }

/* page heads */
.app-main .result-head { align-items: center; gap: 12px; margin-bottom: 14px; }
.app-main .result-head h1, .app-main h1.h2, .app-main .page-title { font-size: 24px !important; letter-spacing: -0.045em; margin-top: 4px !important; }
.app-main .eyebrow-team, .app-main .result-head .mono { font-size: 10px; }
.app-main .h2 { font-size: 24px; }

/* buttons: compact, black primary */
.app-main .btn, .modal .btn { border-radius: 7px; height: 30px; padding: 0 12px; font-size: 12px; gap: 6px; }
.app-main .btn:not(.ghost) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.app-main .btn:not(.ghost):hover { background: color-mix(in oklch, var(--ink) 82%, var(--accent)); border-color: transparent; color: var(--surface); }
.app-main .btn.ghost { background: var(--surface); border-color: var(--line); }
.app-main .btn.ghost:hover { border-color: var(--line-strong); background: var(--surface); }

/* cards: crisp borders, white surface */
.app-main .chart-card, .app-main .dash-lists > div, .app-main .kpis > div, .app-main .tbl-wrap, .app-main .set-card, .app-main .panel, .app-main .result-grid, .app-main .ins-panel, .app-main .teams-panel, .mcard, .acard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.app-main .chart-card h5 { font-size: 10px; letter-spacing: .1em; }
.app-main .kpis { gap: 12px; margin-top: 12px; }
.app-main .kpis > div { padding: 14px 16px; gap: 4px; }
.app-main .kpis .num { font-size: 28px; }
.app-main .kpis .mono { font-size: 9.5px; }
.app-main .tbl th { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; }
.app-main .tbl td { font-size: 13px; }

/* strip (like a handoff banner) */
.strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 13px; margin-bottom: 12px; box-shadow: var(--shadow-1); animation: mx-rise 420ms var(--ease-out, ease) both; }
.strip b { font-family: var(--mono); font-weight: 600; }
.strip-ic { width: 18px; height: 18px; border-radius: 5px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700; flex: none; }

/* dashboard grid */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mcard { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; animation: mx-rise 480ms var(--ease-out, ease) both; }
.mcard-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mcard-num { display: flex; align-items: baseline; gap: 4px; font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.06em; line-height: 1; }
.mcard-num small { font-size: 13px; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.mcard-d { font-size: 12px; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--ink-faint); }
.mcard-d.up { color: var(--accent); } .mcard-d.down { color: var(--bad); }
.mcard-t { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.mcard-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-family: var(--mono); font-size: 10.5px; color: var(--ink-soft); white-space: nowrap; transition: border-color 140ms, color 140ms; }
a.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill svg { opacity: .6; }
.mcard-chart { margin: 4px -4px 0; }
.mbars { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--mono); }
.mb-grid { stroke: var(--line); stroke-width: 1; }
.mb-tick, .mb-x { font-size: 9px; fill: var(--ink-faint); }
.mb-hit { fill: transparent; }
.mb-bar { fill: color-mix(in oklch, var(--ink) 16%, var(--surface)); transform-box: fill-box; transform-origin: 50% 100%; animation: mbGrow 620ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 28ms); transition: fill 160ms; }
.mb-col.up .mb-bar { fill: color-mix(in oklch, var(--ink) 30%, var(--surface)); }
.mb-col { cursor: pointer; outline: none; }
.mb-col:hover .mb-bar, .mb-col:focus-visible .mb-bar { fill: var(--accent); }
.mb-col:hover .mb-x, .mb-col:focus-visible .mb-x { fill: var(--ink); }
.mb-line { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mb-pt { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.mb-thr { stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; }
.mb-thr-l { font-size: 9px; fill: var(--accent); font-weight: 600; }
@keyframes mbGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mcard-f, .acard-f { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--ink-soft); padding-top: 6px; border-top: 1px solid var(--line); margin-top: 2px; flex-wrap: wrap; }
.mcard-f > span:last-child { margin-left: auto; }
.mcard-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.mcard-legend span, .acard-f span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lg-bar { width: 3px; height: 10px; background: color-mix(in oklch, var(--ink) 35%, var(--surface)); border-radius: 1px; }
.lg-line { width: 14px; height: 2px; background: var(--ink); border-radius: 1px; }
.lg-thr { width: 14px; height: 0; border-top: 2px dashed var(--accent); }
.lg-sw { width: 3px; height: 11px; border-radius: 1px; } .lg-sw.q-flight_risk { background: oklch(0.66 0.12 60); } .lg-sw.q-time_bomb { background: oklch(0.58 0.17 35); }

.acard { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; animation: mx-rise 520ms 60ms var(--ease-out, ease) both; }
.acard-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.acard-h h3 { font-family: var(--ui); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.acard-empty { padding: 18px 4px; color: var(--ink-faint); font-size: 13px; }
.att-list, .wait-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.att { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--qc); border-radius: 8px; background: var(--surface); cursor: pointer; transition: border-color 160ms, transform 160ms var(--ease-out, ease), box-shadow 160ms; animation: mx-rise 420ms var(--ease-out, ease) both; }
.att:nth-child(2) { animation-delay: 50ms; } .att:nth-child(3) { animation-delay: 100ms; } .att:nth-child(4) { animation-delay: 150ms; }
.att:hover, .att:focus-visible { border-color: var(--line-strong); border-left-color: var(--qc); transform: translateX(2px); box-shadow: var(--shadow-2); outline: none; }
.att.q-time_bomb { --qc: oklch(0.58 0.17 35); } .att.q-flight_risk { --qc: oklch(0.66 0.12 60); }
.att-when { font-size: 12px; font-weight: 600; color: var(--ink); padding-top: 1px; white-space: nowrap; letter-spacing: -0.02em; }
.att-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; } .att-top b { font-weight: 600; font-size: 13px; } .att-top .faint { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-why { font-size: 13px; margin-top: 2px; }
.att-sub { margin-top: 2px; font-size: 11.5px; }
.att .qchip { font-size: 9.5px; }
.wait { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); animation: mx-rise 420ms var(--ease-out, ease) both; animation-delay: calc(var(--i) * 40ms); }
.wait:last-child { border-bottom: 0; }
.wait-sq { width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 2px; }
.wait.k-coach .wait-sq { border-color: oklch(0.62 0.08 230); border-radius: 50%; }
.wait.k-unrated .wait-sq { background: color-mix(in oklch, var(--accent) 30%, transparent); }
.wait-main { display: flex; flex-direction: column; min-width: 0; }
.wait-main b { font-weight: 500; font-size: 13px; }
.wait-main .sm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.wait-main:hover b { text-decoration: underline; text-underline-offset: 3px; }
.wait-tag { font-size: 9.5px; color: var(--ink-faint); letter-spacing: .1em; }
.dash-lists.one { grid-template-columns: 1fr; }
.app-main .dist { margin-top: 12px; }
.app-main .charts { margin-top: 12px !important; gap: 12px; }
@media (max-width: 1080px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .app-main { margin: 0; border-radius: 0; border: 0; }
  .topbar { background: var(--side-bg); color: var(--side-ink); border-bottom: 1px solid var(--side-line); }
  .topbar .brand-lockup b { color: var(--side-ink); }
  .app-top { padding: 8px 14px; flex-wrap: wrap; } .app-top .cmdk-btn { display: none; } .top-actions { margin-left: auto; }
  .app-wrap { padding: 16px 14px 64px; }
  .att { grid-template-columns: minmax(0, 1fr) auto; } .att-when { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mb-bar, .mcard, .acard, .att, .wait, .strip { animation: none !important; } .att:hover { transform: none; } }
.app-main .toolbar.filter-bar { background: var(--surface); border-color: var(--line); border-radius: var(--r); padding: 10px 12px; margin: 12px 0; box-shadow: var(--shadow-1); }
.app-main .input, .app-main .select { background-color: var(--surface); border-color: var(--line); border-radius: 7px; }
.app-main .set-nav a.on { background: var(--ink); color: var(--surface); }
.app-main .notice { border-radius: var(--r); }
.app-main .team-summary, .app-main .sum-card { background: var(--surface); border-color: var(--line); }
@media (max-width: 640px) { .app-main .dist, .m-dash .dist { flex-wrap: wrap; } .app-main .dist-cell, .m-dash .dist-cell { min-width: calc(50% - 4px); } }

/* ===================== v7b · pure white surfaces (site + app). Neutral greys separate cards; accents unchanged. ===================== */
:root:not([data-theme="dark"]) {
  --bg: #ffffff;
  --bg-deep: oklch(0.975 0 0);
  --rule: oklch(0.885 0 0);
  --ink: oklch(0.18 0.004 260);
  --ink-soft: oklch(0.4 0.004 260);
  --ink-faint: oklch(0.6 0.004 260);
  --surface: #ffffff;
  --surface-2: oklch(0.978 0 0);
  --line: oklch(0.915 0 0);
  --line-strong: oklch(0.845 0 0);
  --accent-soft: oklch(0.955 0 0);
}
:root:not([data-theme="dark"]) body, :root:not([data-theme="dark"]) .app-main, :root:not([data-theme="dark"]) .m-body { background: #fff; }
.theme-opt .sw { background: linear-gradient(90deg, oklch(0.96 0 0) 0 30%, #fff 30%); }
.theme-opt.t-system .sw { background: linear-gradient(135deg, #fff 0 50%, oklch(0.16 0.008 60) 50%); }
.m-pricing .plan.on { background: #fff; box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-2); }
.chart-card, .m-chart { background: #fff; }
[data-theme="dark"] .chart-card, [data-theme="dark"] .m-chart { background: var(--surface); }

/* ===================== v7b · homepage hero additions ===================== */
.hero-eyebrow { margin-bottom: 22px; font-size: 12.5px; letter-spacing: .02em; }
.trusted { margin-top: 44px; }
.trusted-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.trusted-row { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 40px; }
.trusted-row li { display: flex; align-items: center; height: 30px; animation: mx-rise 700ms var(--ease-out, cubic-bezier(.2,.7,.2,1)) both; animation-delay: calc(320ms + var(--i) * 70ms); }
.trusted-row img { display: block; width: auto; filter: grayscale(1); opacity: .48; transition: opacity 200ms ease, filter 200ms ease; }
.trusted-row li:hover img { opacity: 1; filter: grayscale(1) contrast(1.05); }
[data-theme="dark"] .trusted-row img { filter: grayscale(1) invert(1); }
@media (max-width: 640px) { .trusted-row { gap: 16px 28px; } .trusted-row img { transform: scale(.88); transform-origin: left center; } }

/* ===================== v7b · animated CAGE radar (sample team) ===================== */
.lr { position: relative; }
.lr .live-tag { position: absolute; top: -34px; right: 0; }
.lr-svg { width: 100%; height: auto; max-height: 460px; display: block; margin: 4px auto 0; overflow: visible; }
.lr-series polygon { fill: color-mix(in oklch, var(--c) 10%, transparent); stroke: var(--c); stroke-width: 1.4; stroke-linejoin: round; opacity: .32; transition: opacity 500ms ease, fill 500ms ease, stroke-width 500ms ease; }
.lr-series circle { fill: var(--c); opacity: .3; transition: opacity 500ms ease, r 500ms ease; }
.lr-series.on polygon { opacity: 1; fill: color-mix(in oklch, var(--c) 12%, transparent); stroke-width: 2; }
.lr-series.on circle { opacity: 1; }
.lr-svg:not(.in) .lr-series { opacity: 0; transform: scale(.2); }
.lr-svg.in .lr-series { transform-box: view-box; transform-origin: 50% 50%; animation: lr-grow 1100ms cubic-bezier(.2,.7,.2,1) both; }
.lr-svg.in .lr-series:nth-child(2) { animation-delay: 140ms; } .lr-svg.in .lr-series:nth-child(3) { animation-delay: 280ms; }
@keyframes lr-grow { from { opacity: 0; transform: scale(.2) rotate(-12deg); } to { opacity: 1; transform: none; } }
.lr-arc { fill: none; stroke-width: 3; stroke-linecap: round; stroke: var(--ink-faint); }
.lr-arc.p-C { stroke: oklch(0.65 0.13 80); } .lr-arc.p-A { stroke: oklch(0.6 0.08 230); } .lr-arc.p-G { stroke: oklch(0.58 0.17 35); } .lr-arc.p-E { stroke: oklch(0.55 0.1 155); }
.lr-l { font-family: var(--mono); font-weight: 700; font-size: 15px; fill: var(--ink); }
.lr-n { font-family: var(--ui); font-size: 12.5px; fill: var(--ink-soft); }
.lr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 13px; }
.lr-legend > span:not(.lr-note) { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-faint); transition: color 400ms ease; }
.lr-legend > span.on { color: var(--ink); }
.lr-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); opacity: .35; transition: opacity 400ms ease; } .lr-legend .on i { opacity: 1; }
.lr-note { font-size: 12px; margin-left: auto; }
@media (max-width: 640px) { .lr-note { margin-left: 0; width: 100%; } .lr .live-tag { position: static; display: inline-flex; margin-bottom: 4px; } }

/* ===================== v7b · placement mix by quarter ===================== */
.lm-svg { width: 100%; height: auto; display: block; overflow: visible; margin-top: 6px; }
.lm-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.lm-tick { font-family: var(--mono); font-size: 11px; fill: var(--ink-faint); }
.lm-area { opacity: .88; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transition: opacity 240ms ease; }
.lm-svg:not(.in) .lm-area { transform: scaleY(0); }
.lm-svg.in .lm-area { transform-box: view-box; animation: lm-grow 1100ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--j) * 140ms); }
@keyframes lm-grow { from { transform: scaleY(0); opacity: 0; } to { transform: none; opacity: .88; } }
.lm-svg:has(.lm-area:hover) .lm-area:not(:hover) { opacity: .45; }
.lm-scan line { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.lm-scan rect { fill: #fff; stroke: var(--line-strong); }
.lm-scan text { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: var(--ink); }
.lm-svg:not(.in) .lm-scan { opacity: 0; } .lm-scan { transition: opacity 600ms ease 900ms; }
.lm-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-top: 16px; font-size: 13px; }
.lm-legend span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.lm-legend span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.lm-legend b { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.m-sample { margin-top: 36px; align-items: stretch; }
.m-sample .chart-card { display: flex; flex-direction: column; }
.m-sample .chart-card h5 { margin-bottom: 8px; }
@media (max-width: 900px) { .m-sample { grid-template-columns: 1fr; } }

/* ===================== v7b · homepage substance ===================== */
.gets-grid, .cal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.get-card, .cal-card, .pillar-card, .lens { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #fff; transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease; }
.get-card:hover, .cal-card:hover, .pillar-card:hover, .lens:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.get-ic { width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--accent); background: var(--surface-2); margin-bottom: 14px; }
.get-card h3, .cal-card h3, .pillar-card h3, .lens h3 { font-family: var(--mono); font-size: 15px; letter-spacing: -0.02em; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.get-card p, .cal-card p, .pillar-card p, .lens p { font-size: 14px; line-height: 1.55; }
.get-tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--accent); color: var(--ink); border-radius: 999px; padding: 1px 7px; font-weight: 500; }
.mx-reveal { transition-delay: calc(var(--i, 0) * 60ms); }
.decide-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.outcomes { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.outcomes li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.outcomes li svg { color: var(--good); flex: none; }
.decide-steps { list-style: none; display: grid; gap: 12px; }
.decide-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.decide-steps li > span { font-size: 13px; color: var(--accent); font-weight: 600; padding-top: 2px; }
.decide-steps h3 { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.decide-steps p { font-size: 14px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-family: var(--mono); font-size: 14.5px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .acc-ic { position: relative; width: 12px; height: 12px; flex: none; }
.faq .acc-ic::before, .faq .acc-ic::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 240ms ease; }
.faq .acc-ic::after { transform: rotate(90deg); }
.faq[open] .acc-ic::after { transform: rotate(0deg); }
.faq-a { padding: 0 2px 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; max-width: 640px; }
.faq[open] .faq-a { animation: faq-in 320ms cubic-bezier(.2,.7,.2,1); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 900px) { .gets-grid, .cal-grid { grid-template-columns: 1fr 1fr; } .decide-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .gets-grid, .cal-grid { grid-template-columns: 1fr; } .lm-legend { grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; } }

/* ===================== v7b · methodology page ===================== */
.meth-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding-top: 24px; padding-bottom: 40px; }
.meth-hero > * { min-width: 0; }
.meth-hero h1.display { font-size: clamp(36px, 4vw, 62px); line-height: 1.04; }
.meth-hero .lede { font-size: 17px; line-height: 1.55; max-width: 500px; margin-top: 24px; color: var(--ink-soft); }
.meth-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.meth-hero > div:first-child > * { animation: mx-rise 700ms cubic-bezier(.2,.7,.2,1) both; }
.meth-hero > div:first-child > *:nth-child(2) { animation-delay: 80ms; } .meth-hero > div:first-child > *:nth-child(3) { animation-delay: 160ms; } .meth-hero > div:first-child > *:nth-child(4) { animation-delay: 240ms; }
.meth-lede { max-width: 680px; font-size: 16px; line-height: 1.6; margin-top: 4px; }
.meth-note { max-width: 760px; margin-top: 22px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); border-left: 2px solid var(--accent); padding-left: 16px; }
.meth-p { font-size: 16px; line-height: 1.6; max-width: 520px; }
.meth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.meth-split > * { min-width: 0; }
/* hero tiles: C A G E assemble around a core */
.mh-tiles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .9; max-width: 480px; margin-left: auto; width: 100%; }
.mh-tile { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(18px) scale(.97); }
.mh-tiles.in .mh-tile { animation: mh-in 900ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 110ms); }
@keyframes mh-in { to { opacity: 1; transform: none; } }
.mh-tile b { font-family: var(--mono); font-size: clamp(40px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.06em; }
.mh-tile span { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.mh-tile i { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(.18); }
.mh-tile:nth-child(1) i { background: oklch(0.65 0.13 80); } .mh-tile:nth-child(2) i { background: oklch(0.6 0.08 230); } .mh-tile:nth-child(3) i { background: oklch(0.58 0.17 35); } .mh-tile:nth-child(4) i { background: oklch(0.55 0.1 155); }
.mh-tiles.is-live .mh-tile i { animation: mh-bar 6.4s ease-in-out infinite; animation-delay: calc(var(--i) * -1.6s); }
@keyframes mh-bar { 0%, 100% { transform: scaleX(.18); } 50% { transform: scaleX(.92); } }
.mh-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; white-space: nowrap; box-shadow: var(--shadow-2); opacity: 0; }
.mh-tiles.in .mh-core { animation: mh-in-core 700ms cubic-bezier(.2,.7,.2,1) 560ms both; }
@keyframes mh-in-core { to { opacity: 1; } }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.pl-letter { display: block; font-family: var(--mono); font-size: 34px; line-height: 1; letter-spacing: -0.06em; margin-bottom: 18px; }
.pillar-card:nth-child(1) .pl-letter { color: oklch(0.6 0.13 80); } .pillar-card:nth-child(2) .pl-letter { color: oklch(0.55 0.08 230); } .pillar-card:nth-child(3) .pl-letter { color: oklch(0.56 0.17 35); } .pillar-card:nth-child(4) .pl-letter { color: oklch(0.5 0.1 155); }
.lens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.lens-k { display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.place-list { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.place-list li { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; border-left: 3px solid var(--q, var(--line)); }
.place-list .pl-n { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.place-list .pl-act { font-size: 13px; color: var(--ink); }
.place-list li.q-star { --q: oklch(0.72 0.13 85); } .place-list li.q-compass { --q: oklch(0.6 0.08 230); } .place-list li.q-flight_risk { --q: oklch(0.65 0.12 60); } .place-list li.q-time_bomb { --q: oklch(0.58 0.17 35); }
/* placement grid diagram (no numeric thresholds) */
.mg { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr auto; gap: 8px; }
.mg-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; color: var(--ink-faint); text-align: center; }
.mg-x { grid-column: 2; font-size: 11px; color: var(--ink-faint); text-align: center; }
.mg-box { position: relative; aspect-ratio: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.mg-q { border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: color-mix(in oklch, var(--q) 7%, #fff); opacity: 0; transform: scale(.94); }
.mg.in .mg-q { animation: mh-in 800ms cubic-bezier(.2,.7,.2,1) both; } .mg.in .tr { animation-delay: 90ms; } .mg.in .bl { animation-delay: 180ms; } .mg.in .br { animation-delay: 270ms; }
.mg-q.q-star { --q: oklch(0.72 0.13 85); } .mg-q.q-compass { --q: oklch(0.6 0.08 230); } .mg-q.q-flight_risk { --q: oklch(0.65 0.12 60); } .mg-q.q-time_bomb { --q: oklch(0.58 0.17 35); }
.mg-name { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 600; font-size: 13.5px; }
.mg-pos { font-size: 11.5px; color: var(--ink-faint); }
.mg-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 1px 4px oklch(0 0 0 / .2); opacity: 0; transition: opacity 600ms ease 900ms; }
.mg.in .mg-dot { opacity: 1; }
.mg-dot.d1 { left: 22%; top: 30%; } .mg-dot.d2 { left: 70%; top: 22%; } .mg-dot.d3 { left: 64%; top: 68%; } .mg-dot.d4 { left: 30%; top: 74%; } .mg-dot.d5 { left: 82%; top: 38%; }
.mg.is-live .mg-dot.d3 { animation: mg-move 9s ease-in-out infinite; } .mg.is-live .mg-dot.d1 { animation: mg-move2 11s ease-in-out infinite; }
.mg.is-live .mg-dot.d2, .mg.is-live .mg-dot.d4, .mg.is-live .mg-dot.d5 { animation: mg-drift 6s ease-in-out infinite; }
.mg.is-live .mg-dot.d4 { animation-delay: -2s; } .mg.is-live .mg-dot.d5 { animation-delay: -4s; }
@keyframes mg-move { 0%, 20% { left: 64%; top: 68%; } 50%, 70% { left: 70%; top: 34%; } 100% { left: 64%; top: 68%; } }
@keyframes mg-move2 { 0%, 25% { left: 22%; top: 30%; } 55%, 75% { left: 58%; top: 24%; } 100% { left: 22%; top: 30%; } }
@keyframes mg-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -5px); } }
/* cadence timeline */
.cad { position: relative; margin-top: 40px; }
.cad-line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.cad-line i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.cad.in .cad-line i { transition: transform 1600ms cubic-bezier(.2,.7,.2,1) 200ms; transform: scaleX(1); }
.cad.is-live .cad-line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); animation: cad-run 8s linear infinite; }
@keyframes cad-run { from { left: 0; } to { left: calc(100% - 7px); } }
.cad ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.cad li { padding-top: 30px; position: relative; opacity: 0; transform: translateY(10px); }
.cad.in li { animation: mh-in 700ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(300ms + var(--i) * 160ms); }
.cad-dot { position: absolute; top: 1px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }
.cad-n { font-size: 11px; color: var(--ink-faint); }
.cad h3 { font-family: var(--mono); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px; }
.cad p { font-size: 14px; line-height: 1.55; }
/* weighting (illustrative only, no numbers) */
.wt { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: #fff; box-shadow: var(--shadow-1); }
.wt-roles { display: flex; gap: 8px; margin-bottom: 18px; font-size: 11.5px; }
.wt-roles span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); }
.wt-roles .r1 { border-color: var(--ink); color: var(--ink); }
.wt.is-live .wt-roles .r1 { animation: wt-r1 8s ease-in-out infinite; } .wt.is-live .wt-roles .r2 { animation: wt-r2 8s ease-in-out infinite; }
@keyframes wt-r1 { 0%, 45% { border-color: var(--ink); color: var(--ink); } 50%, 95% { border-color: var(--line); color: var(--ink-faint); } }
@keyframes wt-r2 { 0%, 45% { border-color: var(--line); color: var(--ink-faint); } 50%, 95% { border-color: var(--ink); color: var(--ink); } }
.wt-row { display: grid; grid-template-columns: 22px 92px 1fr; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.wt-row b { font-family: var(--mono); font-size: 15px; } .wt-row span { font-size: 13px; color: var(--ink-soft); }
.wt-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.wt-bar i { display: block; height: 100%; border-radius: 4px; transform-origin: left; transform: scaleX(0); }
.wt-bar .w0 { background: oklch(0.65 0.13 80); --a: .55; --b: .8; } .wt-bar .w1 { background: oklch(0.6 0.08 230); --a: .8; --b: .45; } .wt-bar .w2 { background: oklch(0.58 0.17 35); --a: .45; --b: .7; } .wt-bar .w3 { background: oklch(0.55 0.1 155); --a: .7; --b: .5; }
.wt.in .wt-bar i { transition: transform 1100ms cubic-bezier(.2,.7,.2,1); transform: scaleX(var(--a)); }
.wt.is-live .wt-bar i { animation: wt-swap 8s ease-in-out infinite; }
@keyframes wt-swap { 0%, 42% { transform: scaleX(var(--a)); } 50%, 92% { transform: scaleX(var(--b)); } 100% { transform: scaleX(var(--a)); } }
.wt-note { margin-top: 14px; }
.inside { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.inside > div { max-width: 640px; } .inside .h2 { margin: 8px 0 10px; } .inside .btn { flex: none; }
@media (max-width: 1000px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .meth-hero, .meth-split { grid-template-columns: 1fr; gap: 36px; } .mh-tiles { margin: 0 auto; } .lens-grid { grid-template-columns: 1fr; } .cad ol { grid-template-columns: 1fr 1fr; row-gap: 28px; } .cad-line { display: none; } .inside { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) { .pillar-grid { grid-template-columns: 1fr; } .cad ol { grid-template-columns: 1fr; } .mg-box { aspect-ratio: auto; grid-template-rows: 120px 120px; } .inside { padding: 24px; } .wt-row { grid-template-columns: 22px 80px 1fr; } }

/* reduced motion: final states, no loops */
@media (prefers-reduced-motion: reduce) {
  .trusted-row li, .mh-tile, .mh-core, .mg-q, .cad li, .lr-svg .lr-series, .lm-svg .lm-area { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mh-core { transform: translate(-50%, -50%) !important; }
  .mg-dot { opacity: 1; animation: none !important; transition: none; }
  .cad-line i, .wt-bar i { transition: none !important; } .cad-line i { transform: scaleX(1); } .wt-bar i { transform: scaleX(var(--a)) !important; animation: none !important; }
  .cad-line::after, .mh-tile i { animation: none !important; }
  .faq[open] .faq-a { animation: none; }
  .lm-svg .lm-area { opacity: .88 !important; }
}
/* v7b polish */
.mg-q { background: #fff; border-top: 3px solid var(--q); }
[data-theme="dark"] .mg-q, [data-theme="dark"] .get-card, [data-theme="dark"] .cal-card, [data-theme="dark"] .pillar-card, [data-theme="dark"] .lens, [data-theme="dark"] .decide-steps li, [data-theme="dark"] .place-list li, [data-theme="dark"] .wt, [data-theme="dark"] .mh-tile { background: var(--surface); }
.meth-lede { margin-top: 14px; }
.m-sample .chart-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.m-sample .chart-card > .lr, .m-sample .chart-card > .lm { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.lr .live-tag { top: -30px; }

/* ===================== v7c · hero: problem → fix hierarchy ===================== */
.m-hero { position: relative; isolation: isolate; }
.m-hero::before { content: ""; position: absolute; z-index: -1; right: -24px; top: -56px; width: 58%; height: calc(100% + 40px); pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(60% 60% at 60% 45%, #000 20%, transparent 75%); opacity: .7; }
.hero-pf { margin-bottom: 18px; }
.hp { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 7px 18px 7px 7px; border-radius: 14px; background: #fff;
  border: 1px solid color-mix(in oklch, var(--bad) 22%, var(--line)); box-shadow: 0 1px 2px oklch(0.2 0.01 30 / .05), 0 10px 28px -18px color-mix(in oklch, var(--bad) 45%, transparent); }
.hp-tag { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--bad); background: color-mix(in oklch, var(--bad) 8%, #fff); }
.hp-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.hp-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--bad); opacity: 0; animation: hp-ping 2.4s cubic-bezier(.2,.7,.2,1) 1.2s infinite; }
@keyframes hp-ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.hp-text { font-family: var(--mono); font-weight: 600; font-size: clamp(14.5px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.025em; color: var(--ink); }
.hp-broken { position: relative; display: inline-block; animation: hp-dim 400ms ease 1.15s both; }
.hp-broken::after { content: ""; position: absolute; left: -3px; right: -3px; top: 54%; height: 2.5px; border-radius: 2px; background: var(--bad); transform-origin: left; transform: scaleX(0); animation: hp-strike 520ms cubic-bezier(.6,0,.2,1) 800ms forwards; }
.hp-broken::before { content: attr(data-text); position: absolute; inset: 0; color: var(--bad); opacity: 0; pointer-events: none; animation: hp-glitch 7s steps(1) 1.6s infinite; }
@keyframes hp-strike { to { transform: scaleX(1); } }
@keyframes hp-dim { to { color: var(--ink-faint); } }
@keyframes hp-glitch {
  0% { opacity: .9; transform: translate(-2px, 0); clip-path: inset(0 0 58% 0); }
  1.2% { opacity: .9; transform: translate(2px, 0); clip-path: inset(48% 0 0 0); }
  2.4% { opacity: .7; transform: translate(-1px, 0); clip-path: inset(22% 0 40% 0); }
  3.6%, 100% { opacity: 0; transform: none; clip-path: inset(0); } }
.hp-none { color: var(--ink); text-decoration: underline dashed 1.5px; text-decoration-color: var(--line-strong); text-underline-offset: 4px; animation: hp-fade 900ms ease 1.5s both, hp-ghost 5s ease-in-out 2.4s infinite; }
@keyframes hp-fade { to { opacity: .42; } }
@keyframes hp-ghost { 0%, 100% { opacity: .42; } 50% { opacity: .26; } }
.hp-link { display: flex; align-items: center; gap: 10px; margin: 0 0 14px 21px; }
.hp-link i { width: 1.5px; height: 30px; border-radius: 1px; background: linear-gradient(var(--bad), var(--accent)); transform-origin: top; animation: hp-grow 600ms cubic-bezier(.2,.7,.2,1) 1.5s both; }
.hp-link span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: color-mix(in oklch, var(--accent) 80%, var(--ink)); padding: 4px 9px; border-radius: 999px; border: 1px solid color-mix(in oklch, var(--accent) 50%, var(--line)); animation: mx-rise 600ms cubic-bezier(.2,.7,.2,1) 1.9s both; }
@keyframes hp-grow { from { transform: scaleY(0); } }
.m-body .m-hero h1.display { font-size: clamp(36px, 3.9vw, 62px); letter-spacing: -0.055em; }
.m-hero .lede { font-size: 18px; line-height: 1.55; max-width: 500px; margin-top: 22px; }
.cage-word { font-family: var(--mono); font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.m-hero .actions { margin-top: 30px; }
.m-hero .trusted { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 560px; }
.m-hero .m-chart { box-shadow: var(--shadow-2); }
.hero-mix { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero-mix > span:not(.hm-h) { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-soft);
  animation: mx-rise 600ms cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(900ms + var(--i) * 80ms); }
.hero-mix > span svg { color: var(--q); }
.hero-mix b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.hm-h { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
@media (max-width: 1100px) { .m-hero::before { display: none; } }
@media (max-width: 640px) {
  .hp { flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 14px 12px 8px; }
  .hp-text { font-size: 16px; padding-left: 4px; }
  .hp-link { margin-left: 18px; }
  .m-hero .lede { font-size: 17px; }
}
/* pains heading: one line only where it fits */
@media (min-width: 1100px) { .m-pains .h2 { white-space: normal; } }
@media (min-width: 1280px) { .m-pains .h2 { white-space: nowrap; } }

/* ===================== v7c · trait counts (counts only — never names, weights or formula) ===================== */
.trait-counts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
.trait-counts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.trait-counts b { font-family: var(--mono); font-size: 22px; line-height: 1; color: var(--ink); }
.trait-counts span { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 640px) { .trait-counts { grid-template-columns: 1fr 1fr; } }
.pl-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.mh-tile span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mh-tile span em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.trait-stats { display: grid; grid-template-columns: auto 1fr; gap: 14px 40px; align-items: center; margin-top: 28px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
.ts-main { display: flex; align-items: baseline; gap: 12px; }
.ts-main b { font-size: clamp(48px, 5vw, 72px); line-height: .9; letter-spacing: -0.06em; }
.ts-main span { font-size: 14px; color: var(--ink-soft); max-width: 150px; line-height: 1.35; }
.ts-split { display: grid; gap: 8px; }
.ts-p { display: grid; grid-template-columns: 120px 1fr 28px; align-items: center; gap: 12px; font-size: 13px; }
.ts-p > b { text-align: right; font-size: 15px; }
.ts-p i { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ts-p em { display: block; height: 100%; border-radius: 4px; width: calc(var(--n) / var(--t) * 100% * 3); max-width: 100%; transform-origin: left; transform: scaleX(0); transition: transform 1100ms cubic-bezier(.2,.7,.2,1) 200ms; }
.trait-stats[data-mx="in"] .ts-p em { transform: scaleX(1); }
.ts-p.p-C em { background: oklch(0.65 0.13 80); } .ts-p.p-A em { background: oklch(0.6 0.08 230); } .ts-p.p-G em { background: oklch(0.58 0.17 35); } .ts-p.p-E em { background: oklch(0.55 0.1 155); }
.trait-stats > p { grid-column: 1 / -1; }
@media (max-width: 640px) { .trait-stats { grid-template-columns: 1fr; padding: 20px; } .ts-p { grid-template-columns: 100px 1fr 24px; } }

@media (prefers-reduced-motion: reduce) {
  .hp-dot::after, .hp-broken::before { animation: none !important; opacity: 0 !important; }
  .hp-broken { animation: none; color: var(--ink-faint); } .hp-broken::after { animation: none; transform: scaleX(1); }
  .hp-none { animation: none; opacity: .42; }
  .hp-link i, .hp-link span, .hero-mix > span { animation: none !important; }
  .ts-p em { transition: none; transform: scaleX(1); }
}
/* v7c: problem card as a stacked statement (tag above, larger text) so it reads as a design element, not an eyebrow */
.hp { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 22px 16px 12px; border-radius: 16px; border-color: color-mix(in oklch, var(--bad) 16%, var(--line));
  box-shadow: 0 1px 2px oklch(0.2 0.01 60 / .05), 0 16px 36px -24px oklch(0.2 0.01 60 / .35); position: relative; overflow: hidden; }
.hp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bad); }
.hp-text { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.3; padding-left: 4px; text-wrap: balance; letter-spacing: -0.035em; }
.hp-link { margin: 0 0 16px 24px; }
.hp-link i { height: 28px; }
@media (max-width: 640px) { .hp { padding: 10px 16px 14px 10px; } .hp-text { font-size: 18px; } }
.m-hero { padding-top: 48px; }
@media (max-width: 640px) { .m-hero { padding-top: 20px; } }
.trait-stats .ts-main b.mono { font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.06em; text-transform: none; font-weight: 600; }
.trait-stats .ts-p > b.mono { font-size: 15px; letter-spacing: 0; }
.trait-stats:is([data-mx="in"], [data-mx="done"]) .ts-p em { transform: scaleX(1); }
.trait-stats b > .mx-num { font: inherit; letter-spacing: inherit; color: inherit; display: inline; }

/* =========================== v7d =========================== */
/* --- Teams view --- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 12px); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s var(--ease-out), box-shadow .2s; text-decoration: none; color: inherit; }
.team-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.tc-top { display: flex; align-items: center; gap: 12px; }
.tc-top b { font-weight: 500; font-size: 16px; }
.tc-top .faint { margin-left: auto; font-size: 12px; }
.tc-faces { display: flex; align-items: center; min-height: 28px; }
.tc-face { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface); margin-left: -6px; display: grid; place-items: center; font: 500 10px/1 var(--mono); color: var(--ink-soft); }
.tc-face:first-child { margin-left: 0; }
.tc-face.more { background: var(--ink); color: var(--surface); }
.tc-num { display: flex; align-items: baseline; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.tc-num b { font: 500 28px/1 var(--mono); }
.tc-num span { font-size: 12px; color: var(--ink-faint); }
.teams-manage { margin-top: 36px; }
.set-billing .set-billing-h { margin: 0 0 6px; }
.set-billing .result-grid { margin-top: 18px; }

/* --- Period picker --- */
.pswitch { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.pswitch .pbtn { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.pswitch.is-agg .pbtn { border-color: var(--accent); }
.pkind { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font: 12px var(--mono); padding: 0 10px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.pkind:hover, .pswitch .pbtn:hover { border-color: var(--line-strong); }
.pswitch .chev { font-size: 10px; opacity: .7; }
.ppop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: pp-in .18s var(--ease-out); }
@keyframes pp-in { from { opacity: 0; transform: translateY(-4px); } }
.ppop-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ppop-kinds button { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 8px; font-size: 13px; cursor: pointer; color: var(--ink); text-align: left; }
.ppop-kinds button.on { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.ppop-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.ppop-f select { height: 32px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 0 8px; font: 12px var(--mono); color: var(--ink); min-width: 150px; }
.ppop-range { display: flex; flex-direction: column; gap: 8px; }
.ppop-note { border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.5; }
.period-card { margin-top: 28px; }
.pc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.pc-agg { display: flex; gap: 22px; }
.pc-agg > div { display: flex; flex-direction: column; gap: 6px; }
.pc-agg b { font: 500 22px/1 var(--mono); }
.pc-body { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin-top: 16px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); }
.spark circle.miss { fill: none; stroke: var(--ink-faint); stroke-dasharray: 2 2; }
.pc-table tr.pc-miss td { color: var(--ink-faint); }
@media (max-width: 760px) { .pc-body { grid-template-columns: 1fr; } .pc-agg { gap: 16px; } .ppop { width: min(320px, calc(100vw - 32px)); } }

/* --- New hire badge --- */
.ramp-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--ink); background: color-mix(in oklch, var(--accent) 10%, transparent); margin-left: 8px; white-space: nowrap; vertical-align: middle; }
.ramp-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.num.na { color: var(--ink-faint); }

/* --- Confetti + checkmark --- */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.check-draw .cd-ring { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: cd-draw .6s var(--ease-out) forwards; }
.check-draw .cd-tick { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cd-draw .4s .45s var(--ease-out) forwards; }
@keyframes cd-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .check-draw .cd-ring, .check-draw .cd-tick { animation: none; stroke-dashoffset: 0; } .ppop { animation: none; } }

/* --- Onboarding --- */
.ob-shell { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
.ob-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
.ob-stepper { width: min(920px, calc(100% - 40px)); margin: 4px auto 0; }
.ob-st-top { display: flex; align-items: baseline; gap: 12px; font-size: 13px; }
.ob-st-top .mono { font-size: 12px; color: var(--ink-soft); }
.ob-st-name { font-weight: 500; }
.ob-st-pct { margin-left: auto; font-size: 11.5px; }
.ob-bar { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 10px; overflow: hidden; border: 1px solid var(--line); }
.ob-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ink), var(--accent)); transition: width .7s var(--ease-out); }
.ob-dots { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 12px 0 0; }
.ob-dots li { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 11px; color: var(--ink-faint); }
.ob-dots li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 10.5px/1 var(--mono); background: var(--surface); transition: background .3s, color .3s, border-color .3s; }
.ob-dots li.on span { border-color: var(--ink); background: var(--ink); color: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 25%, transparent); }
.ob-dots li.done span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ob-dots li.on em { color: var(--ink); }
.ob-dots em { font-style: normal; white-space: nowrap; }
.ob-main { width: min(720px, calc(100% - 40px)); margin: 28px auto 64px; }
.ob-main.wide { width: min(1040px, calc(100% - 40px)); }
.ob-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-1); position: relative; }
.ob-h { margin-top: 10px; }
.ob-p { margin-top: 10px; max-width: 620px; }
.ob-form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.ob-actions { display: flex; align-items: center; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.ob-actions .btn { white-space: nowrap; }
.ob-sticky { position: sticky; bottom: 0; background: var(--surface); padding: 14px 0 4px; border-top: 1px solid var(--line); z-index: 3; }
.ob-modal-bg { position: fixed; inset: 0; background: oklch(0.15 0.01 60 / 0.42); backdrop-filter: blur(3px); z-index: 40; animation: pp-in .25s; }
.ob-modal { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-2); animation: ob-pop .35s var(--ease-out); }
@keyframes ob-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } }
.ob-modal .plans { margin-top: 4px; }
.ob-modal .notice { margin-top: 16px; }
.ob-sync { display: flex; align-items: center; gap: 10px; padding: 28px 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ob-fy { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-top: 24px; }
.ob-fy-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.ob-fy-q > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; position: relative; transition: border-color .3s; }
.ob-fy-q > div.on { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, transparent); }
.ob-fy-q b { font: 500 13px var(--mono); }
.ob-fy-q em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10px; color: var(--accent); text-transform: uppercase; }
.ob-team { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; margin-top: 24px; }
.ob-team-prev { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 16px 8px; text-align: center; }
.ob-team-prev b { font-weight: 500; font-size: 13px; }
.ob-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin-top: 18px; }
.ob-avatars button { height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, transform .2s var(--ease-out); }
.ob-avatars button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.ob-avatars button.on { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 35%, transparent); }
.ob-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.ob-teamline { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ob-rv-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.ob-rv-live { display: flex; align-items: baseline; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.ob-rv-live b { font: 500 32px/1 var(--mono); }
.ob-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.ob-pills button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s; white-space: nowrap; }
.ob-pills button em { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.ob-pills button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ob-pills button.on em { color: color-mix(in oklch, var(--surface) 70%, transparent); }
.ob-pills button.done:not(.on) { border-color: var(--accent); }
.ob-items { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.ob-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .25s, background .25s; }
.ob-item.is-rated { border-color: color-mix(in oklch, var(--accent) 60%, var(--line)); }
.ob-item-h { display: flex; align-items: center; gap: 10px; }
.ob-item-h b { font-weight: 500; }
.ob-item p { margin-top: 6px; max-width: 760px; }
.ob-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.ob-scale button { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; color: var(--ink); transition: background .18s, border-color .18s, transform .18s var(--ease-out); }
.ob-scale button b { font: 500 15px/1 var(--mono); }
.ob-scale button span { font-size: 10.5px; color: var(--ink-faint); }
.ob-scale button:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); }
.ob-scale button.on { background: var(--ink); border-color: var(--ink); color: var(--surface); animation: ob-tap .3s var(--ease-out); }
.ob-scale button.on span { color: color-mix(in oklch, var(--surface) 70%, transparent); }
@keyframes ob-tap { 40% { transform: scale(1.06); } }
.ob-results { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.ob-sumrow { display: flex; gap: 24px; margin-top: 8px; }
.ob-sumrow > div { display: flex; flex-direction: column; gap: 4px; }
.ob-sumrow b { font: 500 22px/1 var(--mono); }
.ob-reveal { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.ob-rev-text .check-draw { margin-bottom: 12px; }
.ob-quad { color: var(--accent); transition: opacity .4s; }
.ob-rev-k { display: flex; gap: 24px; margin-top: 18px; }
.ob-rev-k > div { display: flex; flex-direction: column; gap: 6px; }
.ob-rev-k b { font: 500 28px/1 var(--mono); }
.ob-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.ob-opt { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
a.ob-opt:hover { border-color: var(--ink); }
.ob-opt b { font-weight: 500; }
.ob-inv { display: flex; gap: 8px; margin-top: 4px; }
.ob-sent { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .ob-card { padding: 22px 18px; }
  .ob-dots em { display: none; }
  .ob-st-pct { display: none; }
  .ob-grid2, .ob-opts, .ob-reveal, .ob-team { grid-template-columns: 1fr; }
  .ob-fy-q { grid-template-columns: 1fr 1fr; }
  .ob-scale button span { display: none; }
  .ob-modal { padding: 22px 18px; }
  .ob-head { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ob-bar i, .ob-modal, .ob-modal-bg, .ob-scale button.on { animation: none; transition: none; } }

/* --- Hiring --- */
.hire-tabs { margin-top: 24px; }
.hire-table td, .panel-table td { vertical-align: middle; }
.iv-faces { display: flex; gap: 4px; }
.iv-face { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font: 500 10px/1 var(--mono); border: 1px dashed var(--line-strong); color: var(--ink-faint); }
.iv-face.done { border: 1px solid var(--ink); background: var(--ink); color: var(--surface); }
.spread-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: oklch(0.68 0.15 60); margin-left: 6px; vertical-align: middle; }
.st-pill { display: inline-block; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line); margin-left: 6px; }
.st-pill.st-hired { border-color: var(--accent); color: var(--ink); background: color-mix(in oklch, var(--accent) 14%, transparent); }
.st-pill.st-rejected { color: var(--ink-faint); }
.hire-sum .num.warn { color: oklch(0.6 0.15 55); }
.hire-hidden { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.scorecard { margin-top: 20px; }
.sc-live { position: sticky; top: 8px; z-index: 4; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow-1); }
.sc-live > div { display: flex; flex-direction: column; gap: 5px; }
.sc-live b { font: 500 20px/1 var(--mono); }
.sc-pillar { margin-top: 28px; }
.sc-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 10px; }
.sc-item.is-rated { border-color: color-mix(in oklch, var(--accent) 60%, var(--line)); }
.sc-item-h { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 18px; align-items: start; }
.sc-item-h b { font-weight: 500; }
.sc-scale { margin-top: 0; }
.sc-qs { margin-top: 12px; border-left: 2px solid var(--accent); padding-left: 14px; }
.sc-qs .qs { margin-top: 6px; }
.sc-probes { margin: 6px 0 0; padding-left: 18px; }
.sc-anchors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.sc-anchors > div { display: flex; gap: 8px; }
.sc-note { margin-top: 10px; min-height: 36px; resize: vertical; }
.panel-table th .sm { font-weight: 400; margin-top: 4px; }
.panel-table tr.disagree td { background: color-mix(in oklch, oklch(0.75 0.14 70) 12%, transparent); }
.sc-cell { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font: 500 12px/1 var(--mono); background: var(--surface-2); }
.sc-cell.v4, .sc-cell.v5 { background: color-mix(in oklch, var(--accent) 22%, transparent); }
.sc-cell.v1, .sc-cell.v2 { background: color-mix(in oklch, var(--bad) 14%, transparent); }
.spread-hot { display: inline-block; padding: 2px 7px; border-radius: 99px; background: oklch(0.68 0.15 60); color: white; font: 500 11px/1.3 var(--mono); }
.panel-total td { border-top: 1px solid var(--line-strong); }
.panel-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.panel-notes > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.hire-carry { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.hire-carry > div { display: flex; flex-direction: column; gap: 4px; }
.hire-carry b { font: 500 20px var(--mono); }
.hire-carry .ramp-badge { margin-left: 0; align-self: flex-start; }
.modal-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.check-row { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.hire-ghost { display: flex; flex-direction: column; gap: 8px; }
.hire-row { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr .8fr .8fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.hire-row.h { border: 0; font: 11px var(--mono); color: var(--ink-faint); text-transform: uppercase; }
.stage-sel select { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); padding: 0 8px; font: 12px var(--mono); color: var(--ink); }
@media (max-width: 760px) { .sc-item-h { grid-template-columns: 1fr; } .sc-anchors { grid-template-columns: 1fr; } .hire-row { grid-template-columns: 1fr 1fr; } .sc-live { gap: 14px; } }
@media (min-width: 1100px) { .cal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ramp-cell { display: inline-flex; align-items: center; gap: 6px; } .ramp-cell .ramp-badge { margin-left: 0; }
