/* showcase.css — the product mock-ups shared by the public pages.
 *
 * These are the little HTML/CSS reproductions of real AutoFlotte screens (the
 * dashboard, the printable contract, the revenue breakdown, the role matrix).
 * They started life inside landing.html; they live here because the login page
 * now shows the same four in its side carousel, and a screenshot that drifts
 * from the product on one page but not the other is worse than no screenshot.
 *
 * Used by:
 *   - src/public/landing.html      (hero + the three feature split rows)
 *   - src/authentication/login.html (the left-hand showcase carousel)
 *
 * Deliberately theme-independent: the values below are fixed light tones, not
 * --bs-* variables. These are meant to read as photographs of the app, so they
 * must not flip to dark when the surrounding page does.
 */

:root {
  --lp-primary: #5955D1;
  --lp-primary-dark: #423FA8;
  --lp-primary-light: #9895FF;
  --lp-ink: #14132B;
  --lp-body: #56546E;
  --lp-muted: #7B7994;
  --lp-line: #E7E6F5;
  --lp-surface: #FFFFFF;
  --lp-tint: #F6F6FD;
  --lp-radius: 18px;
  --lp-shadow-sm: 0 1px 2px rgba(20, 19, 43, .04), 0 4px 16px rgba(20, 19, 43, .05);
  --lp-shadow-md: 0 2px 4px rgba(20, 19, 43, .04), 0 16px 40px rgba(20, 19, 43, .09);
  --lp-shadow-lg: 0 30px 80px rgba(66, 63, 168, .18);
}

/* ── Browser-framed dashboard mock ────────────────────────────────────────── */
.lp-shot {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--lp-line); background: #fff; box-shadow: var(--lp-shadow-lg);
}
.lp-shot-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  background: #FAFAFE; border-bottom: 1px solid var(--lp-line);
}
.lp-dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-shot-url {
  margin-left: 10px; flex: 1; max-width: 300px; font-size: .72rem; color: var(--lp-muted);
  background: #fff; border: 1px solid var(--lp-line); border-radius: 6px; padding: 3px 10px;
}
.lp-shot-body { display: flex; min-height: 380px; }
.lp-shot-side { width: 178px; flex-shrink: 0; border-right: 1px solid var(--lp-line); padding: 14px 12px; background: #fff; }
.lp-shot-side-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  font-size: .78rem; font-weight: 500; color: var(--lp-body); margin-bottom: 2px;
}
.lp-shot-side-item i { font-size: .9rem; display: inline-flex; }
.lp-shot-side-item.is-active { background: var(--lp-primary); color: #fff; }
.lp-shot-side-cap {
  font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--lp-primary); padding: 13px 10px 5px;
}
.lp-shot-main { flex: 1; padding: 18px; background: #FDFDFF; min-width: 0; }

.lp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 14px; }
.lp-kpi { background: #fff; border: 1px solid var(--lp-line); border-radius: 11px; padding: 12px; }
.lp-kpi-label { font-size: .58rem; font-weight: 700; letter-spacing: .06em; color: var(--lp-muted); text-transform: uppercase; }
.lp-kpi-value { font-size: 1.18rem; font-weight: 700; color: var(--lp-ink); margin-top: 5px; line-height: 1.1; }
.lp-kpi-sub { font-size: .63rem; margin-top: 4px; font-weight: 600; }

.lp-panels { display: grid; grid-template-columns: 1.7fr 1fr; gap: 11px; }
.lp-panel { background: #fff; border: 1px solid var(--lp-line); border-radius: 11px; padding: 13px; }
.lp-panel-title { font-size: .72rem; font-weight: 700; color: var(--lp-ink); margin-bottom: 12px; }

.lp-bars { display: flex; align-items: flex-end; gap: 9px; height: 128px; }
.lp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lp-bar-stack { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 112px; }
.lp-bar { border-radius: 3px; }
.lp-bar--net { background: linear-gradient(180deg, #7B78E0, var(--lp-primary)); }
.lp-bar--tax { background: #D9D8F4; }
.lp-bar-x { font-size: .56rem; color: var(--lp-muted); font-weight: 600; }

.lp-donut {
  width: 108px; height: 108px; border-radius: 50%; margin: 4px auto 12px;
  background: conic-gradient(var(--lp-primary) 0 46%, #22C55E 46% 74%, #F59E0B 74% 90%, #E6E5F6 90% 100%);
  display: grid; place-items: center;
}
.lp-donut::after { content: ''; width: 66px; height: 66px; border-radius: 50%; background: #fff; }
.lp-legend { display: flex; flex-direction: column; gap: 6px; }
.lp-legend div { display: flex; align-items: center; gap: 7px; font-size: .64rem; color: var(--lp-body); }
.lp-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

/* ── Plain card frame used by the three flat mock-ups below ───────────────── */
.lp-media {
  background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow-md); padding: 20px; overflow: hidden;
}

/* ── Printable contract mock ──────────────────────────────────────────────── */
.lp-doc { font-size: .72rem; }
.lp-doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--lp-primary); padding-bottom: 11px; margin-bottom: 13px; }
.lp-doc-title { font-weight: 700; color: var(--lp-ink); font-size: .82rem; letter-spacing: -.01em; }
.lp-doc-ar { font-weight: 700; color: var(--lp-ink); font-size: .82rem; direction: rtl; }
.lp-doc-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--lp-line); }
.lp-doc-row span:first-child { color: var(--lp-muted); }
.lp-doc-row span:last-child { color: var(--lp-ink); font-weight: 600; text-align: right; }
.lp-doc-rtl { direction: rtl; text-align: right; }
.lp-doc-total { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #EEEDFB; font-weight: 700; color: var(--lp-primary-dark); }
.lp-doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.lp-doc-sign div { border-top: 1px solid var(--lp-line); padding-top: 6px; font-size: .64rem; color: var(--lp-muted); text-align: center; }

/* ── Role matrix mock ─────────────────────────────────────────────────────── */
.lp-role { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--lp-line); border-radius: 12px; }
.lp-role + .lp-role { margin-top: 10px; }
.lp-role-av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: .95rem; flex-shrink: 0; }
.lp-role-n { font-size: .84rem; font-weight: 700; color: var(--lp-ink); line-height: 1.3; }
.lp-role-s { font-size: .72rem; color: var(--lp-muted); }
.lp-role-b { margin-left: auto; font-size: .64rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--lp-tint); color: var(--lp-primary); white-space: nowrap; }

