:root {
  --color-bg: #F7F5EF;
  --color-bg-2: #EFECE4;
  --color-card: #FFFEFA;
  --color-ink: #221F1F;
  --color-muted: #5C5854;
  --color-faint: #8A8680;
  --color-line: #D8D3C8;
  --color-accent: #1D2ED9;
  --color-error: #B4530A;
  --font-display: "Figtree", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --cs-bg: var(--color-bg);
  --cs-surface: var(--color-bg-2);
  --cs-border: var(--color-line);
  --cs-text: var(--color-ink);
  --cs-muted: var(--color-muted);
  --cs-subtle: var(--color-faint);
  --cs-accent: var(--color-accent);
  --cs-max: 1120px;
  --cs-content: 680px;
  --cs-sidebar: 200px;
  --cs-gap: 64px;
  --cs-radius: 16px;
  --cs-font: "Figtree", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body.case-study-body {
  margin: 0;
  font-family: var(--cs-font);
  background: var(--cs-bg);
  color: var(--cs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Password gate */
.cs-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cs-bg);
  padding: 24px;
}

.cs-gate.hidden { display: none; }

.cs-gate-back {
  position: absolute;
  top: 0.85rem;
  left: 24px;
  z-index: 1;
}

.cs-gate-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.cs-gate-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.cs-gate-footer {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--cs-muted);
}

.cs-gate-footer a {
  color: var(--cs-text);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cs-gate-footer a:hover {
  opacity: 0.7;
}

.cs-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-gate-password {
  position: relative;
  width: 100%;
}

.cs-gate-form input,
.cs-gate-password input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
  background: #fff;
  color: var(--cs-text);
}

.cs-gate-password input {
  padding-right: 2.75rem;
}

.cs-gate-form input:focus,
.cs-gate-password input:focus {
  border-color: var(--cs-text);
}

.cs-gate-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--cs-muted);
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  line-height: 0;
}

.cs-gate-toggle:hover {
  color: var(--cs-text);
  background: transparent;
}

.cs-gate-toggle:focus-visible {
  outline: 2px solid var(--cs-text);
  outline-offset: 1px;
}

.cs-gate-toggle__icon {
  display: block;
  pointer-events: none;
}

.cs-gate-form button[type="submit"] {
  padding: 0.85rem 1rem;
  background: var(--cs-text);
  color: var(--color-card);
  border: none;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cs-gate-form button[type="submit"]:hover { opacity: 0.88; }

.cs-gate-error {
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.25rem;
  margin-top: 0.5rem;
}

/* Top bar */
.cs-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 226, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cs-border);
}

.cs-topbar-inner {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0.85rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cs-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cs-back:hover { color: var(--cs-text); }

.cs-topbar-label {
  font-size: 0.8rem;
  color: var(--cs-subtle);
  font-weight: 500;
}

/* Layout */
.cs-shell {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 24px 120px;
  display: grid;
  grid-template-columns: var(--cs-sidebar) 1fr;
  gap: var(--cs-gap);
  align-items: start;
}

.cs-sidebar {
  position: sticky;
  top: 72px;
  padding-top: 48px;
}

.cs-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cs-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: 8px;
  color: var(--cs-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.cs-nav a:hover {
  color: var(--cs-text);
  background: var(--cs-surface);
}

.cs-nav a.active {
  color: var(--cs-text);
  background: var(--cs-surface);
}

.cs-main { min-width: 0; }

/* Typography */
.cs-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-subtle);
  margin: 0 0 1rem;
}

.cs-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--cs-border);
  scroll-margin-top: 80px;
}

.cs-section:last-child { border-bottom: none; }

.cs-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}

.cs-section p,
.cs-section li {
  font-size: 1.0625rem;
  color: var(--cs-muted);
  line-height: 1.7;
}

.cs-section p { margin: 0 0 1rem; }

.cs-section strong {
  color: var(--cs-text);
  font-weight: 600;
}

.cs-subheading {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cs-text);
  margin: 1.5rem 0 1rem;
}

.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.5rem;
}

.cs-miniheading {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cs-text);
  margin: 1.25rem 0 0.5rem;
}

.cs-nested-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem; /* 24px minimum from divider to heading below */
  border-top: 1px solid var(--cs-border);
}

