/* ─────────────────────────────────────────────────────────────────────────
 * Shared LIGHT marketing-page component library — layered on styles.css.
 *
 * Loaded by flagship product/module pages (pos-inventory, accounting, …)
 * ALONGSIDE styles.css (and a small per-page CSS for page-specific widgets).
 * Do NOT load page.css with this — that flips the page to the dark
 * documentation theme. Everything here uses the styles.css :root tokens
 * (--surface / --line / --brand / --grad …) so it stays on-brand with home.
 *
 * Keeps every module page visually identical: section rhythm, stat strip,
 * feature cards, steps, journal/ledger visual, FAQ, CTA. Page-specific
 * mockups (a register, a trial balance) live in the per-page CSS.
 * ─────────────────────────────────────────────────────────────── */

/* ── Section scaffold ───────────────────────────────────────────── */
.psec { padding: 84px 0; }
.psec--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.psec__sub { max-width: 640px; margin: 10px auto 0; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ── Stat strip ─────────────────────────────────────────────────── */
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.mstat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.mstat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mstat__label { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ── Product-mockup body reset ──────────────────────────────────────
 * styles.css makes .mockup__body a flex row (side + main). Our panels put
 * a single grid child in there, so reset to block + full width or the grid
 * shrinks to content. Same specificity as .mockup__body → wins by load order. */
.mockup__body.pm { display: block; width: 100%; padding: 0; }
.pm > * { width: 100%; }

/* ── Split (copy + visual) ──────────────────────────────────────── */
.msplit { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.msplit__copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 14px; }
.msplit__copy p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }

/* ── Journal / double-entry visual (used by POS + Accounting) ───── */
.jrnl { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.jrnl:last-child { border-bottom: 0; }
.jrnl__step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); }
.jrnl__title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.jrnl__row { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--muted); padding: 2px 0; }
.jrnl__dr { color: #168f5b; }
.jrnl__cr { color: #c0392b; padding-left: 16px; }

/* ── How-it-works steps ─────────────────────────────────────────── */
.msteps { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.mstep { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.mstep__num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; background: var(--grad); }
.mstep h3 { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.mstep p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ── Feature cards (icon) ───────────────────────────────────────── */
.mfeat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.mfeat { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.mfeat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mfeat__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; background: var(--grad-soft); }
.mfeat h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.mfeat p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.mfaq { max-width: 760px; margin: 0 auto; }
.mfaq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; padding: 0 18px; box-shadow: var(--shadow-sm); }
.mfaq summary { cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mfaq summary::-webkit-details-marker { display: none; }
.mfaq summary::after { content: '+'; color: var(--brand); font-size: 20px; }
.mfaq details[open] summary::after { content: '−'; }
.mfaq p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }

/* ── Final CTA band ─────────────────────────────────────────────── */
.mcta { padding: 0 0 96px; }
.mcta__inner { max-width: 820px; margin: 0 auto; text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--line); }
.mcta__inner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.mcta__inner p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

@media (max-width: 820px) {
  .msplit { grid-template-columns: 1fr; gap: 28px; }
}
