/* Pre-launch preview pages (extends review-page.css).
   Adds: status line, evidence chips, the discount estimator, the unknowns list
   and the timeline. Colours come from site tokens; status colours were checked
   for 4.5:1 on --surface and --page in both themes. */

:root {
  --pv-reported: #9a3412;        /* on #fff7ed: 6.9:1 */
  --pv-reported-bg: #fff7ed;
  --pv-rumoured: #6b21a8;        /* on #faf5ff: 8.3:1 */
  --pv-rumoured-bg: #faf5ff;
  --pv-confirmed: #166534;       /* on #f0fdf4: 6.9:1 */
  --pv-confirmed-bg: #f0fdf4;
  --pv-unknown: var(--muted);
}
html[data-theme="dark"] {
  --pv-reported: #fdba74;        /* on #2a1508: 10:1 */
  --pv-reported-bg: #2a1508;
  --pv-rumoured: #d8b4fe;        /* on #1f1029: 10:1 */
  --pv-rumoured-bg: #1f1029;
  --pv-confirmed: #86efac;       /* on #0b2414: 11:1 */
  --pv-confirmed-bg: #0b2414;
}

/* ---------- Hero status ---------- */
.pv-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 18px !important;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: var(--rv-fs-caption);
  font-weight: 600;
  line-height: 1.3;
}
.pv-status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rv-brand);
}
@media (prefers-reduced-motion: no-preference) {
  .pv-status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--rv-brand);
    opacity: 0;
    animation: pv-pulse 2.4s ease-out infinite;
  }
}
@keyframes pv-pulse {
  0% { scale: 0.6; opacity: 0.7; }
  70%, 100% { scale: 1.6; opacity: 0; }
}
.pv-status span:last-child { color: var(--muted); font-weight: 500; }

.rv-hero-card .pv-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e2dfda;
}
.pv-art-note {
  padding: 10px 20px 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Evidence chips ---------- */
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.pv-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pv-chip-reported { color: var(--pv-reported); background: var(--pv-reported-bg); }
.pv-chip-rumoured { color: var(--pv-rumoured); background: var(--pv-rumoured-bg); }
.pv-chip-confirmed { color: var(--pv-confirmed); background: var(--pv-confirmed-bg); }
.pv-chip-unknown {
  color: var(--pv-unknown);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pv-chip-unknown::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.pv-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--rv-fs-small);
  color: var(--muted);
}
.pv-legend > span { display: inline-flex; align-items: center; gap: 8px; }

.pv-benefits td:last-child { width: 1%; }
.pv-benefits .pv-value { font-weight: 600; }
.pv-benefits .pv-value-muted { color: var(--muted); font-weight: 500; }

/* ---------- Discount estimator ---------- */
.pv-calc .rv-meter-earn { background: var(--rv-brand); }
.pv-calc .rv-meter { padding-block-start: 14px; }
.pv-calc .rv-meter-track { height: 12px; border-radius: 999px; }
.pv-assume {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--rv-radius-sm);
  background: var(--surface-muted);
  font-size: var(--rv-fs-small);
  line-height: 1.5;
  color: var(--text);
}
.pv-assume svg { flex: none; margin-block-start: 1px; color: var(--muted); }

/* ---------- Unknowns ---------- */
.pv-unknowns {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--line);
}
.pv-unknowns li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-block-end: 1px solid var(--line);
}
.pv-unknowns li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-block-start: 4px;
  border-radius: 50%;
  border: 1.5px dashed var(--muted);
}
.pv-unknowns strong { display: block; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.pv-unknowns span { display: block; font-size: var(--rv-fs-small); line-height: 1.5; color: var(--muted); }

/* ---------- Timeline ---------- */
.pv-timeline {
  display: grid;
  padding: 0;
  list-style: none;
}
.pv-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 0 22px;
  padding-inline-start: 26px;
}
.pv-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.pv-timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5.5px;
  inset-block: 22px 0;
  width: 1px;
  translate: -50% 0;
  background: var(--line);
}
.pv-timeline li:last-child { padding-block-end: 0; }
.pv-timeline li:last-child::after { display: none; }
.pv-timeline li.pv-now::before { border-color: var(--rv-brand); background: var(--rv-brand); }
.pv-timeline time {
  font-size: var(--rv-fs-small);
  font-weight: 600;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pv-timeline p { font-size: 1rem; line-height: 1.6; }

@media (max-width: 560px) {
  .pv-timeline li { grid-template-columns: minmax(0, 1fr); }
  .pv-benefits th,
  .pv-benefits td { padding-inline: 10px; }
  .pv-benefits tbody th { min-width: 0; width: 30%; }
  .pv-benefits th:first-child,
  .pv-benefits td:first-child { padding-inline-start: 14px; }
  .pv-benefits th:last-child,
  .pv-benefits td:last-child { padding-inline-end: 14px; }
  .pv-chip { padding-inline: 7px; }
}

/* ---------- Plain bullet list ---------- */
.rv-list { display: grid; gap: 8px; padding-inline-start: 1.25em; line-height: 1.6; }
.rv-list li { text-wrap: pretty; }
.rv-list li::marker { color: var(--muted); }