.cs-nested-section > .cs-nested-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cs-text);
  margin: 0 0 1.25rem;
}

.cs-figure {
  margin: 1.5rem 0 0;
}

.cs-figure img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-border);
  display: block;
}

.cs-figure--wide img {
  max-width: 100%;
}

.cs-figure--diagram img {
  border: none;
  background: transparent;
  width: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

.cs-figure--quotes {
  max-width: 26rem;
}

.cs-figure--quotes img {
  width: 100%;
  max-width: 100%;
}

.cs-journey {
  margin: 1.75rem 0 0.25rem;
}

.cs-journey__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.4rem;
}

.cs-journey__steps li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.55rem 0.85rem;
  background: var(--color-sky, #E4F1F8);
  border: 1.5px solid var(--color-ink, #221F1F);
  border-radius: 10px;
  color: var(--color-ink, #221F1F) !important;
  font-size: 0.875rem !important;
  font-weight: 700;
  line-height: 1.2 !important;
}

.cs-journey__steps li.cs-journey__end {
  background: #f0b49a;
}

.cs-journey__steps li.cs-journey__end--ink {
  background: var(--color-ink, #221F1F);
  color: #fffefa !important;
  border-color: var(--color-ink, #221F1F);
}

.cs-journey__arrow {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 500 !important;
  color: var(--color-ink, #221F1F) !important;
}

.cs-journey__note {
  margin: 0.9rem 0 0 !important;
  max-width: 42rem;
  color: #b4530a !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
  font-style: italic;
  line-height: 1.45 !important;
}

.cs-quotes {
  margin: 1.75rem 0 0.25rem;
  max-width: 26rem;
}

.cs-quotes__label,
.cs-quotes__funnel-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-subtle, #8A8680);
}

.cs-quotes blockquote {
  margin: 0 0 0.65rem;
  padding: 1rem 1.1rem 1rem 1.15rem;
  background: #f0b49a;
  border-radius: 14px;
}

.cs-quotes blockquote p {
  margin: 0 !important;
  color: var(--color-ink, #221F1F) !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.35 !important;
}

.cs-quotes__funnel {
  padding: 1rem 1.1rem 1.1rem;
  background: var(--color-bg-2, #EFECE4);
  border-radius: 14px;
}

.cs-quotes__funnel-label {
  color: #b4530a;
  margin-bottom: 0.55rem;
}

.cs-quotes__funnel-path {
  margin: 0 0 0.55rem !important;
  color: var(--color-ink, #221F1F) !important;
  font-size: 0.9375rem !important;
  font-weight: 700;
  line-height: 1.45 !important;
}

.cs-quotes__funnel p:last-child {
  margin: 0 !important;
  color: var(--color-ink, #221F1F) !important;
  font-size: 0.9375rem !important;
}

.cs-card-system {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin: 1.75rem 0 1.25rem;
}

.cs-card-system__col {
  margin: 0;
}

.cs-card-system__step {
  margin: 0 0 0.65rem !important;
  color: var(--color-ink, #221F1F) !important;
  font-size: 0.9375rem !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cs-card-system__step span {
  color: #c45c3a;
  margin-right: 0.3rem;
}

.cs-card-system img {
  display: block;
  width: 100%;
  max-width: 686px;
  height: auto;
  background: #fffefa;
  border-radius: 12px;
}

.cs-card-system__note {
  margin: 0.7rem 0 0 !important;
  color: var(--cs-muted, #5C5854) !important;
  font-size: 0.8125rem !important;
  line-height: 1.45 !important;
}

@media (max-width: 700px) {
  .cs-card-system {
    grid-template-columns: 1fr;
  }
}

.cs-figure--pair img {
  max-width: min(100%, 560px);
}

/* Expandable flow diagrams */
.cs-figure--flow {
  margin: 1.5rem 0 0;
  width: 100%;
}

.cs-figure--flow .cs-flow-expand img {
  width: 100%;
  max-width: 1024px;
  height: auto;
}

.cs-flow-expand {
  display: block;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: var(--color-card);
  cursor: zoom-in;
  text-align: left;
  overflow: hidden;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-flow-expand:hover {
  border-color: #d4d4d8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cs-flow-expand img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
}

.cs-flow-expand__hint {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cs-subtle);
  text-align: center;
  border-top: 1px solid var(--cs-border);
  background: var(--color-card);
}

.cs-flow-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  background: rgba(0, 0, 0, 0.92);
}

.cs-flow-lightbox[hidden] {
  display: none;
}

.cs-flow-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-card);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.cs-flow-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cs-flow-lightbox__inner {
  width: fit-content;
  max-width: min(1080px, calc(100vw - 64px));
  max-height: calc(100vh - 88px);
  overflow: hidden;
  border-radius: var(--cs-radius);
  background: #edf1f6;
}

.cs-flow-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1080px, calc(100vw - 64px));
  max-height: calc(100vh - 88px);
  object-fit: contain;
}

.cs-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--cs-subtle);
  font-weight: 500;
}

.cs-prototype {
  margin-top: 2.5rem;
}

.cs-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-text, #221F1F);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  border-bottom: none;
  padding-bottom: 0;
  transition: opacity 0.15s ease;
}

.cs-external-link:hover {
  opacity: 0.72;
  border-bottom-color: transparent;
}

.cs-prototype__embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: var(--cs-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: var(--color-card);
}

.cs-prototype__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs-prototype-block {
  margin: 1.75rem 0 2.25rem;
}

.cs-prototype-block__label {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-subtle, #86868b);
  margin: 0 0 0.75rem;
}

.cs-prototype-block__actions {
  margin-top: 0.85rem;
}

.cs-prototype-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin: 1.75rem 0 2.25rem;
}

.cs-prototype-pair .cs-prototype-block {
  margin: 0;
}

.cs-prototype-pair .cs-prototype__embed {
  max-width: 100%;
}

.cs-prototype-pair .cs-prototype__embed--mobile {
  min-height: 560px;
  height: min(78vh, 840px);
}

@media (max-width: 900px) {
  .cs-prototype-pair {
    grid-template-columns: 1fr;
  }
}

.cs-prototype__embed--tall {
  max-width: 100%;
  width: 100%;
  aspect-ratio: auto;
  height: clamp(520px, 72vh, 820px);
  min-height: 520px;
}

/* Mobile Figma protos: tall enough to show the full device, scale-down so nothing is cropped */
.cs-prototype__embed--mobile {
  max-width: 100%;
  width: 100%;
  aspect-ratio: auto;
  height: min(92vh, 980px);
  min-height: 680px;
  background: #f4f4f6;
}

@media (max-width: 700px) {
  .cs-prototype__embed--mobile {
    height: min(88svh, 860px);
    min-height: 620px;
    border-radius: 12px;
  }
}

.results-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.results-table th,
.results-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--cs-border);
}

.results-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-subtle);
  background: var(--cs-surface);
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table td {
  color: var(--cs-muted);
}

