/* Homepage product previews, built from the Cadi app design system (shadcn base).
   Static, decorative, demo data only. Every selector is scoped to .pv. */
.pv {
  --pv-bg: #eef1fb; --pv-card: #ffffff; --pv-soft: #f5f7ff; --pv-border: #e2e8f6; --pv-border-strong: #d5def3;
  --pv-text: #0a1030; --pv-muted: #5a6690; --pv-primary: #3a55e8; --pv-primary-soft: #ebeefd;
  --pv-success: #0d855d; --pv-success-soft: #e7f3ef; --pv-warn: #a16807; --pv-warn-soft: #f6f0e6; --pv-danger: #ba344d; --pv-danger-soft: #fbebee;
  --pv-shadow: 0 1px 2px rgba(10,16,48,.05), 0 4px 14px rgba(10,16,48,.06);
  position: relative; padding: 16px; background: var(--pv-bg); color: var(--pv-text);
  font-family: var(--font); font-size: 14px; line-height: 1.4; text-align: left;
}
.pv, .pv *, .pv *::before, .pv *::after { box-sizing: border-box; }
.pv p, .pv h4, .pv ul, .pv ol { margin: 0; padding: 0; list-style: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pv-over { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pv-muted); }
.pv .pv-hello { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.pv-hello b { color: #0bb6da; font-weight: 800; }
.pv-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 99px; background: var(--pv-primary-soft); color: #334bcc; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pv-card { background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 14px; box-shadow: var(--pv-shadow); padding: 14px 16px; }
.pv-card + .pv-card { margin-top: 12px; }
.pv-big { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.pv-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.pv-pill.ok { background: var(--pv-success-soft); color: #0b7552; }
.pv-pill.warn { background: var(--pv-warn-soft); color: #8e5c06; }
.pv-pill.bad { background: var(--pv-danger-soft); color: #ba344d; }
.pv .pv-up { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #0b7552; }
.pv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pv-tile { background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.pv-tile .pv-over { display: block; }
.pv-tile b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.pv-tile small { display: block; font-size: 12px; color: var(--pv-muted); margin-top: 2px; }
.pv-tile.ok b { color: #0b7552; } .pv-tile.warn b { color: var(--pv-warn); } .pv-tile.bad b { color: var(--pv-danger); }
.pv-tiles.two { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.pv-spark { display: block; width: 100%; height: 52px; margin-top: 12px; }
.pv-health { display: flex; align-items: center; gap: 14px; }
.pv-donut { width: 88px; height: 88px; flex-shrink: 0; }
.pv-health ul { display: grid; gap: 8px; min-width: 0; }
.pv-health li b { display: block; font-size: 13.5px; font-weight: 700; }
.pv-health li span { font-size: 12px; color: var(--pv-muted); }

/* import stepper */
.pv-stepper { display: flex; align-items: flex-start; gap: 0; }
.pv-stepper li { flex: 1; display: grid; justify-items: center; gap: 6px; position: relative; font-size: 11.5px; font-weight: 600; color: var(--pv-muted); text-align: center; }
.pv-stepper li::before { content: attr(data-n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pv-card); border: 2px solid var(--pv-border-strong); font-weight: 800; font-size: 12px; color: var(--pv-muted); position: relative; z-index: 1; }
.pv-stepper li::after { content: ""; position: absolute; top: 12px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--pv-border-strong); }
.pv-stepper li:last-child::after { display: none; }
.pv-stepper li.done::before { content: "✓"; background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.pv-stepper li.done::after { background: var(--pv-primary); }
.pv-stepper li.now::before { border-color: var(--pv-primary); color: var(--pv-primary); }
.pv-stepper li.now { color: var(--pv-text); }
.pv-row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--pv-soft); border: 1px solid var(--pv-border); border-radius: 10px; font-size: 12.5px; }
.pv-row b { font-weight: 700; } .pv-row span { color: var(--pv-muted); }

@media (max-width: 480px) { .pv-row { grid-template-columns: 1fr auto; } .pv-row span { grid-column: 1 / -1; order: 3; } .pv-stepper li { font-size: 10.5px; } .pv-acts li { grid-template-columns: auto minmax(0, 1fr); } .pv-acts li em { grid-column: 2; } }

/* game plan */
.pv-plan h4 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pv-way { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--pv-primary-soft); font-size: 13px; }
.pv-way b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #334bcc; margin-bottom: 2px; }
.pv-acts { display: grid; gap: 8px; margin-top: 10px; }
.pv-acts li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 10px; font-size: 13px; }
.pv-acts li i { font-style: normal; font-size: 11px; font-weight: 800; color: var(--pv-primary); background: var(--pv-primary-soft); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.pv-acts li em { font-style: normal; font-weight: 800; color: #0b7552; white-space: nowrap; }

/* week view */
.pv-weekhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.pv-weekhead b { font-size: 16px; font-weight: 800; }
.pv-weekhead span { font-size: 13px; color: var(--pv-muted); font-weight: 600; }
.pv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pv-day { background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 10px; overflow: hidden; min-width: 0; }
.pv-day > p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; padding: 7px 8px; background: var(--pv-soft); border-bottom: 1px solid var(--pv-border); font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.pv-day > p small { font-size: 10.5px; font-weight: 700; color: #0b7552; }
.pv-day.is-today > p { background: var(--pv-primary); color: #fff; border-color: var(--pv-primary); }
.pv-day.is-today > p small { color: #fff; }
.pv-day ul { display: grid; gap: 5px; padding: 6px; }
.pv-job { padding: 6px 7px; border-radius: 8px; border: 1px solid var(--pv-border); border-left: 3px solid #0d9f6e; background: #f2faf6; font-size: 11px; min-width: 0; }
.pv-job.owed { border-left-color: #d9980b; background: #fdf8ee; }
.pv-job b { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; font-weight: 800; white-space: nowrap; }
.pv-job b i { font-style: normal; color: #0b7552; }
.pv-job.owed b i { color: var(--pv-warn); }
.pv-job span { display: block; margin-top: 1px; color: var(--pv-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 719px) {
  .pv-days { grid-template-columns: 1fr; }
  .pv-day:not(.is-today) { display: none; }
  .pv-job { font-size: 13px; padding: 9px 10px; }
  .pv-day > p { font-size: 13px; padding: 9px 12px; }
}

/* invoice reminder */
.pv-remind h4 { font-size: 16px; font-weight: 800; }
.pv-remind .sub { font-size: 13px; color: var(--pv-muted); margin-top: 2px; }
.pv-inv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: 12px; padding: 10px 12px; background: var(--pv-soft); border: 1px solid var(--pv-border); border-radius: 10px; font-size: 13px; }
.pv-inv b { font-weight: 800; } .pv-inv span { color: var(--pv-muted); }
.pv .pv-msg { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--pv-border-strong); border-radius: 10px; font-size: 13px; color: var(--pv-text); background: #fff; }
.pv-actions { display: flex; gap: 8px; margin-top: 12px; }
.pv-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid var(--pv-border-strong); background: #fff; color: var(--pv-text); }
.pv-btn.primary { background: var(--pv-primary); border-color: var(--pv-primary); color: #fff; }
.pv-toast { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--pv-border); border-radius: 10px; box-shadow: var(--pv-shadow); font-size: 13px; }
.pv-toast::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--pv-success-soft); color: #0b7552; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.pv-toast b { display: block; font-weight: 800; } .pv-toast span { color: var(--pv-muted); }

/* placement inside existing page blocks */
.hero-shot .pv { padding: 14px; }
.compare-cadi .pv + .pv { border-top: 1px solid var(--pv-border); }
.pv-inline { margin-top: 18px; border-radius: 14px; border: 1px solid var(--pv-border); overflow: hidden; }
@media (min-width: 900px) { .hero-shot .pv { padding: 20px; } }

/* ---------- Software page additions ---------- */
.pv .pv-h { font-size: 20px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.pv .pv-sub { font-size: 13px; color: var(--pv-muted); margin-top: 4px; }
.pv-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pv-two > .pv-card { margin-top: 0; }
.pv-seg { display: flex; gap: 2px; height: 12px; margin-top: 14px; border-radius: 99px; overflow: hidden; }
.pv-seg i { display: block; height: 100%; }
.pv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--pv-muted); }
.pv-legend li { display: flex; align-items: center; gap: 6px; }
.pv-legend li i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.pv-legend b { color: var(--pv-text); }
.pv-track { height: 8px; border-radius: 99px; background: var(--pv-border); overflow: hidden; margin-top: 10px; }
.pv-track i { display: block; height: 100%; border-radius: 99px; }
.pv-potrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.pv .pv-next { margin-top: 10px; padding: 9px 12px; border: 1px solid var(--pv-border); border-radius: 10px; font-size: 12.5px; font-weight: 600; background: var(--pv-soft); }
.pv-note { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--pv-border-strong); background: var(--pv-primary-soft); font-size: 13px; line-height: 1.5; }
.pv-note b { display: block; font-size: 14px; margin-bottom: 2px; }
.pv-drop { margin-top: 12px; padding: 26px 16px; border: 2px dashed var(--pv-border-strong); border-radius: 12px; background: var(--pv-card); text-align: center; }
.pv-drop b { display: block; font-size: 15px; font-weight: 800; }
.pv-drop span { font-size: 13px; color: var(--pv-muted); }
.pv .pv-tip { margin-top: 12px; font-size: 12.5px; color: var(--pv-muted); }
.pv-tip b { color: var(--pv-text); }
.pv-count { font-size: 13px; font-weight: 800; color: #334bcc; }
.pv .pv-q { margin-top: 16px; font-size: 14px; font-weight: 800; }
.pv-opts { display: grid; gap: 8px; margin-top: 8px; }
.pv-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--pv-border-strong); border-radius: 10px; background: var(--pv-card); font-size: 13.5px; font-weight: 600; }
.pv-opt::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8792b7; flex-shrink: 0; }
.pv-opt.on { border-color: var(--pv-primary); background: var(--pv-primary-soft); }
.pv-opt.on::before { border-color: var(--pv-primary); background: var(--pv-primary); box-shadow: inset 0 0 0 3px #fff; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--pv-border-strong); border-radius: 99px; background: var(--pv-card); font-size: 12.5px; font-weight: 600; }
.pv-chip.on { border-color: var(--pv-primary); background: var(--pv-primary-soft); }
.pv-chip.on::before { content: "✓"; color: var(--pv-primary); font-weight: 800; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--pv-border); }
.pv-cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.pv-cust { background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 14px; box-shadow: var(--pv-shadow); padding: 12px 14px; min-width: 0; }
.pv-cust .head { display: flex; align-items: center; gap: 10px; }
.pv-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; flex-shrink: 0; }
.pv-cust .head div { min-width: 0; flex: 1; }
.pv-cust .head b { display: block; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-cust .head div span { font-size: 12px; color: var(--pv-muted); }
.pv-cust .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pv-cust .kv { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--pv-border); font-size: 12.5px; color: var(--pv-muted); }
.pv-cust .kv b { color: var(--pv-text); }
.pv-pill.grey { background: #eceff8; color: #4d5880; }
.pv-pill.blue { background: var(--pv-primary-soft); color: #334bcc; }
.pv-doc { background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 12px; padding: 16px; }
.pv-doc .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--pv-border); }
.pv-doc .total { display: flex; justify-content: space-between; margin-top: 12px; font-size: 16px; font-weight: 800; }
.pv-ilist { display: grid; gap: 8px; margin-top: 4px; }
.pv-irow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 12px; padding: 10px 12px; background: var(--pv-card); border: 1px solid var(--pv-border); border-radius: 10px; font-size: 13px; }
.pv-irow .no { color: var(--pv-muted); font-weight: 700; }
.pv-irow b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-irow small { display: block; color: var(--pv-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-irow .amt { font-weight: 800; }
.pv-irow .act { font-weight: 700; color: var(--pv-primary); white-space: nowrap; font-size: 12.5px; }
.pv-irow .act.dim { color: var(--pv-muted); }
.pv-ring { display: flex; align-items: center; gap: 18px; }
.pv-ico { width: 34px; height: 34px; border-radius: 10px; background: #fdece3; border: 1px solid #f6c9b0; color: #c24a12; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.pv-rows { display: grid; gap: 12px; min-width: 0; }
.pv-rows li { display: flex; align-items: center; gap: 12px; }
.pv-rows b { display: block; font-size: 14px; font-weight: 800; }
.pv-rows div span { font-size: 12.5px; color: var(--pv-muted); }
@media (max-width: 560px) {
  .pv-irow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pv-irow .pill, .pv-irow .act { grid-column: 2 / -1; justify-self: start; }
  .pv-ring { flex-direction: column; align-items: flex-start; }
}
