/* Propup case study (casestudy/propup/). Builds on style.css tokens. */

.page-propup { --shadow: 0 10px 30px rgba(0, 0, 0, .05); --text: #2a2a2a; --label: #8a8a8a; }
:where(.page-propup) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.page-propup) figure { margin: 0; }
/* width/height attributes are for layout hints only; keep intrinsic ratio */
:where(.page-propup) img { height: auto; }

/* ---------- Hero ---------- */
.pp-hero {
  --mock-w: min(1180px, 100vw - 48px);
  --overlap: calc(var(--mock-w) * .2068); /* part of the mockup that sits on the hero card */
}
.pp-hero-card {
  margin: 16px 16px 0;
  padding: 156px 24px calc(66px + var(--overlap));
  border-radius: 32px;
  background: linear-gradient(180deg, #eef0fb, #f6f6f8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pp-hero-card > * { animation: fade-up .9s var(--ease) both; }
.pp-eyebrow { padding: 7px 16px; font-size: 14px; font-weight: 500; animation-delay: .1s; }
.pp-hero-title {
  margin-top: 24px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  animation-delay: .2s;
}
.pp-hero-title span { color: var(--blue); }
.pp-hero-sub { margin-top: 20px; max-width: 680px; color: var(--muted); font-size: 16px; animation-delay: .3s; }
.pp-chips { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation-delay: .4s; }
.pp-chips li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.pp-mockup {
  position: relative;
  width: var(--mock-w);
  aspect-ratio: 1180 / 740;
  margin: calc(-1 * var(--overlap)) auto 0;
  animation: fade-up 1s var(--ease) .5s both;
}
.pp-mockup-laptop {
  position: absolute;
  left: 0; top: 0;
  width: 85.424%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 68px rgba(0, 0, 0, .05);
}
/* Image is cropped to the device frame; corners and shadow come from CSS (phone: 320 × 660, radius 52) */
.pp-mockup-phone {
  position: absolute;
  left: 72.881%; top: 8.108%;
  width: 27.119%;
  border-radius: 16.25% / 7.879%;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .05);
}

/* ---------- Role + meta ---------- */
.pp-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 40px 0;
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.pp-role, .pp-meta, .pp-toc, .pp-metrics, .pp-decisions > li, .pp-learnings > li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pp-role { flex: 1; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.pp-overline { color: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.pp-role .pp-overline { font-size: 13px; letter-spacing: .1em; }
.pp-role h2 { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.pp-role > p:not(.pp-overline) { color: var(--text); font-size: 17px; line-height: 1.55; }
.pp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-tags li { padding: 5px 12px; border-radius: 100px; background: #f1f1f1; font-size: 13px; font-weight: 600; line-height: normal; }

.pp-meta { flex: 0 0 380px; margin: 0; padding: 24px 28px 28px; }
.pp-meta > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: normal; }
.pp-meta dt { color: var(--label); font-size: 14px; font-weight: 500; }
.pp-meta dd { margin: 0; font-size: 17px; font-weight: 600; }
.pp-meta > .pp-meta-live { gap: 10px; padding: 16px 0 0; border: 0; }
.pp-meta .btn { line-height: normal; letter-spacing: .08em; }

/* ---------- Content ---------- */
.pp-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.pp-toc { position: sticky; top: 110px; padding: 24px 16px; }
.pp-toc > p { margin-bottom: 12px; color: var(--label); font-size: 14px; font-weight: 500; }
.pp-toc ol { display: flex; flex-direction: column; gap: 4px; }
.pp-toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 100px;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  transition: background-color .2s, color .2s, border-radius .2s;
}
.pp-toc a span { color: #b0b0b0; font-size: 13px; font-weight: 600; transition: color .2s; }
.pp-toc a:hover { background: #f7f7f7; color: var(--ink); }
.pp-toc a[aria-current] { background: #f1f1f1; border-radius: 8px; color: var(--ink); }
.pp-toc a[aria-current] span { color: #141414; }

.pp-col { display: flex; flex-direction: column; gap: 120px; max-width: 840px; }
.pp-section { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 100px; }
.pp-label { display: flex; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .08em; line-height: normal; }
.pp-label span { color: var(--blue); letter-spacing: 0; }
.pp-section > h2 { max-width: 720px; font-size: 40px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.pp-section > p:not(.pp-label) { max-width: 720px; color: var(--text); font-size: 18px; line-height: 1.65; }

.pp-figure { display: flex; flex-direction: column; gap: 24px; }
.pp-figure figcaption, .pp-pair figcaption { color: var(--muted); font-size: 14px; font-weight: 500; line-height: normal; }
.pp-img, .pp-figure img { width: 100%; height: auto; }

.pp-metrics { display: flex; padding: 32px 8px; }
.pp-metrics > div { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 0 20px; }
.pp-metrics > div + div { border-left: 1px solid var(--line); }
.pp-metrics p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.pp-metrics .pp-metric-num { color: var(--ink); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.pp-metrics .pp-metric-title { color: var(--ink); font-size: 16px; font-weight: 600; line-height: normal; }

.pp-quote { display: flex; flex-direction: column; gap: 24px; padding: 40px; border-radius: var(--radius); background: var(--blue); color: #fff; }
.pp-quote blockquote { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.4; }
.pp-quote figcaption { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 15px; font-weight: 600; line-height: normal; }

.pp-decisions { display: flex; flex-direction: column; gap: 16px; }
.pp-decisions > li { display: flex; align-items: flex-start; gap: 28px; padding: 28px 32px 28px 28px; }
/* Fixed-width number column so the Problem/Decyzja columns line up across cards */
.pp-decision-num { flex-shrink: 0; width: 56px; font-variant-numeric: tabular-nums; color: var(--blue); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.pp-decision-problem, .pp-decision-body { display: flex; flex-direction: column; gap: 6px; }
.pp-decision-problem { flex: 0 0 250px; }
.pp-decision-problem p:not(.pp-overline) { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.5; }
.pp-decision-body { flex: 1; min-width: 0; }
.pp-decision-body h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.pp-decision-body p:not(.pp-overline) { color: var(--muted); font-size: 16px; line-height: 1.5; }

.pp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pp-pair figure { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pp-pair figure img { width: 100%; aspect-ratio: 412 / 263; object-fit: cover; }
.pp-shot { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pp-pair-shots { gap: 24px; }
.pp-pair-shots img { width: 100%; height: auto; aspect-ratio: 412 / 258; object-fit: cover; }
.pp-figure .pp-ds { border-radius: 11px; box-shadow: 0 16px 40px rgba(0, 0, 0, .08); }
.pp-web { width: 100%; height: auto; aspect-ratio: 840 / 525; object-fit: cover; border-radius: 14px; }

/* App screen with callouts (design frame: 840 × 724) */
.pp-app { container-type: inline-size; }
.pp-app-stage { position: relative; aspect-ratio: 840 / 724; }
/* Export includes the phone's drop shadow: 48px each side, 24px top */
.pp-app-phone { position: absolute; left: 27.381%; top: 3.315%; width: 45.298%; }
.pp-callouts li {
  position: absolute;
  left: calc(var(--x) * 100% / 840);
  top: calc(var(--y) * 100% / 724);
  width: 21.429%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pp-callouts h3 { font-size: 16px; font-weight: 600; line-height: normal; letter-spacing: -.01em; }
.pp-callouts p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pp-callouts li::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 22px;
  height: 1px;
  background: url("../assets/images/propup/app-callout-line.svg") no-repeat;
}
.pp-callouts .is-left::before { left: calc(100% + 20px); }
.pp-callouts .is-right::before { right: calc(100% + 20px); }

@container (max-width: 720px) {
  .pp-app-stage { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .pp-app-phone { position: static; width: min(380px, 100%); }
  .pp-callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; }
  .pp-callouts li { position: static; width: auto; }
  .pp-callouts li::before { display: none; }
}
@container (max-width: 420px) {
  .pp-callouts { grid-template-columns: 1fr; }
}

.pp-learnings { display: flex; flex-direction: column; gap: 16px; }
.pp-learnings > li { display: flex; align-items: center; gap: 24px; padding: 24px 28px 24px 24px; }
.pp-learnings > li > span {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lime);
  font-size: 16px;
  font-weight: 600;
}
.pp-learnings > li > div { display: flex; flex-direction: column; gap: 4px; }
.pp-learnings h3 { font-size: 20px; font-weight: 600; line-height: normal; letter-spacing: -.01em; }
.pp-learnings p { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ---------- Footer ---------- */
.pp-footer { background: var(--blue); color: #fff; padding: 80px 40px 40px; }
.pp-footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pp-footer h2 { font-size: 64px; font-weight: 600; line-height: normal; letter-spacing: -.03em; }
.pp-footer-inner > p { color: rgba(255, 255, 255, .9); font-size: 20px; font-weight: 500; line-height: normal; }
.pp-footer .btn { margin-top: 20px; line-height: normal; letter-spacing: .1em; color: var(--ink); }
.pp-footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .85);
  font-size: 15px;
  line-height: normal;
}
.pp-footer-bottom a { font-weight: 500; transition: color .2s; }
.pp-footer-bottom a:hover { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pp-content { grid-template-columns: minmax(0, 1fr); }
  .pp-toc { display: none; }
  .pp-col { margin: 0 auto; width: 100%; }
}
@media (max-width: 991px) {
  .pp-intro { flex-direction: column; }
  .pp-meta { flex-basis: auto; }
  .pp-hero-title { font-size: 40px; }
}
@media (max-width: 767px) {
  .pp-hero { --mock-w: calc(100vw - 24px); }
  .pp-hero-card { margin: 8px 8px 0; padding: 112px 16px calc(40px + var(--overlap)); border-radius: 24px; }
  .pp-hero-title { font-size: 32px; }
  .pp-hero-title br { display: none; }
  .pp-chips li { font-size: 13px; padding: 5px 12px; }
  .pp-intro { padding: 40px 16px 0; }
  .pp-role { padding: 24px; }
  .pp-role h2 { font-size: 30px; }
  .pp-content { padding: 64px 16px 80px; }
  .pp-col { gap: 80px; }
  .pp-section > h2 { font-size: 30px; }
  .pp-section > p:not(.pp-label) { font-size: 17px; }
  .pp-metrics { flex-direction: column; gap: 20px; padding: 24px 4px; }
  .pp-metrics > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .pp-quote { padding: 28px; }
  .pp-quote blockquote { font-size: 20px; }
  .pp-decisions > li { flex-direction: column; gap: 16px; padding: 24px; }
  .pp-decision-problem { flex-basis: auto; }
  .pp-pair { grid-template-columns: 1fr; gap: 24px; }
  .pp-pair-shots { gap: 16px; }
  .pp-learnings > li { align-items: flex-start; gap: 16px; padding: 20px; }
  .pp-learnings > li > span { flex-basis: 40px; height: 40px; }
  .pp-footer { padding: 60px 16px 32px; }
  .pp-footer h2 { font-size: 40px; }
  .pp-footer-inner > p { font-size: 17px; }
  .pp-footer-bottom { flex-direction: column; }
}
