/* Platform & scene pages (platform.html, scene-*.html).
   Short-copy, product-first layout. Builds on solution-page.css (.dor tokens). */

.pv { --pv-radius: 14px; --pv-tint: rgba(46, 109, 164, .1); }

/* ---------- Split hero: copy left, product visual right ---------- */
.pv-hero {
  background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.pv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.pv-hero .dor-kicker { color: var(--dor-accent); }
.pv-hero .dor-kicker::before { background: var(--dor-accent); }
.pv-hero h1 {
  margin: 0 0 var(--s2);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.22;
  font-weight: 800;
  color: var(--dor-ink);
  letter-spacing: .01em;
}
.pv-hero-sub {
  margin: 0 0 var(--s3);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.9;
  color: var(--dor-muted);
  max-width: 34em;
}
.pv-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-hero-photo {
  margin: 0;
  border-radius: var(--pv-radius);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(16, 27, 40, .18);
  aspect-ratio: 4 / 3;
}
.pv-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Device frames (real UI screenshots shown on devices) ---------- */
.pv-monitor {
  margin: 0;
  background: #0d1117;
  border-radius: 14px;
  padding: 10px 10px 14px;
  box-shadow: 0 30px 70px rgba(16, 27, 40, .22);
}
.pv-monitor img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pv-devices { position: relative; padding: 0 8% 12% 0; margin: 0; }
.pv-devices .pv-tablet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  background: #1a1f27;
  border-radius: 16px;
  padding: 9px;
  box-shadow: 0 24px 50px rgba(16, 27, 40, .28);
}
.pv-devices .pv-phone {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 14%;
  background: #1a1f27;
  border-radius: 18px;
  padding: 7px 5px;
  box-shadow: 0 20px 40px rgba(16, 27, 40, .3);
}
.pv-tablet img, .pv-phone img { display: block; width: 100%; object-fit: cover; border-radius: 8px; }
.pv-tablet img { aspect-ratio: 16 / 10; }
.pv-phone img { aspect-ratio: 9 / 17; border-radius: 12px; }
.pv-figcap { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--dor-muted); }

/* ---------- Stat band ---------- */
.pv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--dor-line);
  border-bottom: 1px solid var(--dor-line);
}
.pv-stat { padding: var(--s3) var(--s2) var(--s3) 0; }
.pv-stat + .pv-stat { padding-left: var(--s2); border-left: 1px solid var(--dor-line); }
.pv-stat b { display: block; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; color: var(--dor-ink); font-weight: 800; }
.pv-stat > span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--dor-muted); }

/* ---------- Component cards (4-up) ---------- */
.pv-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.pv-part {
  background: #fff;
  border: 1px solid var(--dor-line);
  border-radius: var(--pv-radius);
  padding: var(--s3) var(--s2);
}
.dor-block-soft .pv-part { border-color: transparent; box-shadow: 0 10px 30px rgba(16, 27, 40, .06); }
.pv-part h3 { margin: 16px 0 8px; font-size: 18px; line-height: 1.5; color: var(--dor-ink); }
.pv-part p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--dor-muted); }
.pv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pv-tint);
  color: var(--dor-accent);
}
.pv-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Alternating split rows ---------- */
.pv-rows { display: grid; gap: clamp(56px, 7vw, 104px); }
.pv-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.pv-row.is-flip > :first-child { order: 2; }
.pv-row h3 { margin: 0 0 var(--s1); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.4; color: var(--dor-ink); }
.pv-row p { margin: 0 0 var(--s2); font-size: 16px; line-height: 1.9; color: var(--dor-muted); }
.pv-ticks { list-style: none; margin: 0; padding: 0; }
.pv-ticks li { position: relative; padding: 8px 0 8px 30px; font-size: 15px; line-height: 1.7; color: var(--dor-ink); }
.pv-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pv-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6DA4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pv-photo { margin: 0; border-radius: var(--pv-radius); overflow: hidden; box-shadow: 0 24px 60px rgba(16, 27, 40, .14); }
.pv-photo img { display: block; width: 100%; height: auto; }
.pv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pv-pair figure { margin: 0; }
.pv-pair .pv-photo img { aspect-ratio: 4 / 5; object-fit: cover; background: #fff; }
.pv-pair .pv-photo.is-contain img { object-fit: contain; padding: 8%; }
.pv-pair figcaption { padding: 12px 4px 0; font-size: 14px; line-height: 1.7; color: var(--dor-muted); }
.pv-pair figcaption b { display: block; color: var(--dor-ink); font-size: 16px; margin-bottom: 2px; }

/* ---------- Feature grid (3 x n) ---------- */
.pv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s3); }
.pv-feature h3 { margin: 16px 0 8px; font-size: 17px; line-height: 1.5; color: var(--dor-ink); }
.pv-feature p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--dor-muted); }
.dor-block-dark .pv-feature h3 { color: #fff; }
.dor-block-dark .pv-feature p { color: var(--dor-dark-muted); }
.dor-block-dark .pv-icon { background: rgba(127, 166, 211, .16); color: #9cbde3; }

/* ---------- Steps ---------- */
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); counter-reset: pv; }
.pv-steps li { counter-increment: pv; padding: var(--s2) 0 0; border-top: 2px solid var(--dor-accent); }
.pv-steps li::before {
  content: "0" counter(pv);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--dor-accent);
  margin-bottom: 10px;
}
.pv-steps h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; color: var(--dor-ink); }
.pv-steps p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--dor-muted); }

