/* DPO case study, part 2: web and phone screens, and the results as road signs. */

/* ---------- web and phone ---------- */
.dp-screens { background: var(--white); }
.dp-screens__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 88px; align-items: center; }
.dp-frame { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: var(--dp-ice); box-shadow: 0 0 0 1px var(--cs-line); }
.dp-frame img { display: block; width: 100%; height: auto; }
.dp-frame--payout { justify-self: end; width: min(100%, 600px); }
.dp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 960px; margin: 20px auto 0; }
.dp-frame--phones figcaption { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 8px 16px; background: var(--white); border-top: 1px solid var(--cs-line); text-align: center; }
.dp-frame--phones figcaption span { font-size: 13.5px; font-weight: 600; color: var(--cs-ink); }
.dp-frame--floor { margin-top: 20px; }
.dp-frame--floor img { aspect-ratio: 1440 / 640; object-fit: cover; object-position: center 40%; }
.dp-frame--floor figcaption { position: absolute; left: 24px; bottom: 24px; max-width: 380px; padding: 14px 18px; border-radius: 14px; background: rgb(255 255 255 / 92%); box-shadow: 0 14px 40px -20px rgb(15 42 107 / 40%); font-size: 14.5px; line-height: 1.55; color: var(--cs-ink); }

/* ---------- results: overhead road signs ---------- */
.dp-out { background: linear-gradient(180deg, #0b1d4a, #0a173a); color: var(--white); }
.dp-out .cs-lead { color: rgb(255 255 255 / 72%); }
.dp-out__hi { color: #7fb0ff; }
.dp-signs { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 72px 0 0; padding: 26px 0 0; list-style: none; }
.dp-signs::before { content: ""; position: absolute; top: 0; left: -8px; right: -8px; height: 10px; border-radius: 3px; background: linear-gradient(180deg, #8d9ab3, #5b6882); }
.dp-signs li { position: relative; display: grid; align-content: start; gap: 10px; padding: 22px 20px 24px; border-radius: 12px; background: var(--dp-royal); box-shadow: inset 0 0 0 3px var(--dp-royal), inset 0 0 0 5px rgb(255 255 255 / 92%), 0 20px 40px -24px rgb(0 0 0 / 60%); }
.dp-signs li::before { content: ""; position: absolute; top: -26px; left: 50%; width: 6px; height: 26px; margin-left: -3px; background: #6c7892; }
.dp-signs li:nth-child(odd) { background: #1f7a4a; box-shadow: inset 0 0 0 3px #1f7a4a, inset 0 0 0 5px rgb(255 255 255 / 92%), 0 20px 40px -24px rgb(0 0 0 / 60%); }
.dp-signs__arrow { width: 22px; height: 22px; background: var(--white); clip-path: polygon(50% 0, 100% 50%, 68% 50%, 68% 100%, 32% 100%, 32% 50%, 0 50%); }
.dp-signs h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; }
.dp-signs p { margin: 0; font-size: 14px; line-height: 1.55; color: rgb(255 255 255 / 86%); }

@media (max-width: 1100px) {
  .dp-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 1000px) {
  .dp-screens__top { grid-template-columns: 1fr; }
  .dp-frame--payout { justify-self: stretch; width: auto; }
  .dp-frame--payout img { aspect-ratio: 4 / 3; object-fit: cover; }
  .dp-pair { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dp-frame { border-radius: 18px; }
  .dp-frame--payout img { aspect-ratio: 1; }
  .dp-frame--phones figcaption span { font-size: 11.5px; }
  .dp-frame--floor img { aspect-ratio: 16 / 10; }
  .dp-frame--floor figcaption { position: static; max-width: none; border-radius: 0; box-shadow: none; }
  .dp-signs { grid-template-columns: 1fr; gap: 34px; margin-top: 56px; }
  .dp-signs::before { display: none; }
  .dp-signs li::before { display: none; }
}

/* ---------- One Booking, Any Screen, sized to the images. Heading row, then two rows of pairs:
   payout square + web/phone (1 : 1.5), three phones + screen floor (1.598 : 1.6). Each item grows by its
   image ratio (--r) from a zero basis, so both images in a row share one height, uncropped. ---------- */
.dp-screens { background: radial-gradient(50% 40% at 100% 0%, rgb(47 91 234 / 8%), transparent 70%), var(--white); }
.dp-screens .dp-pair { display: flex; gap: clamp(20px, 2.4vw, 32px); align-items: flex-start; max-width: none; margin: clamp(20px, 2.4vw, 32px) 0 0; }
.dp-screens .cs-head + .dp-pair { margin-top: clamp(48px, 5vw, 72px); }
.dp-screens .dp-pair > * { flex: var(--r) 1 0; min-width: 0; }
.dp-screens .dp-frame { box-shadow: 0 0 0 1px var(--cs-line), 0 40px 70px -44px rgb(15 42 107 / 40%); }
.dp-screens .dp-frame img { aspect-ratio: auto; object-fit: initial; }
.dp-floor__cap { max-width: 480px; margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--cs-muted); }
@media (max-width: 760px) {
  .dp-screens .dp-pair { flex-direction: column; }
  .dp-screens .dp-pair > * { flex: none; width: 100%; }
}

/* No dot before the small section labels on this page. */
.cs-kicker::before { display: none; }

/* Phones: the road is a narrow strip, so every stop stays readable instead of waiting for the truck. */
@media (max-width: 720px) {
  .dp-stop__card { opacity: 1; transform: none; }
}
