/* PDP case study extras. Builds on case-study.css. */

/* A long product page in a phone shaped window that pans slowly */
.scroller { width: min(380px, 26vw); aspect-ratio: 9 / 18.5; overflow: hidden; background: #fff; }
.scroller img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; max-height: none; transform: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .scroller:hover img, .scroller:focus-within img { animation: pan 14s ease-in-out forwards; }
}
@keyframes pan { from { object-position: 50% 0%; } to { object-position: 50% 100%; } }

/* Placeholder for screens still to come */
.placeholder { width: min(360px, 26vw); aspect-ratio: 9 / 18.5; background: #fff; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 32px; text-align: center; }
.placeholder::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); }
.placeholder b { font-size: var(--sub); line-height: 1.3; }
.placeholder span { font-size: var(--small); color: var(--muted); }

/* The live thing: one page, four categories */
.zones-ask .ask-out { min-height: 820px; }
.page-mock { width: min(420px, 100%); background: #fff; padding: 14px; display: grid; gap: 8px; text-align: left; }
.zone { background: #f3f5f7; padding: 10px 12px 12px; }
.zone > b { display: block; font-size: 0.875rem; margin-bottom: 6px; color: var(--muted); }
.zone.hero { background: var(--project); color: #fff; padding: 12px 14px 14px; }
.zone.hero > b { color: rgba(255, 255, 255, 0.86); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { font-size: 0.875rem; font-weight: var(--bold); line-height: 1.25; padding: 6px 10px; background: #fff; color: var(--ink); }
.chips li.should { background: #fff; color: var(--muted); font-weight: var(--regular); }
.chips li.must::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: 6px; transform: translateY(-1px); }
.answer .pain { font-size: var(--small); color: var(--ink); text-align: left; max-width: 420px; margin-top: 14px; }
.answer .pain b { color: #9a3a32; }
.legend { font-size: var(--small); color: var(--project-soft); margin-top: 20px; }
.legend span { color: #fff; font-weight: var(--bold); margin-right: 12px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: 8px; transform: translateY(-1px); }

/* Quotes from Baymard sit in the findings table */
.findings td:first-child q { font-style: italic; }
.findings td small { display: block; font-size: var(--small); color: var(--muted); margin-top: 4px; }

@media (max-width: 900px) {
  .scroller, .placeholder { width: min(320px, 78vw); margin: 0 auto; }
  .zones-ask .ask-out { min-height: 860px; }
}

p + .findings { margin-top: 28px; }

/* Fulfilment deep dive */
.before-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-bottom: clamp(48px, 5vw, 72px); }
.phone-shot img { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06), 0 12px 32px rgba(26, 26, 26, 0.08); }
.phone-shot figcaption, .board-grid figcaption, .pair figcaption { font-size: var(--small); color: var(--muted); margin-top: 10px; }
.before-copy h3, .result h3 { font-size: var(--sub); margin-bottom: 12px; }
.before-copy p { max-width: 64ch; }
.before-copy p + p { margin-top: 14px; }
.before-copy .evidence, .fig-note { margin-top: 24px; }
.evidence small { display: block; font-size: var(--small); font-style: normal; color: var(--muted); margin-top: 6px; }
.board-grid figcaption b { display: block; color: var(--ink); font-size: var(--body); margin-bottom: 2px; }
.result { background: #fff; padding: clamp(28px, 4vw, 48px); }
.result .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .before-row { grid-template-columns: 1fr; }
  .phone-shot { max-width: 320px; }
  .result .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Working down the page: boards are landscape, so give the answer side more room */
.walk .ask { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.walk .ask-out { min-height: 88svh; }
.walk .answer { align-content: center; gap: 18px; }
.walk .answer img { max-width: 100%; max-height: 56svh; width: auto; height: auto; background: #fff; }
.walk .walk-note { max-width: 62ch; text-align: left; }
.walk .walk-note p { text-align: left; max-width: none; margin-top: 0; color: var(--ink); font-size: var(--small); }
.walk .walk-note p + p { margin-top: 8px; }
.walk .walk-note .research { color: var(--muted); }
.walk .prompts { max-width: 52ch; }
.walk .prompt { padding: 13px 18px; }
@media (max-width: 900px) {
  .walk .ask { grid-template-columns: 1fr; }
  .walk .ask-out { min-height: 92svh; }
}
@media (max-width: 900px) {
  .walk .ask-out { min-height: 80svh; }
  .walk .answer { align-content: start; }
}
.panel .evidence { color: #9a3a32; }
.before-row { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.phone-shot figcaption b { display: block; color: var(--ink); font-size: var(--body); }
@media (max-width: 900px) { .before-row { grid-template-columns: 1fr; } .before-after { max-width: 560px; } .phone-shot { max-width: none; } }

/* Project framing, set as text rather than a board screenshot */
.framing { background: var(--paper); max-width: 1180px; padding: clamp(28px, 4vw, 56px); display: grid; gap: clamp(32px, 4vw, 48px); }
.fr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(40px, 5vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--screen); }
.framing h3 { font-size: var(--sub); margin-bottom: 12px; }
.framing ul { list-style: none; display: grid; gap: 10px; }
.framing li { position: relative; padding-left: 20px; }
.framing li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--project); }
.framing li.fr-key::before { background: var(--dot); }
.framing .principles dt { color: var(--project); }
@media (max-width: 760px) { .fr-row { grid-template-columns: 1fr; } .framing .principles div { grid-template-columns: 1fr; gap: 2px; } }
.framing { max-width: none; }
.before-copy p { max-width: none; }
.walk .walk-note { max-width: 76ch; }
.walk .prompts { max-width: 62ch; }
.answer .pain { max-width: 520px; }
