/* ---------- Case study pages ----------
   Builds on styles.css (colours, type, background, footer). */

.case main, .case .foot { position: relative; z-index: 2; }
.case { --link: var(--text-strong); } /* links in the text colour, bold, with an arrow: no blue */
.cs-wrap { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
.case .foot-inner { max-width: 1080px; } /* line the footer up with the content */

/* Top bar: frosted, with just the name */
.cs-nav {
  /* Solid bar: a blurred, see-through bar smeared whatever scrolled under it */
  position: sticky; top: 0; z-index: 20;
  background: #f5f5f7; border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.cs-nav-inner { max-width: 1080px; height: 52px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }
.cs-nav-name { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); }
.cs-nav-name span { font-size: 1.5rem; font-weight: 400; line-height: 1; margin-top: -3px; color: var(--text-strong); }
.cs-nav-name:hover { color: #6e6e73; }

/* Intro */
.cs-hero { padding-top: 80px; padding-bottom: 8px; }
.cs-kicker { font-size: 1.05rem; font-weight: 600; color: #6e6e73; }
.cs-step { font-size: 0.9rem; font-weight: 600; color: #6e6e73; }
.cs-hero h1 {
  margin-top: 10px; max-width: 14em;
  font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; color: var(--text-strong);
}
.cs-subtitle { margin-top: 18px; max-width: 30em; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.38; color: #6e6e73; }
.cs-subtitle strong { color: var(--text-strong); font-weight: 600; }
/* Hero: the top of the phone, down to the offers widget, straight on the grey page and cropped at a
   hairline, like apple.com. --w is the phone's width; the image is wider because it carries its shadow. */
.cs-hero-tile {
  --w: clamp(280px, 30vw, 380px);
  display: flex; justify-content: center; align-items: flex-start; margin-top: 56px;
  height: calc(var(--w) * 1.565); overflow: hidden; border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.cs-hero-tile img { display: block; width: calc(var(--w) * 1.407); height: auto; flex: none; }
.cs-hero-caption { margin-top: 14px; text-align: center; font-size: 0.88rem; color: #6e6e73; }
/* Project facts: an iOS Settings-style grouped list */
.cs-group-title { max-width: 720px; margin: 64px 0 8px 4px; font-size: 0.88rem; font-weight: 400; color: #6e6e73; }
.cs-list { max-width: 720px; border-radius: 14px; background: #fff; overflow: hidden; }
.cs-list div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 18px; font-size: 1rem; line-height: 1.4; }
.cs-list div + div { margin-left: 18px; padding-left: 0; border-top: 1px solid rgba(60, 60, 67, 0.12); }
.cs-list dt { flex: none; color: var(--text-strong); }
.cs-list dd { color: #6e6e73; text-align: right; }
.cs-lede { margin-top: 28px; max-width: 40em; font-size: 1.15rem; line-height: 1.7; }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-meta dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); }
.cs-meta dd { margin-top: 6px; font-size: 0.95rem; line-height: 1.5; color: var(--text-strong); }
.cs-meta .cs-team { grid-column: 1 / -1; }

/* Results */
.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-stats { margin-top: 56px; }
.cs-stats li { padding: 24px 22px 22px; border-radius: 20px; background: var(--card); }
.cs-stat { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--text-strong); }
.cs-stat-label { display: block; margin-top: 8px; font-size: 0.88rem; }

/* Section labels and prose */
/* Section headings: Apple-style headlines in sentence case, not spaced-out capitals */
.cs-label { margin: 128px 0 28px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: var(--text-strong); }
.cs-text p { max-width: 40em; font-size: 1.05rem; }
.cs-text p + p { margin-top: 18px; }
.cs-quote {
  margin-top: 48px; max-width: 22em; padding-left: 24px; border-left: 2px solid #d2d2d7;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; color: var(--text-strong);
}
.cs-quote em { font-style: normal; color: #e30000; }

/* Principles */
.cs-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: pr; }
.cs-principles li { padding: 28px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cs-principles li::before { counter-increment: pr; content: "0" counter(pr); display: block; margin-bottom: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: #6e6e73; }
.cs-principles h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-strong); }
.cs-principles p { margin-top: 8px; font-size: 0.95rem; }

/* Dark evolution sheet */
.cs-dark {
  --text-strong: #f5f5f7; --muted: #a1a1a6; --line: rgba(255, 255, 255, 0.1);
  margin-top: 128px; padding: 8px 0 128px; color: var(--muted); background: #1e1e1e;
  border-radius: 40px;
}
.cs-dark .cs-label { margin-top: 88px; }
.cs-intro { max-width: 34em; font-size: 1.05rem; }
.cs-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 56px 0 24px; }
.cs-strip img { display: block; width: 100%; height: auto; }
.cs-strip figcaption { margin-top: 14px; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: #a1a1a6; }

.cs-version { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: center; margin-top: 120px; }
.cs-phone img { display: block; width: 100%; height: auto; }
.cs-step { color: #a1a1a6; }
.cs-copy h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-strong); }
.cs-copy ul { margin-top: 24px; display: grid; gap: 12px; }
.cs-copy li { position: relative; padding-left: 22px; font-size: 1rem; }
.cs-copy li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: #a1a1a6; }
.cs-note { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-size: 0.95rem; }
.cs-note span { display: block; margin-bottom: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-strong); }
.cs-final .cs-step { color: #a1a1a6; }

/* Placeholders for sections still to be written */
.cs-todo { max-width: 46em; margin-bottom: 28px; padding: 18px 20px; border: 1.5px dashed #d2d2d7; border-radius: 14px; background: var(--card); font-size: 0.95rem; line-height: 1.6; }
.cs-todo span { display: block; margin-bottom: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e73; }
.cs-tbd { color: var(--faint); }
.cs-markets-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cs-markets-grid li { padding: 20px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cs-markets-grid h3 { font-size: 0.98rem; font-weight: 600; color: var(--text-strong); }
.cs-markets-grid p { margin-top: 6px; font-size: 0.85rem; line-height: 1.5; }
.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cs-two h3 { margin-bottom: 14px; font-size: 1.1rem; font-weight: 600; color: var(--text-strong); }
.cs-two .cs-todo { margin-bottom: 0; }
.cs-concept .cs-step { color: #a1a1a6; }

/* Research details */
.cs-body { font-size: 1rem; line-height: 1.7; }
.cs-mini-stats { display: flex; gap: 12px; margin: 20px 0; }
.cs-groups { display: grid; gap: 10px; margin: 20px 0; }
.cs-groups li { position: relative; padding: 14px 16px 14px 34px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
.cs-groups li::before { content: ""; position: absolute; left: 16px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: #6e6e73; }
.cs-mini-stats li { flex: 1; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 0.85rem; }
.cs-mini-stats span { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--text-strong); }
.cs-two .cs-mini-stats + .cs-todo { margin-top: 0; }

.cs-sub { margin: 4px 0 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-strong); }
.cs-findings { display: grid; gap: 12px; counter-reset: f; }
.cs-findings li { position: relative; padding: 16px 18px 16px 52px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 0.95rem; line-height: 1.6; }
.cs-findings li::before { counter-increment: f; content: counter(f); position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: #fff; background: #1d1d1f; }
.cs-link { color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.cs-findings strong { color: var(--text-strong); font-weight: 600; }

/* Customer insights */
.cs-pattern { max-width: 46em; margin-bottom: 28px; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 1.05rem; line-height: 1.7; color: var(--text-strong); }
.cs-pattern span { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e73; }
.cs-scope { max-width: 46em; margin: -12px 0 24px; font-size: 1rem; color: var(--muted); }
.cs-insights { grid-template-columns: repeat(5, 1fr); }
.cs-insights p { font-size: 0.9rem; line-height: 1.55; }

/* Decision making and tech challenges inside a version */
.cs-sub-block { margin-top: 32px; }
.cs-sub-block .cs-sub + .cs-todo { margin-bottom: 24px; }
.cs-sub-text { max-width: 40em; margin-bottom: 14px; font-size: 0.98rem; line-height: 1.7; }
.cs-sub-text + .cs-sub { margin-top: 28px; }
.cs-rank { display: grid; gap: 10px; margin: 4px 0 8px; padding-left: 0; counter-reset: rk; }
.cs-rank li { position: relative; padding-left: 26px; font-size: 0.98rem; line-height: 1.6; }
.cs-rank li::before { counter-increment: rk; content: counter(rk) "."; position: absolute; left: 4px; top: 0; width: auto; height: auto; background: none; font-weight: 600; color: #a1a1a6; } /* plain numbers, so they don't read as the pins on the mock */
.cs-rank + .cs-sub, .cs-rank + .cs-note { margin-top: 28px; }
.cs-dark .cs-todo { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.cs-dark .cs-todo span { color: #a1a1a6; }

/* My role */
.cs-role { max-width: 46em; margin: 48px 0; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 1.02rem; line-height: 1.7; color: var(--text-strong); }
.cs-role span { display: block; margin-bottom: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e73; }

/* Mock annotations: numbered pins on the phone, matching numbered points */
.cs-phone { position: relative; }
.cs-pin {
  /* A dot on the spot, a hairline out to a number beside the phone */
  --pc: #a1a1a6;
  position: absolute; z-index: 2; height: 0; pointer-events: none;
  border-top: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
  transition: border-color 0.3s;
}
.cs-pin::before { /* the dot */
  content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pc);
}
.cs-pin::after { /* gentle pulse */
  content: ""; position: absolute; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  box-sizing: border-box; /* same 8px box as the dot, so the ring pulses from its centre */
  border: 1px solid var(--pc); animation: pin-pulse 2.6s ease-out infinite;
}
.cs-pin-r::before, .cs-pin-r::after { left: -4px; }
.cs-pin-l::before, .cs-pin-l::after { right: -4px; }
.cs-pin i { /* the number, outside the phone */
  position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal; font-size: 0.66rem; font-weight: 600; line-height: 1;
  color: var(--pc); background: #1e1e1e; border: 1px solid color-mix(in srgb, var(--pc) 70%, transparent);
  transition: background 0.3s, color 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cs-pin-r i { right: -10px; }
.cs-pin-l i { left: -10px; }
.cs-pin.on { border-top-color: var(--pc); }
.cs-pin.on i { background: var(--pc); color: #1e1e1e; transform: scale(1.15); }
@keyframes pin-pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(3.2); opacity: 0; } }
.cs-final .cs-pin { --pc: #a1a1a6; }
.cs-concept .cs-pin { --pc: #a1a1a6; }
.cs-copy .cs-annotated li[data-n] { padding-left: 34px; }
.cs-copy .cs-annotated li[data-n]::before {
  content: attr(data-n); top: 0.15em; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.66rem; font-weight: 600; line-height: 1; color: #fff;
  background: transparent; border: 1.5px solid #a1a1a6;
}
.cs-final .cs-annotated li[data-n]::before { border-color: #a1a1a6; }
.cs-concept .cs-annotated li[data-n]::before { border-color: #a1a1a6; }
.cs-copy .cs-annotated li:not([data-n]) { padding-left: 34px; }
.cs-copy .cs-annotated li:not([data-n])::before { left: 6px; }

/* Offers landscape */
.cs-families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.cs-family { padding: 28px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cs-family .cs-step { color: #6e6e73; }
.cs-family h3 { margin-top: 8px; font-size: 1.1rem; font-weight: 600; color: var(--text-strong); }
.cs-family ul { margin-top: 16px; display: grid; gap: 10px; }
.cs-family li { position: relative; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; }
.cs-family li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: #6e6e73; }
.cs-across { margin-top: 16px; padding: 20px 24px; border-radius: 20px; background: var(--card); font-size: 0.98rem; color: var(--text-strong); }
.cs-across span { display: block; margin-bottom: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e73; }

/* Before / after */
.cs-table { border-top: 1px solid var(--line); }
.cs-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.cs-row > :first-child { color: var(--text-strong); font-weight: 500; }
.cs-row > :last-child { color: var(--text-strong); }
.cs-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); }
.cs-head > :last-child { color: #6e6e73; }

/* Outcome */
.cs-markets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cs-markets li { padding: 6px 14px; border-radius: 999px; background: rgba(20, 18, 16, 0.05); font-size: 0.85rem; font-weight: 500; color: var(--text-strong); }
.cs-next { display: inline-flex; gap: 6px; margin: 64px 0 128px; font-size: 1.05rem; font-weight: 500; color: var(--link); }
.cs-next span { transition: transform 0.2s; }
.cs-next:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-next:hover span { transform: translateX(3px); }

/* Scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .cs-wrap, .cs-nav-inner { padding-left: 24px; padding-right: 24px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-markets-grid, .cs-insights { grid-template-columns: repeat(3, 1fr); }
  .cs-version { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; }
  .cs-dark { border-radius: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .cs-wrap, .cs-nav-inner { padding-left: 20px; padding-right: 20px; }
  .cs-hero-tile { --w: 280px; margin: 40px -20px 0; } /* full bleed, so the shadow is not clipped at the sides */
  .cs-stats { margin-top: 40px; }
  .cs-stats li { padding: 18px 16px 16px; border-radius: 18px; }
  .cs-stat { font-size: 1.9rem; }
  .cs-group-title { margin-top: 40px; }
  .cs-list div { padding: 13px 16px; }
  .cs-list div + div { margin-left: 16px; }
  .cs-list div { flex-direction: column; gap: 2px; } /* stack label over value, like iOS for long values */
  .cs-list dd { text-align: left; }
  .cs-hero { padding-top: 40px; padding-bottom: 0; }
  .cs-lede { font-size: 1.05rem; }
  .cs-meta { margin-top: 40px; }
  .cs-stats { gap: 12px; }
  .cs-stats li { padding: 20px 16px; border-radius: 16px; }
  .cs-stat { font-size: 1.45rem; }
  .cs-label { margin: 88px 0 24px; }
  .cs-principles { grid-template-columns: 1fr; gap: 12px; }
  .cs-markets-grid { grid-template-columns: 1fr 1fr; }
  .cs-insights { grid-template-columns: 1fr; }
  .cs-two { grid-template-columns: 1fr; gap: 28px; }
  .cs-families { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .cs-role { margin: 32px 0; }
  .cs-dark { margin-top: 88px; padding-bottom: 88px; border-radius: 28px; }
  .cs-dark .cs-label { margin-top: 56px; }
  /* The four-up strip becomes a swipeable row */
  .cs-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 36px -16px 8px; padding: 0 16px 8px; scrollbar-width: none; }
  .cs-strip::-webkit-scrollbar { display: none; }
  .cs-strip figure { flex: 0 0 44%; scroll-snap-align: start; }
  .cs-version { grid-template-columns: 1fr; gap: 28px; margin-top: 80px; }
  .cs-phone { width: 78%; margin: 0 auto; }
  .cs-row { grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 16px 0; font-size: 0.92rem; }
  .cs-row > :first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .cs-head > :first-child { display: none; }
  .cs-next { margin: 48px 0 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-pin::after { animation: none; opacity: 0; }
  .cs-next span { transition: none; }
}

/* Apple-style small labels everywhere on the page: sentence case, no wide tracking */
.cs-sub, .cs-meta dt, .cs-role span, .cs-pattern span, .cs-todo span, .cs-note span, .cs-across span, .cs-head, .cs-family .cs-step {
  text-transform: none !important; letter-spacing: -0.005em !important; font-size: 0.9rem !important; font-weight: 600 !important;
}
.cs-strip figcaption { letter-spacing: 0; font-size: 0.85rem; font-weight: 600; }

/* ---------- Apple pass: fewer boxes, bigger statements, bigger numbers ----------
   Later in the file on purpose, so it overrides the card styles above. */

/* Highlights: huge numbers in plain text, one row */
.cs-stats { margin-top: 72px; gap: 32px; }
.cs-stats li { padding: 0; border-radius: 0; background: none; }
.cs-stat { font-size: clamp(3rem, 6vw, 4.75rem); letter-spacing: -0.045em; line-height: 1; }
.cs-stat-label { margin-top: 10px; font-size: 1rem; color: #6e6e73; }

/* One-line ownership under the facts */
.cs-owner { max-width: 720px; margin: 20px 4px 0; font-size: 1rem; line-height: 1.6; color: #6e6e73; }

/* Each section leads with one large statement */
.cs-statement, .cs-text .cs-statement {
  max-width: 18em; margin-bottom: 40px;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; color: var(--text-strong);
}
.cs-label { margin-bottom: 16px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; color: #6e6e73; } /* the label becomes a quiet eyebrow */
.cs-h3 { margin: 64px 0 16px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-strong); }
.cs-intro { max-width: 40em; font-size: 1.1rem; line-height: 1.6; }
.cs-text p:not(.cs-statement) { font-size: 1.1rem; line-height: 1.65; }

/* Offer families and markets: plain columns separated by hairlines, no cards */
.cs-family, .cs-markets-grid li { padding: 20px 0 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); border-radius: 0; background: none; }
.cs-families { gap: 40px; }
.cs-family h3 { font-size: 1.3rem; }
.cs-across { padding: 0; margin-top: 32px; background: none; font-size: 1.05rem; }
.cs-markets-grid { gap: 28px; }
.cs-pattern { padding: 0; border: 0; background: none; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; max-width: 34em; }
.cs-scope { margin: 0 0 20px; }

/* Principles: three big lines */
.cs-principles { grid-template-columns: 1fr; gap: 0; }
.cs-principles li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 28px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.12); border-radius: 0; background: none; }
.cs-principles li::before { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.cs-principles h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cs-principles p { margin: 0; font-size: 1.05rem; }

/* Outcome: one big metric */
.cs-metric { margin-bottom: 48px; }
.cs-text p.cs-metric-num { font-size: clamp(5rem, 14vw, 10rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.055em; color: var(--text-strong); }
.cs-text p.cs-metric-label { max-width: 22em; margin-top: 16px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--text-strong); }
.cs-text p.cs-metric-sub { max-width: 32em; margin-top: 20px; color: #6e6e73; }
.cs-metric-sub strong { color: var(--text-strong); }

.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cs-count { display: inline-flex; }
.cs-count.ready .cs-n { font-variant-numeric: tabular-nums; }
.cs-count.ready .cs-cur, .cs-count.ready .cs-unit { opacity: 0; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* The $ starts with no width, so the count sits flush left; it then opens up and nudges the digits right */
.cs-count.ready .cs-cur { width: 0; overflow: hidden; transition: width 1.2s cubic-bezier(0.45, 0, 0.15, 1), opacity 1s ease 0.2s; }
.cs-count.ready .cs-unit { transform: translateX(-0.15em); transition: opacity 0.9s ease 0.7s, transform 1.1s cubic-bezier(0.45, 0, 0.15, 1) 0.7s; }
.cs-count.done .cs-cur { width: var(--cur-w, 0.6em); opacity: 1; }
.cs-count.done .cs-unit { opacity: 1; transform: none; }

/* Research: plain text, big figures, numbered findings without cards */
.cs-mini-stats { gap: 28px; }
.cs-mini-stats li { flex: none; padding: 0; border: 0; background: none; font-size: 0.95rem; color: #6e6e73; }
.cs-mini-stats span { font-size: 2.6rem; letter-spacing: -0.04em; }
.cs-findings { gap: 0; }
.cs-findings li { padding: 16px 0 16px 40px; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0; background: none; font-size: 1rem; }
.cs-findings li::before { left: 0; top: 18px; }
.cs-groups { gap: 0; }
.cs-groups li { padding: 14px 0 14px 20px; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0; background: none; font-size: 1rem; }
.cs-groups li::before { left: 2px; top: 23px; width: 6px; height: 6px; }
.cs-two h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* Versions: bigger phone, bigger headline, detail tucked behind Read more */
.cs-version { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 88px; margin-top: 160px; }
.cs-copy h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cs-copy ul { margin-top: 28px; gap: 14px; }
.cs-copy li { font-size: 1.05rem; }
.cs-note { background: none; padding: 0; margin-top: 24px; font-size: 1rem; }
.cs-more { margin-top: 24px; }
.cs-more summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 500; color: var(--text-strong); }
.cs-more summary::-webkit-details-marker { display: none; }
.cs-more summary::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.cs-more[open] summary::after { content: "−"; }
.cs-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.cs-more[open] summary { margin-bottom: 4px; }
.cs-more .cs-sub-block { margin-top: 20px; }

/* Before / after you can drag */
.cs-compare { --w: clamp(260px, 30vw, 360px); width: var(--w); margin: 8px auto 72px; }
.cs-compare-stage { position: relative; aspect-ratio: 866 / 1648; }
.cs-compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cs-compare-line { position: absolute; top: 2%; bottom: 2%; left: var(--pos); width: 2px; margin-left: -1px; background: #1d1d1f; box-shadow: 0 0 0 1.5px #fff; pointer-events: none; }
.cs-compare-line i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: #fff; font-style: normal; font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0, 0, 0, 0.25); }
.cs-compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cs-compare input:focus-visible + * , .cs-compare:focus-within .cs-compare-line i { outline: 2px solid #1d1d1f; outline-offset: 2px; }
.cs-compare-tags { display: flex; justify-content: space-between; margin-top: 16px; font-size: 0.95rem; font-weight: 600; color: #6e6e73; }

/* Up next: a large card leading to the next case study */
.cs-upnext { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-top: 128px; padding: 48px; border-radius: 32px; background: #fff; overflow: hidden; color: inherit; }
.cs-upnext h2 { margin-top: 8px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-strong); }
.cs-upnext p:not(.cs-kicker) { margin-top: 14px; font-size: 1.1rem; color: #6e6e73; }
.cs-upnext-link { display: inline-flex; gap: 6px; margin-top: 24px; font-size: 1.05rem; font-weight: 500; color: var(--link); }
.cs-upnext:hover .cs-upnext-link { text-decoration: underline; text-underline-offset: 3px; }
.cs-upnext img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.cs-upnext + .cs-next { margin-top: 32px; }

@media (max-width: 1024px) {
  .cs-stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .cs-version { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; }
  .cs-markets-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cs-stats { margin-top: 56px; gap: 36px 20px; }
  .cs-stat { font-size: 3rem; }
  .cs-statement { font-size: 2rem; margin-bottom: 28px; }
  .cs-label { margin-top: 96px; }
  .cs-families, .cs-markets-grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-principles li { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .cs-principles li p { grid-column: 2; }
  .cs-principles h3 { font-size: 1.6rem; }
  .cs-version { grid-template-columns: 1fr; gap: 32px; margin-top: 104px; }
  .cs-phone { width: 82%; }
  .cs-copy h3 { font-size: 1.9rem; }
  .cs-compare { --w: 78vw; margin-bottom: 56px; }
  .cs-upnext { grid-template-columns: 1fr; gap: 28px; padding: 28px; border-radius: 24px; margin-top: 96px; }
  .cs-upnext img { order: -1; }
}

/* More work: its own white band after the case study ends */
.cs-morework { position: relative; z-index: 2; margin-top: 128px; padding: 80px 0 96px; background: #fff; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.cs-end { font-size: 0.95rem; color: #86868b; }
.cs-more-title { margin-top: 8px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em; color: var(--text-strong); }
.cs-morework .cs-upnext { margin-top: 40px; background: #f5f5f7; }
.cs-morework .cs-next { margin: 32px 0 0; }
@media (max-width: 640px) {
  .cs-morework { margin-top: 96px; padding: 56px 0 72px; }
  .cs-morework .cs-upnext { margin-top: 28px; }
}

/* One design, every market: localised versions of the launched page */
.cs-loc { margin-top: 160px; }
.cs-loc .cs-strip { margin-top: 40px; }
@media (max-width: 640px) { .cs-loc { margin-top: 104px; } }

/* ---------- In-context checkout case study ---------- */

/* Hero: the Buy Now video on a black tile, fading in at the top like the home page cards */
.co-hero-tile {
  display: flex; justify-content: center; margin-top: 56px; padding: 32px 0 72px; /* room below the phone */
  overflow: hidden; background: #000;
}
.co-hero-tile video {
  display: block; width: clamp(300px, 30vw, 460px); height: auto; flex: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 64px); mask-image: linear-gradient(to bottom, transparent, #000 64px);
}

.co-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; counter-reset: jr; }
.co-journey li { position: relative; padding: 24px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.co-journey li::before { counter-increment: jr; content: "0" counter(jr); display: block; margin-bottom: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: #86868b; }
.co-journey h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-strong); }
.co-journey p { margin-top: 8px; font-size: 0.92rem; line-height: 1.55; }

/* Usability finding: a dark research panel with the customer's own words */
.co-research { margin-top: 24px; padding: 48px 48px 40px; border-radius: 28px; background: #141416; color: #a1a1a6; }
.cr-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #f5f5f7; }
.cr-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff8f6b; box-shadow: 0 0 10px #ff8f6b; }
.cs-text .co-research .cr-quote, .cr-quote { margin: 28px 0 0; max-width: 18em; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; color: #f5f5f7; }
.cs-text .co-research .cr-note, .cr-note { margin-top: 18px; max-width: 34em; font-size: 1rem; line-height: 1.6; color: #a1a1a6; }
.cs-text .co-research .cr-sub, .cr-sub { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #4fd18b; }
.cr-fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.cr-fix { margin: 0; }
.cr-shot { padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 3px rgba(47, 179, 107, 0.6), 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.cr-shot { display: grid; place-items: center; min-height: 128px; }
/* Crisp, live-text versions of the two UI changes */
.cr-ui { font-family: "Amazon Ember", Inter, system-ui, sans-serif; color: #0f1111; }
.cr-ui-load { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 500; }
.cr-ui-icon { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(#d6c58a 0 30%, #2b2b2b 30% 48%, #e9dfb4 48%); }
.cr-ui-pay { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 360px; text-align: left; }
.cs-text .cr-ui p { max-width: none; }
.cr-ui-title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.cr-ui-title mark { padding: 1px 6px; margin-left: -6px; border-radius: 6px; background: rgba(47, 179, 107, 0.18); color: inherit; box-shadow: inset 0 0 0 1.5px rgba(47, 179, 107, 0.6); }
.cr-ui-meta { margin: 4px 0 0; font-size: 0.85rem; color: #565959; }
.cr-ui-card { flex: none; width: 42px; height: 28px; border-radius: 5px; background: linear-gradient(135deg, #2b2b2b, #111); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.cr-fix figcaption { margin-top: 16px; font-size: 0.95rem; line-height: 1.5; color: #f5f5f7; }
.cr-fix b { margin-right: 8px; font-size: 0.75rem; letter-spacing: 0.1em; color: #4fd18b; }

/* Today vs in-context: drawn as tiny phone screens */
.co-compare { --co-new: #2fb36b; display: grid; gap: 14px; max-width: none; margin-top: 48px; }
.co-row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 28px 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.co-row-new { background: linear-gradient(135deg, rgba(47, 179, 107, 0.1), rgba(47, 179, 107, 0.02)), var(--card); border-color: rgba(47, 179, 107, 0.3); }
.cs-text .co-row p { max-width: none; }
.cs-text .co-row .co-path-label, .co-path-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: #6e6e73; }
.co-row-new .co-path-label { color: var(--co-new); }
.cs-text .co-row .co-count, .co-count { margin-top: 6px; font-size: 1rem; color: var(--text-strong); }
.co-count strong { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; margin-right: 4px; }
.co-row-new .co-count strong { color: var(--co-new); }
.co-screens { display: flex; align-items: center; gap: 18px; }
.co-chev { flex: none; width: 9px; height: 9px; margin-bottom: 26px; border-top: 1.5px solid #aeaeb2; border-right: 1.5px solid #aeaeb2; transform: rotate(45deg); }
.mp { margin: 0; display: grid; justify-items: center; gap: 10px; }
.mp figcaption { font-size: 0.8rem; font-weight: 500; color: #6e6e73; text-align: center; }
.mp-new figcaption { color: var(--co-new); font-weight: 600; }
.mp-phone { width: 96px; aspect-ratio: 9 / 19; padding: 4px; border-radius: 18px; background: #1d1d1f; box-shadow: 0 12px 24px -12px rgba(20, 18, 16, 0.35); }
.mp-new .mp-phone { box-shadow: 0 0 0 4px rgba(47, 179, 107, 0.18), 0 14px 28px -12px rgba(20, 18, 16, 0.4); }
.mp-screen { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #fff; padding: 14px 8px 8px; display: flex; flex-direction: column; gap: 5px; }
.mp-screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #f3c58f; } /* app header */
.mp-screen i { display: block; border-radius: 3px; background: #e5e5ea; }
.mp-img { height: 46px; background: #f0f0f3 !important; border-radius: 6px !important; }
.mp-line { height: 4px; }
.mp-line.w60 { width: 60%; } .mp-line.w70 { width: 70%; } .mp-line.w80 { width: 80%; }
.mp-price { width: 45%; height: 7px; background: #1d1d1f !important; }
.mp-title { width: 55%; height: 6px; background: #3a3a3c !important; margin-bottom: 2px; }
.mp-row { height: 12px; border: 1px solid #e5e5ea; background: #fafafa !important; }
.mp-block { height: 22px; background: #f2f2f4 !important; }
.mp-btn { margin-top: auto; height: 10px; border-radius: 6px !important; background: #f7ca00 !important; }
.mp-pay { background: #ffa41c !important; }
.mp-dim .mp-img, .mp-dim .mp-line, .mp-dim .mp-price { opacity: 0.35; }
.mp-dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); }
.mp-sheet { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 58%; padding: 10px 8px 8px; border-radius: 10px 10px 0 0; background: #fff; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.15); }
.co-issues { max-width: 46em; margin-top: 24px; }

/* The idea: CTAs, optional basket building, then the sheet */
.co-model { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; margin-top: 48px; }
.co-node { display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.co-optional { border-style: dashed; border-color: #b0b0b5; background: transparent; }
.co-node h3 { margin-top: 8px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-strong); }
.co-node > p:last-child { margin-top: 16px; font-size: 0.92rem; line-height: 1.55; }
.co-arrow { align-self: center; width: 22px; height: 1px; background: #86868b; position: relative; }
.co-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 1px solid #86868b; border-right: 1px solid #86868b; transform: rotate(45deg); }
.co-ctas { display: grid; gap: 8px; margin-top: 18px; }
.co-btn { padding: 9px 12px; border-radius: 999px; text-align: center; font-size: 0.82rem; color: #0f1111; }
.co-orange { background: #ffa41c; }
.co-yellow { background: #ffd814; }
.co-blue { background: #0b5fff; color: #fff; }
.co-mini { display: grid; gap: 8px; margin-top: 18px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.82rem; color: var(--text-strong); }
.co-mini strong { font-size: 0.95rem; }
.co-mini em { font-style: normal; font-weight: 600; padding: 1px 4px; border-radius: 3px; background: #7fda69; }
.co-mini i { display: block; height: 7px; border-radius: 4px; border: 1px solid #0a7a5a; overflow: hidden; }
.co-mini b { display: block; width: 50%; height: 100%; background: #0a7a5a; }
.co-sheet { display: grid; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 0.82rem; color: var(--text-strong); }
.co-sheet strong { padding-bottom: 6px; font-size: 0.95rem; }
.co-sheet span { padding: 7px 0; border-top: 1px solid var(--line); }
.co-sheet small { display: block; width: max-content; margin-bottom: 3px; padding: 1px 6px; border-radius: 999px; background: #ffb57a; font-size: 0.66rem; }
.co-sheet .co-saved { padding: 6px 8px; border: 0; border-radius: 6px; background: #e8f8f2; color: #067d62; font-weight: 600; }
.co-sheet .co-pay { margin-top: 8px; padding: 8px; border: 0; border-radius: 999px; background: #ffd814; text-align: center; }

/* Launched sheet: the phone fades in from the top, stopping well above the sheet */
.co-still img { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 17%); mask-image: linear-gradient(to bottom, transparent, #000 17%); }

/* Flows: each one an auto-animated phone with its steps alongside */
.co-flow { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 88px; }
.co-flow-media { margin: 0 -24px; } /* the video carries the phone's shadow in its margins */
.co-flow-media video {
  display: block; width: 100%; height: auto;
  /* feather the edges so the video's grey melts into the page, whatever the browser's colour handling */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 90%, transparent);
  mask-composite: intersect;
}
.co-flow h3 { margin-top: 8px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-strong); }
.co-flow figcaption > p:not(.cs-step) { margin-top: 16px; max-width: 30em; font-size: 1.02rem; line-height: 1.65; }
.co-flow-steps { display: grid; gap: 14px; margin-top: 24px; max-width: 30em; counter-reset: st; }
.co-flow-steps li { position: relative; padding-left: 36px; font-size: 1rem; line-height: 1.55; }
.co-flow-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: #fff; background: #1d1d1f; }
.co-flow-steps strong { color: var(--text-strong); font-weight: 600; }
.co-upnext-phone { object-position: top; }

@media (max-width: 1024px) {
  .co-journey { grid-template-columns: repeat(2, 1fr); }
  .co-model { grid-template-columns: 1fr; }
  .co-arrow { justify-self: center; width: 1px; height: 22px; }
  .co-arrow::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
}
@media (max-width: 640px) {
  .co-journey { grid-template-columns: 1fr; }
  .co-research { padding: 32px 22px 28px; border-radius: 22px; }
  .cr-fixes { grid-template-columns: 1fr; gap: 28px; }
  .co-row { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .co-screens { gap: 10px; }
  .mp-phone { width: 78px; }
  .mp figcaption { font-size: 0.72rem; white-space: nowrap; }
  .mp-img { height: 36px; }
  .co-chev { margin-bottom: 30px; }
  .co-hero-tile { margin-top: 40px; padding-bottom: 48px; }
  .co-hero-tile video { width: 300px; }
  /* Phones: each flow reads title → video → steps, and flows are separated
     by a divider so text never looks like it belongs to the next video */
  .co-flow { display: flex; flex-direction: column; gap: 0; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); text-align: left; }
  .co-flow .cs-step, .co-flow h3 { align-self: stretch; text-align: left; }
  .co-flow figcaption { display: contents; }
  .co-flow .cs-step { order: 1; }
  .co-flow h3 { order: 2; }
  .co-flow-media { order: 3; width: 88%; margin: 24px auto 8px; }
  .co-flow figcaption > p:not(.cs-step) { order: 4; }
  .co-flow-steps { order: 5; }
}

/* Cart offers case study */
.cs-strip-2 { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; margin-top: 88px; }
.cs-strip-note { margin: 16px auto 0; text-align: center; }
.cs-version.cs-light { margin-top: 40px; }
.cs-light .cs-step { color: #6e6e73; }
.cs-light .cs-copy li::before { background: #86868b; }
@media (max-width: 640px) { .cs-strip-2 { margin-top: 64px; } .cs-strip-note { text-align: left; } }

/* Results table with just a metric and its change */
.cs-table[data-cols="2"] .cs-row { grid-template-columns: 1fr auto; }
.cs-table[data-cols="2"] .cs-row > :last-child { font-weight: 600; text-align: right; }
.cs-table[data-cols="2"] .cs-head > :first-child { display: block; }
@media (max-width: 640px) {
  .cs-table[data-cols="2"] .cs-row > :first-child { grid-column: auto; margin: 0; }
  .cs-stats-pct .cs-stat { font-size: 2.3rem; white-space: nowrap; }
}

/* Password gate on case studies */
.pw-gate { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px 80px; position: relative; }
.pw-back { position: absolute; top: 18px; left: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 600; color: var(--text-strong); }
.pw-back span { font-size: 1.5rem; font-weight: 400; line-height: 1; margin-top: -3px; }
.pw-card { width: 100%; max-width: 420px; }
.pw-kicker { font-size: 1rem; font-weight: 600; color: #6e6e73; }
.pw-title { margin-top: 8px; font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--text-strong); }
.pw-note { margin-top: 14px; font-size: 1.05rem; color: #6e6e73; }
.pw-row { display: flex; gap: 10px; margin-top: 28px; }
.pw-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--text-strong); }
.pw-row input:focus { outline: 2px solid #1d1d1f; outline-offset: 1px; border-color: transparent; }
.pw-row button { height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: #1d1d1f; color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.pw-row button:hover { background: #3a3a3c; }
.pw-error { margin-top: 12px; font-size: 0.95rem; color: #c4161c; }
.pw-ask { margin-top: 28px; font-size: 0.95rem; color: #86868b; }
.pw-ask a { color: var(--text-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
