/* =========================================================
   Case study: Light – Tutor Calendar
   Image-based composition — each section is one rendered Figma export,
   inserted as <img> at the correct aspect ratio.
   ========================================================= */
.case--light {
  background: #f2f3f4;
  padding-top: var(--nav-height);
  padding-bottom: 80px;
}

/* All inline copy / sections — content column is capped at 1140 (Figma main column).
   Below ~1260 vw the padding floor of 60 keeps narrow viewports comfortable;
   above that the side padding grows to keep content centered with proportional
   side margins (preserves the site's native Figma proportions on wide displays). */
.case--light .cl-text,
.case--light .cl-tag,
.case--light .cl-divider,
.case--light .cl-thanks,
.case--light .cl-figcaption,
.case--light .cl-section-img {
  padding-left: max(60px, calc((100vw - 1140px) / 2));
  padding-right: max(60px, calc((100vw - 1140px) / 2));
}

/* ───────── Typography helpers ───────── */
.case--light .cl-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-secondary);
  margin: 24px auto;
}
.case--light .cl-text--md { font-size: 17px; line-height: 26px; max-width: 720px; margin: 56px auto; }
.case--light .cl-text--lg { font-size: 18px; line-height: 28px; max-width: 720px; }

.case--light .accent { color: var(--orange-2); font-weight: 600; }
.case--light .accent--alt { color: var(--orange-3); font-weight: 600; }

/* Black pill tag */
.case--light .cl-tag {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
}
.case--light .cl-tag--solo {
  display: block;
  width: max-content;
  margin: 32px auto 12px;
}

/* Section divider — now just a centered wrapper for the global .case-pill.
   The inner span gets the Figma-spec pill styling (see styles.css). */
.case--light .cl-divider {
  display: flex;
  justify-content: center;
  margin: 56px auto;
}


/* ───────── Hero (full-width white, layered) — exact Figma metadata values ─────────
   Reference: Figma node 1528:2175, frame is 1440×481.
   Hero is rendered inside a 1440 logical container (.cl-hero__frame) centered
   in the viewport, so positions match Figma exactly at any viewport ≥1440. */
.cl-hero {
  position: relative;
  width: 100%;
  /* Height scales smoothly between 700px (420px tall) and 1280px (481px tall). */
  height: clamp(420px, 10.5vw + 346px, 481px);
  margin: 0 0 48px;
  background: #fff;
  overflow: visible; /* phones extend beyond, but they're inside .cl-hero__bg below */
}
.cl-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;          /* clip circle inside hero */
  z-index: 0;
}
/* Phones-frame sits ABOVE the clipped bg so phones can spill past hero bottom into the
   gray page bg, creating the Figma depth illusion. */
.cl-hero__frame--phones {
  z-index: 1;
  pointer-events: none;
}
.cl-hero__frame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 1440px;
  height: 481px;
}
/* Gradient circle — Figma: container 877.33×877.33 at left=702.33 top=-317.67, inner 678×678 rotated 21.21°.
   We collapse to a single image with rotation. */
.cl-hero__circle {
  position: absolute;
  left: 702.33px;
  top: -317.67px;
  width: 877.33px;
  height: 877.33px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-hero__circle img {
  width: 678px;
  height: 678px;
  transform: rotate(21.21deg);
  display: block;
}
.cl-hero__phone {
  position: absolute;
  pointer-events: none;
}
/* Calendar phone — Figma: rect 670.703×599.501 rotated -2.93°, container 700.494×633.028 at left=526 top=-71.
   z-index 2 keeps it in front of the clients phone (which is rendered later in
   the DOM and would otherwise paint over it). */
.cl-hero__phone--1 {
  left: 540.9px;          /* 526 + (700.494-670.703)/2 */
  top: -54.24px;          /* -71 + (633.028-599.501)/2 */
  width: 670.703px;
  height: 599.501px;
  transform: rotate(-2.93deg);
  z-index: 2;
}
.cl-hero__phone--1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 -2px 30px rgba(255,255,255,0.19));
}
/* Clients phone — Figma: rect 229.728×407.397 rotated 5.6°, container 268.417×427.885 at left=1071.91 top=7.84.
   Sits BEHIND the calendar phone (z-index 1 vs phone--1's 2). */
