/* People home "Chapters": celebrity phones, the final card, and the card rims.
   Hand-written (not generated, chapters.css is). Every rule sits under .bz2:where(.pch), loaded after
   chapters.css and dm-journey.css.
   2026-10-27: the pastel chapter grounds, tinted cards, step chips and lilac/blue/peach tints were
   dropped (Kedem: "i dont like those colours"), and so were the three ?tone directions: the page is
   the site's white look, with the /business pricing rim on its cards (bottom of this file). */

/* ---------- the celebrity in a phone (celebs.ts, CelebScreen.tsx) ---------- */
/* still: the capture shows the top of the page and never scrolls (no .am-scr, so no pch-m-scroll) */
.bz2:where(.pch) .am-screen .am-cel {
  position: absolute;
  inset: 0;
  background: var(--cel-bg, #fff);
}
.bz2:where(.pch) .am-screen .am-cel img {
  position: absolute;
  left: 0;
  top: var(--cel-top, 0);
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
}
/* the hero phone runs to the foot of the stage now the step bar is gone (no crop line 40px up) */
.bz2:where(.pch) .am-f01 .am-hclip {
  bottom: 0;
}

/* ---------- 09 final: copy and a real page rising from the section foot, no frame ---------- */
.bz2:where(.pch) .am-f09 .am-fcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: stretch;
  min-height: 600px;
  /* no frame (Kedem 2026-11-01): no card colour, corners or rim; the
     overflow still crops the phone, and the panel fades it out */
  overflow: hidden;
}
.bz2:where(.pch) .am-f09 .am-fcopy {
  align-self: center;
  min-width: 0;
  padding: 72px 24px 72px 0;
}
.bz2:where(.pch) .am-f09 .am-fcopy .am-claim {
  margin-top: 28px;
  max-width: 480px;
}
.bz2:where(.pch) .am-f09 :where(.am-rates, .am-perks) {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bz2:where(.pch) .am-f09 .am-rates {
  margin-top: 20px;
}
.bz2:where(.pch) .am-f09 .am-rates li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 6px -2px rgba(17, 24, 39, 0.1);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #3f3f46;
  white-space: nowrap;
}
.bz2:where(.pch) .am-f09 .am-rates svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: #f5a524;
}
.bz2:where(.pch) .am-f09 .am-rates b {
  font-weight: 700;
  color: #0a0a0a;
}
.bz2:where(.pch) .am-f09 .am-perks {
  margin-top: 12px;
}
.bz2:where(.pch) .am-f09 .am-perks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #3f3f46;
  white-space: nowrap;
}
.bz2:where(.pch) .am-f09 .am-perks li::before {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.bz2:where(.pch) .am-f09 .am-plansline span {
  white-space: nowrap;
}
.bz2:where(.pch) .am-f09 .am-plansline {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--g6);
}
/* the ring sits whole in the panel, centred, no fade and no crop (Kedem 2026-11-02: the cropped
   five-phone stack "looks cheap") */
.bz2:where(.pch) .am-f09 .am-epanel {
  position: relative;
  width: auto;
  height: auto;
  min-height: 640px;
  padding: 0;
  border-radius: 0;
  background: none;
}
.bz2:where(.pch) .am-f09 .am-eclip {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  margin: calc(-310px * var(--s)) 0 0 calc(-150px * var(--s));
  padding: 0;
  overflow: visible;
  display: block;
}
.bz2:where(.pch) .am-f09 :is(.am-eclip, .am-ring, .am-edev) {
  --s: 0.9;
}

/* the ring (CelebRing): real pages, each in its own phone on the same spot. The front one (data-pos 0)
   faces you; the next one each side sits back and turns a little toward it, coverflow style; the
   outer two wait hidden further back, so a turn brings one in on one side as one leaves on the other
   (data-go: no move on the first paint). The pages are fresh 390-wide captures from the top; a live
   page plays its header video under its own name and fade (the second img). */
