/* MLAP landing page. Loads after styles.css, pages.css and services.css. */

/* ---------- questions ---------- */
.qgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.q:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); color: var(--ink); }
.q h3 { font-size: 1.22rem; margin: 10px 0 0; }
.q p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); flex: 1; }
.q .link-arrow { font-size: .76rem; }

/* ---------- sources ---------- */
.src-bar { display: flex; justify-content: center; margin-bottom: 26px; }
.src-bar .seg { justify-content: center; }
.srcgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.src { position: relative; background: rgb(255 255 255 / 5%); border: 1px solid rgb(135 209 214 / 20%); border-radius: 20px; padding: 18px 18px 16px; backdrop-filter: blur(6px); transition: border-color .2s ease, transform .2s ease, opacity .2s ease; }
.src:hover { border-color: var(--aqua); transform: translateY(-3px); }
.src[hidden] { display: none; }
.src h3 { color: #fff; font-size: 1.08rem; margin: 12px 0 2px; }
.src-cat { font-family: var(--ui); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }
.src p { margin: 6px 0 0; font-family: var(--ui); font-size: .84rem; line-height: 1.5; color: #c9dbe8; }
.src .icon-badge { background: rgb(135 209 214 / 14%); color: var(--aqua); box-shadow: none; width: 40px; height: 40px; border-radius: 12px; }
.src .icon-badge svg { width: 20px; height: 20px; }
.src-how { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgb(135 209 214 / 14%); font-size: .74rem !important; color: #92abc0 !important; }
.src-state { position: absolute; right: 14px; top: 16px; font-family: var(--ui); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 50px; }
.st-live { background: rgb(63 185 132 / 18%); color: #7fe0b4; }
.st-next { background: rgb(242 181 68 / 18%); color: #f6cd80; }
.st-soon { background: rgb(146 171 192 / 18%); color: #b8cadb; }
.src-note { margin: 22px auto 0; max-width: 78ch; text-align: center; font-family: var(--ui); font-size: .84rem; color: #92abc0; }

/* ---------- preset dashboards ---------- */
.presets { background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); font-family: var(--ui); overflow: hidden; }
.presets .demo-chrome { margin: 0; }
.preset-bar { padding: 16px 18px 0; }
.preset-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.preset-pane[hidden] { display: none; }
.preset-pane > p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--mist); border-radius: 14px; padding: 12px 14px; }
.tile small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile b { display: block; font-size: 1.35rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.tile em { font-style: normal; font-size: .74rem; font-weight: 600; }
.up { color: #1f8d62; } .down { color: #b3321f; }
.widgets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.widgets span { font-size: .76rem; font-weight: 600; padding: 6px 12px; border-radius: 50px; border: 1px dashed #b9c9d6; color: var(--ink); }
.takeaway { margin: 0 !important; padding: 12px 14px; border-radius: 14px; background: #eefaf5; border: 1px solid #bfe8d4; font-size: .86rem !important; line-height: 1.5; color: var(--ink) !important; }
.takeaway b { color: #1f8d62; }

/* ---------- forecast mock ---------- */
.fc { margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--mist); padding: 14px; font-family: var(--ui); }
.fc svg { width: 100%; height: auto; stroke: none; display: block; }
.fc-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 0; font-size: .74rem; color: var(--muted); }
.fc-key i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }

/* ---------- small stat row inside dark sections ---------- */
.kpis5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.kpi { background: rgb(255 255 255 / 5%); border: 1px solid rgb(135 209 214 / 20%); border-radius: 18px; padding: 16px; }
.kpi b { display: block; font: 800 1.02rem var(--display); color: #fff; }
.kpi span { display: block; margin-top: 4px; font-family: var(--ui); font-size: .8rem; line-height: 1.45; color: #a9c2d6; }

/* ---------- playbooks ---------- */
.pbgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.pb { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-family: var(--ui); font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pb small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.pb i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-ink); }
.pb i svg { width: 16px; height: 16px; }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.role { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.role h3 { font-size: 1.2rem; margin: 12px 0 6px; }
.role p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* ---------- section spacing helpers ---------- */
.stack-top { margin-top: clamp(32px, 5vw, 56px); }
.feature-dark .panel { background: rgb(255 255 255 / 5%); border-color: rgb(135 209 214 / 20%); box-shadow: none; }
.feature-dark .panel h3 { color: #fff; }
.feature-dark .panel > p { color: #c9dbe8; }
.feature-dark .panel .icon-badge { background: rgb(135 209 214 / 14%); color: var(--aqua); box-shadow: none; }

@media (max-width: 1100px) {
  .srcgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qgrid, .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .srcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .src-bar .seg { border-radius: 18px; }
}
@media (max-width: 620px) {
  .srcgrid, .qgrid, .roles, .pbgrid, .kpis5 { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fc-now { background: var(--navy); } .fc-prev { background: #9fb2c2; } .fc-next { background: var(--teal); }
.aside-note { margin: 0; padding: 12px 16px; border-left: 4px solid var(--teal); background: var(--mist); border-radius: 0 12px 12px 0; font-family: var(--ui); font-size: .9rem; color: var(--ink); }
.h3-gap { margin-top: 26px; }
.presets .demo-note { margin: 0; padding: 0 20px 16px; }
.ticks strong { color: var(--navy); font-family: var(--display); }
@media (max-width: 620px) {
  .srcgrid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 4px 20px 14px; scrollbar-width: none; }
  .srcgrid::-webkit-scrollbar { display: none; }
  .src { flex: 0 0 78%; scroll-snap-align: center; }
  .src-bar .seg { justify-content: flex-start; }
  .pbgrid { grid-template-columns: minmax(0, 1fr); }
}
