/* "How I review" (Faiq, 3 Dec 2026), after Tammi's story: the hero's device carries on, stays pinned, and shows Great
   Eastern's real store at its own screen size, a full screen first, then zooms to what is wrong as the page scrolls.
   Each step pairs what buyers across the market say (a numeral, a theme, one quote, labelled "any insurer") with what I
   found on Great Eastern (a title and the rule it breaks). Minimal text: on a phone and a tablet the two take turns in
   one slot under the device; on a desktop they stand either side of it. review.js builds it from data/review.json.
   Without motion (reduced motion, no GSAP) it is a plain list after the hero. */

/* ---------- the static list (and the source of the panels when the story plays) ---------- */
.rv {
  padding: clamp(56px, 9vw, 120px) 0;
}
.rv-steps {
  display: grid;
  gap: clamp(56px, 8vw, 110px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.rv-fig {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.rv-fig {
  aspect-ratio: 2752 / 2064;
}
/* (the screen as the device shows it: a long page is shown at its marked part) */
.rv-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--fy, 0%);
}
.rv-fig .rv-box {
  opacity: 1;
}
@media (max-width: 699px) {
  .rv-fig {
    max-width: 340px;
    margin-inline: auto;
    border-radius: 28px;
    aspect-ratio: 1206 / 2622;
  }
  .rv-fig img {
    object-position: 50% var(--fy-m, 0%);
  }
  .rv-fig .rv-box {
    display: none;
  }
}

/* ---------- the evidence: buyers (left) and Great Eastern (right) ---------- */
.rv-k {
  margin: 0 0 12px;
  font: 700 12px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- the mark on a screenshot: a box round what is wrong, its number on the corner ---------- */
.rv-box {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  width: calc(var(--w) * 100%);
  height: calc(var(--h) * 100%);
  border: calc(2.5px / var(--z, 1)) solid #ec4232;
  border-radius: calc(8px / var(--z, 1));
  background: rgb(236 66 50 / 0.08);
  box-shadow: 0 0 0 calc(4px / var(--z, 1)) rgb(236 66 50 / 0.2);
  opacity: 0;
  pointer-events: none;
}
.rv-box b {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  translate: -50% -50%;
  scale: calc(1 / var(--z, 1));
  border-radius: 50%;
  background: #d4382a; /* (a shade under the box's red: white numbers at 4.8:1) */
  color: #fff;
  font: 700 13px/1 var(--sans);
  box-shadow: 0 0 0 2.5px #fff, 0 4px 12px rgb(0 0 0 / 0.35);
}

/* ---------- the story: everything inside the pinned hero ---------- */
/* the screenshots, over the splash on the device's own screen */
.rv-shots {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  visibility: hidden;
  opacity: 0;
}
.rv-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  visibility: hidden;
  opacity: 0;
}
.rv-pan {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.rv-pan img {
  display: block;
  width: 100%;
  height: auto;
  translate: none; /* (not the splash logo's nudge from hero.css) */
}

/* the heading over the device (Faiq, 3 Dec 2026, as Tammi's): what the section is, and the set of standards in view,
   one name at a time */
.rv-top {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: clamp(14px, 3.4svh, 34px);
  width: min(92vw, 900px);
  translate: -50% 0;
  text-align: center;
  visibility: hidden;
  opacity: 0;
}
.rv-k {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 13px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.rv-k .ph-tag { letter-spacing: 0; text-transform: none; }
.rv-names {
  display: grid;
  margin: 0;
  font: 700 clamp(28px, 3.4vw, 50px) / 1.05 var(--sans);
  letter-spacing: -0.035em;
}
.rv-names span {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
}

/* the steps: in the story only their notes show, on the stage */
.ahero.rv-live .rv-steps {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  pointer-events: none;
}
.ahero.rv-live .rv-step { display: block; }
.ahero.rv-live .rv-fig,
.ahero.rv-live .rv-fam { display: none; }
.ahero.rv-live .rv-pt,
.ahero.rv-live .rv-more,
.ahero.rv-live .rv-end {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  pointer-events: auto;
}
/* a problem: its number (the same as on its box), the rule, what the store does */
.rv-pt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.rv-pt > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4382a;
  color: #fff;
  font: 700 14px/1 var(--sans);
  font-style: normal;
}
.rp-rule {
  margin: 3px 0 8px;
  font: 700 clamp(17px, 1.45vw, 21px) / 1.2 var(--sans);
  letter-spacing: -0.01em;
}
.rp-find {
  margin: 0;
  font: 400 clamp(15px, 1.2vw, 18px) / 1.45 var(--sans);
  color: var(--fg-2);
  text-wrap: pretty;
}
.rv-more {
  margin: 0;
  font: 500 15px/1.3 var(--sans);
  color: var(--fg-3);
}
/* desktop: problem 1 left of the device, problem 2 right of it, level with its middle; "+N more" under it */
.ahero.rv-live .rv-pt {
  top: var(--dev-mid, 50%);
  width: var(--side, 280px);
  translate: 0 -50%;
}
.ahero.rv-live .rv-pt[data-p="0"] { left: var(--pl, var(--gutter)); }
.ahero.rv-live .rv-pt[data-p="1"] { left: var(--pr, auto); }
.ahero.rv-live .rv-more {
  left: 0;
  right: 0;
  top: var(--dev-b, 90%);
  text-align: center;
}
/* below a desktop: the two take turns in one slot under the device */
@media (max-width: 899px), (max-height: 599px) {
  .ahero.rv-live .rv-pt[data-p] {
    /* (right under the device and its "+N more", so no gap opens on a tall screen) */
    top: calc(var(--dev-b, 70%) + 30px);
    left: var(--gutter);
    right: var(--gutter);
    bottom: auto;
    width: auto;
    translate: none;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--raise);
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .rv-names { font-size: clamp(26px, 7.4vw, 36px); }
  .rv-k { font-size: 12px; margin-bottom: 6px; }
  .rp-rule { font-size: 17px; margin-bottom: 4px; }
  .rp-find { font-size: 15px; }
}

/* (desktop) the three numbers, brought into the stage for the hand-off */
.rv-cards {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  visibility: hidden;
  opacity: 0;
}
#numbers.is-moved,
#research-pv.is-moved,
#bench.is-moved { display: none; }
/* (desktop) the ending, in the stage: it fills it, unseen until the story brings it in */
.ahero > .fin {
  position: absolute;
  inset: 0;
  z-index: 8;
  min-height: 0;
  border-top: 0;
  visibility: hidden;
  opacity: 0;
}
.ahero > .fin .fin-shot { transition: none; }
/* (desktop) the benchmark, on the grown surface */
.rv-bench {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  align-content: center;
  visibility: hidden;
  opacity: 0;
}
.rv-bench .bm-wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.rv-bench .bm-fill { transition: none; }
/* (desktop) what buyers say, in the stage; the surface that grows from the middle card into its panel */
.rv-voice {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  align-content: center;
  visibility: hidden;
  opacity: 0;
}
.rv-morph {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: var(--raise);
  visibility: hidden;
  pointer-events: none;
  will-change: clip-path;
}
/* (the devices move every frame of the story: each on its own layer, so moving it repaints nothing) */
.ahero.rv-live .ahero-device,
.ahero.rv-live .ahero-phone { will-change: transform; }
/* (the giant word and the signature fade and lift as the story starts; the cards rise in: each on its own layer, so
   their text is drawn once, not on every frame) */
.ahero.rv-live .ahero-lock,
.ahero.rv-live .ahero-sig,
.rv-cards .nm-list > li { will-change: transform, opacity; }

/* the end: where to go next */
.rv-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}
.ahero.rv-live .rv-end {
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(22px, 5svh, 56px);
}
.rv-end a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 17px/1.2 var(--sans);
  color: var(--fg);
  text-decoration: none;
}
.rv-end a b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rv-end a::after {
  content: '→';
  transition: translate 0.3s var(--ease);
}
.rv-end a:hover::after {
  translate: 4px 0;
}
/* (the list's own section is emptied while the story plays) */
.rv.is-moved {
  display: none;
}