.cl-hero__phone--2 {
  left: 1091.25px;        /* 1071.91 + (268.417-229.728)/2 */
  top: 18.08px;           /* 7.84 + (427.885-407.397)/2 */
  width: 229.728px;
  height: 407.397px;
  transform: rotate(5.6deg);
  z-index: 1;
}
.cl-hero__phone--2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 -2px 30px rgba(255,255,255,0.19));
}
/* Content layer — full viewport width, padded with the same fluid clamp() as body content
   so logo/role/title/desc track the viewport edge instead of being locked inside the
   centered 1440 Figma frame. The bg layers (circle + phones) still use the frame. */
.cl-hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 47px 0 0;
  padding-left: max(60px, calc((100vw - 1140px) / 2));
  padding-right: max(60px, calc((100vw - 1140px) / 2));
  pointer-events: none;
}
.cl-hero__content > * { pointer-events: auto; }

.cl-hero__logo-card {
  display: block;
  width: 103px;
  height: 103px;
}
/* Orange dashed line that comes in from the viewport-left, ending just under the logo. */
.cl-hero__role-line {
  position: absolute;
  left: 0;
  top: 181px;
  width: calc(max(60px, (100vw - 1140px) / 2) - 16px);
  height: 1px;
  background-image: linear-gradient(to right, var(--orange-3) 0 4px, transparent 4px 8px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}
.cl-hero__role-dot {
  position: absolute;
  left: calc(max(60px, (100vw - 1140px) / 2) - 16px);
  top: 179px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange-3);
}
.cl-hero__role {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  color: #000;
  opacity: 0.5;
  white-space: nowrap;
}
.cl-hero__title {
  margin: 12px 0 0;
  width: 542px;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  /* Smooth scaling between narrow (≈700px → 42px) and full (≥1200px → 48px),
     no abrupt jump at any single breakpoint. */
  font-size: clamp(42px, 3.6vw + 14px, 48px);
  line-height: normal;
  letter-spacing: -0.48px;
  color: #000;
}
.cl-hero__desc {
  margin: 23px 0 0;
  width: 477px;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 0.4vw + 13.5px, 16px);
  line-height: clamp(24px, 0.6vw + 21px, 27px);
  color: #000;
}


