/* ==========================================================================
   Peeranha – landing page (home.html only)
   Figma: "landing – desktop" 89:701 · "landing – mWeb (final)" 89:1142
   Uses tokens from peeranha-tokens.css and components from peeranha-components.css.
   Hero artwork: CSS manuscript stack (no image). Tile videos: static/video/reviewer.mp4, editor.mp4.
   Until a file exists, a flat brand colour shows instead.
   ========================================================================== */

/* ---------- Shared section frame ---------- */
.section { padding: var(--space-30) var(--space-18); scroll-margin-top: var(--nav-height); }
.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.section__content { display: flex; flex-direction: column; gap: var(--space-10); }
.section__intro { display: flex; flex-direction: column; gap: var(--space-4); }
.section__intro--tight { gap: 0.625rem; }
.section__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section__subtitle { font-size: var(--font-size-lg); line-height: var(--line-height-body); color: var(--neutral-700); }

/* Small uppercase label above a section ("WHO IT'S FOR") */
.section-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.section-label--inverse { color: var(--neutral-100); }

/* Extra-large button used across the landing (18px, 16×24 padding) */
.button--xl {
  min-width: 9.75rem;
  padding: calc(var(--space-4) - 1px) calc(var(--space-6) - 1px);
  font-size: var(--font-size-lg);
}
.button--inverse { background: var(--neutral-100); color: var(--neutral-900); }
.button--inverse:hover { background: var(--deep-indigo-100); }

/* ---------- Promo banner ---------- */
.promo {
  padding: var(--space-4) var(--gutter);
  background: var(--deep-indigo-600);
  color: var(--neutral-100);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
}
/* Same content width as the header and sections */
.promo__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
/* Text is centred on the whole bar: the left padding mirrors the ✕ and its gap */
.promo__link { flex: 1; padding-left: calc(24px + var(--space-4)); color: inherit; text-align: center; text-decoration: none; }
.promo__link strong { font-weight: var(--font-weight-semibold); }
.promo__cta { font-weight: var(--font-weight-semibold); text-decoration: underline; text-underline-offset: 0.15em; }
.promo__link:hover .promo__cta { text-decoration-thickness: 2px; }
.promo__close {
  flex: none;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.promo__close:focus-visible, .promo__link:focus-visible { outline: 2px solid var(--neutral-100); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: var(--space-30) var(--space-18);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-10);
}
.hero__text { display: flex; flex-direction: column; gap: var(--space-10); max-width: 37.5rem; }
.hero__intro { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--deep-indigo-100);
  color: var(--deep-indigo-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
}
/* Live dot: pulses to draw the eye (Deep Indigo, with a soft halo) */
.tag__dot {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--deep-indigo-600);
}
.tag__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--deep-indigo-600);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .tag__dot { animation: dot-beat 1.6s ease-in-out infinite; }
  .tag__dot::after { animation: dot-halo 1.6s ease-out infinite; }
}
@keyframes dot-beat {
  0%, 100% { transform: scale(0.8); }
  50%      { transform: scale(1.15); }
}
@keyframes dot-halo {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.6); opacity: 0; }
}

