/* Validated.Directory 2.0.0 · paying for placement (DIR 2.0.0 part D, BEA-432). Loads after scene.css. The main act, at
   night: a review site's list, where an ad is placed above your business and your old number still shows, beside your
   own record, confirmed by you; an AI assistant weighs the two, and the light from the record carries the answer.
   "Nobody pays to rank" is the point. guide.js pins the run and sets each step's progress (--u1 to --u5) on the stage;
   this file turns those into motion, under html.m only. Still (reduced motion, scripts off): the finished picture. */

.pw { background: var(--canvas); color: var(--cream); }
.pw .gs-stage > .sky { z-index: 0; }
.pw .gs-stage > :not(.sky) { position: relative; z-index: 1; }
.pw .gs-head h2 { max-width: 15ch; color: var(--white); }
.pw .gs-tag { background: transparent; border-color: rgba(240, 230, 207, 0.5); color: var(--cream); }
.pw .gs-n { color: var(--cream-2); }
.pw .gs-k, .pw .gs-t { color: var(--cream); }
.pw .gs-steps > li { border-top-color: rgba(240, 230, 207, 0.22); }
.m .pw .gs-out { border-top-color: rgba(240, 230, 207, 0.24); }
.m .pw .gs-tk i { background: rgba(240, 230, 207, 0.2); }
.m .pw .gs-tk i.on { background: var(--gold-bright); }