/* ───────── Chat-style bubbles between sections — uses shared .bubble component (styles.css) ───────── */
.case--light .cl-chat {
  margin: 32px 0;
  padding-left: max(60px, calc((100vw - 1140px) / 2));
  padding-right: max(60px, calc((100vw - 1140px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.case--light .cl-chat .bubble { max-width: 520px; font-weight: 400; }
.case--light .cl-chat .bubble--dark { max-width: 360px; }
.case--light .cl-chat .bubble .accent,
.case--light .cl-chat .bubble .accent--alt { font-weight: 600; }
.case--light .cl-chat .bubble p { margin: 0; }
.case--light .cl-chat .bubble p + p { margin-top: 1em; }
.case--light .cl-chat .bubble ul {
  margin: 8px 0;
  padding-left: 22px;
}
.case--light .cl-chat .bubble li { margin: 3px 0; }

/* ───────── Reusable slide pattern ─────────
   Edge-to-edge white section. Text content sits in the site's shared
   content column (same padding as .cl-text, .cl-section-img, etc.) so
   it aligns with everything else on the page. Decorations are per-slide
   and live inside .cl-slide__deco-frame (a 1440-wide centered band that
   keeps Figma coordinates intact). */
.case--light .cl-slide {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
  margin: 40px 0;
  padding: 32px 0 80px;
}
.case--light .cl-slide__content {
  position: relative;
  padding-left: max(60px, calc((100vw - 1140px) / 2));
  padding-right: max(60px, calc((100vw - 1140px) / 2));
}
.case--light .cl-slide__kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.64px;
  color: #d4d5d7;
}
.case--light .cl-slide__heading {
  margin: 54px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: #2f3031;
}
.case--light .cl-slide__body {
  margin: 12px 0 0;
  max-width: 438px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #313236;
}
.case--light .cl-slide__body p { margin: 0; }

/* Decoration host — spans the whole slide, but children anchor to a
   1440-wide centered frame so Figma's absolute coords still apply. */
.case--light .cl-slide__deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.case--light .cl-slide__deco-frame {
  position: relative;
  width: 1440px;
  height: 100%;
  margin: 0 auto;
}

/* ── Per-slide decorations ─────────────────────────────────────────
   Each slide that has decorative artwork scopes its styles here. */

/* Mobile tuning for the slide pattern. The column padding is kept aligned
   with the rest of the case sections (max(60px, …)) — only vertical
   rhythm and kicker scale are tightened. */
@media (max-width: 700px) {
  /* Chat-style spacing on small screens — pull bubbles close to the edge so
     the conversation reads like a real messenger instead of a centred column
     with huge side margins. */
  .cl-chat {
    padding-left: 16px;
    padding-right: 16px;
    gap: 16px;
  }
  /* Tighten the bubble's own inner padding too — at 24px it eats half the
     screen on phones. */
  .cl-chat .bubble {
    padding: 14px 16px;
    border-radius: 16px;
  }
  .case--light .cl-slide {
    margin: 24px 0;
    padding: 32px 0 48px;
  }
  .case--light .cl-slide__kicker {
    font-size: 24px;
    letter-spacing: 0.48px;
  }
  .case--light .cl-slide__heading {
    margin-top: 32px;
  }
}

/* On phones (≤500px) drop ALL side gutters to 16px — the `max(60px, …)`
   floor we use across cases is way too generous when the viewport itself is
   ~360–500px wide. */
@media (max-width: 500px) {
  .case--light .cl-text,
  .case--light .cl-tag,
  .case--light .cl-divider,
  .case--light .cl-thanks,
  .case--light .cl-figcaption,
  .case--light .cl-section-img,
  .case--light .cl-chat,
  .case--light .cl-slide__content {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Inside the bubble itself — 16px on all sides so the text hugs the card. */
  .cl-chat .bubble {
    padding: 16px;
    border-radius: 14px;
  }
}

/* ── Personas slide ───────────────────────────────────────────────
   Decoration: huge dashed circle whose lower arc curves across the
   slide, plus a coral dot on the left edge where the arc enters. */
.case--light .cl-slide--personas__arc {
  position: absolute;
  left: -116px;
  top: -717px;
  width: 1713px;
  height: 1713px;
  pointer-events: none;
}
.case--light .cl-slide--personas__dot {
  position: absolute;
  /* Sits ON the dashed arc — the arc's circle (center 740.5,139.5 inside
     the deco-frame, radius 722.5) passes through (≈40, 319), so we place
     the 28px dot's center there: left = 40 − 14, top = 319 − 14. */
  left: 26px;
  top: 305px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff6b6b;
}

/* 3-column × 2-row grid. Column-flow places each persona's pair vertically:
   row 1 = persona profile cards (aligned heights via grid stretch), row 2 =
   "Does" cards. On tablet/mobile we flip to single-column row-flow so the
   pairs stack naturally: V-card, V-does, M-card, M-does, O-card, O-does. */
.case--light .cl-personas {
  margin-top: 48px;
  display: grid;
  /* Columns sized to the card (max 359, shrink on narrow desktop) and the
     whole grid centred — so the visible horizontal gap equals column-gap
     exactly, with no extra slack from 1fr cells. */
  grid-template-columns: repeat(3, minmax(0, 359px));
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 32px 18px;
  justify-content: center;
  justify-items: center;
}

.case--light .cl-persona-card {
  width: 100%;
  max-width: 359px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.10), 0 16px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case--light .cl-persona-card__header {
  background: #393a42;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 27px;
  height: 72px;
  box-sizing: border-box;
}
.case--light .cl-persona-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
  background: #fff;
}
.case--light .cl-persona-card__heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case--light .cl-persona-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
  color: #fff;
  margin: 0;
}
.case--light .cl-persona-card__role {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: #fff;
  opacity: 0.6;
  margin: 0;
}
.case--light .cl-persona-card__desc {
  padding: 24px 32px 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #2d2d2d;
  margin: 0;
}

.case--light .cl-persona-does {
  width: 100%;
  max-width: 341px;
  background: #fff;
  border: 1px solid #c4c4c4;
  border-radius: 12px;
  padding: 16px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case--light .cl-persona-does__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  color: #000;
  margin: 0;
}
.case--light .cl-persona-does ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}
.case--light .cl-persona-does li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #2d2d2d;
  margin: 0 0 4px;
}
.case--light .cl-persona-does li:last-child {
  margin-bottom: 0;
}