.hero__title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__subtitle { font-size: var(--font-size-lg); line-height: var(--line-height-body); color: var(--neutral-700); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* Manuscript stack with the three notification cards (Figma 142:3549, 566×488).
   Each sheet is drawn flat, then laid down isometrically with the same matrix as Figma. */
.hero__artwork {
  position: relative;
  flex: none;
  width: 35.375rem;   /* 566 */
  height: 30.5rem;    /* 488 */
}
.stack {
  position: absolute;
  left: 1.5rem;        /* 24 */
  top: 6.5625rem;      /* 105 */
  width: 33.875rem;    /* 542: the laid-down pile's bounding box */
  height: 26.9375rem;  /* 431 */
}
.sheet {
  position: absolute;
  left: 19.16rem;                              /* 306.6: the sheet's top corner */
  top: calc((6 - var(--n)) * 1.475rem);        /* 23.6 between sheets */
  width: 16.9625rem;                           /* 271.4 */
  height: 22.125rem;                           /* 354 */
  border: 1px solid var(--sheet-edge);
  border-radius: var(--radius-lg);
  background: linear-gradient(to right, var(--from), var(--to));
  opacity: 0.92;
  box-shadow: var(--shadow-sheet);
  transform-origin: 0 0;
  transform: matrix(0.866, 0.5, -0.866, 0.5, 0, 0);
}
.sheet--1 { --n: 1; --from: var(--sheet-1-from); --to: var(--sheet-1-to); }
.sheet--2 { --n: 2; --from: var(--sheet-2-from); --to: var(--sheet-2-to); }
.sheet--3 { --n: 3; --from: var(--sheet-3-from); --to: var(--sheet-3-to); }
.sheet--4 { --n: 4; --from: var(--sheet-4-from); --to: var(--sheet-4-to); }
.sheet--5 { --n: 5; --from: var(--sheet-5-from); --to: var(--sheet-5-to); }
.sheet--6 { --n: 6; --from: var(--sheet-6-from); --to: var(--sheet-6-to); }

/* Notification column: final slots at 0 / 105 / 213 (Figma) */
.notifs {
  position: absolute;
  left: 7.8125rem;     /* 125 */
  top: 0.75rem;        /* 12 */
  width: 18.0625rem;   /* 289 */
}
.glass {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: calc(var(--space-3) - 1px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  color: var(--color-text);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-glass);
}
.glass--reviewer { top: 0; padding: calc(var(--space-2) - 1px); }
.glass--match { top: 6.5625rem; }     /* 105 */
.glass--payment { top: 13.3125rem; }  /* 213 */
.glass__muted { color: var(--color-text-secondary); }
.glass__person { display: flex; align-items: center; gap: var(--space-3); }
.glass__name { display: flex; flex-direction: column; gap: 2px; }
.glass--reviewer .glass__row { gap: var(--space-1-5); }
.glass--match .glass__row { gap: var(--space-1); }
.glass__row { display: flex; align-items: center; gap: var(--space-2); }
.glass__button {
  align-self: flex-start;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--deep-indigo-200);
  color: var(--deep-indigo-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
}
.glass__amount { display: flex; align-items: baseline; gap: var(--space-2); }
.glass__price { font-size: var(--font-size-2xl); font-weight: var(--font-weight-semibold); line-height: 1.3; }
.avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--deep-indigo-200);
  color: var(--deep-indigo-600);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* ---------- Trust strip ---------- */
.trust { padding: var(--space-5) var(--space-18); }
.trust__list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
}
.trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
  white-space: nowrap;
}
.trust__item img { flex: none; }

/* ---------- Who it's for ---------- */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10); }
.audience { display: flex; flex-direction: column; gap: var(--space-3); }
.audience__intro { display: flex; flex-direction: column; gap: var(--space-2); }
.audience__title { font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); line-height: 1.25; letter-spacing: -0.005em; }
.audience__subtitle { font-size: var(--font-size-lg); line-height: var(--line-height-body); color: var(--neutral-700); }
.audience__tile {
  flex: 1;
  display: flex;
  gap: var(--space-6);
  min-height: 20rem;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--neutral-200);
}
.audience__image {
  flex: 1 1 15rem;
  max-width: 15rem;
  border-radius: var(--radius-sm);
  background: var(--deep-indigo-200) center / cover no-repeat;
}
.audience__image { position: relative; overflow: hidden; }
.audience__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.audience__video[hidden] { display: none; }
.audience__text { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); }
.bullets {
  margin: 0;
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-body);
  color: var(--neutral-700);
}
.arrow-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  color: var(--neutral-900);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.arrow-link:hover { text-decoration-thickness: 2px; }
.arrow-link img { transition: transform 150ms ease; }
.arrow-link:hover img { transform: translateX(3px); }

/* ---------- The problem ---------- */
.stats { margin: 0; padding: 0; list-style: none; display: flex; gap: var(--space-4); }
.stat {
  flex: 1 1 0;
  max-width: 25rem;
  min-height: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-16);
}
.stat + .stat { padding-left: var(--space-4); border-left: 1px solid var(--neutral-300); }
.stat__number { font-size: var(--font-size-5xl); font-weight: var(--font-weight-semibold); line-height: 1.15; letter-spacing: -0.015em; }
.stat__caption { margin-top: calc(-1 * var(--space-5)); font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: 1.35; }
.stat__caption sup { font-size: 0.6em; }
.stat__caption sup a { color: inherit; text-decoration: none; }
.stat__detail { font-size: var(--font-size-md); line-height: var(--line-height-body); color: var(--neutral-700); }