/* ---------- the end, on the device's screen: the splash's red, the count, the severity, one button ---------- */
.rv-endcard {
  position: absolute;
  inset: 0;
  z-index: 20;
  container-type: size;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 90% at 18% 0%, #f5373d 0%, #dd141c 42%, #b00c14 100%);
  color: #fff;
  visibility: hidden;
  opacity: 0;
  pointer-events: auto;
}
.ec-in {
  display: grid;
  justify-items: start;
  gap: 6cqmin;
  width: 74cqw;
}

.rv-endcard .ec-btn {
  min-height: 9cqmin;
  padding: 0 5cqmin;
  border-radius: 2.6cqmin;
  font-size: 3.6cqmin;
}
/* (in the iPhone's tall screen the summary reads larger and its button spans it) */
@container (max-aspect-ratio: 3/4) {
  .ec-in { gap: 7cqw; width: 82cqw; }
  
  
  
  
  
  .rv-endcard .ec-btn { width: 100%; min-height: 13cqw; font-size: 5.4cqw; border-radius: 4cqw; }
}

/* the end card: the four standards, then the button */
.ec-std {
  display: grid;
  gap: 1.4cqmin;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 6.4cqmin / 1.05 var(--sans);
  letter-spacing: -0.03em;
}
@container (max-aspect-ratio: 3/4) {
  .ec-std { font-size: 9cqw; gap: 2.4cqw; }
}

/* the plain list (no motion): per step, the standard's name, its screen, its two problems */
.rv-fam {
  margin: 0;
  font: 700 clamp(26px, 3vw, 40px) / 1.1 var(--sans);
  letter-spacing: -0.03em;
}
@media (min-width: 900px) {
  .rv:not(.is-moved) .rv-step {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(200px, 1fr);
    grid-template-areas: "fam fam fam" "p0 fig p1" "more more more";
  }
  .rv-step .rv-fam { grid-area: fam; text-align: center; }
  .rv-step .rv-pt[data-p="0"] { grid-area: p0; }
  .rv-step .rv-pt[data-p="1"] { grid-area: p1; }
  .rv-step .rv-more { grid-area: more; text-align: center; }
}
