/* Expansion IQ landing page. Loads after styles.css, pages.css, services.css and mlap.css. */

/* ---------- score bands ---------- */
.bands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.band { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-family: var(--ui); border-top: 6px solid var(--line); }
.band b { display: block; font: 800 1.02rem var(--display); color: var(--navy); }
.band small { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.band span { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.b-ex { border-top-color: #22c55e; } .b-good { border-top-color: #84cc16; } .b-fair { border-top-color: #eab308; }
.b-low { border-top-color: #f97316; } .b-poor { border-top-color: #ef4444; } .b-res { border-top-color: #9ca3af; } .b-strong { border-top-color: #3b82f6; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.size { display: grid; justify-items: center; gap: 8px; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-family: var(--ui); text-align: center; }
.size svg { stroke: none; }
.size b { font: 800 1rem var(--display); color: var(--navy); }
.size span { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* ---------- the nine factors ---------- */
.factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.factor { position: relative; background: rgb(255 255 255 / 5%); border: 1px solid rgb(135 209 214 / 20%); border-radius: 20px; padding: 20px; transition: border-color .2s ease, transform .2s ease; }
.factor:hover { border-color: var(--aqua); transform: translateY(-3px); }
.factor h3 { color: #fff; font-size: 1.14rem; margin: 0 56px 6px 0; }
.factor p { margin: 0; font-family: var(--ui); font-size: .86rem; line-height: 1.55; color: #c9dbe8; }
.factor .f-src { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgb(135 209 214 / 14%); font-size: .74rem; color: #92abc0; }
.f-w { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; min-width: 44px; height: 30px; padding: 0 8px; border-radius: 50px; background: rgb(135 209 214 / 16%); color: var(--aqua); font: 800 .86rem var(--display); }
.f-group { grid-column: 1 / -1; margin: 12px 0 0; font-family: var(--display); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }
.f-group:first-child { margin-top: 0; }

/* ---------- weight playground ---------- */
.wplay { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); font-family: var(--ui); overflow: hidden; }
.w-in { padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.w-head p { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.w-reset { border: 1px solid var(--line); background: #fff; border-radius: 50px; padding: 6px 14px; font: 600 .76rem var(--ui); color: var(--navy); cursor: pointer; }
.w-reset:hover { border-color: var(--teal); }
.w-row { display: grid; grid-template-columns: 150px 1fr 42px; gap: 12px; align-items: center; font-size: .84rem; color: var(--ink); }
.w-row label { font-weight: 600; }
.w-row output { text-align: right; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.w-row input[type="range"] { margin: 0; height: 6px; }
.w-out { padding: clamp(20px, 3vw, 32px); background: var(--navy) url("/assets/img/map-lines.svg") 80% 30% / 420px; background-blend-mode: soft-light; color: #c9dbe8; display: flex; flex-direction: column; gap: 12px; }
.w-out > p { margin: 0; }
.zrows { display: grid; gap: 10px; position: relative; }
.zrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / 8%); box-shadow: inset 0 0 0 1px rgb(135 209 214 / 22%); transition: order .2s; }
.zrow .zrank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); font: 800 .95rem var(--display); }
.zrow strong { display: block; color: #fff; font: 800 1.05rem var(--display); }
.zrow small { display: block; font-size: .74rem; color: #a9c2d6; }
.zrow .zbar { grid-column: 2 / -1; height: 8px; border-radius: 8px; background: rgb(255 255 255 / 12%); overflow: hidden; }
.zrow .zbar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; border-radius: 8px; transition: transform .3s ease, background-color .3s ease; }
.zscore { text-align: right; }
.zscore b { display: block; font: 800 1.5rem/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.zscore span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.w-fine { font-size: .74rem; color: #92abc0; margin-top: auto !important; }

/* ---------- zone detail mock ---------- */
.zd { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); font-family: var(--ui); overflow: hidden; }
.zd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: var(--mist); border-bottom: 1px solid var(--line); }
.zd-head p { margin: 0; }
.zd-score { display: flex; align-items: baseline; gap: 10px; }
.zd-score b { font: 800 2.2rem/1 var(--display); color: #16a34a; }
.zd-score span { font-weight: 700; font-size: .9rem; color: var(--navy); }
.zd-cov { font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; background: #fdf2dc; color: #9a6a0b; white-space: nowrap; }
.zd-body { padding: 16px 20px 20px; display: grid; gap: 9px; }
.zf { display: grid; grid-template-columns: 132px 1fr 58px 64px; gap: 10px; align-items: center; font-size: .78rem; color: var(--ink); }
.zf progress { width: 100%; height: 8px; background: #dfe8ef; }
.zf progress::-webkit-progress-bar { background: #dfe8ef; }
.zf b { text-align: right; font-variant-numeric: tabular-nums; }
.ev { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 50px; text-align: center; }
.ev-obs { background: #e2f6ed; color: #1f8d62; } .ev-est { background: #e8f0fa; color: var(--blue); } .ev-part { background: #fdf2dc; color: #9a6a0b; } .ev-miss { background: #e9eef2; color: #4d5d6c; }
.zd-why { margin: 6px 0 0 !important; padding: 12px 14px; border-radius: 12px; background: var(--mist); font-size: .8rem; line-height: 1.5; color: var(--ink); }

/* ---------- layer chips ---------- */
.layers { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.layers li { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ui); font-size: .8rem; font-weight: 600; padding: 7px 13px; border-radius: 50px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.layers li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--teal); }

/* ---------- relevance labels ---------- */
.rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.rel p { margin: 0; padding: 12px; border-radius: 14px; font-family: var(--ui); font-size: .78rem; line-height: 1.4; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.rel b { display: block; font: 800 .95rem var(--display); color: var(--navy); margin-bottom: 2px; }

@media (max-width: 1100px) {
  .bands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .wplay { grid-template-columns: minmax(0, 1fr); }
  .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factors, .sizes { grid-template-columns: minmax(0, 1fr); }
  .w-row { grid-template-columns: 112px 1fr 36px; gap: 8px; font-size: .78rem; }
  .zf { grid-template-columns: 96px 1fr 30px; }
  .zf .ev { display: none; }
}