/* ---------- How it works ---------- */
.how {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 15rem var(--space-18);
  background: var(--neutral-900);
  color: var(--neutral-100);
  scroll-margin-top: var(--nav-height);
}
/* Mesh gradient (Figma "Mesh – dark"): four blurred blobs, drawn as soft radial gradients
   (cheaper than blurring real shapes). It drifts slowly; see Motion. */
.how__mesh {
  position: absolute;
  inset: -10%;   /* larger than the section, so the slow drift never reveals an edge */
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(20.3% 26.6% at 20.3% 96.7%, var(--mesh-mist), transparent),
    radial-gradient(27.2% 44.6% at 92.6% 5.3%, var(--mesh-night) 30%, transparent),
    radial-gradient(27.8% 40.4% at 49.2% 92.5%, var(--mesh-bright) 20%, transparent),
    radial-gradient(34.7% 53% at 14.5% 77.6%, var(--mesh-blue) 25%, transparent);
}
.how__inner { gap: var(--space-30); }
.how__title {
  text-align: center;
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.how__content { display: flex; flex-direction: column; gap: var(--space-8); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
/* Each step is a dark glass panel over the mesh */
.step {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--glass-dark-bg);
  backdrop-filter: blur(var(--glass-dark-blur));
  -webkit-backdrop-filter: blur(var(--glass-dark-blur));
}
/* A thin light catches the top edge, drawing left to right, 01 → 04 (see Motion below) */
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--glass-dark-edge), transparent);
  transform-origin: left center;
}
.step__number, .step__title { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); line-height: 1.35; }
.step__text { font-size: var(--font-size-md); line-height: var(--line-height-body); }

/* ---------- Pricing ---------- */
.pricing { gap: var(--space-20); }
.pricing__note { margin: 0; font-size: var(--font-size-sm); color: var(--color-text-secondary); }
.pricing__top { display: flex; gap: var(--space-20); align-items: stretch; }
.pricing__intro { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-8); max-width: 37.5rem; }
.price-tiles { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.price-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  min-height: 12.5rem;
  padding: calc(var(--space-3) - 1px);
  border: 1px solid var(--neutral-100);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--deep-indigo-100) 30%, var(--deep-indigo-300));
  color: var(--neutral-900);
  text-decoration: none;
}
/* Hover: the tile stays still; only the arrow moves (rule below) */
.price-tile__number { font-size: var(--font-size-5xl); font-weight: var(--font-weight-semibold); line-height: 1.15; letter-spacing: -0.015em; }
.price-tile__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
  color: var(--neutral-700);
}
.price-tile__row img { flex: none; transition: transform 150ms ease; }
.price-tile:hover .price-tile__row img { transform: translateX(3px); }

/* Fee split bar */
.split { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); color: var(--deep-indigo-900); }
.split__header {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
}
.split__bar { display: flex; }
.split__part { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.split__part--reviewer { flex: 1 1 auto; }
/* Peeranha's share, but never narrower than its "to Peeranha" caption (small screens) */
.split__part--peeranha { flex: 0 0 max(calc(100% - var(--share)), 6rem); }
.split__fill {
  display: flex;
  padding: var(--space-3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.split__part--reviewer .split__fill { background: var(--neutral-900); color: var(--neutral-100); border: 1px solid var(--neutral-900); }
.split__part--peeranha .split__fill {
  justify-content: flex-end;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-900);
  border-left: 0;
  transition-delay: 450ms;
}
.split__label { font-size: var(--font-size-md); line-height: var(--line-height-body); white-space: nowrap; }
.split__part--peeranha .split__label { text-align: right; }
.split__value { transition: opacity 300ms ease 600ms; }
.split.is-waiting .split__fill { transform: scaleX(0); }
.split.is-waiting .split__value { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .split__fill, .split__value { transition: none; }
}

/* ---------- FAQ ---------- */
.home-faq { gap: var(--space-10); }
.home-faq .faq__list { width: 100%; }
.see-all {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  color: var(--neutral-900);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-label);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.see-all:hover { text-decoration-thickness: 2px; }

/* ---------- Callout ---------- */
.callout { padding: var(--space-16) var(--space-18); }
.callout__box {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-5) var(--space-6);   /* 20 / 24 (Figma 89:952) */
  border-radius: var(--radius-sm);
  background: var(--deep-indigo-600);
  color: var(--neutral-100);
}
.callout__title { flex: 1; min-width: 0; font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); line-height: 1.25; letter-spacing: -0.005em; }
/* Button: 12 / 16 padding, 16px label, at least 156px wide (Figma) */
.callout__button { flex: none; min-width: 9.75rem; padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); }

