/* Shared "Them vs You" comparison stage for the ad pages (more-jobs, bcb,
   reactivation). Moved verbatim from the identical inline copies in
   ad/more-jobs/index.html and ad/bcb/index.html, so the render has one source.
   The phone markup is synced into each page by
   website/scripts/sync-review-phones.mjs. A page that links this file defines
   --ink, --muted, --rw-3, --rw-body, --rw-gold, --rw-ink and --rw-navy. */
/* =========================================================================
   PORTED — "Them vs You" phone stage.
   Ported verbatim (structure, choreography, tail geometry, cqw scaling) from
   website/src/components/HomepageHero.astro per the page-build law's
   component-provenance rule — including the confetti burst that fires when
   Jessica's reply finishes arriving. Changes are strictly the static-context
   ones: Astro scoping removed, the posthog/demo-modal wiring dropped (no
   analytics library and no second clickable on this page), and the
   THEM/YOU labels re-tokenised so they stay legible on the dark theme. The
   phone SCREENS keep their literal iOS light-mode colours in both themes —
   a real iPhone doesn't repaint because the page did.
   ========================================================================= */
.rw-hh-media{width:100%;min-width:0;isolation:isolate;will-change:auto}
.rw-hh-stage{
  --rw-stage-gap:clamp(10px,2vw,22px);
  display:grid;grid-template-columns:1fr 1fr;gap:var(--rw-stage-gap);
  align-items:end;width:100%;min-width:0}