/* Tablet (500–900): 2 cols — persona profile | does. Each row is one
   persona pair: V-card V-does / M-card M-does / O-card O-does. */
@media (min-width: 500px) and (max-width: 900px) {
  .case--light .cl-personas {
    grid-template-columns: minmax(0, 359px) minmax(0, 341px);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 32px 24px;
    align-items: start;
    justify-content: center;
  }
}

/* Mobile (<500): 1 col, pairs follow DOM order — V-card, V-does, M-card, … */
@media (max-width: 499px) {
  .case--light .cl-personas {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Extra breathing room before the NEXT persona group — separates pairs
     so a "Does" card visually belongs to the card above it, not below. */
  .case--light .cl-persona-does + .cl-persona-card {
    margin-top: 16px;
  }
}

/* ── "What we proposed" slide ─────────────────────────────────────
   3 captioned UI mockups. Desktop: 3 in a row. Tablet/mobile: stacked
   one per row (tablet a bit larger than mobile). */
.case--light .cl-proposed {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 356px));
  gap: 24px;
  justify-content: center;
}
.case--light .cl-proposed__col {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.case--light .cl-proposed__cap {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  color: #393a42;
  text-align: center;
}
.case--light .cl-proposed__img {
  width: 100%;
  height: auto;
  display: block;
}
.case--light .cl-proposed__note {
  margin: 32px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 32px;
  color: #f35a0e;
  opacity: 0.89;
}

/* Tablet & mobile: one mockup per row. Tablet renders them larger. */
@media (max-width: 900px) {
  .case--light .cl-proposed {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
}
@media (min-width: 500px) and (max-width: 900px) {
  .case--light .cl-proposed__img { max-width: 440px; }
}
@media (max-width: 499px) {
  .case--light .cl-proposed__img { max-width: 356px; }
}

/* ── "The core principles" slide ──────────────────────────────────
   Kicker + 3 short text columns. Desktop 3-in-row, tablet/mobile stacked. */
.case--light .cl-principles {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.case--light .cl-principle__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 40px;
  color: #393a42;
}
.case--light .cl-principle__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #313236;
}
@media (max-width: 900px) {
  .case--light .cl-principles {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
    max-width: 480px;
  }
}

/* ── "Metrics of the first phase" slide ───────────────────────────
   Left: kicker + two metric lines. Right: square promo image.
   Desktop side-by-side; tablet/mobile stacked. */
.case--light .cl-metrics {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.case--light .cl-metrics__left {
  flex: 1;
  min-width: 0;
}
.case--light .cl-metrics__list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case--light .cl-metric {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  color: #313236;
}
.case--light .cl-metric strong {
  font-weight: 700;
  color: #f35a0e;
  margin-left: 10px;
}
.case--light .cl-metrics__img {
  flex-shrink: 0;
  width: 417px;
  max-width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.10), 0 16px 12px rgba(0, 0, 0, 0.05);
}
@media (max-width: 900px) {
  .case--light .cl-metrics {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .case--light .cl-metrics__list {
    margin-top: 36px;
  }
  .case--light .cl-metric {
    font-size: 20px;
    line-height: 32px;
  }
  .case--light .cl-metrics__img {
    max-width: 360px;
    width: 100%;
    align-self: center;
  }
}

/* Problem slide — large dashed circle + blue dot on the right */
.case--light .cl-slide--problem__circle {
  position: absolute;
  left: -295px;
  top: -342px;
  width: 1562px;
  height: 1562px;
}
.case--light .cl-slide--problem__dot {
  position: absolute;
  left: 1181px;
  top: 94px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #29abe2;
}

/* ── Onboarding experiment slide ──────────────────────────────────
   Kicker + intro, 3 hypothesis columns, two rows of phone screens
   (4 initial, 5 redesigned), and a results stat. */
.case--light .cl-onb__intro {
  margin: 16px 0 0;
  max-width: 720px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #6b6c70;
}
.case--light .cl-onb__subhead {
  margin: 56px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: #2f3031;
}
.case--light .cl-onb__hypotheses {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.case--light .cl-onb__h-title {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #393a42;
}
.case--light .cl-onb__h-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f35a0e;
  color: #fff;
  font-size: 13px;
}
.case--light .cl-onb__hypothesis p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #313236;
}
.case--light .cl-onb__screens {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
/* Every onboarding screen renders at one fixed width regardless of how
   many sit in the row — so the 4 "initial" screens never look larger /
   more important than the 5 "redesign" ones. */
.case--light .cl-onb__screens img {
  flex: 0 0 auto;
  width: 212px;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08), 0 16px 24px rgba(0, 0, 0, 0.06);
}
.case--light .cl-onb__result-label {
  margin: 24px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #313236;
}
.case--light .cl-onb__result-stat {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #393a42;
}
.case--light .cl-onb__result-up { color: #f35a0e; }

@media (max-width: 900px) {
  .case--light .cl-onb__hypotheses {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 480px;
  }
  /* Onboarding is a flow — keep all screens on one horizontal scrolling
     row on tablets and phones instead of wrapping into a grid. */
  .case--light .cl-onb__screens {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 24px;
    /* Padding + matching negative margin so the row stays aligned with the
       rest of the content while the soft shadows aren't clipped by the
       scroll container. */
    padding: 18px 24px 38px;
    margin: 8px -24px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  }
  .case--light .cl-onb__screens img {
    scroll-snap-align: start;
  }
  .case--light .cl-onb__screens::-webkit-scrollbar {
    height: 6px;
  }
  .case--light .cl-onb__screens::-webkit-scrollbar-track {
    background: transparent;
  }
  .case--light .cl-onb__screens::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }
  .case--light .cl-onb__screens::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* ── Activation improvement slide ─────────────────────────────────
   Two columns: left = copy + result stats, right = media (in-app
   modal phone + the web-guide card, joined by a thin connector). */
.case--light .cl-act {
  display: flex;
  align-items: flex-start;
  gap: 61px;
}
.case--light .cl-act__text {
  flex: 0 0 438px;
  min-width: 0;
}
.case--light .cl-act__intro {
  margin: 28px 0 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #313236;
}
.case--light .cl-act__results {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: #393a42;
}
.case--light .cl-act__stat {
  margin-top: 24px;
}
.case--light .cl-act__stat-label {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 40px;
  color: #313236;
}
/* Big stat numbers — same typography as the onboarding results. */
.case--light .cl-act__stat-nums {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #393a42;
}
.case--light .cl-act__stat-up { color: #f35a0e; }

/* Media column — phone and guide card top-aligned with the body copy. */
.case--light .cl-act__media {
  position: relative;
  flex: 1;
  margin-top: 72px;
  display: flex;
  align-items: flex-start;
  gap: 55px;
}
.case--light .cl-act__phone {
  flex: 0 0 223px;
  width: 223px;
  height: auto;
  display: block;
  border-radius: 10px;
}
/* Guide card: a fixed-ratio white card with the two guide screenshots
   stacked inside and a white fade over the bottom edge. */
.case--light .cl-act__guide {
  position: relative;
  flex: 0 0 359px;
  width: 359px;
  aspect-ratio: 359 / 690;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 14px rgba(37, 43, 99, 0.21);
}
/* Each guide screenshot is clipped to its Figma slice so stray edges
   (e.g. an embedded status bar) don't leak through the seam. */
.case--light .cl-act__guide-top,
.case--light .cl-act__guide-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}
.case--light .cl-act__guide-top {
  top: 0;
  height: 50.1%;
}
.case--light .cl-act__guide-bottom {
  top: 51.4%;
  bottom: 0;
}
.case--light .cl-act__guide-top img,
.case--light .cl-act__guide-bottom img {
  display: block;
  width: 100%;
}
.case--light .cl-act__guide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 21%;
  background: linear-gradient(to top, #fff 28%, rgba(255, 255, 255, 0));
}
.case--light .cl-act__connector {
  position: absolute;
  left: 40%;
  top: 48%;
  width: 64%;
  height: auto;
  aspect-ratio: 410 / 34.55;
  pointer-events: none;
}
@media (max-width: 900px) {
  .case--light .cl-act {
    flex-direction: column;
    gap: 0;
  }
  .case--light .cl-act__media {
    margin-top: 40px;
    gap: 32px;
  }
  .case--light .cl-act__connector { display: none; }
}
@media (max-width: 560px) {
  .case--light .cl-act__media {
    flex-direction: column;
    align-items: center;
  }
  .case--light .cl-act__phone,
  .case--light .cl-act__guide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
  }
}

/* ── Instagram & App Store rows ─────────────────────────────────────
   Desktop: images share the content column evenly. Tablet & phone:
   the row turns into a horizontal scroller (same pattern as the
   onboarding screens). */
.case--light .cl-media-row {
  margin-top: 32px;
  display: flex;
  align-items: flex-start;
}
.case--light .cl-ig__row { gap: 8px; }
.case--light .cl-store__row { gap: 10px; }
.case--light .cl-ig__row img,
.case--light .cl-store__row img {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  object-fit: cover;
}
.case--light .cl-ig__row img {
  aspect-ratio: 1;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.08);
}
.case--light .cl-store__row img {
  aspect-ratio: 278 / 601;
  border-radius: 8px;
}
.case--light .cl-row-note {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .case--light .cl-media-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 24px;
    padding: 16px 24px 28px;
    margin: 24px -24px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  }
  .case--light .cl-media-row img {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
  .case--light .cl-ig__row img { width: 200px; }
  .case--light .cl-store__row img { width: 232px; }
  .case--light .cl-media-row::-webkit-scrollbar { height: 6px; }
  .case--light .cl-media-row::-webkit-scrollbar-track { background: transparent; }
  .case--light .cl-media-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
  }
  .case--light .cl-media-row::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }
  .case--light .cl-row-note { margin-top: 4px; }
}