.results-table td strong {
  color: var(--cs-text);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 1.5rem;
}

.before-after-column ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.before-after__compare .before-after__layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: var(--cs-surface);
}

.cs-section ul,
.cs-section ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.cs-lead {
  font-size: 1.25rem !important;
  color: var(--cs-text) !important;
  line-height: 1.6 !important;
}

/* Hero */
.cs-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--cs-border);
}

.cs-hero:has(.cs-meta-grid) {
  border-bottom: none;
}

.cs-hero:has(.cs-meta-grid) .cs-meta-grid {
  margin-bottom: 0;
}

.cs-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 820px;
}

.cs-hero-summary {
  font-size: 1.125rem;
  color: var(--cs-muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 0 2rem;
}

.cs-hero-summary a {
  color: var(--cs-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-hero-summary a:hover {
  color: var(--cs-text);
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cs-border);
}

.cs-meta-item label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-subtle);
  margin-bottom: 0.35rem;
}

.cs-meta-item span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cs-text);
}

.cs-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-metrics-row--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cs-metrics-row--results {
  grid-template-columns: repeat(2, 1fr);
}

#results .metric-card {
  opacity: 1;
  transform: none;
}

.cs-section--impact {
  padding-top: 120px;
}

.cs-section--impact h2 {
  margin-top: 3.5rem;
}

.cs-impact-hero,
.cs-results-hero {
  margin: 0 0 2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: #f5f5f7;
  border-radius: var(--cs-radius);
  overflow: hidden;
}