/* ---------- Sources ---------- */
.sources { padding: var(--space-5) var(--space-18); }
.sources p {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-body);
  color: var(--neutral-600);
}

/* ==========================================================================
   Tablet: stack the two-column blocks earlier
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__artwork { max-width: 100%; }
  .audiences { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing__top { flex-direction: column; gap: var(--space-10); }
  .price-tiles { width: 100%; }
  .stats { flex-wrap: wrap; }
  .stat { flex-basis: calc(50% - var(--space-4)); max-width: none; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ==========================================================================
   Mobile (mWeb frame, 390 wide)
   ========================================================================== */
@media (max-width: 767px) {
  .section { padding: var(--space-16) var(--gutter); }
  .section__title { font-size: var(--font-size-3xl); line-height: 1.25; letter-spacing: -0.005em; }
  .section__subtitle { font-size: var(--font-size-md); }

  .promo { padding: var(--space-3) var(--gutter); font-size: var(--font-size-xs); }
  .promo__inner { align-items: flex-start; gap: var(--space-3); }
  .promo__link { padding-left: 0; text-align: left; }

  .hero { padding: var(--space-6) var(--gutter) var(--space-16); }
  .hero__inner { gap: var(--space-8); }
  .hero__text { gap: var(--space-8); max-width: none; width: 100%; }
  .hero__title { font-size: var(--font-size-4xl); }
  .hero__subtitle { font-size: var(--font-size-md); }
  .hero__actions { flex-direction: column; gap: var(--space-3); width: 100%; }
  .hero__actions .button { width: 100%; }
  /* mWeb (Figma 142:3808, 358×200): the same pile at 41.7%, the cards take turns in one spot */
  .hero__artwork { width: 100%; height: 13.5rem; }
  .stack { left: 50%; top: 1.75rem; transform-origin: 50% 0; transform: translateX(-50%) scale(0.4175); }
  .notifs { left: 0; right: 0; top: 0; width: auto; display: grid; justify-items: center; }
  /* All three cards share the widest card's width (289, "A new manuscript matches your field") */
  .glass, .glass--reviewer, .glass--match, .glass--payment { position: relative; grid-area: 1 / 1; top: auto; left: auto; right: auto; width: 18.0625rem; max-width: 100%; }
  .glass--match .glass__row { white-space: nowrap; }

  .trust { padding: var(--space-4) 0; }
  .trust__list {
    justify-content: flex-start;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trust__list::-webkit-scrollbar { display: none; }
  .trust__item { font-size: var(--font-size-sm); }
  .trust__item img { width: 1.25rem; height: 1.25rem; }

  .audiences { gap: var(--space-8); }
  .audience__tile { flex-direction: column; min-height: 0; }
  .audience__image { flex: none; max-width: none; height: 12.5rem; }
  .audience__text { padding: 0 var(--space-2); }
  .bullets { font-size: var(--font-size-md); }

  .stats { flex-direction: column; gap: 0; }
  .stat, .stat + .stat { max-width: none; min-height: 12.5rem; justify-content: flex-end; padding: 0 0 var(--space-5); border-left: 0; }
  .stat__number { font-size: var(--font-size-3xl); line-height: 1.25; }

  .how { padding: 8rem var(--gutter); }
  .how__mesh {
    background:
      radial-gradient(60% 22% at 20% 98%, var(--mesh-mist), transparent),
      radial-gradient(70% 30% at 95% 2%, var(--mesh-night) 30%, transparent),
      radial-gradient(80% 25% at 60% 95%, var(--mesh-bright) 20%, transparent),
      radial-gradient(95% 40% at 10% 82%, var(--mesh-blue) 25%, transparent);
  }
  .how__inner { gap: var(--space-12); }
  .how__title { font-size: var(--font-size-4xl); }
  .steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .step { padding: var(--space-4); }

  .pricing { gap: var(--space-16); }
  .pricing__intro .button { width: 100%; }
  .price-tiles { grid-template-columns: 1fr; }
  .price-tile { min-height: 10rem; }
  .price-tile__number { font-size: var(--font-size-4xl); }
  .split__header { flex-direction: column; gap: var(--space-1); }
  .split__label { font-size: var(--font-size-sm); }


  .callout { padding: var(--space-12) var(--gutter); }
  .callout__box { flex-direction: column; align-items: stretch; gap: var(--space-6); padding: var(--space-5); }   /* 20 all round (Figma 89:1360) */
  .callout__title { font-size: var(--font-size-xl); line-height: 1.35; letter-spacing: 0; }
  .callout__button { width: 100%; padding: calc(var(--space-4) - 1px) calc(var(--space-6) - 1px); }   /* 16 / 24 */

  .sources { padding: var(--space-5) var(--gutter) var(--space-8); }
}

/* Keep each person in frame when the landscape clip is cropped to the tile */
.audience__image--reviewer .audience__video { object-position: 22% center; }
.audience__image--editor .audience__video { object-position: 55% center; }

/* ==========================================================================
   Motion (all of it is off with prefers-reduced-motion)
   .is-visible / .is-paused are set by static/js/peeranha-motion.js.
   Content is only hidden once that script has marked the page (.motion-ready),
   so nothing disappears if JavaScript fails.
   Curves and durations are tokens (--ease-out, --ease-in-out, --ease-drawer).
   Only transform/translate/scale, opacity and filter are animated.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Content landing on scroll ([data-reveal]) lives in peeranha-components.css (all pages) */

  /* 3. How it works: the light on each panel's top edge draws in order */
  .motion-ready .steps .step::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }
  .motion-ready .steps.is-visible .step::before { transform: none; }

  /* How it works: the mesh drifts very slowly (paused off screen by peeranha-motion.js) */
  .how__mesh { animation: mesh-drift 24s ease-in-out infinite alternate; }
  .how__mesh.is-paused { animation-play-state: paused; }

  /* Hero text: fades up softly on load */
  .hero__intro > *, .hero__actions {
    animation: hero-in 900ms var(--ease-out) both;
  }
  .hero__intro > :nth-child(1) { animation-delay: 80ms; }
  .hero__intro > :nth-child(2) { animation-delay: 160ms; }
  .hero__intro > :nth-child(3) { animation-delay: 260ms; }
  .hero__actions { animation-delay: 380ms; }

  /* Hero stack: the sheets settle onto the pile from the bottom up */
  .sheet {
    animation: sheet-in var(--duration-enter) var(--ease-out) backwards;
    animation-delay: calc(250ms + (var(--n) - 1) * 80ms);
  }

  /* Hero cards, desktop: each one lands in the bottom slot and pushes the earlier ones up.
     Card 1 at 1.3s, card 2 at 2.4s, card 3 at 3.5s; a push takes 550ms. */
  .glass--reviewer { animation: notif-1 2800ms linear 1300ms backwards; }
  .glass--match    { animation: notif-2 1700ms linear 2400ms backwards; }
  .glass--payment  { animation: notif-3 600ms var(--ease-drawer) 3500ms backwards; }

  /* "Join as a …" links: the arrow travels left to right and the text is uncovered behind it.
     --text-w (text width + gap) is measured by peeranha-motion.js */
  .motion-ready .arrow-link .arrow-link__text { clip-path: inset(0 100% 0 0); transition: clip-path 700ms cubic-bezier(0.6, 0, 0.2, 1) 300ms; }
  .motion-ready .arrow-link img { transform: translateX(calc(-1 * var(--text-w, 0px))); transition: transform 700ms cubic-bezier(0.6, 0, 0.2, 1) 300ms; }
  .motion-ready .arrow-link.is-visible .arrow-link__text { clip-path: inset(0 0 0 0); }
  .motion-ready .arrow-link.is-visible img { transform: none; }
  .motion-ready .arrow-link.is-visible:hover img { transform: translateX(3px); transition-delay: 0ms; transition-duration: 150ms; }
}