/* ───────── Section image blocks ───────── */
.cl-section-img {
  margin: 40px auto;
}
.cl-section-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
/* Sections that have a dark/coloured background — extend behind the bounded image */
.cl-section-img--bleed {
  position: relative;
  padding-top: 32px;
  padding-bottom: 32px;
}
.cl-section-img--bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: -1;
}
.cl-figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-left: 0;
  padding-right: 0;
}


/* ───────── Thanks ───────── */
.cl-thanks {
  text-align: center;
  margin: 56px auto 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}


/* ───────── Responsive ─────────
   Three zones (matches site-wide policy):
   ≥1280px — desktop pixel-lock (base styles above)
   700–1280px — tablet, fluid via clamp() (no media query needed)
   <700px — mobile single-column (block below) */
/* ───────── Tablet hero (500–900): vertical Figma layout — node 3064:1596 ──
   Reference frame is 557×892. --u = 1 Figma px in viewport units; it scales
   the whole composition with the viewport but is capped at 1.25× so the
   phones don't blow up on wide tablets. Once capped, --ox centres the
   composition horizontally (white margins grow instead of the artwork). */
@media (min-width: 500px) and (max-width: 900px) {
  .cl-hero {
    --u: min(1.25px, calc(100vw / 557));
    --ox: max(0px, calc((100vw - 557 * var(--u)) / 2));
    height: calc(892 * var(--u));
    margin: 0 0 32px;
    overflow: hidden;
  }
  .cl-hero__bg,
  .cl-hero__frame--phones {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .cl-hero__bg .cl-hero__frame,
  .cl-hero__frame--phones {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    transform: none;
  }
  .cl-hero__circle {
    left: calc(var(--ox) + 272 * var(--u));
    top: calc(-143 * var(--u) - 20px);  /* nudged ~20px up from Figma */
    width: calc(671 * var(--u));
    height: calc(671 * var(--u));
  }
  .cl-hero__circle img {
    width: calc(519 * var(--u));
    height: calc(519 * var(--u));
  }
  .cl-hero__phone--1 {
    left: calc(var(--ox) - 39 * var(--u));   /* container -50.15 + (536.04 - 513.25)/2 */
    top: calc(84.67 * var(--u) - 20px);      /* 71.84 + (484.42 - 458.76)/2, nudged ~20px up */
    width: calc(513.25 * var(--u));
    height: calc(458.76 * var(--u));
    transform: rotate(-2.93deg);
  }
  .cl-hero__phone--2 {
    left: calc(var(--ox) + 412.84 * var(--u));  /* 398.04 + (205.40 - 175.80)/2 */
    top: calc(113.76 * var(--u) - 20px);        /* 105.92 + (327.43 - 311.76)/2, nudged ~20px up */
    width: calc(175.8 * var(--u));
    height: calc(311.76 * var(--u));
    transform: rotate(5.6deg);
  }
  /* Content layer becomes a positioning grid; each child is placed
     absolutely at its Figma coordinate (scaled by --u). */
  .cl-hero__content {
    position: absolute;
    inset: 0;
    padding: 0;
    z-index: 2;
    pointer-events: none;
  }
  .cl-hero__content > * { pointer-events: auto; }
  .cl-hero__logo-card {
    position: absolute;
    left: calc(var(--ox) + 61 * var(--u));
    top: calc(508 * var(--u));
    width: calc(103 * var(--u));
    height: calc(103 * var(--u));
  }
  .cl-hero__role-line {
    left: calc(var(--ox) - 109 * var(--u));
    top: calc(641 * var(--u));
    /* End exactly at the dot's left edge (dot at left:50) → width = 50 − (−109) = 159 */
    width: calc(159 * var(--u));
  }
  .cl-hero__role-dot {
    left: calc(var(--ox) + 50 * var(--u));
    top: calc(639 * var(--u));
  }
  .cl-hero__role {
    position: absolute;
    left: calc(var(--ox) + 60 * var(--u));
    top: calc(633 * var(--u));
    margin: 0;
    white-space: nowrap;
  }
  .cl-hero__title {
    position: absolute;
    left: calc(var(--ox) + 58 * var(--u));
    top: calc(667 * var(--u));
    margin: 0;
    width: calc(542 * var(--u));
    max-width: none;
    /* Title scales with the frame but caps at 44 so it doesn't get huge near 900 */
    font-size: clamp(30px, calc(36 * var(--u)), 44px);
    letter-spacing: -0.36px;
  }
  .cl-hero__desc {
    position: absolute;
    left: calc(var(--ox) + 60 * var(--u));
    top: calc(732 * var(--u));
    margin: 0;
    width: calc(477 * var(--u));
    max-width: none;
    font-size: 16px;
    line-height: 27px;
    font-weight: 500;
  }
}

@media (max-width: 499px) {
  /* Mobile hero composition:
     ┌────────────────────────────┐
     │   [gradient blob, R edge]  │  ← visual band: 320px tall
     │   [calendar phone, big]    │      gradient bleeds off the right
     │   [clients phone, small]   │      calendar phone centered & tall
     ├────────────────────────────┤
     │ [logo]                      │  ← content stacks below
     │ My role: …                  │
     │ Light – tutor calendar      │
     │ Mobile application for…     │
     └────────────────────────────┘ */
  .cl-hero {
    height: auto;
    padding: 0 0 24px;
    overflow: hidden;
    --mobile-visual-h: 320px;
  }
  /* Bg + phones layers occupy the visual band. We reset the shared .cl-hero__frame
     rules (1440px wide, translateX centered) because we hand-place each child here. */
  .cl-hero__bg,
  .cl-hero__frame--phones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-visual-h);
  }
  .cl-hero__bg .cl-hero__frame,
  .cl-hero__frame--phones {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    left: 0;
    margin: 0;
    transform: none;
  }
  /* Gradient blob — anchored to the right edge, partially off-screen for bleed. */
  .cl-hero__circle {
    left: auto;
    right: -100px;
    top: -120px;
    width: 460px;
    height: 460px;
    transform: none;
  }
  .cl-hero__circle img {
    width: 360px;
    height: 360px;
    transform: rotate(21.21deg);
  }
  /* Calendar phone — hero element, big and centered with subtle tilt.
     Container keeps the PNG's native aspect (2240/2000 ≈ 1.118) so object-fit: cover
     doesn't have to crop — the phone glyph (already rotated inside the PNG) stays whole. */
  .cl-hero__phone--1 {
    left: 50%;
    top: 0;
    width: 380px;
    height: 340px;
    margin-left: -210px;       /* shift left of center to leave room for clients phone */
    transform: rotate(-3deg);
  }
  /* Clients phone — small accent on the right, same PNG aspect. */
  .cl-hero__phone--2 {
    left: auto;
    right: -10px;
    top: 20px;
    width: 180px;
    height: 161px;
    transform: rotate(5deg);
  }
  .cl-hero__role-line,
  .cl-hero__role-dot { display: none; }
  /* Content drops below the visual band. */
  .cl-hero__content {
    position: relative;
    inset: auto;
    padding: calc(var(--mobile-visual-h) + 8px) 24px 0;
  }
  .cl-hero__logo-card { width: 72px; height: 72px; }
  .cl-hero__role { margin-top: 16px; }
  .cl-hero__title { font-size: 32px; width: 100%; }
  .cl-hero__desc { width: 100%; }
}