.cs-results-hero--flush {
  margin: 0 0 2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.cs-results-hero--flush img {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}

.cs-impact-hero img,
.cs-results-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: none;
  border-radius: 0;
  object-fit: contain;
}

.cs-hero .cs-impact-hero {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.cs-impact-hero--banner img {
  max-width: 920px;
}

.cs-results-interpretation {
  margin: 1.5rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cs-text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cs-results-close {
  margin-top: 2.75rem;
}

.cs-results-close p {
  margin: 0 0 1rem;
}

.cs-results-close p:last-child {
  margin-bottom: 0;
}

.results-table-wrap--prominent {
  margin-top: 0.5rem;
}

.results-table-wrap--prominent .results-table {
  font-size: 1rem;
}

.results-table-wrap--prominent .results-table td strong {
  font-size: 1.0625rem;
}

/* MetricCard */
.metric-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.metric-card:hover {
  border-color: #d4d4d8;
  transform: translateY(-2px);
}

.metric-card__value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cs-text);
  line-height: 1.1;
  margin: 0 0 0.35rem;
}

.metric-card__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cs-muted);
  margin: 0 0 0.25rem;
}

.metric-card__context {
  font-size: 0.8125rem;
  color: var(--cs-subtle);
  margin: 0;
}

/* QuoteBlock */
.quote-block {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--cs-text);
  background: var(--cs-surface);
  border-radius: 0 var(--cs-radius) var(--cs-radius) 0;
}

.quote-block__text {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--cs-text);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  font-style: italic;
}

.quote-block__attribution {
  font-size: 0.875rem;
  color: var(--cs-subtle);
  margin: 0;
}

/* ProcessStep */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.process-step:hover {
  border-color: #d4d4d8;
  background: var(--cs-surface);
}

.process-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cs-text);
  color: var(--color-card);
  font-size: 0.75rem;
  font-weight: 600;
}

.process-step__content h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-text);
}

.process-step__content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cs-muted);
}

/* Image placeholder */
.image-slot {
  position: relative;
  width: 100%;
  border-radius: var(--cs-radius);
  border: 1px dashed #c8c8cc;
  background: linear-gradient(135deg, #f8f8fa 0%, #f0f0f3 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-slot__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--cs-border);
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-subtle);
  pointer-events: none;
}

.image-slot--tall { min-height: 420px; }
.image-slot--wide { min-height: 360px; }

/* ImageGallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 1.5rem 0;
}

.image-gallery--three {
  grid-template-columns: repeat(3, 1fr);
}

.image-gallery--four {
  grid-template-columns: repeat(4, 1fr);
}

.cs-figure--gallery {
  margin: 0;
}

.cs-figure--gallery img {
  max-width: 100%;
  width: 100%;
}

.cs-figure--narrow {
  max-width: 320px;
  margin: 1.5rem auto;
}

.cs-gallery-note {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cs-subtle);
}

/* Phone compare */
.phone-compare {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
}

.phone-compare--plain {
  margin: 1.75rem 0 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
}

.cs-before-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.phone-compare__header {
  margin-bottom: 1.5rem;
}

.phone-compare__title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.phone-compare__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cs-subtle);
}

.phone-compare__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.phone-compare__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phone-gallery {
  margin-top: 2rem;
}

.phone-compare__item {
  margin: 0;
  text-align: center;
}

.phone-compare__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted);
}

.phone-shell {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  background: linear-gradient(180deg, #2c2c2e 0%, #1c1c1e 100%);
  border-radius: 46px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.18);
}

.phone-shell--before .phone-shell__screen {
  width: 255px;
}

.phone-shell--after .phone-shell__screen {
  width: 265px;
}

.phone-shell__screen {
  height: 520px;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 34px;
  background: var(--color-card);
  line-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.phone-shell__screen:focus {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
}

.phone-shell__screen::-webkit-scrollbar {
  width: 6px;
}

.phone-shell__screen::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.phone-shell__screen img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0;
  image-rendering: auto;
}

.phone-shell__screen--fit {
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.phone-shell__screen--fit img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: unset;
  object-position: top center;
}

/* Phone frame height follows screenshot content (no fixed viewport crop) */
.phone-shell__screen--content {
  height: auto;
  overflow: hidden;
}

