/* ─────────────────────────────────────────────────────────────────────────
 * POS & Inventory module page — LIGHT theme, layered on styles.css.
 *
 * This page intentionally does NOT load page.css (that file flips sub-pages
 * to the dark "documentation" theme used by legal/compare). A flagship
 * module page matches the rich LIGHT home page instead: same tokens
 * (--surface / --line / --brand / --grad), same hero + mockup language.
 * Only POS-specific widgets live here — the register, receive grid,
 * valuation table, journal panel, steps and FAQ — rendered as real-looking
 * product UI rather than generic marketing cards.
 * ─────────────────────────────────────────────────────────────── */

.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 ─────────────────────────────────────────────────── */
.pos-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; }
.pos-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.pos-stat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pos-stat__label { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ── Generic product-mockup body (sits inside .mockup from styles.css) ──
 * 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%; }
.pm__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pm__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.pm__sub { font-size: 12px; color: var(--muted); }

/* ── POS register mockup ────────────────────────────────────────── */
.reg { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 360px; }
.reg__catalog { padding: 16px; border-right: 1px solid var(--line); }
.reg__search { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; color: var(--muted); background: var(--surface-2); margin-bottom: 14px; }
.reg__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reg__tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.reg__tile span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.reg__tile small { display: block; font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 6px; }
.reg__tile--hot { border-color: rgba(124, 92, 255, 0.4); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.1); }
.reg__cart { background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; }
.reg__cart-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; }
.reg__line { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.reg__line b { color: var(--ink); font-weight: 600; }
.reg__line i { color: var(--muted); font-style: normal; font-size: 12px; }
.reg__line span { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.reg__totals { margin-top: auto; padding-top: 14px; }
.reg__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 2px 0; }
.reg__row--grand { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 6px; letter-spacing: -0.01em; }
.reg__pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.reg__pay span { text-align: center; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.reg__pay .is-cash { background: var(--grad); color: #fff; }
.reg__pay .is-card { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }

/* ── Receive grid mockup ────────────────────────────────────────── */
.rcv { padding: 16px 18px; }
.rcv__row { display: grid; grid-template-columns: 1fr 64px 84px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rcv__row--head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-weight: 700; padding-bottom: 6px; }
.rcv__row:last-child { border-bottom: 0; }
.rcv__name { font-size: 14px; color: var(--ink); font-weight: 500; }
.rcv__sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.rcv__cell { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font-size: 13px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rcv__pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(33, 212, 253, 0.12); border: 1px solid rgba(33, 212, 253, 0.3); color: #0a7ea4; font-weight: 600; }

/* ── Journal / perpetual ledger panel ───────────────────────────── */
.pos-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.pos-split__copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 14px; }
.pos-split__copy p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 14px; }
.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 ─────────────────────────────────────────── */
.psteps { max-width: 900px; margin: 0 auto; display: grid; gap: 14px; }
.pstep { 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); }
.pstep__num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; background: var(--grad); }
.pstep h3 { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.pstep p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ── Feature cards (icon) ───────────────────────────────────────── */
.pfeat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.pfeat { 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; }
.pfeat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pfeat__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; background: var(--grad-soft); }
.pfeat h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.pfeat p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.pfaq { max-width: 760px; margin: 0 auto; }
.pfaq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; padding: 0 18px; box-shadow: var(--shadow-sm); }
.pfaq 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; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: '+'; color: var(--brand); font-size: 20px; }
.pfaq details[open] summary::after { content: '−'; }
.pfaq p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }

/* ── Final CTA band ─────────────────────────────────────────────── */
.pcta { padding: 0 0 96px; }
.pcta__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); }
.pcta__inner h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.pcta__inner p { color: var(--muted); font-size: 16px; margin: 0 0 24px; }

@media (max-width: 820px) {
  .pos-split { grid-template-columns: 1fr; gap: 28px; }
  .reg { grid-template-columns: 1fr; }
  .reg__catalog { border-right: 0; border-bottom: 1px solid var(--line); }
}
