/* MyGenie Care — Preventive Maintenance page (care-preventive.html). Loaded after care.css. */

/* Priority chips (shared by hero report, report section) */
.chip {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; line-height: 1.5;
}
.chip-now { background: rgba(239,68,68,0.16); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }
.chip-plan { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.35); }
.chip-watch { background: rgba(148,163,184,0.14); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.3); }
/* on light backgrounds */
.section-white .chip-now { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.section-white .chip-plan { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.section-white .chip-watch { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ── Hero: sample audit report ── */
.pv-report {
  background: rgba(23, 17, 46,0.84); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 22px; color: #e2e8f0; box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  max-width: 460px; width: 100%; margin: 0 auto;
}
.pv-report-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: #94a3b8; }
.pv-sample {
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.15); color: var(--care-light); border: 1px solid rgba(16,185,129,0.3);
}
.pv-report-site { display: inline-flex; align-items: center; gap: 6px; }
.pv-report-site svg { width: 13px; height: 13px; }

.pv-score { display: flex; align-items: center; gap: 18px; margin: 18px 0 16px; }
.pv-ring {
  --v: 86; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--care-light) calc(var(--v) * 1%), rgba(255,255,255,0.08) 0);
  display: grid; place-items: center;
}
.pv-ring > span {
  width: 68px; height: 68px; border-radius: 50%; background: #0b1424;
  display: flex; align-items: baseline; justify-content: center; padding-top: 18px;
}
.pv-ring b { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 28px; color: #fff; line-height: 1; }
.pv-ring small { font-size: 11px; color: #64748b; margin-left: 1px; }
.pv-score-label { font-family: "Oswald", sans-serif; font-size: 20px; color: #fff; line-height: 1.2; }
.pv-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--care-light); font-weight: 600; }
.pv-delta svg { width: 14px; height: 14px; }
.pv-score-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.pv-issues { list-style: none; border-top: 1px solid rgba(255,255,255,0.06); }
.pv-issues li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pv-thumb {
  width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.pv-thumb::after { /* camera corner mark: "photo" */
  content: ""; position: absolute; right: 4px; bottom: 4px; width: 7px; height: 5px; border-radius: 1px;
  border: 1px solid rgba(255,255,255,0.45);
}
.pv-thumb svg { width: 20px; height: 20px; }
.t-red { background: linear-gradient(150deg, #451a1a, #1c1012); color: #fca5a5; }
.t-amber { background: linear-gradient(150deg, #44310f, #1a140a); color: #fcd34d; }
.t-slate { background: linear-gradient(150deg, #334155, #111827); color: #cbd5e1; }
.pv-issue-t { flex: 1; min-width: 0; font-size: 14px; color: #e2e8f0; line-height: 1.35; }
.pv-issue-t small { display: block; font-size: 11.5px; color: #64748b; margin-top: 2px; }

.pv-estimate {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px; color: #94a3b8;
}
.pv-estimate b { display: block; font-family: "Oswald", sans-serif; font-weight: 400; font-size: 20px; color: #fff; letter-spacing: 0.04em; }
.pv-approve {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--care); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pv-approve svg { width: 12px; height: 12px; }

.pv-fixed { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.pv-fixed-t { flex: 1; font-size: 13px; color: #cbd5e1; }
.pv-fixed-t small { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--care-light); }
.pv-ba { display: flex; gap: 6px; }
.pv-ba span {
  width: 66px; height: 46px; border-radius: 7px; display: flex; align-items: flex-end; padding: 4px 6px;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
}
.pv-ba .b { background: linear-gradient(160deg, #3f3f46, #18181b); color: #fca5a5; }
.pv-ba .a { background: linear-gradient(160deg, #065f46, #022c22); color: #a7f3d0; }

/* ── What we check ── */
.pv-areas { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pv-areas { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pv-areas { grid-template-columns: repeat(4, 1fr); } }
.pv-area {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pv-area:hover { border-color: #6ee7b7; box-shadow: 0 16px 40px rgba(16,185,129,0.08); }
.pv-area h3 { font-family: "Oswald", sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; line-height: 1.25; }
.pv-area p { color: #64748b; font-size: 14px; line-height: 1.6; }
.pv-area-cta {
  background: radial-gradient(120% 120% at 100% 0%, #065f46 0%, #022c22 55%, #0d0a1c 100%);
  border-color: #065f46; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.pv-area-cta:hover { border-color: #10b981; }
.pv-area .pv-cta-big { font-family: "Oswald", sans-serif; font-size: 1.6rem; line-height: 1.2; color: #fff !important; }
.pv-area-cta .btn { align-self: flex-start; padding: 12px 20px; }

/* ── How often we visit ── */
.pv-freq {
  margin-top: 40px; background: #fff; border: 1px solid #d1fae5; border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 50px rgba(16,185,129,0.08);
}
@media (min-width: 1024px) { .pv-freq { margin-top: 0; padding: 32px; } }
.pv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 12px; }
.pv-seg button {
  padding: 11px 6px; border-radius: 9px; font-size: 14px; font-weight: 500; color: #475569;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pv-seg button:hover { color: var(--ink); }
.pv-seg button[aria-selected="true"] { background: #fff; color: var(--care-strong); box-shadow: 0 2px 8px rgba(23, 17, 46,0.1); font-weight: 600; }
.pv-seg button:focus-visible, .pv-mail-link:focus-visible { outline: 2px solid var(--care); outline-offset: 2px; }
.pv-freq-panel { padding: 24px 4px 4px; }
.pv-visits { display: flex; align-items: baseline; gap: 10px; }
.pv-visits b { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 64px; line-height: 1; color: var(--ink); }
.pv-visits span { font-size: 15px; color: #64748b; }
.pv-guide { margin-top: 8px; font-size: 15px; color: #334155; min-height: 24px; }
.pv-months { list-style: none; display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 22px; }
.pv-months li {
  height: 44px; border-radius: 7px; background: #f8fafc; border: 1px solid #e2e8f0;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  font-size: 11px; color: #94a3b8; position: relative; transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.pv-months li.on { background: var(--care-tint); border-color: #6ee7b7; color: var(--care-strong); font-weight: 600; }
.pv-months li.on::before {
  content: ""; position: absolute; top: 9px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px;
  border-radius: 50%; background: var(--care);
}
.pv-freq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.pv-mail-link { font-size: 14px; color: var(--care-strong); border-bottom: 1px solid #a7f3d0; }
.pv-mail-link:hover { border-color: var(--care); }

/* ── What your report shows ── */
.pv-shows { list-style: none; margin-top: 32px; }
.pv-shows li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #f1f5f9;
  font-size: 16px; color: #334155; line-height: 1.55;
}
.pv-shows li:last-child { border-bottom: 0; }
.pv-shows .n, .pv-paper .pin {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--care); color: #fff; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif;
}
.pv-shows li > .n + * { flex: 1; }
.pv-shows .chip { margin: 2px 2px; }
.pv-shows .n { margin-top: 0; }

.pv-paper {
  margin-top: 40px; position: relative; background: #fff; border-radius: 16px; padding: 26px 26px 22px 34px;
  border: 1px solid #e2e8f0; box-shadow: 0 30px 70px rgba(23, 17, 46,0.1), 0 2px 6px rgba(23, 17, 46,0.04);
}
@media (min-width: 1024px) { .pv-paper { margin-top: 0; } }
.pv-paper .pin { position: absolute; left: -13px; box-shadow: 0 0 0 4px #fff; }
.pv-paper .pin.pin-in { position: static; box-shadow: none; margin-right: 8px; }
.pv-paper-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; }
.pv-paper-head small { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #94a3b8; }
.pv-paper-head b { font-family: "Oswald", sans-serif; font-weight: 400; font-size: 20px; color: var(--ink); }
.pv-paper-logo { font-size: 12px; font-weight: 600; color: var(--care-strong); background: var(--care-tint); padding: 4px 10px; border-radius: 999px; }
.pv-paper-score, .pv-paper-row, .pv-paper-cost, .pv-paper-fixed { position: relative; }
.pv-paper-score { padding: 18px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; border-bottom: 1px solid #f1f5f9; }
.pv-paper-score .pin { top: 22px; left: -47px; }
.pv-paper-score .big { font-family: "Oswald", sans-serif; font-size: 40px; color: var(--ink); line-height: 1; grid-row: span 2; }
.pv-paper-score .big small { font-size: 14px; color: #94a3b8; }
.pv-paper-score .bar { height: 8px; background: #f1f5f9; border-radius: 99px; position: relative; }
.pv-paper-score .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #34d399, #059669); }
.pv-paper-score .bar em { position: absolute; top: -4px; width: 2px; height: 16px; background: #94a3b8; border-radius: 2px; }
.pv-paper-score .d { font-size: 13px; color: var(--care-strong); font-weight: 600; }
.pv-paper-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.pv-paper-row > .pin { top: 22px; left: -47px; }
.pv-paper .ph { width: 54px; height: 42px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; }
.pv-paper .ph svg { width: 20px; height: 20px; }
.ph-a { background: linear-gradient(150deg, #fee2e2, #fecaca); color: #b91c1c; }
.ph-b { background: linear-gradient(150deg, #fef3c7, #fde68a); color: #b45309; }
.pv-paper .t { flex: 1; min-width: 0; font-size: 14px; color: #241c40; line-height: 1.35; }
.pv-paper .t small { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }
.pv-paper .r { display: flex; align-items: center; }
.pv-paper-cost { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; }
.pv-paper-cost .pin { top: 50%; margin-top: -13px; left: -47px; }
.pv-paper-cost .amt { font-family: "Oswald", sans-serif; font-size: 18px; color: var(--ink); letter-spacing: 0.04em; }
.pv-paper-fixed { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pv-paper-fixed .pin { top: 50%; margin-top: -13px; left: -47px; }
.pv-paper-fixed .t small { color: #64748b; }
.pv-ba-light .b { background: linear-gradient(160deg, #e4e4e7, #a1a1aa); color: #7f1d1d; }
.pv-ba-light .a { background: linear-gradient(160deg, #a7f3d0, #34d399); color: #064e3b; }

/* ── Many sites ── */
.pv-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: 13px; color: #94a3b8; }
.pv-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pv-legend i { width: 10px; height: 10px; border-radius: 3px; }
.pv-legend .g, .pv-sites li.g .bar i { background: #34d399; }
.pv-legend .a, .pv-sites li.a .bar i { background: #fbbf24; }
.pv-legend .r, .pv-sites li.r .bar i { background: #f87171; }
.pv-sites {
  margin-top: 40px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 8px 22px 12px;
}
@media (min-width: 1024px) { .pv-sites { margin-top: 0; } }
.pv-sites-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pv-sites ul { list-style: none; }
.pv-sites li {
  display: grid; grid-template-columns: minmax(120px, 0.9fr) 1.4fr 40px; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pv-sites li:last-child { border-bottom: 0; }
.pv-sites .s { font-size: 15px; color: #e2e8f0; line-height: 1.3; }
.pv-sites .s small { display: block; font-size: 12px; color: #64748b; }
.pv-sites .bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.pv-sites .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 99px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.pv-sites b { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 20px; color: #fff; text-align: right; }
.pv-sites li.r { background: linear-gradient(90deg, rgba(248,113,113,0.08), transparent 70%); margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.pv-sites li.r b { color: #fca5a5; }
/* one orchestrated moment: bars fill once when the view scrolls in */
.pv-sites.armed:not(.visible) .bar i { width: 0; }
.pv-sites.armed.visible .bar i { transition-delay: 0.45s; }
.pv-sites.armed.visible li:nth-child(2) .bar i { transition-delay: 0.53s; }
.pv-sites.armed.visible li:nth-child(3) .bar i { transition-delay: 0.61s; }
.pv-sites.armed.visible li:nth-child(4) .bar i { transition-delay: 0.69s; }
.pv-sites.armed.visible li:nth-child(5) .bar i { transition-delay: 0.77s; }
.pv-sites.armed.visible li:nth-child(6) .bar i { transition-delay: 0.85s; }

@media (max-width: 639px) {
  .pv-report { padding: 18px; }
  .pv-issue-t { font-size: 13px; }
  .pv-issues li { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 6px; }
  .pv-issues .chip { grid-column: 2; justify-self: start; }
  .pv-issues .pv-thumb { grid-row: span 2; align-self: start; }
  .pv-fixed { flex-wrap: wrap; }
  .pv-paper { padding: 22px 18px 18px 30px; }
  .pv-paper-row { flex-wrap: wrap; }
  .pv-paper-row .r { width: 100%; padding-left: 66px; }
  .pv-paper-cost { flex-wrap: wrap; }
  .pv-paper-fixed { flex-wrap: wrap; }
  .pv-sites { padding: 4px 16px 8px; }
  .pv-sites li { grid-template-columns: 1fr 36px; gap: 6px 12px; }
  .pv-sites .bar { grid-column: 1 / -1; grid-row: 2; }
  .pv-sites li.r { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .pv-visits b { font-size: 52px; }
  .pv-months { gap: 3px; }
  .pv-months li { height: 38px; font-size: 10px; }
  .pv-seg button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-sites .bar i, .pv-months li, .pv-seg button { transition: none !important; }
}
@media (max-width: 639px) {
  .pv-paper-score .pin, .pv-paper-row > .pin, .pv-paper-cost .pin, .pv-paper-fixed .pin { left: -43px; }
}