/* The drawing: the list and the record side by side, the AI assistant under them, the payoff under that. */
.pw-art { width: min(100%, 560px); --rh: 40px; }
.pw-fx { display: none; }
.js .pw-fx { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.pw-pair { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.pw-k { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }

/* A review site's list: the slots stay numbered, the rows move. */
.pw-list { position: relative; padding: 9px 10px 10px; background: var(--paper-hi); color: var(--ink); border: 1px solid rgba(35, 31, 26, 0.45); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85); }
.pw-board { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 0 6px; margin-top: 6px; }
.pw-nums li, .pw-r { height: var(--rh); border-top: 1px solid var(--rule-ink); }
.pw-nums li { padding-top: 6px; font: 500 11px/1 var(--mono); color: var(--ink-2); }
.pw-rows { position: relative; }
.pw-r { display: grid; align-content: center; gap: 3px; min-width: 0; background: var(--paper-hi); }
.pw-nm { display: flex; align-items: baseline; gap: 5px; min-width: 0; font: 600 12.5px/1.15 var(--sans); white-space: nowrap; overflow: hidden; }
.pw-sub { font: 500 11px/1.2 var(--mono); color: var(--ink-2); white-space: nowrap; }
.pw-sub .gv { padding: 0 3px; margin-left: -3px; color: var(--ink); }
.pw-tag { padding: 1px 4px 2px; font: 600 9.5px/1.1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #fff8ea; background: var(--ink-2); }
.pw-ad { background: #efe5cf; }
.pw-note { position: absolute; right: 8px; bottom: -11px; z-index: 3; }

/* Your record: an empty form at first, its lines write in, then the Box V burns. */
.pw-rec { padding: 9px 10px 10px; background: var(--paper-hi); color: var(--ink); border: 1px solid var(--gold-ink); box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85); --cm: rgba(240, 230, 207, 0.62); }
.pw-name { margin-top: 4px; font: 400 19px/1.1 var(--display); }
.pw-ls { display: grid; margin-top: 6px; }
.pw-l { display: grid; gap: 2px; padding: 5px 0; border-top: 1px solid var(--rule-ink); }
.pw-l dt { font: 500 9.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.pw-l dd { font: 500 11.5px/1.25 var(--mono); }
.pw-l dd .gv { display: inline-block; padding: 0 3px; margin-left: -3px; }
.pw-conf { display: flex; padding-top: 6px; border-top: 1px solid var(--rule-ink); }
.pw-conf .brand-day { flex-direction: row; gap: 7px; margin: 0; }
.pw-conf .brand-day .iron { width: 34px; height: 34px; }
.pw-conf .brand-day .b-label { text-align: left; font-size: 9.5px; }
.pw-conf .brand-day .b-word { font-size: 10px; }

/* The AI assistant, and the payoff. */
.pw-ai { z-index: 2; margin-top: 46px; border-color: rgba(244, 196, 90, 0.5); }
.pw-q { margin-top: 5px; font: 400 16px/1.25 var(--display); color: var(--cream); }
.pw-ai .gai-a { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(240, 230, 207, 0.18); }
.pw-pay { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin: 14px auto 0; padding: 7px 10px 8px; width: fit-content; max-width: 100%; border: 1px solid var(--gold-bright); font: 500 11.5px/1.35 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); text-align: center; }
.pw-pay i { font-style: normal; }

/* Motion, from the scroll. Step 1: the list of three and the empty record arrive. Step 2: the ad is placed on top and
   every row slides down a slot. Step 3: the record's lines write in. Step 4: the light runs (page.js); the old number
   is flagged. Step 5: the answer, the burn, the payoff. */
.m .pw .gs-stage { --a1: clamp(0, calc(var(--u1, 0) * 1.7), 1); --a2: clamp(0, calc(var(--u2, 0) * 1.7), 1); --a3: clamp(0, calc(var(--u3, 0) * 1.7), 1); }
.m .pw-list, .m .pw-rec { opacity: var(--a1); transform: translateY(calc((1 - var(--a1)) * 14px)); }
.m .pw-r:not(.pw-ad) { transform: translateY(calc((var(--a2) - 1) * var(--rh))); }
.m .pw-ad { opacity: var(--a2); transform: translateX(calc((1 - var(--a2)) * -18px)); }
.m .pw-n4 { opacity: calc(0.25 + var(--a2) * 0.75); }
.m .pw-l dd { opacity: clamp(0, calc(var(--a3) * 3.4 - var(--i)), 1); }
.m .pw-conf { opacity: clamp(0.35, calc(var(--a3) * 3.4 - 2), 1); }
.m .pw-ai { opacity: clamp(0, calc(var(--a1) * 2 - 0.6), 1); }

@media (max-width: 380px) {
  .pw-art { --rh: 37px; }
  .pw-pair { gap: 9px; }
  .pw-list, .pw-rec { padding: 8px 8px 9px; }
  .pw-nm { font-size: 12px; }
  .pw-sub, .pw-l dd { font-size: 10.5px; }
  .pw-name { font-size: 17px; }
  .pw-ai { margin-top: 40px; }
  .pw-pay { display: grid; gap: 2px; }
  .pw-pay i { display: none; }
}
@media (max-width: 899px) and (max-height: 760px) {
  .m .pw .gs-head h2 { max-width: 18ch; }
  .m .pw-ai { margin-top: 36px; }
}
@media (min-width: 900px) {
  .pw .gs-stage { max-width: none; padding-left: var(--read-x); padding-right: var(--read-x); }
  .pw-art { width: min(100%, 700px); --rh: 52px; }
  .pw-pair { gap: 22px; }
  .pw-list, .pw-rec { padding: 12px 14px 13px; }
  .pw-k { font-size: 11.5px; }
  .pw-board { grid-template-columns: 18px minmax(0, 1fr); margin-top: 8px; }
  .pw-nums li { padding-top: 8px; font-size: 12.5px; }
  .pw-nm { font-size: 16.5px; }
  .pw-sub { font-size: 13.5px; }
  .pw-tag { font-size: 10.5px; }
  .pw-name { font-size: 27px; }
  .pw-l { padding: 7px 0; }
  .pw-l dt { font-size: 10.5px; }
  .pw-l dd { font-size: 14.5px; }
  .pw-conf .brand-day .iron { width: 42px; height: 42px; }
  .pw-conf .brand-day .b-label { font-size: 10.5px; }
  .pw-conf .brand-day .b-word { font-size: 11px; }
  .pw-ai { margin-top: 60px; padding: 14px 18px 16px; }
  .pw-q { font-size: 21px; }
  .pw-ai .gai-a { font-size: 25px; }
  .pw-pay { margin-top: 18px; font-size: 13px; }
}