.bz2:where(.pch) .am-f09 .am-ring {
  position: relative;
  width: calc(300px * var(--s));
  height: calc(620px * var(--s));
  perspective: 1800px;
}
/* a soft floor shadow under the front phone */
.bz2:where(.pch) .am-f09 .am-ring::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: calc(-26px * var(--s));
  height: calc(52px * var(--s));
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.16),
    transparent
  );
  pointer-events: none;
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  transform-origin: 50% 50%;
}
.bz2:where(.pch) .am-f09 .am-ring .am-phone {
  background: #0b0b0c;
  box-shadow:
    inset 0 0 0 1.5px #2c2c30,
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 40px 70px -30px rgba(0, 0, 0, 0.4);
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev[data-pos="0"] {
  z-index: 3;
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev:is([data-pos="1"], [data-pos="-1"]) {
  z-index: 2;
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev:not([data-pos="0"]) .am-phone {
  box-shadow:
    inset 0 0 0 1.5px #2c2c30,
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 44px -26px rgba(0, 0, 0, 0.32);
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev[data-pos="1"] {
  transform: translateX(42%) scale(0.84) rotateY(-14deg);
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev[data-pos="-1"] {
  transform: translateX(-42%) scale(0.84) rotateY(14deg);
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev[data-pos="2"] {
  transform: translateX(56%) scale(0.7) rotateY(-14deg);
  opacity: 0;
}
.bz2:where(.pch) .am-f09 .am-ring .am-dev[data-pos="-2"] {
  transform: translateX(-56%) scale(0.7) rotateY(14deg);
  opacity: 0;
}
.bz2:where(.pch) .am-f09 .am-ring[data-go] .am-dev {
  transition:
    transform 1s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.6s ease;
}
.bz2:where(.pch) .am-f09 .am-pg {
  background: #000;
}
.bz2:where(.pch) .am-f09 .am-pg > :is(img, video) {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  -webkit-user-drag: none;
  user-select: none;
}
.bz2:where(.pch) .am-f09 .am-pg > video {
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .bz2:where(.pch) .am-f09 .am-fcard {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  }
  .bz2:where(.pch) .am-f09 .am-fcopy {
    padding: 56px 16px 56px 0;
  }
  .bz2:where(.pch) .am-f09 :is(.am-eclip, .am-ring, .am-edev) {
    --s: 0.78;
  }
}

/* phones: centred copy, full-width claim, two rating chips side by side, perk chips, then the phone */
@media (max-width: 900px) {
  .bz2:where(.pch) .am-f09 .am-fcard {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .bz2:where(.pch) .am-f09 .am-fcopy {
    align-self: stretch;
    padding: 32px 20px 0;
    text-align: center;
  }
  /* the claim box needs the full card width on narrow phones, or "yourname" runs into the button */
  @media (max-width: 440px) {
    .bz2:where(.pch) .am-f09 .am-fcopy {
      padding: 32px 10px 0;
    }
  }
  @media (max-width: 380px) {
    .bz2:where(.pch) .am-f09 .am-claim input {
      font-size: 15px;
    }
  }
  .bz2:where(.pch) .am-f09 .am-fcopy .pj-p {
    margin-left: auto;
    margin-right: auto;
  }
  .bz2:where(.pch) .am-f09 .am-fcopy .am-claim {
    width: 100%;
    max-width: none;
    margin-top: 20px;
  }
  .bz2:where(.pch) .am-f09 .am-rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }
  .bz2:where(.pch) .am-f09 .am-rates li {
    min-width: 0;
    padding: 0 10px;
  }
  .bz2:where(.pch) .am-f09 .am-perks {
    justify-content: center;
    gap: 6px;
  }
  .bz2:where(.pch) .am-f09 .am-perks li {
    gap: 5px;
    height: 30px;
    padding: 0 9px;
    font-size: 13px;
  }
  .bz2:where(.pch) .am-f09 .am-perks li::before {
    width: 8px;
    height: 5px;
    border-width: 1.5px;
  }
  .bz2:where(.pch) .am-f09 .am-plansline {
    margin-top: 14px;
    font-size: 13px;
    line-height: 18px;
    text-wrap: balance;
  }
  .bz2:where(.pch) .am-f09 .am-epanel {
    min-height: 0;
    margin-top: 32px;
    padding-bottom: 40px;
  }
  .bz2:where(.pch) .am-f09 .am-eclip {
    position: relative;
    left: auto;
    top: auto;
    width: max-content;
    margin: 0 auto;
  }
  .bz2:where(.pch) .am-f09 :is(.am-eclip, .am-ring, .am-edev) {
    --s: 0.66;
  }
}
@media (max-width: 900px) and (max-height: 720px) {
  .bz2:where(.pch) .am-f09 .am-fcopy {
    padding-top: 24px;
  }
  .bz2:where(.pch) .am-f09 .am-epanel {
    margin-top: 24px;
  }
  .bz2:where(.pch) .am-f09 :is(.am-eclip, .am-ring, .am-edev) {
    --s: 0.56;
  }
}
@media (max-width: 359px) {
  .bz2:where(.pch) .am-f09 .am-rates li {
    gap: 4px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ---------- the rim: the /business AI Powered pricing card's outline on every People card ----------
   (Kedem 2026-10-28: "a rainbow outline on the cards like the colour on the hero section"). The same
   2px rim in the site's colours, turning slowly on a registered angle (business-v2.css "pricing: AI
   powered Business"), drawn by a masked ::after so no card changes size. It replaces the cards' grey
   1px ring and keeps their drop shadows; product mockups inside the cards stay as the app draws them.
   Still under reduced motion. */
@property --pch-rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes pch-rim-turn {
  to {
    --pch-rim: 360deg;
  }
}
.bz2:where(.pch) :where(.am-scard, .am-plan) {
  position: relative;
}
.bz2:where(.pch) :where(.am-scard, .am-plan)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--pch-rim),
    #2f6fe8,
    #8a4dff,
    #ff3d8a,
    #ffb020,
    #19c48a,
    #22b8ff,
    #2f6fe8
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
  animation: pch-rim-turn 8s linear infinite;
}
.bz2:where(.pch) .am-scard {
  box-shadow: 0 24px 48px -28px rgba(17, 24, 39, 0.28);
}
.bz2:where(.pch) .am-plan {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.bz2:where(.pch) .am-plan.hi {
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.18);
}
/* ---------- the Global icons fan: one mask, not two ---------- */
/* chapters.css masks the fan's sides on .am-loop and its foot on .am-loop-list, so every moving
   card was masked twice per frame. Same box (the list is inset 0), so both fades go on .am-loop as
   one intersected mask and the list keeps none: the same look for half the work. */
.bz2:where(.pch) .am-f10 .am-loop {
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(#000 62%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%),
    linear-gradient(#000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.bz2:where(.pch) .am-f10 .am-loop-list {
  -webkit-mask-image: none;
  mask-image: none;
}

/* stacked cards: a covered card's content fades out between 60% and 80%
   of the cover, so the edges peeking above the front card are clean rims,
   never a title sliced through its letters (stack.js sets --cover) */
html.pch-motion .bz2:where(.pch) .am-scard > .am-sc-in {
  opacity: clamp(0, calc((0.8 - var(--cover, 0)) * 5), 1);
}