/* ── Net-revenue breakdown mock ───────────────────────────────────────────── */
.lp-rev-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.lp-rev-val { font-size: 1.85rem; font-weight: 700; color: var(--lp-ink); letter-spacing: -.03em; }
.lp-rev-line { display: flex; justify-content: space-between; font-size: .78rem; padding: 9px 0; border-bottom: 1px solid var(--lp-line); }
.lp-rev-line span:first-child { color: var(--lp-muted); display: flex; align-items: center; gap: 7px; }
.lp-rev-line span:last-child { font-weight: 600; color: var(--lp-ink); }
.lp-rev-line i { font-size: .8rem; }

/* ── Narrow containers ────────────────────────────────────────────────────── */
/* The sidebar is the first thing to go: it is the least informative column and
   the widest fixed one. Below that, the KPI row and the chart row unstack. */
@media (max-width: 991.98px) {
  .lp-shot-side { display: none; }
}
@media (max-width: 767.98px) {
  .lp-shot-body { min-height: 0; }
  .lp-kpis { grid-template-columns: repeat(2, 1fr); }
  .lp-panels { grid-template-columns: 1fr; }
}

/* Same treatment, but driven by the parent rather than the viewport — the login
   showcase is a half-width column on a very wide screen, so the media queries
   above never fire there. Apply .lp-compact to the mock's wrapper. */
.lp-compact .lp-shot-side { display: none; }
.lp-compact .lp-shot-body { min-height: 0; }
.lp-compact .lp-kpis { grid-template-columns: repeat(2, 1fr); }
.lp-compact .lp-shot-main { padding: 14px; }
