/* ============================================================
   LMI V12 · content, product story and responsive correction.
   Layers on top of v11.css. Not a redesign.
   · Product proposition set in Inter Tight, not the editorial serif
   · Five stage product explanation built from genuine components
   · Phone dashboard: section selector, stacked cards, tables as
     labelled record cards, no horizontal page overflow
   · Learning thumbnails: real screenshots, one crop, one frame
   ============================================================ */
@import url("v11.css?v=3d1d97853b");

/* ---------- typography: the product page speaks Inter Tight ---------- */
body.prod .p-v8-hero h1,
body.prod h2.v8-h2,
body.prod h2.display-s {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.12 !important;
}
body.prod .p-v8-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem) !important; }
body.prod .p-v8-hero .lede b { color: var(--on-ink); font-weight: 500; }
.prod-sub { max-width: 62ch; margin: 18px auto 0; text-align: center; font-size: var(--f15); line-height: 1.6; color: var(--on-ink-3); }

/* ---------- five stage product explanation ---------- */
.stages { border-top: 1px solid var(--ln-d); border-bottom: 1px solid var(--ln-d); }
.stg-tabs { display: flex; gap: 0; border: 1px solid var(--ln-d); border-radius: var(--r2); overflow: hidden; margin-bottom: 22px; }
.stg-tabs button { flex: 1 1 0; background: none; border: 0; border-right: 1px solid var(--ln-d); padding: 12px 8px 13px; cursor: pointer; text-align: left; min-width: 0; }
.stg-tabs button:last-child { border-right: 0; }
.stg-tabs button .n { display: block; font-family: var(--mono); font-size: 10px; color: var(--on-ink-3); margin-bottom: 3px; }
.stg-tabs button .t { display: block; font-family: var(--sans); font-size: var(--f14); font-weight: 600; color: var(--on-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg-tabs button:hover .t { color: var(--on-ink); }
.stg-tabs button[aria-selected="true"] { background: var(--ink-2); box-shadow: inset 0 -2px 0 var(--link); }
.stg-tabs button[aria-selected="true"] .t { color: var(--on-ink); }

.stage { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.stage.on { display: grid; }
.stage .sx h3 { font-family: var(--sans); font-size: var(--f22); font-weight: 600; letter-spacing: -0.015em; color: var(--ivory); margin-bottom: 10px; }
.stage .sx p { font-size: var(--f14); line-height: 1.6; color: var(--smoke); max-width: 44ch; }
.stage .sx .gloss { margin-top: 14px; border-left: 2px solid rgba(168, 183, 222, 0.45); padding: 2px 0 2px 12px; font-size: var(--f13); color: var(--on-ink-3); max-width: 42ch; }
.stage .scr { border: 1px solid var(--ln-d); border-radius: var(--r2); background: var(--ink-2); overflow: hidden; }
.stage .scr .bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--ln-d); font-family: var(--mono); font-size: 10px; color: var(--on-ink-3); }
.stage .scr .bar i { font-style: normal; width: 7px; height: 7px; border-radius: 50%; background: rgba(239, 237, 230, 0.16); }
.stage .scr .body { padding: 14px 16px 16px; }
.stg-ctl { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.stg-ctl button { font-family: var(--sans); font-size: var(--f12); font-weight: 600; color: var(--on-ink-2); background: var(--ink-3); border: 0; border-radius: 99px; padding: 7px 14px; cursor: pointer; min-height: 32px; }
.stg-ctl button:hover { color: var(--on-ink); }
.stg-ctl .st-note { font-family: var(--mono); font-size: 10px; color: var(--on-ink-3); margin-left: auto; }

@media (max-width: 880px) {
  .stage, .stage.on { display: block; }
  .stage .sx { margin-bottom: 14px; }
}
/* phones: every stage visible, vertically swipeable */
@media (max-width: 680px) {
  .stg-tabs, .stg-ctl { display: none; }
  .stages-scroll { scroll-snap-type: y proximity; }
  .stage { display: block !important; scroll-snap-align: start; padding: 18px 0 6px; border-bottom: 1px solid rgba(239, 237, 230, 0.08); }
  .stage:last-child { border-bottom: 0; }
  .stage .sx h3::before { content: attr(data-n) " · "; font-family: var(--mono); font-size: 0.8em; color: var(--on-ink-3); }
}

/* ---------- overview example workflow strip ---------- */
.exwf { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; scrollbar-color: rgba(239, 237, 230, 0.18) transparent; }
.exwf::-webkit-scrollbar { height: 4px; }
.exwf::-webkit-scrollbar-thumb { background: rgba(239, 237, 230, 0.18); border-radius: 2px; }
.exwf .st { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(239, 237, 230, 0.12); border-radius: 99px; background: var(--ink); padding: 6px 12px; font-family: var(--sans); font-size: var(--f12); color: var(--on-ink-2); white-space: nowrap; }
.exwf .sep { flex: 0 0 auto; color: var(--on-ink-3); font-family: var(--mono); font-size: 11px; }

/* ---------- section explainer line under dashboard headings ---------- */
.db-h { flex-wrap: wrap; }
.db-h .sub { font-family: var(--sans); font-size: var(--f12); text-transform: none; letter-spacing: 0; }

/* ---------- phone dashboard ---------- */
.navsel { display: none; width: 100%; font-family: var(--sans); font-size: var(--f14); font-weight: 600; color: var(--on-ink); background: var(--ink-3); border: 1px solid var(--ln-d); border-radius: var(--r1); padding: 11px 12px; min-height: 44px; }
@media (max-width: 680px) {
  .db-nav { display: none !important; }
  .navsel { display: block; margin: 10px 12px 2px; width: calc(100% - 24px); }
  .db-main { padding: 14px 14px 20px; }

  /* wide tables become labelled record cards; header row goes away */
  .tbl-scroll { overflow: visible; }
  .optbl thead { display: none; }
  .optbl, .optbl tbody { display: block; }
  .optbl tbody tr { display: block; border: 1px solid rgba(239, 237, 230, 0.1); border-radius: var(--r2); padding: 10px 12px; margin-bottom: 8px; background: var(--ink); }
  .optbl tbody tr td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(239, 237, 230, 0.05); padding: 5px 0; text-align: right; }
  .optbl tbody tr td:last-child { border-bottom: 0; }
  .optbl td::before { content: attr(data-l); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-ink-3); text-align: left; flex: none; }
  .optbl td:not([data-l])::before { content: none; }
  .optbl .num { text-align: right; }

  /* evidence tables that should keep scrolling do so inside their card */
  .detail .tbl-scroll { overflow-x: auto; }
  .detail .optbl thead { display: table-header-group; }
  .detail .optbl, .detail .optbl tbody { display: table; width: 100%; }
  .detail .optbl tbody { display: table-row-group; }
  .detail .optbl tbody tr { display: table-row; border: 0; padding: 0; margin: 0; background: none; }
  .detail .optbl tbody tr td { display: table-cell; border-bottom: 1px solid rgba(239, 237, 230, 0.07); padding: 8px 14px 8px 0; text-align: left; }
  .detail .optbl td::before { content: none; }

  .db-drawer { padding: 12px 14px 16px; }
  .ctxbar .ci { min-width: 112px; }
}

/* ---------- learning: one consistent frame for real screenshots ---------- */
.lab a { background: var(--paper-3); }
.lab .glyph-img { display: block; width: 100%; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--ln-l); background: #F3F0E8; filter: saturate(0.82); }