.phone-shell__screen--content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Before baseline: match frames 2–4 to the list screen height */
.phone-compare--before-baseline .phone-compare__item:not(:first-child) .phone-shell__screen--content {
  max-height: calc(265px * 1502 / 750);
  overflow: hidden;
}

/* iPad shell (landscape) */
.ipad-shell {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  background: #292524;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.14);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ipad-shell::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 2;
  width: 3px;
  height: 32px;
  border-radius: 999px;
  background: #44403c;
  transform: translateY(-50%);
  pointer-events: none;
}

.ipad-shell--after {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(120, 113, 108, 0.22),
    0 24px 48px rgba(0, 0, 0, 0.14);
}

.ipad-shell__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #edf1f6;
  line-height: 0;
}

.ipad-shell__screen img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border: none;
  border-radius: 0;
}

.ipad-shell--hero {
  width: min(920px, 100%);
}

.cs-ipad-expand {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.cs-ipad-expand:hover .ipad-shell {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 28px 56px rgba(0, 0, 0, 0.18);
}

.cs-ipad-expand__hint {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cs-subtle);
}

.cs-impact-hero .cs-ipad-expand {
  margin: 0 auto;
}

.cs-impact-hero .ipad-shell,
.cs-figure .ipad-shell {
  margin: 0 auto;
}

.cs-figure--gallery .ipad-shell {
  width: 100%;
}

.cs-figure--gallery .ipad-shell__screen {
  width: 100%;
}

/* Case study next / previous navigation */
.cs-case-nav {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--cs-border);
}

.cs-case-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cs-case-nav__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  background: var(--cs-surface);
  color: var(--cs-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cs-case-nav__link:hover {
  border-color: #d4d4d8;
  background: var(--color-card);
}

.cs-case-nav__link--next {
  text-align: right;
}

.cs-case-nav__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-subtle);
}

.cs-case-nav__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cs-case-nav__progress {
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cs-subtle);
  white-space: nowrap;
}

/* Flow prototype — click-through phone viewers */
.flow-prototype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 2rem 0 2.5rem;
}

.flow-prototype-viewer {
  text-align: center;
}

.flow-prototype-viewer__heading {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-muted);
}

.flow-prototype-viewer__summary {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--cs-subtle);
  line-height: 1.5;
}

.flow-prototype-viewer__hint {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--cs-subtle);
}

.flow-prototype-viewer__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.flow-prototype-viewer__nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  background: var(--cs-surface);
  color: var(--cs-text);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.flow-prototype-viewer__nav:hover:not(:disabled) {
  border-color: var(--cs-accent);
}

.flow-prototype-viewer__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.flow-prototype-viewer .phone-shell {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px;
}

.flow-prototype-viewer .phone-shell--before .phone-shell__screen,
.flow-prototype-viewer .phone-shell--after .phone-shell__screen {
  width: 240px;
}

.flow-prototype-viewer .phone-shell__screen {
  height: auto;
  aspect-ratio: 640 / 1322;
  overflow: hidden;
  cursor: pointer;
}

.flow-prototype-viewer .phone-shell__screen:focus {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
}

.flow-prototype-viewer .phone-shell__screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.flow-prototype-viewer__meta {
  margin-top: 1rem;
}

.flow-prototype-viewer__caption {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.flow-prototype-viewer__progress {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cs-subtle);
}

/* BeforeAfterComparison */
.before-after {
  margin: 2rem 0;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  overflow: hidden;
  background: var(--cs-surface);
}

.before-after__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cs-border);
}

.before-after__header h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.before-after__labels {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.before-after__labels span:first-child { color: var(--cs-subtle); }
.before-after__labels span:last-child { color: var(--cs-text); }

.before-after__compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
}

.before-after__layer {
  position: absolute;
  inset: 0;
}

.before-after__layer img,
.before-after__layer .image-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
}

.before-after__after {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--cs-text);
}

.before-after__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--color-card);
  border: 2px solid var(--cs-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 2;
}

.before-after__handle svg {
  width: 16px;
  height: 16px;
}

.before-after__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  z-index: 3;
}

.before-after__side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--cs-border);
}

.before-after__side-by-side .image-slot {
  border-radius: 0;
  border: none;
}

.before-after__side-caption {
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cs-subtle);
  background: var(--cs-bg);
}

/* Expandable actions */
.cs-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.5rem 0;
}