/* Hover on the artwork (mouse only): the pile breathes apart a little */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .sheet { transition: translate 600ms var(--ease-drawer); }
  .hero__artwork:hover .sheet { translate: 0 calc((var(--n) - 1) * -0.375rem); }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(0.75rem); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes sheet-in {
  from { opacity: 0; translate: 0 -2.5rem; }
  to   { opacity: 0.92; translate: 0 0; }
}
@keyframes mesh-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(3%, -4%, 0); }
}
/* Desktop cards rise from below and push the ones above them. The newcomer and the cards it
   pushes move together (same distance, curve and timing), so they never overlap.
   Slots: 0 / 105 / 213. A push moves a card up by the newcomer's height + 16 gap (108). */
/* Card 1 ends in the top slot: rises into the bottom slot, then pushed to 105, then to 0 */
@keyframes notif-1 {
  0%      { opacity: 0; translate: 0 14.8125rem; filter: blur(4px); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1) /* --ease-drawer (var() is ignored inside @keyframes) */; }
  21.43%  { opacity: 1; translate: 0 13.3125rem; filter: blur(0); }
  39.29%  { translate: 0 13.3125rem; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1) /* --ease-drawer (var() is ignored inside @keyframes) */; }
  60.71%  { translate: 0 6.5625rem; }
  78.57%  { translate: 0 6.5625rem; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1) /* --ease-drawer (var() is ignored inside @keyframes) */; }
  100%    { translate: 0 0; }
}
/* Card 2 ends in the middle slot: rises from just under card 1 into the bottom slot, then pushed up */
@keyframes notif-2 {
  0%      { opacity: 0; translate: 0 13.5rem; filter: blur(4px); animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1) /* --ease-drawer (var() is ignored inside @keyframes) */; }
  35.29%  { opacity: 1; translate: 0 6.75rem; filter: blur(0); }
  64.71%  { translate: 0 6.75rem; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1) /* --ease-drawer (var() is ignored inside @keyframes) */; }
  100%    { translate: 0 0; }
}
/* Card 3 rises from just under card 2 into the bottom slot */
@keyframes notif-3 {
  from { opacity: 0; translate: 0 6.75rem; filter: blur(4px); }
  to   { opacity: 1; translate: 0 0; filter: blur(0); }
}
/* Mobile: a card appears in place (no push) */
@keyframes notif-in {
  from { opacity: 0; translate: 0 1rem; scale: 0.96; filter: blur(4px); }
  to   { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  /* Mobile hero: after the pile settles, card 1 shows, card 2 replaces it, then card 3 replaces
     that and stays. Each swap crossfades with a small lift and blur. */
  .glass--reviewer { animation: notif-swap 2800ms linear 1200ms both; }
  .glass--match    { animation: notif-swap 2800ms linear 3580ms both; }
  .glass--payment  { animation: notif-in 450ms var(--ease-out) 5960ms backwards; }
  /* The artwork sits below the fold on phones: hold the sequence until it scrolls into view
     (.is-playing is set by peeranha-motion.js; without the script it simply plays on load) */
  .motion-ready .hero__artwork .sheet,
  .motion-ready .hero__artwork .glass { animation-play-state: paused; }
  .motion-ready .hero__artwork.is-playing .sheet,
  .motion-ready .hero__artwork.is-playing .glass { animation-play-state: running; }
}
@keyframes notif-swap {
  0%   { opacity: 0; translate: 0 0.75rem; scale: 0.96; filter: blur(4px); animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1) /* --ease-out */; }
  15%  { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); }
  85%  { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1) /* --ease-in-out */; }
  100% { opacity: 0; translate: 0 -0.75rem; scale: 0.98; filter: blur(4px); }
}

/* 8. Trust strip scrolls by itself on mobile; touching it pauses it */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .trust__list.is-marquee {
    overflow: visible;
    width: max-content;
    padding: 0;
    gap: 0;
    animation: marquee 28s linear infinite;
  }
  .trust__list.is-marquee .trust__item { padding-right: var(--space-8); }
  .trust--marquee { overflow: hidden; padding-left: var(--gutter); }
  .trust__list.is-paused { animation-play-state: paused; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduced motion on mobile: no swapping, just the last card ("Review complete") */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .glass--reviewer, .glass--match { display: none; }
}

/* Promo banner closing: folds up and fades instead of vanishing (class set in home.html) */
.promo { overflow: hidden; }
.promo.is-closing { transition: height 300ms ease, padding 300ms ease, opacity 200ms ease; opacity: 0; padding-top: 0; padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .promo.is-closing { transition: none; } }