/* ---------- Scene cards ---------- */
.pv-scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.pv-scene {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--pv-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(16, 27, 40, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pv-scene:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 27, 40, .12); }
.pv-scene img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pv-scene > div { padding: 18px 20px 22px; }
.pv-scene h3 { margin: 0 0 6px; font-size: 17px; color: var(--dor-ink); }
.pv-scene p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--dor-muted); }

/* ---------- Deep links to reference pages ---------- */
.pv-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.pv-link {
  display: block;
  padding: var(--s2);
  border: 1px solid var(--dor-line);
  border-radius: var(--pv-radius);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease;
}
.pv-link:hover { border-color: var(--dor-accent); }
.pv-link small { display: block; font-size: 12px; letter-spacing: .06em; color: var(--dor-accent); margin-bottom: 6px; }
.pv-link b { display: block; font-size: 16px; line-height: 1.6; color: var(--dor-ink); }
.pv-link > span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--dor-muted); }

.pv-note { margin: var(--s3) 0 0; font-size: 14px; line-height: 1.8; color: var(--dor-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pv-parts, .pv-scenes { grid-template-columns: repeat(2, 1fr); }
  .pv-steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--s3); }
  .pv-features { grid-template-columns: repeat(2, 1fr); }
  .pv-stats { grid-template-columns: repeat(2, 1fr); }
  .pv-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .pv-stat:nth-child(n+3) { border-top: 1px solid var(--dor-line); }
}
@media (max-width: 860px) {
  .pv-hero-grid, .pv-row { grid-template-columns: 1fr; }
  .pv-row.is-flip > :first-child { order: 0; }
  .pv-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pv-parts, .pv-scenes, .pv-features, .pv-steps, .pv-stats { grid-template-columns: 1fr; }
  .pv-stat + .pv-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--dor-line); }
  .pv-pair { grid-template-columns: 1fr; }
  .pv-devices { padding: 0 0 14% 0; }
  .pv-devices .pv-phone { width: 20%; }
}

/* ---------- Filter chips (cases.html) ---------- */
.pv-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--s3); }
.pv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--dor-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--dor-ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pv-chip small { font-size: 12px; color: var(--dor-muted); }
.pv-chip:hover { border-color: var(--dor-accent); }
.pv-chip.is-active { background: var(--dor-accent); border-color: var(--dor-accent); color: #fff; }
.pv-chip.is-active small { color: rgba(255, 255, 255, .8); }
.case-featured-item[hidden] { display: none; }

/* ---------- Deployment chooser (surgical teaching pages) ---------- */
.pv-choose-block { padding: var(--s5) 0; background: #fff; }
.pv-choose-title { margin: 0 0 6px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; color: var(--dor-ink); font-weight: 700; }
.pv-choose-lead { margin: 0 0 var(--s3); font-size: 15px; line-height: 1.8; color: var(--dor-muted); }
.pv-choose { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.pv-choose-item {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border: 1px solid var(--dor-line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pv-choose-item:hover { border-color: var(--dor-accent); box-shadow: 0 12px 28px rgba(16, 27, 40, .08); }
.pv-choose-item.is-hot { border-color: var(--dor-accent); background: #f3f7fc; }
.pv-choose-item > small { font-size: 13px; line-height: 1.6; color: var(--dor-muted); }
.pv-choose-item > b { margin: 8px 0 6px; font-size: 17px; line-height: 1.5; color: var(--dor-ink); }
.pv-choose-item > span { font-size: 14px; line-height: 1.75; color: var(--dor-muted); }
.pv-choose-item > em { margin-top: auto; padding-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--dor-accent); }
@media (max-width: 1024px) { .pv-choose { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pv-choose { grid-template-columns: 1fr; } }
