/* Case study pages. Loads after shared/styles.css. */
/* Screens carousel inside a case study */
.slide {
  width: min(820px, 80%);
}
.slide .ph {
  aspect-ratio: 16/10;
}
.slide b {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--ink);
}
.slide span {
  font-size: 14.5px;
  color: var(--muted);
}
/* Before / after reveal (case study pages) */
.ba__list {
  display: grid;
  gap: 56px;
  margin-top: 44px;
}
.reveal {
  --x: 50%;
  position: relative;
  margin: 0;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  background: var(--soft);
}
.reveal__layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.reveal__before {
  background: var(--tint);
}
/* with real screenshots the frame takes the AFTER screen's shape (1440×1024 exports), so
   the new design shows whole; the BEFORE screen fills the frame, anchored top left */
.reveal:has(img) {
  aspect-ratio: 1440 / 1024;
}
.reveal__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
}
.reveal__after img {
  object-fit: contain;
}
.reveal__after {
  background: var(--soft);
  clip-path: inset(0 0 0 var(--x));
}
.reveal__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line);
  pointer-events: none;
}
.reveal__handle {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.reveal__handle svg {
  width: 20px;
  height: 20px;
}
.reveal__tag {
  position: absolute;
  top: 16px;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  pointer-events: none;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}
.reveal__tag--a {
  left: 16px;
}
.reveal__tag--b {
  right: 16px;
}
.ba__list figure {
  margin: 0;
}
.ba__list figcaption {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.ba__list figcaption b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}
/* placeholder screens: dense legacy UI vs. the redesign */
.scr {
  width: 84%;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 19% 1fr;
}
.scr--old {
  background: #d4d4d4;
  gap: 2px;
  filter: saturate(0);
}
.scr--old .scr__side {
  background: #b9b9b9;
}
.scr--old .scr__main {
  background: #e4e4e4 repeating-linear-gradient(#c7c7c7 0 1px, transparent 1px 13px);
  border-top: 22px solid #9e9e9e;
}
.scr--new {
  background: #fff;
  border: 1px solid var(--line);
}
.scr--new .scr__side {
  background: #f5f6f9;
  border-right: 1px solid #eceef3;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scr--new .scr__side i {
  height: 8px;
  border-radius: 4px;
  background: #e2e5ee;
}
.scr--new .scr__side i:nth-child(2) {
  background: var(--brand);
  opacity: 0.8;
  width: 80%;
}
.scr--new .scr__main {
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}
.scr__bar {
  display: flex;
  gap: 8px;
}
.scr__bar i {
  height: 22px;
  width: 70px;
  border-radius: 99px;
  background: #eef1f8;
}
.scr__bar i:first-child {
  background: var(--brand);
  width: 90px;
}
.scr__kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scr__kpi i {
  height: 42px;
  border-radius: 8px;
  background: #f3f5fb;
}
.scr__rows {
  border-radius: 8px;
  background: #fff repeating-linear-gradient(#eef0f5 0 1px, transparent 1px 26px);
  border: 1px solid #eef0f5;
}
@media (max-width: 860px) {
  .slide {
    width: 88%;
  }
}
/* Header: back link and title */
.cs-back {
  display: inline-flex;
  gap: 8px;
  padding-block: 11px;
  margin-block: -11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s var(--ease-standard);
}
.cs-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 53px);
  line-height: 1.06;
  letter-spacing: -0.032em;
  max-width: 20ch;
}
.cs-lede {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.cs-stats dd,
.cs-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-hero {
  aspect-ratio: 16 / 9;
  margin-top: 56px;
}
.cs-hero .mock-browser {
  width: 62%;
}
/* Headline numbers */
.cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 48px 0 0;
}
.cs-stats div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.cs-stats dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.cs-stats dd {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  max-width: 28ch;
}
/* The short version */
.cs-short {
  margin-top: var(--space);
  padding: 72px 0;
  background: var(--soft);
}
.cs-short__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(25px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.cs-short__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.cs-short__card {
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
}
.cs-short__card b,
.cs-rows b,
.cs-table b,
.cs-cards b {
  font-weight: 500;
  color: var(--ink);
}
/* Body: sticky menu on the left, story on the right */
.cs-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  padding-top: var(--space);
}
.cs-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.cs-toc__group {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.cs-toc__group:first-child {
  margin-top: 4px;
}
.cs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  transition:
    color 0.16s var(--ease-standard),
    background-color 0.16s var(--ease-standard);
}
.cs-toc a span {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.cs-toc a.active {
  color: var(--ink);
  background: var(--soft);
  font-weight: 500;
}
.cs-section {
  scroll-margin-top: 96px;
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.cs-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.cs-section__eyebrow {
  margin-bottom: 12px;
}
.cs-section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.cs-text {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
}
/* muted text with the key phrases in ink, like a decision log */
.cs-quote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--brand);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.cs-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.cs-section .pending {
  margin-top: 24px;
}
/* Rows: title on the left, text on the right */
.cs-rows {
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
}
.cs-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cs-rows dt {
  font-weight: 600;
  color: var(--ink);
}
.cs-rows dd {
  margin: 0;
  color: var(--muted);
}
/* Tables scroll sideways on small screens */
.cs-table {
  margin-top: 32px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cs-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.cs-table th,
.cs-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cs-table tr:last-child td {
  border-bottom: 0;
}
.cs-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
}
.cs-table td {
  color: var(--muted);
}
.cs-table td:first-child {
  color: var(--ink);
}
/* Cards in a row (tensions, options) */
.cs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.cs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
}
.cs-card__t {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}
.cs-card__tag {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.cs-card__note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
/* The temptation vs my call */
.cs-duel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.cs-duel__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--muted);
}
.cs-duel__card--call {
  background: var(--ink);
  border-color: var(--ink);
  color: color-mix(in srgb, var(--bg) 78%, var(--ink));
}
.cs-duel__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cs-duel__card--call .cs-duel__label {
  color: var(--brand);
}
html[data-theme='dark'] .cs-duel__card--call .cs-duel__label {
  color: #b5583f;
}
.cs-duel__t {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
.cs-duel__card--call .cs-duel__t {
  color: var(--bg);
}
/* Numbered steps */
.cs-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.cs-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cs-steps__n {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--brand);
}
.cs-steps b {
  display: block;
  font-weight: 600;
  color: var(--ink);
}
.cs-steps li span:not([class]) {
  font-size: 15px;
  color: var(--muted);
}
.cs-steps__fig {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* Reused pieces inside the story */
.cs-section .ba__list,
.cs-section .cs-carousel {
  margin-top: 32px;
}
/* More case studies: the other cases as cards, like the end of a chapter */
.cs-more {
  padding-top: var(--space);
}
.cs-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.cs-more__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color 0.16s var(--ease-standard);
}
.cs-more__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.cs-more__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  overflow: hidden;
}
.cs-more__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.cs-more__co {
  font-weight: 500;
  color: var(--ink);
}
.cs-more__read {
  color: var(--muted);
}
.cs-more__read::before {
  content: '·';
  margin-right: 10px;
}
.cs-more__arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.16s var(--ease-standard);
}
.cs-more__t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.16s var(--ease-standard);
}
@media (hover: hover) {
  .cs-back:hover,
  .cs-toc a:hover,
  .cs-more__card:hover .cs-more__t {
    color: var(--brand);
  }
  .cs-more__card:hover {
    border-color: var(--brand);
  }
  .cs-more__card:hover .cs-more__arrow {
    transform: translateX(4px);
  }
}
/* touch screens: the same feedback while the finger is down */
@media (hover: none) {
  .cs-back:active,
  .cs-toc a:active,
  .cs-more__card:active .cs-more__t {
    color: var(--brand);
  }
  .cs-more__card:active {
    border-color: var(--brand);
  }
}
@media (max-width: 1100px) {
  .cs-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
  }
  .cs-short__grid {
    grid-template-columns: 1fr 1fr;
  }
  .cs-more__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .cs-lede {
    font-size: 18px;
  }
  .cs-hero {
    margin-top: 32px;
    aspect-ratio: 4 / 3;
  }
  .cs-hero .mock-browser {
    width: 84%;
  }
  .cs-stats {
    grid-template-columns: 1fr 1fr;
  }
  .cs-short {
    padding: 48px 0;
  }
  .cs-short__grid,
  .cs-duel {
    grid-template-columns: 1fr;
  }
  /* the menu would take too much room: the story reads top to bottom */
  .cs-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .cs-toc {
    display: none;
  }
  .cs-section {
    padding-bottom: 56px;
    margin-bottom: 56px;
  }
  .cs-rows div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cs-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .cs-steps__fig {
    grid-column: 2;
    font-size: 18px;
  }
}
/* ===== The case layout: header, short version, then the story with a left-hand menu ===== */
.csb-head {
  padding-top: 56px;
}
.csb-kicker {
  margin: 32px 0 16px;
  color: var(--brand);
}
.csb-title {
  max-width: 22ch;
}
.csb-head .cs-lede {
  max-width: 60ch;
}
/* facts in one row under the title instead of a column on the right */
.csb-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px 32px;
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.csb-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.csb-facts dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink);
}
/* body: the left-hand menu follows the chapters (problem, key decisions, results) */
.csb-body {
  padding-top: var(--space);
}
.csb-toc {
  padding-top: 0;
  border-top: 0;
}
.csb-main {
  min-width: 0;
  max-width: 880px;
}
.csb-chapter {
  scroll-margin-top: 96px;
}
.csb-chapter + .csb-chapter {
  margin-top: var(--space);
  padding-top: var(--space);
  border-top: 1px solid var(--line);
}
.csb-chapter__n span {
  margin-right: 6px;
  color: var(--brand);
}
.csb-chapter__title {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(25px, 2.8vw, 35px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.csb-chapter__lede {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}
.csb-results {
  margin-top: 24px;
}
.csb-results .cs-section {
  max-width: 880px;
}
/* problem and context sections as short cards */
/* one card under the other, each as wide as the story (José: vertical, so tables fit) */
.csb-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.csb-card {
  padding: 28px;
  background: var(--soft);
  border-radius: var(--radius-lg);
  scroll-margin-top: 96px;
}
.csb-card__t {
  font-size: 18px;
  font-weight: 600;
}
.csb-card > p {
  margin-top: 12px;
  color: var(--body);
}
/* standout names, like the regulations a product covers: big name, one line under it */
.cs-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-tags li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(14px, 4vw, 20px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cs-tags b {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.9vw, 25px);
  white-space: nowrap;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cs-tags span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
/* problem and context cards: all their detail shown, on every screen (José) */
.csb-card__more > * {
  margin-top: 16px;
}
/* folded detail: the full reasoning stays one click away */
.csb-more {
  margin-top: 16px;
}
.csb-more summary {
  display: inline-flex;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}
.csb-more summary::-webkit-details-marker {
  display: none;
}
.csb-more summary::after {
  content: '↓';
  transition: transform 0.16s var(--ease-standard);
}
.csb-more[open] summary::after {
  transform: rotate(180deg);
}
.csb-more[open] > :not(summary) {
  margin-top: 16px;
}
/* key decisions on larger screens: the full reasoning is always shown, no toggle (case.js opens it) */
@media (min-width: 861px) {
  .csb-more--reasoning {
    margin-top: 24px;
  }
  .csb-more--reasoning > summary {
    display: none;
  }
  .csb-more--reasoning[open] > summary + * {
    margin-top: 0;
  }
}
/* decisions as numbered steps */
.csb-steps {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.csb-step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.csb-step__n {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  color: var(--brand);
}
.csb-step__t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.csb-step__q {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
}
.csb-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 24px 0 0;
}
.csb-choice div {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.csb-choice__call {
  border-color: var(--brand) !important;
}
.csb-choice dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.csb-choice__call dt {
  color: var(--brand);
}
.csb-choice dd {
  margin: 6px 0 0;
  font-weight: 500;
  color: var(--ink);
}
.csb-step .cs-text,
.csb-step .cs-table,
.csb-step .cs-cards,
.csb-step .cs-steps {
  max-width: 760px;
}
/* small screens */
@media (max-width: 860px) {
  .csb-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .csb-step__n {
    font-size: 32px;
  }
  .csb-step__t {
    font-size: 21px;
  }
  .csb-choice {
    grid-template-columns: 1fr;
  }
  .csb-card {
    padding: 22px;
  }
}
/* comparators grow out of the text column to the right: as wide as the content on a laptop,
   wider still on large screens, so the screenshots can be read */
/* a single screenshot under a section's text (e.g. Invoices) */
.cs-shot {
  margin: 40px 0 0;
}
.cs-shot figcaption {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted);
}
.cs-shot figcaption b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 8px;
}
.cs-shot + .cs-shot {
  margin-top: 56px;
}
.cs-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.csb-step .cs-shot {
  max-width: 760px;
  margin-top: 32px;
}
/* phone screens side by side, numbered, with a caption under each (two per row on phones) */
.cs-phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.cs-phones img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cs-phones p {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.cs-phones b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 600px) {
  .cs-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }
}
@media (min-width: 1101px) {
  .cs-section .cs-phones,
  .cs-section .cs-shot,
  .cs-section .ba__list {
    width: max(100%, calc(50vw + 176px));
  }
}
/* the case header keeps the main image's own shape (1600×1067, 3:2), on every screen; the image
   has no background of its own, so it sits straight on the page */
.cs-hero.ph--img {
  aspect-ratio: 3 / 2;
  background: transparent;
}