.cs-accordion-item {
  border: 1px solid var(--cs-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.cs-accordion-item:hover { border-color: #d4d4d8; }

.cs-accordion-item[open] {
  border-color: var(--cs-text);
}

.cs-accordion-item summary {
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.cs-accordion-item summary::-webkit-details-marker { display: none; }

.cs-accordion-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cs-subtle);
  transition: transform 0.2s ease;
}

.cs-accordion-item[open] summary::after {
  content: "−";
}

.cs-accordion-item summary:hover { background: var(--cs-surface); }

.cs-accordion-body {
  padding: 1.5rem 1.25rem 1.25rem; /* 24px minimum below divider */
  border-top: 1px solid var(--cs-border);
}

.cs-accordion-body > :first-child {
  margin-top: 0;
}

.cs-accordion-body p {
  font-size: 0.9375rem;
  margin: 1rem 0;
}

/* Results charts placeholder */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 1.5rem 0;
}

.chart-card {
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 1.25rem;
  background: var(--cs-surface);
  transition: border-color 0.2s ease;
}

.chart-card:hover { border-color: var(--color-faint); }

.chart-card h4 {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-text);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
  padding-top: 8px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-line), var(--color-faint));
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: background 0.3s ease;
}

.chart-card:hover .chart-bar {
  background: linear-gradient(to top, var(--color-faint), var(--color-muted));
}

.chart-bar--highlight {
  background: var(--color-accent) !important;
}

.chart-labels {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--cs-subtle);
  font-weight: 500;
}

/* Mobile nav toggle */
.cs-mobile-nav-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  padding: 0.75rem 1rem;
  background: var(--cs-text);
  color: var(--color-card);
  border: none;
  border-radius: 980px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cs-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  padding: 80px 24px 24px;
}

.cs-mobile-nav.open { display: block; }

.cs-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--cs-text);
  text-decoration: none;
  border-bottom: 1px solid var(--cs-border);
}

.cs-mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--cs-text);
}

@media (max-width: 960px) {
  .cs-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cs-sidebar { display: none; }

  .cs-mobile-nav-btn { display: block; }

  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cs-metrics-row {
    grid-template-columns: 1fr;
  }

  .image-gallery,
  .image-gallery--three,
  .image-gallery--four,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .phone-compare__grid,
  .phone-compare__grid--three,
  .phone-compare__grid--four {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cs-case-nav__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cs-case-nav__link--next {
    text-align: left;
  }

  .cs-case-nav__progress {
    justify-self: start;
  }

  .flow-prototype-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .flow-prototype-viewer .phone-shell--before .phone-shell__screen,
  .flow-prototype-viewer .phone-shell--after .phone-shell__screen {
    width: 220px;
  }

  .flow-prototype-viewer .phone-shell__screen {
    height: auto;
  }

  .phone-shell__screen {
    height: 460px;
  }

  .cs-figure img {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .cs-meta-grid {
    grid-template-columns: 1fr;
  }

  .cs-hero h1 {
    font-size: 2rem;
  }
}


/* —— Deckk case study mocks —— */
.cs-sources {
  margin-top: 1.5rem;
  color: var(--color-muted, #6c685b);
}

.deckk-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin: 1.75rem 0 2.5rem;
}

.deckk-flow-arrow {
  align-self: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent, #1d2ed9);
}

.deckk-panel {
  margin: 0;
  min-width: 0;
}

.deckk-panel__label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--color-muted, #6c685b);
  font-weight: 500;
}

.deckk-flyer {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(25, 31, 27, 0.12);
  background: #ffb03a;
  aspect-ratio: 1;
}

.deckk-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.deckk-studio {
  border-radius: 1rem;
  border: 1px solid rgba(25, 31, 27, 0.12);
  background: #faf6ee;
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.deckk-studio__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(25, 31, 27, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

.deckk-studio__spark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
}

.deckk-studio__meta {
  font-size: 0.75rem;
  color: rgba(27, 24, 19, 0.55);
}

.deckk-studio__body {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.deckk-studio__type {
  display: inline-flex;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  background: #1b1813;
  color: #faf6ee;
  margin-bottom: 0.15rem;
}

.deckk-field {
  display: block;
  border: 1.5px solid rgba(27, 24, 19, 0.12);
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.deckk-field--low {
  border-color: rgba(212, 160, 23, 0.7);
  background: rgba(212, 160, 23, 0.12);
}

.deckk-field__k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(27, 24, 19, 0.4);
  margin-bottom: 0.2rem;
}

.deckk-field--low .deckk-field__k {
  color: #b07310;
}

.deckk-field__k em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.9;
}

.deckk-field__v {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1b1813;
}

.deckk-studio__publish {
  margin-top: 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #1b1813;
  color: #faf6ee;
}

.deckk-public {
  background: #ede5d5;
  color: #1b1813;
  min-height: 100%;
  padding: 1.1rem 0.9rem 2rem;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
}

.deckk-public__identity {
  text-align: center;
  margin-bottom: 1.1rem;
}

.deckk-public__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(27, 24, 19, 0.12);
  margin-bottom: 0.55rem;
}

.deckk-public__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.deckk-public__bio {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(27, 24, 19, 0.62);
  margin: 0.35rem auto 0.25rem;
  max-width: 18em;
}

.deckk-public__loc {
  font-size: 0.68rem;
  color: rgba(27, 24, 19, 0.4);
}

.deckk-public__section {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 24, 19, 0.45);
  margin: 1rem 0 0.5rem;
}

