@font-face {
  font-family: "Averta ExtraBold";
  src: url("../fonts/averta/averta-extra-bold.otf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 800;
}

@font-face {
  font-family: "Averta SemiBold";
  src: url("../fonts/averta/averta-semibold.otf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  --padding-block: 24px;
  --block-height: 220px;
  --author-translate-y: 200px;
  --block1-pad: 24px;
  --block3-pad: 24px;
  --block4-pad: 22px;
  --block-number-size: 40px;
  --block-label-size: 16px;

  /* Block 2 avatars - sizes/offsets */
  --block2-avatar-state1-size: 84px;
  --block2-avatar-state2-size: 56px;
  --block2-avatar-state2-offset: 68px;
  --block2-avatar-state3-size: 60px;
  --block2-avatar-state3-offset-x: 52px;
  /* Shared vertical shift applied to all 3 avatars (keeps the row from sitting
     dead-center so the title/count text above/below has room) */
  --block2-avatar-state3-offset-y: -13%;
  /* Extra Y spread for avatars 1 (+) & 3 (-) only, mirrored around avatar 2 -
     0 = flat row (default/desktop); a breakpoint can set this for a diagonal look */
  --block2-avatar-state3-diagonal-y: 0px;
}

.analysis-section {
  position: relative;
}

.analysis-section .container-analysis-section {
  position: relative;
  height: auto;
  min-height: 200px;
  background-image: url("/assets/images/retention-analysis/orange-gradient.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}

.analysis-section {
  overflow: visible;
}

.analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.analysis-title {
  font-size: 28px;
  font-weight: 800;

  margin: 0;
  font-family: "Averta ExtraBold", sans-serif;
}

.analysis-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.analysis-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.analysis-stat-label {
  font-size: 16px;
  font-weight: 600;

  margin-bottom: 8px;
}

.analysis-stat-value {
  font-size: 40px;
  font-weight: 800;

  font-family: "Averta SemiBold", sans-serif;
}

.analysis-stat-divider {
  width: 2px;
  height: 100px;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* Tooltip styles matching pricing-public.css */
.tooltip-wrapper {
  text-decoration: underline;
  display: inline-block;
  cursor: help;
  position: relative;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  z-index: 1;
  font-weight: 600;
  font-family: "Averta SemiBold", sans-serif;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px);
  transform: translateY(0px);
  z-index: 10000;
}

.tooltip-wrapper .tooltip {
  font-family: "Averta Demo PE";
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  background: #fff;
  bottom: 100%;
  display: block;
  left: -25px;
  margin-bottom: 15px;
  border-bottom: 3px solid;
  opacity: 0;
  padding: 20px;
  pointer-events: none;
  position: absolute;
  width: 320px;
  -webkit-transform: translateY(10px);
  -moz-transform: translateY(10px);
  -ms-transform: translateY(10px);
  -o-transform: translateY(10px);
  transform: translateY(10px);
  -webkit-transition: all 0.25s ease-out;
  -moz-transition: all 0.25s ease-out;
  -ms-transition: all 0.25s ease-out;
  -o-transition: all 0.25s ease-out;
  transition: all 0.25s ease-out;
  -webkit-box-shadow: 2px 2px 6px rgb(0 0 0 / 28%);
  -moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  -o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
  box-shadow: 2px 2px 6px rgb(0 0 0 / 28%);
}

.tooltip-wrapper .tooltip:before {
  bottom: -20px;
  content: " ";
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;
}

.tooltip-wrapper .tooltip:after {
  border-top: solid 10px #1b1d35;
  border-left: solid transparent 10px;
  border-right: solid transparent 10px;
  bottom: -10px;
  content: " ";
  height: 0;
  left: 36px;
  margin-left: -13px;
  position: absolute;
  width: 0;
}

.tooltip-wrapper.tooltip-right .tooltip {
  left: auto;
  right: -10px;
}

.tooltip-wrapper.tooltip-right .tooltip:before {
  right: 36px;
  left: auto !important;
}

.tooltip-wrapper.tooltip-right .tooltip:after {
  right: 16px;
  left: auto;
}

/* --tt1-offset is the single source of truth for info-tooltip-1's
   horizontal anchor - both the tooltip box and its arrow derive their
   `right` from it, so a media query only ever needs to override the one
   variable (see 768-1224px below) and the arrow automatically stays
   pointed at the icon instead of needing its own hand-tuned number that
   can drift out of sync with the box.
   The 6px constant is calibrated from the default (non-responsive) case:
   box right -10px + arrow right 16px = 6px, and that relationship holds
   for any offset because the icon's own position never moves relative to
   its wrapper. */
.info-tooltip-1.tooltip-right {
  --tt1-offset: -10px;
}

.info-tooltip-1.tooltip-right .tooltip {
  right: var(--tt1-offset);
}

.info-tooltip-1.tooltip-right .tooltip:after {
  right: calc(6px - var(--tt1-offset));
}

.info-tooltip-1 .tooltip {
  width: min(550px, calc(100vw - 40px));
}

.info-tooltip-2 .tooltip {
  width: min(550px, calc(100vw - 40px));
}

/* Tooltip bottom variant - opens below when near top of window */
.tooltip-wrapper.tooltip-bottom .tooltip {
  bottom: auto;
  top: 100%;
  margin-bottom: 0;
  margin-top: 15px;
  border-bottom: none;
  border-top: 3px solid;
  -webkit-transform: translateY(-10px);
  -moz-transform: translateY(-10px);
  -ms-transform: translateY(-10px);
  -o-transform: translateY(-10px);
  transform: translateY(-10px);
}

.tooltip-wrapper.tooltip-bottom .tooltip:before {
  bottom: auto;
  top: -20px;
}

.tooltip-wrapper.tooltip-bottom .tooltip:after {
  border-top: none;
  border-bottom: solid 10px #1b1d35;
  bottom: auto;
  top: -10px;
}

.tooltip-wrapper.tooltip-bottom:hover .tooltip {
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px);
  transform: translateY(0px);
}

/* Left-aligned variant (Wellable Effect "How is the retention multiplier
   calculated?"): the trigger sits at the content's left edge, so the popup
   lines up with the trigger's left edge and opens to the right - it never
   goes past the left side of the screen - and is capped to the viewport
   width (minus the 15px .page-center gutter on each side) so it can't run
   off the right side on small phones either. */
.tooltip-wrapper.tooltip-left .tooltip {
  left: 0;
  right: auto;
  width: 320px;
  max-width: calc(100vw - 30px);
}

/* ============================================
   Scroll Animated Blocks Section
   ============================================ */

.scroll-blocks-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Clip sideways only, so the "How is the retention multiplier calculated?"
     tooltip can open above the section's top edge without being cut off.
     Browsers without `overflow: clip` drop this line and keep `hidden`. */
  overflow: clip visible;
}

.scroll-blocks-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  transition: gap 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Base Block Styles
   ============================================ */

.scroll-block {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* State 1: Small square blocks */
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  max-width: 140px;
  transition:
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    min-width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    min-height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    max-width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-radius 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* flex 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); */
  /* `flex` is not transitioned anymore: from State 1 (flex: 0 1 auto) straight
     to State 3 (flex: 1), flex-basis can't animate (auto -> 0%) so it snapped
     to 0 while flex-grow eased up from 0 - for the first frames the blocks
     shrank (down to their shrinking min-width) before growing, which read as
     a hitch right before the expansion. Switching flex instantly leaves
     max-width (140px -> State 3 cap) to drive the width, so the blocks grow
     smoothly from their current size. */
}

/* Block Colors */
.block-statistics {
  background: #9bb1a8;
}

.block-energy {
  background: #ffe2cc;
}

/* Block 2 avatars - absolutely positioned, self-animate transform/size per state */
.block2-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  object-fit: cover;
  box-sizing: border-box;
  /* border: 3px solid #ffe2cc; */
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

/* Avatar 1: lives in state-1-content, moves center -> right -> near-center */
.block2-avatar-1 {
  width: var(--block2-avatar-state1-size);
  height: var(--block2-avatar-state1-size);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition:
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Block 2: keep state-1-content visible during states 2-3 for smooth avatar-1 movement */
/* .scroll-blocks-section.state-2 .block-energy .state-1-content, */
.scroll-blocks-section.state-3 .block-energy .state-1-content {
  opacity: 1;
  visibility: visible;
}

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-energy .block2-avatar-1 {
  width: var(--block2-avatar-state2-size);
  height: var(--block2-avatar-state2-size);
  transform: translate(calc(-50% + var(--block2-avatar-state2-offset)), -50%);
}
*/

.scroll-blocks-section.state-3 .block-energy .block2-avatar-1 {
  width: var(--block2-avatar-state3-size);
  height: var(--block2-avatar-state3-size);
  transform: translate(
    calc(-50% + var(--block2-avatar-state3-offset-x)),
    calc(
      -50% + var(--block2-avatar-state3-offset-y) +
        var(--block2-avatar-state3-diagonal-y)
    )
  );
}

/* Avatars 2 & 3: born in state-2-content, pop in place, then move together in state 3 */
.block2-avatar-2,
.block2-avatar-3 {
  width: var(--block2-avatar-state2-size);
  height: var(--block2-avatar-state2-size);
  opacity: 0;
  transition:
    opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block2-avatar-2 {
  transform: translate(-50%, -50%) scale(0.3);
  z-index: 3;
  /* Collapsing back to state 1: avatar 2 popped in first, so it's the last to retreat */
  transition-delay: 0.35s, 0.35s, 0s, 0s;
}

.block2-avatar-3 {
  /* Hidden state sits under avatar 1 (center) so it visibly travels out to its
     slot on the way in, and collapses back under avatar 1 (not just fades in place)
     when scrolling back to state 1 */
  transform: translate(-50%, -50%) scale(0.3);
  z-index: 1;
  /* Collapsing back to state 1: avatar 3 popped in last, so it's the first to retreat */
  transition-delay: 0.15s, 0.15s, 0s, 0s;
}

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-energy .block2-avatar-2 {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  */ /* Popping in to state 2: avatar 2 goes first */ /*
  transition-delay: 0.15s, 0.15s, 0s, 0s;
}
*/

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-energy .block2-avatar-3 {
  opacity: 1;
  transform: translate(calc(-50% - var(--block2-avatar-state2-offset)), -50%)
    scale(1);
  */ /* Popping in to state 2: avatar 3 goes last */ /*
  transition-delay: 0.35s, 0.35s, 0s, 0s;
}
*/

.scroll-blocks-section.state-3 .block-energy .block2-avatar-2 {
  opacity: 1;
  width: var(--block2-avatar-state3-size);
  height: var(--block2-avatar-state3-size);
  transform: translate(-50%, calc(-50% + var(--block2-avatar-state3-offset-y)))
    scale(1);
}

.scroll-blocks-section.state-3 .block-energy .block2-avatar-3 {
  opacity: 1;
  width: var(--block2-avatar-state3-size);
  height: var(--block2-avatar-state3-size);
  transform: translate(
      calc(-50% - var(--block2-avatar-state3-offset-x)),
      calc(
        -50% + var(--block2-avatar-state3-offset-y) -
          var(--block2-avatar-state3-diagonal-y)
      )
    )
    scale(1);
}

/* Block 2 State 3 text styles */

.block2-title {
  font-size: var(--block-label-size);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(40px) scale(0.6);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block2-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  width: 100%;
  opacity: 0;
  transform: translateY(-40px) scale(0.6);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block2-count-number {
  font-size: var(--block-number-size);
  line-height: 1;
  font-family: "Averta ExtraBold", sans-serif;
}

.block2-count-label {
  font-size: var(--block-label-size);
  font-weight: 700;
}

/* State 3 animations for Block 2 */
.scroll-blocks-section.state-3 .block-2-state3 .block2-title {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scroll-blocks-section.state-3 .block-2-state3 .block2-count {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.block-rates {
  background: #ffa96b;
}

/* ============================================
   Block Content Layers
   ============================================ */

.block-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  padding: 16px;
  box-sizing: border-box;
}

/* State 1: Show only state-1-content by default */
.state-1-content {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   State 1 Content Styles
   ============================================ */

.block1-label {
  font-size: var(--block-label-size);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  transition:
    left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    font-size 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.block1-label-line {
  display: block;
}

/* Block 1: keep state-1-content visible during states 2-3 for smooth label movement */
/* .scroll-blocks-section.state-2 .block-statistics .state-1-content, */
.scroll-blocks-section.state-3 .block-statistics .state-1-content {
  opacity: 1;
  visibility: visible;
}

/* State 2: label moves to left-center */
/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-statistics .block1-label {
  left: var(--block1-pad, 32px);
  transform: translate(0, -50%);
  text-align: left;
}
*/

/* State 3: label moves to bottom-left */
.scroll-blocks-section.state-3 .block-statistics .block1-label {
  left: var(--block1-pad, 32px);
  top: calc(100% - var(--block-pad-y, var(--block1-pad, 32px)));
  transform: translate(0, -100%);
  text-align: left;
  flex-direction: row;
  gap: 6px;
}

.star-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.requests-text {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* ============================================
   State 2 Content Styles
   ============================================ */

/* Block 1: shared layout for States 2 and 3 (state-2-content stays visible in state 3) */
.block-statistics .state-2-content {
  padding: 0;
}

/* White icon box - appears with expanding animation in State 2 */
.block1-icon-box {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 64px;
  height: 64px;
  transform: translateY(-50%) scale(0);
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block1-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition:
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* State 2: icon box expands in on the right */
/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-statistics .block1-icon-box {
  transform: translateY(-50%) scale(1);
}
*/

/* State 3: icon box moves to top-right */
.scroll-blocks-section.state-3 .block-statistics .block1-icon-box {
  top: var(--block-pad-y, var(--block1-pad));
  width: 76px;
  height: 76px;
  transform: translateY(0) scale(1);
}

.scroll-blocks-section.state-3 .block-statistics .block1-icon {
  width: 54px;
  height: 54px;
}

/* Block 1 State 3: number pops in above the "Clients Sampled" label, bottom-left */
.block-1-state3 {
  padding: var(--padding-block) !important;
}

.block1-number {
  position: absolute;
  left: var(--block1-pad, 32px);
  bottom: calc(var(--block-pad-y, var(--block1-pad, 32px)) + 26px);
  font-size: var(--block-number-size);
  line-height: 1;
  font-family: "Averta ExtraBold", sans-serif;
  opacity: 0;
  transform: scale(0.4);
  transform-origin: left bottom;
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-blocks-section.state-3 .block-1-state3 .block1-number {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Block 3 State 1 - "Average Number" label
   ============================================ */

.block3-avg-label {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: var(--block-label-size);
  font-weight: 700;
  line-height: 1.25;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block3-avg-label-line {
  display: block;
}

/* Block 3: keep state-1-content visible during states 2-3 so the label can pop out itself */
/* .scroll-blocks-section.state-2 .block-rates .state-1-content, */
.scroll-blocks-section.state-3 .block-rates .state-1-content {
  opacity: 1;
  visibility: visible;
}

/* .scroll-blocks-section.state-2 .block-rates .block3-avg-label, */
.scroll-blocks-section.state-3 .block-rates .block3-avg-label {
  opacity: 0;
  transform: scale(0.5);
}

/* ============================================
   Block 3 State 2 - Two numbers in a row, count up
   ============================================ */
/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-rates .state-2-content {
  justify-content: space-around;
}
*/

.block3-number-1,
.block3-number-2 {
  font-size: var(--block-number-size);
  line-height: 1;
  font-family: "Averta ExtraBold", sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-rates .block3-number-1,
.scroll-blocks-section.state-2 .block-rates .block3-number-2 {
  opacity: 1;
  transform: scale(1);
}
*/

/* ============================================
   Block 3 State 3 - Corner labels
   ============================================ */
.scroll-blocks-section.state-3 .block-rates .block3-number-1 {
  position: absolute;
  opacity: 1;
  left: var(--block3-pad, 32px);
  top: calc(var(--block-pad-y, var(--block3-pad, 32px)) + 14px);
  transform: scale(1);
}

.scroll-blocks-section.state-3 .block-rates .block3-number-2 {
  position: absolute;
  opacity: 1;
  right: var(--block3-pad, 32px);
  bottom: calc(var(--block-pad-y, var(--block3-pad, 32px)) + 4px);
  transform: scale(1);
}

.block3-multiplier-label {
  position: absolute;
  top: var(--block-pad-y, var(--block3-pad, 32px));
  right: var(--block3-pad, 32px);
  max-width: 120px;
  text-align: left;
  font-size: var(--block-label-size);
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(40px) scale(0.4);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block3-roi-label {
  position: absolute;
  bottom: var(--block-pad-y, var(--block3-pad, 32px));
  left: var(--block3-pad, 32px);
  max-width: 100px;
  text-align: left;
  font-size: var(--block-label-size);
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-40px) scale(0.4);
  transition:
    opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block3-label-word {
  display: block;
}

.scroll-blocks-section.state-3 .block-rates .block3-multiplier-label,
.scroll-blocks-section.state-3 .block-rates .block3-roi-label {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   State 3 Content Styles
   ============================================ */

.block-3-top-left {
  position: absolute;
  top: 20px;
  left: 32px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.requests-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.requests-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #ecebeb;
  line-height: 1.3;
}

.chart-container {
  width: 100%;
  height: 260px;
  box-sizing: border-box;
}

.custom-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-label {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  white-space: nowrap;
}

.bar {
  width: 100%;
  max-width: 80px;
  border-radius: 12px 12px 4px 4px;
  height: 0;
  transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bar-1 {
  background: linear-gradient(180deg, #a8c8e8 0%, #c8d8e8 100%);
}

.bar-2 {
  background: linear-gradient(180deg, #5a9ecf 0%, #8ab8d8 100%);
}

.bar-3 {
  background: linear-gradient(180deg, #1b6fa0 0%, #3a8fc0 100%);
}

/* Block 2 State 3 */
.block-3-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.star-icon-wrapper.large .star-icon {
  width: 48px;
  height: 48px;
}

.lorem-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 12px 0 8px;
  line-height: 1.3;
}

.lorem-text {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: white;
  line-height: 1.5;
  max-width: 280px;
}

/* Block 3 State 3 */
.block-3-top-right {
  position: absolute;
  top: 20px;
  right: 32px;
}

.block-3-bottom-left {
  position: absolute;
  bottom: 20px;
  left: 32px;
  display: flex;
  flex-direction: column;
}

.count-up-number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.block-3-bottom-left .requests-text {
  text-align: left;
  font-size: 16px;
}

/* ============================================
   Block 2 / Block 3 State 3 - Shared Layout
   ============================================ */

.block-2-state3,
.block-3-state3 {
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: var(--padding-block) !important;
  gap: 0;
}

/* ============================================
   STATE 2: Medium expansion (scroll trigger 1)
   ============================================ */

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .scroll-blocks-container {
  gap: 16px;
}
*/

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .scroll-block {
  width: 100%;
  height: 140px;
  min-width: 0;
  min-height: 140px;
  max-width: 290px;
  border-radius: 24px;
  flex: 1;
}
*/

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .state-1-content {
  opacity: 0;
  visibility: hidden;
}
*/

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .state-2-content {
  opacity: 1;
  visibility: visible;
}
*/

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .state-3-content {
  opacity: 0;
  visibility: hidden;
}
*/

/* ============================================
   STATE 3: Full expansion (scroll trigger 2)
   ============================================ */

.scroll-blocks-section.state-3 .scroll-blocks-container {
  gap: 20px;
}

.scroll-blocks-section.state-3 .scroll-block {
  width: 100%;
  height: var(--block-height);
  min-width: 0;
  min-height: var(--block-height);
  /* max-width: 300px; */
  /* v6: blocks 1-3 narrower (still equal), block 4 (VOI) wider - see below */
  max-width: 260px;
  border-radius: 24px;
  flex: 1;
}

/* v6: Block 4 (VOI Calculator CTA) takes ~1.4x the width of blocks 1-3.
   Width is driven by flex share + max-width (flex itself isn't transitioned),
   so the State 1 -> 3 growth stays smooth. The tablet 2x2 grid and the
   mobile stacked layout override this further down, so they're unchanged. */
.scroll-blocks-section.state-3 .block-voi {
  flex: 1.4 1 0%;
  max-width: 400px;
}

/* Block 4 has no background -> no rounded corners clipping the illustration/text */
.scroll-blocks-section .block-voi,
.scroll-blocks-section.state-3 .block-voi {
  border-radius: 0;
}

.scroll-blocks-section.state-3 .state-1-content {
  opacity: 0;
  visibility: hidden;
}

/* Block 1: keep state-2-content visible during state-3 for smooth number movement */
.scroll-blocks-section.state-3 .block-statistics .state-2-content {
  opacity: 1;
  visibility: visible;
}

/* Block 2: keep state-2-content visible during state-3 for battery icon slide-up animation */
.scroll-blocks-section.state-3 .block-energy .state-2-content {
  opacity: 1;
  visibility: visible;
}

.scroll-blocks-section.state-3 .state-2-content {
  opacity: 0;
  visibility: hidden;
}

/* Block 3: keep state-2-content visible during state-3 for number float animation */
.scroll-blocks-section.state-3 .block-rates .state-2-content {
  opacity: 1 !important;
  visibility: visible !important;
}

.scroll-blocks-section.state-3 .state-3-content {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   STATE 1 -> STATE 3 directly (State 2 skipped) - reveal timing
   Everything starts together with the block expansion - holding the State 3
   content back read as a pause before it popped in. Only Block 2's avatars
   keep a small cascade (avatar 2 first, then avatar 3 slides out from under
   avatar 1) instead of the base 0.35s / 0.15s delays, which are meant for
   collapsing back to State 1.
   ============================================ */
.scroll-blocks-section.state-3 .block-energy .block2-avatar-2 {
  transition-delay: 0s;
}

.scroll-blocks-section.state-3 .block-energy .block2-avatar-3 {
  transition-delay: 0.1s, 0.1s, 0s, 0s;
}

/* ============================================
   Block 4: VOI Calculator CTA
   State 1: illustration centered
   State 2: illustration slides right, "VOI Calculator" label pops in left
   State 3: illustration settles bottom-right (then floats), label pops out,
            description rises in top-left, CTA bounces in bottom-left (then shines)
   ============================================ */
.block-voi {
  /* background: #1b1d35; */
  /* color: #ffffff; */
  /* v6: no fill, no border */
  /* border: 2px solid #1b1d35; */
  color: #1b1d35;
  /* No background -> no inner padding, content sits flush with the box edges */
  --block4-pad: 0px;
  /* Lets the illustration size itself from this block's width (cqi units) */
  container-type: inline-size;
}

.block-voi .block-4-state3 {
  padding: 0;
}

/* Keep state-1-content visible in states 2-3 so the illustration can glide */
/* .scroll-blocks-section.state-2 .block-voi .state-1-content, */
.scroll-blocks-section.state-3 .block-voi .state-1-content {
  opacity: 1;
  visibility: visible;
}

.block4-illustration {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Block 4 has no background -> no padding, illustration fills the whole box */
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition:
    left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block4-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* State 2: illustration moves to right-center */
/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-voi .block4-illustration {
  left: calc(100% - var(--block4-pad));
  transform: translate(-100%, -50%);
}
*/

/* State 3: illustration settles flush in the bottom-right corner (no padding) */
.scroll-blocks-section.state-3 .block-voi .block4-illustration {
  left: 100%;
  top: 100%;
  width: 108px;
  height: 108px;
  transform: translate(-100%, -100%);
}

/* .scroll-blocks-section.state-3 .block-voi .block4-img {
  animation: block4-float 3.2s ease-in-out 1s infinite;
} */

@keyframes block4-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

/* State 2 label */
.block4-label {
  position: absolute;
  left: var(--block4-pad);
  top: 50%;
  display: flex;
  flex-direction: column;
  font-size: var(--block-label-size);
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translate(-20px, -50%) scale(0.6);
  transform-origin: left center;
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block4-label-line {
  display: block;
}

.block4-label-accent {
  color: #ffa96b;
}

/* [State 2 skipped - State 1 now goes straight to State 3]
.scroll-blocks-section.state-2 .block-voi .block4-label {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
  transition-delay: 0.25s;
}
*/

/* State 3 content */
.block4-desc {
  position: absolute;
  left: var(--block4-pad);
  /* Stop before the illustration (bottom-right) so the text stays in the top-left */
  right: 32%;
  top: var(--block4-pad);
  margin: 0;
  font-size: var(--block-label-size);
  font-weight: 700;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block4-desc-accent {
  color: #f47920;
  text-decoration: none;
}

.block4-desc-accent:hover,
.block4-desc-accent:focus-visible {
  color: #f47920;
  text-decoration: underline;
}

.block-voi .block4-cta {
  position: absolute;
  left: var(--block4-pad);
  bottom: var(--block4-pad);
  z-index: 3;
  overflow: hidden;
  padding: 9px 16px;
  font-size: 13px;
  line-height: 1.2;
  /* Orange button + white text; hover flips to white bg / orange text */
  background-color: #f47920;
  border: 2px solid #f47920;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px) scale(0.6);
  transform-origin: left bottom;
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s linear,
    color 0.2s linear,
    border-color 0.2s linear;
}

.block-voi .block4-cta:hover {
  background-color: #ffffff;
  color: #f47920;
  border-color: #f47920;
}

/* Shine sweep across the CTA (runs only once state 3 is reached) */
.block-voi .block4-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.scroll-blocks-section.state-3 .block-voi .block4-desc {
  opacity: 1;
  transform: translateY(0);
  /* transition-delay: 0.3s; */
  /* State 2 skipped: shorter wait so it doesn't read as a pause */
  transition-delay: 0.1s;
}

.scroll-blocks-section.state-3 .block-voi .block4-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
  /* transition-delay: 0.5s, 0.5s, 0s, 0s, 0s; */
  /* State 2 skipped: still lands last, just without the long wait */
  transition-delay: 0.25s, 0.25s, 0s, 0s, 0s;
}

.scroll-blocks-section.state-3 .block-voi .block4-cta::after {
  animation: block4-shine 3.5s ease-in-out 1.4s infinite;
}

@keyframes block4-shine {
  0% {
    left: -75%;
  }
  35%,
  100% {
    left: 130%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-blocks-section.state-3 .block-voi .block4-img,
  .scroll-blocks-section.state-3 .block-voi .block4-cta::after {
    animation: none;
  }
}

/* ============================================
   Stat Counter Section
   ============================================ */

.stat-counter-section {
  background: #fff;
  padding: 80px 0;
}

.stat-counter-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.stat-counter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-family: "Averta ExtraBold", sans-serif;
}

.stat-number {
  line-height: 1;
  color: #f47920;
}

.stat-counter-text {
  font-size: 24px;
  line-height: 1.6;
  margin: 0 auto;
  font-weight: 700;
}

/* ============================================
   Wellable Way Section
   ============================================ */
.wellable-way-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.wellable-way-list {
  margin: 16px 0 0;
  padding-left: 40px;
}

.wellable-way-list li {
  font-weight: 600;
  line-height: 1.8;
}

.info-tooltip {
  text-decoration: none;
}

.info-tooltip .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f47920;
  color: #fff;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0px 3px 4px 0px #00000040;
}

/* Card fills its column so both cards stay equal height */
.wellable-way-col {
  display: flex;
  flex-direction: column;
}

/* Title at the top of each card, above the screenshot */
.wellable-way-card-title {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 20px;
  text-align: center;
}

.wellable-way-col > .wellable-way-card {
  flex: 1 1 auto;
  height: auto;
}

.wellable-way-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 64px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.wellable-way-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  margin-bottom: 20px;
}

.wellable-way-card-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.wellable-way-card-icon {
  position: absolute;
  right: 24px;
  bottom: 24px;
  margin: 0 !important;
}

/* v6: more space between the Wellable Way and Wellable Effect sections */
#scrollBlocksSection {
  margin-top: 48px;
}


/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (min-width: 525px) and (max-width: 835px) {
  /* Block 1 */
  .block1-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .block1-icon {
    width: 38px;
    height: 38px;
  }

  .scroll-blocks-section.state-3 .block-statistics .block1-icon-box {
    width: 90px;
    height: 90px;
  }

  .scroll-blocks-section.state-3 .block-statistics .block1-icon {
    width: 54px;
    height: 54px;
  }
}

/* Desktop (single row): shorter blocks to cut the empty space inside blocks 1-3,
   avatars re-centered for the shorter Block 2, bigger illustration in Block 4.
   Tablet 2x2 grid / mobile stack keep their own heights. */
@media (min-width: 1025px) {
  :root {
    --block-height: 190px;
    --block2-avatar-state3-size: 48px;
    --block2-avatar-state3-offset-x: 42px;
    --block2-avatar-state3-offset-y: -10px;
    /* Vertical padding of blocks 1-3 (x padding keeps --block1-pad/--block3-pad) */
    --block-pad-y: 16px;
  }

  .block-2-state3 {
    padding: var(--block-pad-y) 24px !important;
  }

  .scroll-blocks-section.state-3 .block-voi .block4-illustration {
    width: 160px;
    height: 160px;
  }

  /* Keep the description readable if the larger illustration brushes it */
  .block4-desc {
    z-index: 3;
    /* Shorter block -> keep the 4-line description clear of the illustration */
    right: 35%;
    /* Cap the width so "your" wraps down: "wellness program for" / "your company today" */
    max-width: 180px;
  }

  /* v6: block 4 text sits further from block 3 (desktop only) */
  .block4-desc,
  .block-voi .block4-cta {
    left: 24px;
  }
}

/* Narrow desktop: the VOI block is too narrow for the 160px illustration
   (it covered the end of the description) -> smaller illustration, and the
   text stops just left of it */
@media (min-width: 1025px) and (max-width: 1130px) {
  .scroll-blocks-section.state-3 .block-voi .block4-illustration {
    width: 145px;
    height: 145px;
  }

  .block4-desc {
    right: 129px;
  }
}

/* 4 blocks don't fit in one row on tablets -> 2x2 grid in states 2-3
   (state 1 squares still fit in a single row) */
@media (min-width: 686px) and (max-width: 1024px) {
  /* .scroll-blocks-section.state-2 .scroll-blocks-container, */
  .scroll-blocks-section.state-3 .scroll-blocks-container {
    flex-wrap: wrap;
    gap: 20px 36px;
  }

  /* .scroll-blocks-section.state-2 .scroll-block, */
  .scroll-blocks-section.state-3 .scroll-block {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 10px);
  }
  /* Shorter 2x2 cells + less vertical padding to cut the empty space */
  :root {
    --block-height: 192px;
    --block-pad-y: 18px;
    /* All block texts (labels + VOI description) share one size:
       16px on narrow tablets -> 18px at 1024px (wide cells fill better) */
    --block-label-size: clamp(16px, 1.8vw, 18px);
    /* px (not %) so the avatar row centers between the title and the count */
    --block2-avatar-state3-offset-y: -10px;
  }

  .block-2-state3 {
    padding: var(--block-pad-y) 24px !important;
  }

  /* Block 3: wide cell left a big hole between the diagonal corners ->
     two rows instead, each number + its label vertically centered on the
     same line: "1.50x  Average Retention Multiplier" / "9.82x  Average ROI".
     Rows sit at 30% / 70% of the block height (translateY(-50%) centers them) */
  .scroll-blocks-section.state-3 .block-rates .block3-number-1,
  .scroll-blocks-section.state-3 .block-rates .block3-number-2 {
    left: var(--block3-pad);
    right: auto;
    bottom: auto;
    transform: translateY(-50%) scale(1);
    transform-origin: left center;
  }

  .scroll-blocks-section.state-3 .block-rates .block3-number-1,
  .block3-multiplier-label {
    top: 30%;
  }

  .scroll-blocks-section.state-3 .block-rates .block3-number-2,
  .block3-roi-label {
    top: 70%;
  }

  /* Labels share one column right after the numbers */
  .block3-multiplier-label,
  .block3-roi-label {
    left: calc(var(--block3-pad) + 116px);
    right: var(--block3-pad);
    bottom: auto;
    max-width: none;
    line-height: 1.3;
  }

  .scroll-blocks-section.state-3 .block-rates .block3-multiplier-label,
  .scroll-blocks-section.state-3 .block-rates .block3-roi-label {
    transform: translateY(-50%) scale(1);
  }

  .block3-label-word {
    display: inline;
  }

  .block4-desc {
    z-index: 3;
  }

  /* Illustration scales with the cell width: 135px on narrow tablets ->
     180px on wide ones (kept under the 192px block height) */
  .scroll-blocks-section.state-3 .block-voi .block4-illustration {
    width: 135px;
    height: 135px;
    width: clamp(135px, 40cqi, 180px);
    height: clamp(135px, 40cqi, 180px);
  }
}

@media (max-width: 1024px) {
  :root {
    --padding-block: 30px 20px;
  }

  .block1-icon-box {
    right: var(--block3-pad); /* same side padding as blocks 2-3 */
  }

  .block1-number,
  .scroll-blocks-section.state-3 .block-statistics .block1-label {
    left: var(--block3-pad);
  }
}

@media (min-width: 768px) and (max-width: 1224px) {
  .info-tooltip-1.tooltip-right {
    --tt1-offset: calc(50vw - 620px);
  }
}

/* Tablet and below (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --padding-block: 26px 20px;
    --block-number-size: 36px;
    --block1-pad: 26px;
  }

  /* Analysis Section */
  .analysis-section .container-analysis-section {
    background-size: cover;
    height: auto;
    padding: 26px 18px;
  }

  .analysis-header {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }

  .analysis-title {
    font-size: 24px;
  }

  .analysis-stats {
    flex-direction: column;
    gap: 20px;
  }

  .analysis-stat-divider {
    width: 60px;
    height: 1px;
  }

  .analysis-stat-value {
    font-size: 32px;
  }

  /* Scroll Blocks */
  .scroll-block {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }

  /* [State 2 skipped - State 1 now goes straight to State 3]
  .scroll-blocks-section.state-2 .scroll-block {
    width: 100%;
    height: 140px;
    min-width: 0;
    min-height: 140px;
    transition:
      width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      min-width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      min-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      max-width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      border-radius 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
      flex 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  */

  .count-up-number {
    font-size: 36px;
  }

  .lorem-text {
    max-width: 200px;
  }

  /* Stat Counter Section */
  .stat-counter-container {
    gap: 24px;
  }

  /* Wellable Way Section */
  .wellable-way-list li {
    font-size: 16px;
  }

  .wellable-way-card {
    padding: 24px 20px 56px;
  }

  .wellable-way-card-media {
    height: 380px;
  }

  .wellable-way-card-icon {
    right: 20px;
    bottom: 20px;
  }

  .wellable-way-card-title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .scroll-blocks-section.state-3 .scroll-blocks-container {
    gap: 20px 36px;
  }
}

/* Tablet: 2x2 grid in EVERY state (State 1 squares sit 2 per row too), so
   State 3 only grows the blocks in place. Switching from one row to 2x2 at
   State 3 made the blocks re-wrap mid-animation (4 -> 3+1 -> 2+2) and jump
   between rows, which flickered.
   The zero-height ::after item forces the line break between blocks 1-2 and
   3-4; its 20px height replaces the row gap (row-gap 0 so it isn't doubled).
   Placed after the max-width: 768px query so its row-gap wins there too. */
@media (min-width: 686px) and (max-width: 1024px) {
  .scroll-blocks-container,
  .scroll-blocks-section.state-3 .scroll-blocks-container {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .scroll-blocks-container::after {
    content: "";
    flex: 0 0 100%;
    height: 20px;
    order: 1;
  }

  .scroll-block[data-block="3"],
  .scroll-block[data-block="4"] {
    order: 2;
  }
}

@media (max-width: 685px) {
  :root {
    /* Shorter stacked blocks + less vertical padding to cut the empty space */
    --block-height: 206px;
    --block-pad-y: 22px;
    --block-number-size: 40px;
    /* Stacked full-width blocks have lots of room -> bigger texts (labels + VOI desc) */
    --block-label-size: 20px;
    /* px (not %) so the avatar row centers between the title and the count */
    --block2-avatar-state3-offset-y: -8px;

    --padding-block: 30px 32px;
    --block1-pad: 30px;
  }

  .block-2-state3 {
    padding: var(--block-pad-y) 32px !important;
  }

  /* Block 3: "Average ROI" on one line */
  .block3-roi-label {
    max-width: none;
    white-space: nowrap;
  }

  .block3-roi-label .block3-label-word {
    display: inline;
  }

  /* "Average Retention Multiplier": explicit line breaks (not auto-wrap) so the
     label box is exactly as wide as its longest line -> it hugs the right edge
     while the text stays left-aligned. 2 lines here ("Average Retention" /
     "Multiplier"), 3 lines on small phones (see max-width: 359px below) */
  .block3-multiplier-label {
    max-width: none;
    width: max-content;
  }

  .block3-multiplier-label .block3-label-word {
    display: inline;
  }

  .block3-multiplier-label .block3-label-word:last-child {
    display: block;
  }

  /* VOI block keeps a bit more height: its 20px description wraps to ~5 lines
     in the narrow column left of the illustration */
  .scroll-blocks-section.state-3 .block-voi {
    height: 220px;
    min-height: 220px;
  }
  /* Scroll Blocks */
  .scroll-blocks-container {
    flex-direction: column;
    gap: 16px;
  }

  /* Stacked layout: restore the wider (pre-v5-1) block widths */
  /* [State 2 skipped - State 1 now goes straight to State 3]
  .scroll-blocks-section.state-2 .scroll-block {
    max-width: 320px;
  }
  */

  .scroll-blocks-section.state-3 .scroll-blocks-container {
    gap: 28px;
  }

  .scroll-blocks-section.state-3 .scroll-block {
    max-width: 400px;
  }

  /* Bigger VOI CTA on mobile */
  .block-voi .block4-cta {
    font-size: 14px;
    padding: 12px 24px;
  }

  /* Illustration scales with the block width (max 400px): ~135px on small
     phones -> 176px on the full-width block */
  .scroll-blocks-section.state-3 .block-voi .block4-illustration {
    width: 135px;
    height: 135px;
    width: clamp(130px, 44cqi, 176px);
    height: clamp(130px, 44cqi, 176px);
  }

  .block1-icon-box {
    right: 32px;
  }

  .block1-number,
  .scroll-blocks-section.state-3 .block-statistics .block1-label {
    left: var(--block1-pad, 32px);
  }

  .stat-counter-text {
    font-size: 20px;
  }
}

@media (min-width: 481px) and (max-width: 620px) {
  /* Block 1 */
  .block1-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    right: 32px;
  }

  .block1-icon {
    width: 34px;
    height: 34px;
  }

  .scroll-blocks-section.state-3 .block-statistics .block1-icon {
    width: 48px;
    height: 48px;
  }

  .block1-number {
    bottom: calc(var(--block1-pad, 32px) + 30px);
  }
}

/* Small phones: "Average Retention" no longer fits next to "1.50x" -> one word per line */
@media (max-width: 359px) {
  .block3-multiplier-label .block3-label-word {
    display: block;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  :root {
    --padding-block: 30px 32px;
    --block1-pad: 32px;
  }

  .wellable-way-card-title {
    font-size: 24px;
  }

  /* Scroll Blocks */
  .scroll-block {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
  }

  /* Block 1 */
  .block1-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  .block1-icon {
    width: 32px;
    height: 32px;
  }

  .scroll-blocks-section.state-3 .block-statistics .block1-icon-box {
    width: 86px;
    height: 86px;
  }

  .scroll-blocks-section.state-3 .block-statistics .block1-icon {
    width: 56px;
    height: 56px;
  }
}

/* Small phones: same VOI description width cap as desktop */
@media (max-width: 420px) {
  .block4-desc {
    max-width: 180px;
  }
}

/* Small phones: the screenshot scales down below the fixed 380px box and left
   empty space above/below it -> let the box hug the image instead */
@media (max-width: 524.98px) {
  .wellable-way-card-media {
    height: auto;
  }
}