.rw-col{display:flex;flex-direction:column;align-items:center;gap:var(--rw-3);min-width:0}
.rw-col-label{margin:0;margin-right:-.14em;font-family:var(--rw-body);
  font-size:clamp(12px,1.4vw,15px);font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.rw-col-label--them{color:var(--muted)}
.rw-col-label--you{color:var(--ink)}
.rw-phone{position:relative;width:100%;max-width:260px;aspect-ratio:244/512;background:#fff;
  border:1.5px solid var(--rw-navy);border-radius:clamp(24px,4.2vw,36px);padding:0;overflow:hidden;
  box-shadow:0 20px 48px rgba(9,17,47,.18);container-type:inline-size}
.rw-phone--them{border-color:#D2D4D6;filter:grayscale(1);opacity:.9;
  box-shadow:0 10px 26px rgba(9,17,47,.1)}
.rw-phone--you{box-shadow:0 24px 56px rgba(9,17,47,.26)}
@media (prefers-color-scheme:dark){
  .rw-phone{border-color:rgba(255,255,255,.22)}
  .rw-phone--them{border-color:rgba(255,255,255,.14);box-shadow:0 10px 26px rgba(0,0,0,.5)}
  .rw-phone--you{box-shadow:0 24px 60px rgba(0,0,0,.7)}
}
.rw-phone-notch{position:absolute;top:clamp(6px,3.9cqw,10px);left:50%;transform:translateX(-50%);
  width:18%;height:clamp(4px,3.1cqw,8px);background:rgba(9,17,47,.5);border-radius:40px;z-index:3}
.rw-phone-screen{position:relative;height:100%;background:#fff;
  border-radius:clamp(22px,3.9vw,34px);overflow:hidden;display:flex;flex-direction:column;
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif}
.rw-sms-head{display:flex;align-items:center;gap:8px;
  padding:clamp(11px,8.6cqw,22px) clamp(7px,5cqw,13px) clamp(6px,3.5cqw,9px);
  border-bottom:1px solid #E5E7E9}
.rw-sms-avatar{width:clamp(15px,10.1cqw,26px);height:clamp(15px,10.1cqw,26px);border-radius:50%;
  background:#D2D4D6;flex:none}
.rw-sms-avatar--brand{background:var(--rw-navy)}
.rw-sms-head-meta{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.rw-sms-name{font-size:clamp(8px,4.86cqw,12.5px);font-weight:700;color:var(--rw-ink)}
.rw-sms-sub{font-size:clamp(6px,3.7cqw,9.5px);font-weight:500;color:#636366}
.rw-sms-body{flex:1 1 auto;display:flex;flex-direction:column;gap:clamp(4px,3.1cqw,8px);
  padding:clamp(6px,5cqw,13px) clamp(6px,4.7cqw,12px);overflow:hidden}
.rw-bubble{max-width:86%;font-size:clamp(8px,5.06cqw,13px);line-height:1.4;
  padding:clamp(5px,3.5cqw,9px) clamp(6px,4.28cqw,11px);border-radius:15px}
.rw-bubble--in{align-self:flex-start;background:#E9E9EB;color:#000}
.rw-bubble--out{align-self:flex-end;background:#0370EF;color:#fff;font-weight:500;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.rw-bubble--in,.rw-bubble--out{position:relative;isolation:isolate}
.rw-bubble--in::before,.rw-bubble--in::after,
.rw-bubble--out::before,.rw-bubble--out::after{content:"";position:absolute;z-index:-1;bottom:0}
.rw-bubble--in::before{left:-5px;width:14px;height:15px;background:#E9E9EB;border-bottom-right-radius:13px}
.rw-bubble--in::after{left:-8px;width:8px;height:16px;background:#fff;border-bottom-right-radius:8px}
.rw-bubble--out::before{right:-5px;width:14px;height:15px;background:#0370EF;border-bottom-left-radius:13px}
.rw-bubble--out::after{right:-8px;width:8px;height:16px;background:#fff;border-bottom-left-radius:8px}
.rw-sms-link{display:block;margin-top:3px;font-weight:600;color:var(--rw-ink);
  text-decoration:underline;text-underline-offset:2px}
.rw-bubble--img{align-self:flex-start;flex:none;max-width:64%;padding:0;background:none;
  border-radius:14px;overflow:hidden}
.rw-pi{position:relative;width:100%;border-radius:14px;overflow:hidden}
.rw-pi-photo{width:100%;height:auto;display:block}
.rw-pi-banner{position:absolute;top:5%;left:5%;
  padding:clamp(3px,2.8cqw,7px) clamp(5px,4.3cqw,11px);
  background:var(--rw-navy);border:1px solid var(--rw-gold);border-radius:11px;color:#fff;
  font-family:var(--rw-body);font-size:clamp(9px,6.6cqw,17px);font-weight:800;line-height:1.1;
  white-space:nowrap;width:max-content;max-width:90%;box-shadow:0 3px 10px rgba(9,17,47,.3)}
.rw-sms-receipt{margin:1px 0 0;font-size:clamp(6px,3.5cqw,9px);font-weight:600;color:#636366}
.rw-sms-receipt--right{align-self:flex-end;text-align:right}
.rw-sms-junk{margin:3px 0 0;display:flex;flex-direction:column;align-items:center;gap:2px;
  text-align:center;line-height:1.25}
.rw-sms-junk-note{font-size:clamp(6px,3.5cqw,9px);font-weight:500;color:#636366}
.rw-sms-junk-report{font-size:clamp(6px,3.7cqw,9.5px);font-weight:600;color:#0259BE}
.rw-sms-compose{display:flex;align-items:center;gap:6px;
  padding:clamp(5px,3.5cqw,9px) clamp(6px,4.7cqw,12px) clamp(7px,5cqw,13px)}
.rw-sms-field{flex:1 1 auto;height:clamp(11px,7.8cqw,20px);border-radius:20px;background:#F2F4F6;
  border:1px solid #E5E7E9}
.rw-sms-send{width:clamp(13px,8.56cqw,22px);height:clamp(13px,8.56cqw,22px);border-radius:50%;
  background:#D2D4D6;flex:none}
.rw-sms-send--brand{background:var(--rw-navy)}

/* One-time play choreography (~7.35s) — timings unchanged from the source. */
.rw-hh-stage--play .rw-anim,
.rw-hh-stage--play .rw-col--you,
.rw-hh-stage--play .rw-phone--them{
  animation-fill-mode:backwards;animation-timing-function:cubic-bezier(.22,.61,.36,1)}
.rw-hh-stage--play .rw-col--them.rw-them-rest{animation:none}
.rw-hh-stage--play .rw-col--them{
  animation:rw-them-enter 500ms 100ms cubic-bezier(.22,.61,.36,1) both,
            rw-them-slide 700ms 2600ms cubic-bezier(.22,.61,.36,1) forwards}
.rw-hh-stage--play .rw-phone--them{animation-name:rw-them-dim;animation-duration:700ms;animation-delay:2600ms}
.rw-hh-stage--play .rw-col--you{animation-name:rw-you-appear;animation-duration:560ms;animation-delay:3350ms}
.rw-hh-stage--play .rw-anim--them-msg{animation-name:rw-pop-in;animation-duration:450ms;animation-delay:700ms}
.rw-hh-stage--play .rw-anim--them-junk{animation-name:rw-fade-in;animation-duration:400ms;animation-delay:1250ms}
.rw-hh-stage--play .rw-anim--you-img{animation-name:rw-pop-in;animation-duration:500ms;animation-delay:3900ms}
.rw-hh-stage--play .rw-anim--you-msg{animation-name:rw-pop-in;animation-duration:450ms;animation-delay:4400ms}
.rw-hh-stage--play .rw-anim--you-reply{animation-name:rw-reply-in;animation-duration:500ms;animation-delay:6350ms}
.rw-hh-stage--play .rw-anim--you-receipt{animation-name:rw-fade-in;animation-duration:400ms;animation-delay:6950ms}
@keyframes rw-fade-in{from{opacity:0}to{opacity:1}}
@keyframes rw-pop-in{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@keyframes rw-reply-in{
  0%{opacity:0;transform:translateY(10px) scale(.92)}
  60%{opacity:1;transform:translateY(0) scale(1.03)}
  100%{opacity:1;transform:none}}
@keyframes rw-them-enter{
  from{opacity:0;transform:translate(calc(50% + var(--rw-stage-gap) / 2),22px)}
  to{opacity:1;transform:translate(calc(50% + var(--rw-stage-gap) / 2),0)}}
@keyframes rw-them-slide{
  from{transform:translate(calc(50% + var(--rw-stage-gap) / 2),0)}
  to{transform:none}}
@keyframes rw-them-dim{from{opacity:1}to{opacity:.9}}
@keyframes rw-you-appear{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .rw-hh-stage--play .rw-anim,
  .rw-hh-stage--play .rw-col--them,
  .rw-hh-stage--play .rw-col--you,
  .rw-hh-stage--play .rw-phone--them{animation:none !important}
}
@media (max-width:880px){
  .rw-hh-stage{max-width:560px;margin:0 auto}
}
@media (max-width:640px){.rw-hh-stage{--rw-stage-gap:8px}}

/* One picture at every width (Dan 2026-11-04). A small phone must be the
   desktop phone made smaller. The synced phone (/review-phone.css) sizes
   type and padding in cqw, but sets corners, tails and gaps in px and
   makes the phone taller at 880 px and below, so a small phone did not
   keep its shape. These rules set each of those lengths in design px:
   --rw-phone-design is the phone width, in px, at which the stage was
   designed, and one design px is 100cqw / that width. At the design width
   each value is the same px as before, so desktop does not change. cqw
   measures inside the 1.5px phone border, so the design width is an
   inside width: 256, a hair under the inside of the 259.8 to 260 px
   desktop phone, so the caps below hold on every desktop. The selectors carry
   .rw-hh-stage .rw-phone to win over the scoped synced rules, whatever the
   stylesheet order. The phone border stays 1.5px. The shared phone probe
   (website/scripts/review-phone-probe.mjs) reads --rw-phone-design and
   expects the tail 5 design px out. Each value is capped at its design px with min():
   the 1.5px border renders 1px on a 1x screen, so the inside width, and
   the unit, is a little larger there. The cap keeps desktop exact. */
.rw-hh-stage{--rw-phone-design:256}
.rw-hh-stage .rw-phone{--rw-u:calc(100cqw / var(--rw-phone-design))}
.rw-hh-stage .rw-col .rw-phone{aspect-ratio:244/512;
  /* The phone cannot use its own cqw, so its corner is a percent of its
     outside width and height: 36 design px. The + 2 (not the full 3px of
     border) makes the 36px cap hold on a 259.8px desktop phone too. */
  border-radius:min(36px, calc(3600% / (var(--rw-phone-design) + 2))) / min(36px, calc(3600% * 244 / (512 * (var(--rw-phone-design) + 2))))}
.rw-hh-stage .rw-phone .rw-phone-screen{border-radius:min(34px, calc(34 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-sms-head{gap:min(8px, calc(8 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble{border-radius:min(15px, calc(15 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble--in::before{left:calc(-1 * min(5px, calc(5 * var(--rw-u))));width:min(14px, calc(14 * var(--rw-u)));
  height:min(15px, calc(15 * var(--rw-u)));border-bottom-right-radius:min(13px, calc(13 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble--in::after{left:calc(-1 * min(8px, calc(8 * var(--rw-u))));width:min(8px, calc(8 * var(--rw-u)));
  height:min(16px, calc(16 * var(--rw-u)));border-bottom-right-radius:min(8px, calc(8 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble--out::before{right:calc(-1 * min(5px, calc(5 * var(--rw-u))));width:min(14px, calc(14 * var(--rw-u)));
  height:min(15px, calc(15 * var(--rw-u)));border-bottom-left-radius:min(13px, calc(13 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble--out::after{right:calc(-1 * min(8px, calc(8 * var(--rw-u))));width:min(8px, calc(8 * var(--rw-u)));
  height:min(16px, calc(16 * var(--rw-u)));border-bottom-left-radius:min(8px, calc(8 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-sms-link{margin-top:min(3px, calc(3 * var(--rw-u)));text-underline-offset:min(2px, calc(2 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-bubble--img,
.rw-hh-stage .rw-phone .rw-pi{border-radius:min(14px, calc(14 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-pi-banner{border-radius:min(11px, calc(11 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-sms-receipt{margin-top:min(1px, calc(1 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-sms-junk{margin-top:min(3px, calc(3 * var(--rw-u)));gap:min(2px, calc(2 * var(--rw-u)))}
.rw-hh-stage .rw-phone .rw-sms-compose{gap:min(6px, calc(6 * var(--rw-u)))}