.deckk-public__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.deckk-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(27, 24, 19, 0.1);
  border-radius: 0.85rem;
  padding: 0.75rem 0.8rem;
  margin-bottom: 0.5rem;
}

.deckk-card--pinned {
  box-shadow: 0 0 0 1.5px rgba(124, 58, 237, 0.35);
}

.deckk-card--item {
  margin-bottom: 0;
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deckk-card--link {
  padding: 0.65rem 0.8rem;
}

.deckk-card__badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 0.35rem;
}

.deckk-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.deckk-card p {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(27, 24, 19, 0.58);
  margin: 0 0 0.4rem;
}

.deckk-card__meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(27, 24, 19, 0.72);
}

.deckk-public--rules .deckk-card {
  margin-bottom: 0.65rem;
}

.phone-compare__grid--two {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .deckk-split {
    grid-template-columns: 1fr;
  }

  .deckk-flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .phone-compare__grid--two {
    grid-template-columns: 1fr;
  }
}


/* —— Deckk: Linktree failure example (IG → Linktree flow) —— */
.deckk-example {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr);
  gap: 2rem;
  align-items: start;
  margin: 1.75rem 0 0.5rem;
}

.deckk-example__flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: end;
  min-width: 0;
}

.deckk-example__device {
  margin: 0;
  min-width: 0;
}

.deckk-example__device .phone-shell {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.deckk-example__arrow {
  align-self: center;
  padding-top: 1.6rem; /* line up with phones below labels */
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent, #1d2ed9);
  line-height: 1;
}

.deckk-example__copy {
  min-width: 0;
  padding-top: 1.75rem;
}

.deckk-example__link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-weight: 600;
  color: var(--color-ink, #221F1F);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  border-bottom: none;
  transition: opacity 0.2s ease;
}

.deckk-example__link:hover {
  opacity: 0.72;
}

.deckk-example__credit {
  margin-top: 1rem;
  color: var(--color-muted, #6c685b);
}

.deckk-lt {
  background: #0d0d0d;
  color: #f5f5f5;
  min-height: 100%;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  font-family: var(--font-sans, "Instrument Sans", sans-serif);
}

.deckk-lt__avatar {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0.25rem auto 0.65rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  border: 2px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}

.deckk-lt__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.deckk-lt__loc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  margin: 0.3rem 0 1rem;
}

.deckk-lt__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.deckk-lt__list li {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 980px;
  padding: 0.7rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deckk-lt__note {
  margin: 0.85rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 900px) {
  .deckk-example {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .deckk-example__flow {
    grid-template-columns: 1fr auto 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .deckk-example__copy {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .deckk-example__flow {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.35rem;
  }

  .deckk-example__device {
    width: min(100%, 260px);
  }

  .deckk-example__arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }
}














/* —— Deckk hero showcase (phones on soft stage, no card box) —— */
.deckk-hero-showcase {
  position: relative;
  margin: 2.25rem 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(0.5rem, 2vw, 1rem) 1.25rem;
  border-radius: 0;
  background:
    radial-gradient(ellipse 80% 70% at 55% 45%, rgba(140, 110, 220, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(180, 160, 210, 0.1), transparent 55%),
    linear-gradient(180deg, #ece8f2 0%, #e2dde9 48%, #d8d2e4 100%);
  overflow: visible;
  border: none;
  box-shadow: none;
}

.deckk-hero-showcase__glow {
  pointer-events: none;
  position: absolute;
  inset: 10% 15% auto;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(150, 120, 230, 0.14), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

.deckk-hero-showcase__stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(360px, 52vw, 520px);
  padding: 0.5rem 0 0.25rem;
}

/* Shadow wrapper: do not animate or filter the image layer (avoids soft raster) */
.deckk-hero-phone {
  margin: 0;
  line-height: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(40, 30, 70, 0.22));
  will-change: auto;
}

.deckk-hero-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  /* keep pixels crisp under rotation */
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.deckk-hero-phone--back {
  width: min(238px, 33vw);
  transform: translate(18%, 4%) rotate(-9deg);
  z-index: 1;
}

.deckk-hero-phone--front {
  width: min(268px, 38vw);
  transform: translate(-12%, 0) rotate(4deg);
  z-index: 2;
}

.deckk-hero-showcase__caption {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 1.25rem 0 0;
  color: rgba(40, 34, 55, 0.55);
  letter-spacing: 0.02em;
}

.deckk-shot-shell .phone-shell__screen--fit {
  background: #0a0a0a;
}

.deckk-shot-shell .phone-shell__screen--fit img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

@media (max-width: 640px) {
  .deckk-hero-showcase {
    padding: 1.75rem 0.75rem 1.15rem;
  }

  .deckk-hero-showcase__stage {
    min-height: 300px;
  }

  .deckk-hero-phone--back {
    width: min(168px, 42vw);
    transform: translate(22%, 6%) rotate(-8deg);
  }

  .deckk-hero-phone--front {
    width: min(200px, 50vw);
    transform: translate(-14%, 0) rotate(3deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .deckk-hero-phone--back {
    animation: deckk-hero-float-back 7s ease-in-out infinite;
  }

  .deckk-hero-phone--front {
    animation: deckk-hero-float-front 7s ease-in-out infinite;
  }
}

@keyframes deckk-hero-float-back {
  0%, 100% { transform: translate(18%, 4%) rotate(-9deg); }
  50% { transform: translate(18%, 1%) rotate(-8deg); }
}

@keyframes deckk-hero-float-front {
  0%, 100% { transform: translate(-12%, 0) rotate(4deg); }
  50% { transform: translate(-12%, -8px) rotate(3.5deg); }
}


/* Linktree / Instagram screenshots in example phones */
.deckk-example__device .phone-shell--before .phone-shell__screen--fit {
  width: 100%;
  height: auto;
  max-height: none;
  background: #fff;
}

.deckk-example__device .deckk-shot-shell--dark .phone-shell__screen--fit {
  background: #000;
}

.deckk-example__device .phone-shell--before .phone-shell__screen--fit img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}


/* Deckk device shots already include a phone frame — no extra shell */
.deckk-device {
  width: min(100%, 268px);
  margin: 0 auto;
  line-height: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  filter: drop-shadow(0 14px 24px rgba(40, 30, 70, 0.18));
}

.deckk-device img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

/* Bill Pay vendor · design choices */
.cs-choice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0 0.25rem;
}

.cs-choice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--cs-border);
  border-radius: 12px;
}

.cs-choice h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cs-text);
}

.cs-choice p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--cs-muted);
}

.cs-choice__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.cs-choice--no .cs-choice__mark {
  background: #f3f3f5;
  color: #86868b;
}

.cs-choice--yes {
  border-color: rgba(29, 46, 217, 0.22);
  background: rgba(29, 46, 217, 0.04);
}

.cs-choice--yes .cs-choice__mark {
  background: var(--color-accent, #1d2ed9);
  color: #fff;
}

.cs-shift {
  margin: 1.35rem 0 1.75rem;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--cs-text);
  background: var(--cs-surface);
  border-radius: 12px;
  border: 1px solid var(--cs-border);
}

.cs-shift span {
  color: var(--color-accent, #1d2ed9);
  padding: 0 0.35em;
}
