/* ==========================================================================
   qr.css — review links and QR codes. Loads after feature-v2/v3, show.css, pillars-lab.css and home.css.
   Rebuilt 2026-09-04: the placement picker draws the printed object for each spot (a counter stand, a docket, a van's rear doors,
   a table talker) in CSS only, and shows the one line the business sees for that code. Nothing drawn here is under 13px; the
   template's .shot sizes (feature-v2.css) are shared with every subpage and are not overridden here.
   Fixed the same day (fix.md): the scene bleeds to the card edge and the four spots stack in one grid cell, so no pane can clip
   its object or move the page; the picks sit under the scene as captions; the visitor's business name writes into the card.
   Second fix (fix-2.md): the counter card and the tent card stand on their surfaces (align-items: end, a contact shadow), the van
   has a bumper, lamps and a ground shadow, the pick glyphs for van and table were redrawn, and on one column the name field
   leads (both halves are display: contents so the input can take the first row).

   Simplify-and-port pass, 2026-09-05 (late). Two blocks here are now ports of real product code and their odd values
   are the product's, not the site's:
     .pc-*  the Links & QR card, cloutly-frontend LinksQR/components/PageCard.js:214-283. Tailwind translated to its
            values: rounded-2xl = 16px, p-4 = 16px, the 64px QR tile at an 11px radius with 6px padding,
            text-[14.5px] font-bold tracking-[-0.01em] on the title, the pill extrabold uppercase on emerald-50 /
            pink-50, the staff chip on #F3F4F9 in #4A5065 behind an 18px avatar, and the three ghost buttons.
     .rp-*  the review page the customer lands on, cloutly-templates src/ReviewRequest.js and
            src/review/reviewShared.js buildShellStyles(). Page ground #f2f3f5, card on 1px #ececf0 at radius 14px,
            h1 700 #1b1d1e centred, intro #5f6b6b centred, PillButton 52px tall at radius 10 with a 22px icon chip,
            green #2e7d32, outline 1px #d6d9de, divider #ececf0, red #e63d3d.
   Two site rules override both ports and nothing else does: nothing renders under 13px (PageCard runs its pill at
   10.5px and its staff chip at 11.5px), and muted text on a tint is #5b6076. The review card is white, so the
   template's own #5f6b6b body colour is kept there: it measures 5.63:1 and clears the site floor.
   ========================================================================== */

.qr { display: block; width: 100%; height: auto; fill: var(--ink); shape-rendering: crispEdges; }
.qr-page .sec-tight { padding-top: 0; }

/* ---------- hero moment ---------- */
.qr-page .hero-moment { display: flex; justify-content: flex-end; padding: 12px 0; }
.qr-page .hero-moment .moment { max-width: 430px; gap: 14px; }
.m-talker { display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: center; }
.m-talker-copy b { display: block; font: 500 22px/1.15 var(--font-serif); color: var(--ink); }
.m-talker-copy span { display: block; margin-top: 8px; font: 400 14px/1.5 var(--font-body); color: var(--v2-body); }
.m-qr { padding: 6px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--v2-line); }
.m-toast .gg { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 13, 25, .1); font: 700 13px/1 var(--font-display); font-style: normal; }
.m-toast .gg .icon { width: 20px; height: 20px; }
@media (max-width: 991px) { .qr-page .hero-moment { justify-content: center; } }
/* on phones the one portrait sits on the talker card's top-right shoulder, which here is where the QR is: lift it clear */
@media (max-width: 560px) { .qr-page .pp--tl { top: -40px; } }

/* ---------- placement picker ---------- */
/* the copy column can be narrower than the template's: the device needs the room, and the heading tops out at four lines either way */
.qr-page .calc { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; }
.qr-page .calc > .reveal:first-child { padding-top: 8px; }
.placer-lead { margin-top: 12px; }
.placer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 0; overflow: hidden; }
.placer-left { display: flex; flex-direction: column; min-width: 0; }

/* the scene: the four printed objects stacked in one cell, so the card is as tall as the tallest and nothing shifts on a pick */
.placer-scene { position: relative; display: grid; flex: 1; min-height: 320px; }
.placer-mock { position: relative; grid-area: 1 / 1; display: grid; place-items: center; padding: 24px 18px; overflow: hidden; isolation: isolate; visibility: hidden; opacity: 0; background: var(--v2-card); }
.placer-mock.is-on { visibility: visible; opacity: 1; }
.placer-mock--counter { background: radial-gradient(70% 60% at 30% 20%, #dfe6ff, #f3f5ff 70%); }
.placer-mock--receipt { background: radial-gradient(70% 60% at 70% 20%, #fff0d9, #fff8ee 70%); }
.placer-mock--van { background: radial-gradient(70% 60% at 30% 80%, #e6e1ff, #f4f2ff 70%); }
.placer-mock--table { background: radial-gradient(70% 60% at 70% 80%, #ffe3ea, #fff3f6 70%); }
@media (prefers-reduced-motion: no-preference) {
  .placer-mock.is-on, .placer-pane.is-on { animation: pane-in .45s var(--ease-out); }
  @keyframes pane-in { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.no-motion .placer-mock.is-on, .no-motion .placer-pane.is-on { animation: none; }

/* the printed thing, shared bones */
.pm { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; width: min(176px, 100%); padding: 16px 14px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 13, 25, .06), 0 22px 44px -30px rgba(15, 13, 25, .45); text-align: center; }
.pm-who { max-width: 100%; overflow-wrap: anywhere; font: 500 13px/1.3 var(--font-display); color: var(--v2-body); }
.pm-ask { font: 500 19px/1.15 var(--font-serif); color: var(--ink); }
.pm-qr { width: 92px; padding: 4px; }
.pm-scan { font: 500 13px/1.3 var(--font-display); color: var(--ink); }

/* the counter: a card in a stand, on a counter edge */
/* the card stands on the band: the scene's content box ends at the band's top edge and the 14px foot fills the card's bottom margin */
.placer-mock--counter { align-items: end; padding-bottom: 58px; }
.placer-mock--counter::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(#e6e9f5, #dde1f0); border-top: 1px solid rgba(15, 13, 25, .08); }
.placer-mock--counter::after { content: ""; position: absolute; left: 50%; bottom: 52px; width: 150px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: rgba(15, 13, 25, .22); filter: blur(4px); }
.placer-mock--counter .pm { margin-bottom: 14px; border-radius: 10px; }
.placer-mock--counter .pm::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: -14px; height: 14px; border-radius: 0 0 6px 6px; background: linear-gradient(#c9cee0, #b3b9cf); clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }

/* the docket: a narrow thermal strip with a torn bottom edge */
.placer-mock--receipt .pm { width: min(178px, 100%); padding: 14px 12px 22px; border-radius: 3px 3px 0 0; gap: 4px; box-shadow: 0 0 0 1px rgba(15, 13, 25, .05), 0 18px 36px -26px rgba(15, 13, 25, .5); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 95% 100%, 90% calc(100% - 7px), 85% 100%, 80% calc(100% - 7px), 75% 100%, 70% calc(100% - 7px), 65% 100%, 60% calc(100% - 7px), 55% 100%, 50% calc(100% - 7px), 45% 100%, 40% calc(100% - 7px), 35% 100%, 30% calc(100% - 7px), 25% 100%, 20% calc(100% - 7px), 15% 100%, 10% calc(100% - 7px), 5% 100%, 0 calc(100% - 7px)); }
.placer-mock--receipt .pm::before { content: "Flat white × 2 · 9.00\A Banana bread · 6.50\A Total · 15.50"; white-space: pre; display: block; width: 100%; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px dashed rgba(15, 13, 25, .18); font: 500 13px/1.6 var(--font-display); color: var(--v2-body); text-align: left; }
.placer-mock--receipt .pm-ask { font-size: 17px; }
.placer-mock--receipt .pm-qr { width: 84px; }

/* the van: the rear of a van, close enough to fill the frame side to side. Two barn doors with a centre seam, a two-pane window,
   a handle either side of the seam, the plate low on the left door, a lamp at each bottom corner, a bumper under the body with its
   shadow on the ground 30px below the scene edge, and the decal centred on the right door: the doors are 50% each, so a decal of
   at most 42% clears the seam and the edge by 4% of the scene either side even at the narrowest scene (~260px at 1440). */
.placer-mock--van { display: block; padding: 0; }
.placer-mock--van::before { content: ""; position: absolute; left: 0; right: 0; top: 9%; bottom: 30px; border-radius: 26px 26px 3px 3px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(15, 13, 25, .18) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(#fdfdff, #eaecf5);
  box-shadow: inset 0 0 0 1px rgba(15, 13, 25, .1); }
.placer-mock--van::after { content: ""; position: absolute; left: 13%; right: 13%; top: 15%; height: 46px; border-radius: 10px;
  background:
    linear-gradient(90deg, transparent calc(50% - 3px), #f4f2ff calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
    linear-gradient(160deg, #3b3f57, #1f2233); }
.van-bits { position: absolute; left: 0; right: 0; top: 9%; bottom: 30px; z-index: 1; pointer-events: none; }
.van-bits::before, .van-bits::after { content: ""; position: absolute; top: 31%; width: 22px; height: 6px; border-radius: 3px; background: #b6bcd1; box-shadow: inset 0 0 0 1px rgba(15, 13, 25, .14); }
.van-bits::before { right: calc(50% + 9px); }
.van-bits::after { left: calc(50% + 9px); }
.van-plate { position: absolute; left: 25%; bottom: 44px; z-index: 1; transform: translateX(-50%); display: grid; place-items: center; width: 64px; height: 22px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(15, 13, 25, .55); font: 600 13px/1 var(--font-display); font-style: normal; letter-spacing: .04em; color: var(--ink); }
/* the bumper runs the width of the body; its box-shadow is the ground shadow; its two pseudos are the lamps above it */
.van-bumper { position: absolute; left: 0; right: 0; bottom: 18px; height: 12px; z-index: 1; border-radius: 3px; background: linear-gradient(#454961, #23263a); box-shadow: 0 14px 12px -4px rgba(15, 13, 25, .34); pointer-events: none; }
.van-bumper::before, .van-bumper::after { content: ""; position: absolute; bottom: calc(100% + 9px); width: 36px; height: 12px; border-radius: 4px; background: linear-gradient(#f28c9a, #d4475c); box-shadow: inset 0 0 0 1px rgba(15, 13, 25, .12); }
.van-bumper::before { left: 16px; }
.van-bumper::after { right: 16px; }
.placer-mock--van .pm { position: absolute; left: 75%; top: 36%; transform: translateX(-50%); width: min(124px, 42%); padding: 12px 8px 12px; border-radius: 14px; gap: 4px; }
.placer-mock--van .pm-ask { font-size: 13px; white-space: nowrap; }
.placer-mock--van .pm-qr { width: 62px; padding: 2px; }
.placer-mock--van .pm-scan { display: none; }

/* the table: a tent card folded at the top, standing on a round table */
/* the card's base sits 14px below the ellipse's top arc (106px above the scene edge), so its corners rest on the table */
.placer-mock--table { align-items: end; padding-bottom: 92px; }
.placer-mock--table::before { content: ""; position: absolute; left: 50%; bottom: -84px; width: 380px; height: 190px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(#f7e9dc, #ead6c2 75%); box-shadow: inset 0 0 0 1px rgba(15, 13, 25, .06); }
.placer-mock--table::after { content: ""; position: absolute; left: 50%; bottom: 86px; width: 170px; height: 10px; transform: translateX(-50%); border-radius: 50%; background: rgba(15, 13, 25, .2); filter: blur(4px); }
.placer-mock--table .pm { margin-top: 18px; margin-bottom: 0; border-radius: 6px 6px 10px 10px; }
.placer-mock--table .pm::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; border-radius: 6px 6px 0 0; background: linear-gradient(#d7dbe8, #eceef5); clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); }

/* the picks: four captions under the scene, each with the object drawn small; the one that is on carries an ink bar up to the scene */
.placer-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--v2-line); }
.placer-picks button { position: relative; display: grid; justify-items: center; gap: 7px; padding: 14px 6px 13px; border: 0; background: transparent; font: 500 13px/1.2 var(--font-display); color: #6b7088; cursor: pointer; transition: color .2s; }
.placer-picks button:hover, .placer-picks button.is-on { color: var(--ink); }
.placer-picks button.is-on { font-weight: 600; }
.placer-picks button.is-on::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; background: var(--ink); }
.placer-picks button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 8px; }
.pk { position: relative; display: block; width: 28px; height: 22px; color: inherit; }
.pk::before, .pk::after { content: ""; position: absolute; background: currentColor; }
.pk--counter::before { left: 3px; right: 3px; top: 1px; height: 16px; border-radius: 3px; }
.pk--counter::after { left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; }
.pk--receipt::before { left: 7px; right: 7px; top: 0; bottom: 0; border-radius: 2px 2px 0 0; clip-path: polygon(0 0, 100% 0, 100% 80%, 83% 100%, 66% 80%, 50% 100%, 33% 80%, 16% 100%, 0 80%); }
/* van: a body low in the box with two wheels under it; table: a top with two legs */
.pk--van::before { left: 0; right: 0; top: 3px; height: 14px; border-radius: 5px 5px 2px 2px; }
.pk--van::after { left: 5px; bottom: 0; width: 5px; height: 5px; border-radius: 50%; box-shadow: 13px 0 0 currentColor; }
.pk--table::before { left: 0; right: 0; top: 6px; height: 4px; border-radius: 2px; }
.pk--table::after { left: 5px; top: 10px; width: 3px; height: 12px; border-radius: 0 0 1px 1px; box-shadow: 15px 0 0 currentColor; }

/* the right half: the visitor's name, then the moment, the one line the business sees, and what it tells you */
.placer-side { display: flex; flex-direction: column; min-width: 0; padding: 20px 24px 18px; border-left: 1px solid var(--v2-line); }
.placer-name { display: grid; gap: 6px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--v2-line); }
.placer-name label { font: 600 13px/1.3 var(--font-display); color: var(--v2-body); }
.placer-name input { width: 100%; min-width: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--v2-card); box-shadow: inset 0 0 0 1px var(--v2-line); font: 400 15px/1.4 var(--font-body); color: var(--ink); }
.placer-name input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.placer-panes { display: grid; }
.placer-pane { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; }
.placer-pane.is-on { visibility: visible; opacity: 1; }
.placer-pane h3 { margin-bottom: 6px; font: 600 16px/1.3 var(--font-display); letter-spacing: 0; color: var(--ink); }
.placer-pane p { font: 400 15px/1.55 var(--font-body); color: var(--ink); }
.placer-seen { display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v2-line); }
.placer-seen-h { font: 600 13px/1.3 var(--font-display); color: var(--v2-body); }

/* ---------- the Links & QR card, ported from PageCard.js ---------- */
.pc { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--v2-line); }
.pc-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.pc-qr { width: 64px; height: 64px; padding: 6px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--v2-line); }
.pc-id { min-width: 0; }
.pc-title { display: flex; align-items: center; gap: 6px; font: 700 14.5px/1.35 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.pc-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-pill { flex: none; padding: 3px 8px; border-radius: 999px; font: 700 13px/1.15 var(--font-display); letter-spacing: .04em; text-transform: uppercase; }
.pc-pill--default { background: #ecfdf5; color: #047857; }
.pc-pill--campaign { background: #fdf2f6; color: #db2777; }
.pc-sub { margin-top: 1px; font: 400 13px/1.4 var(--font-body); color: #5b6076; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-staff { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; padding: 4px 11px 4px 4px; border-radius: 12px; background: #f3f4f9; font: 700 13px/1.3 var(--font-display); color: #4a5065; }
.pc-staff i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #7866cc; font: 700 13px/1 var(--font-display); font-style: normal; color: #fff; }
.pc-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font: 400 13px/1.4 var(--font-body); color: #5b6076; }
.pc-stats b { font-weight: 700; color: var(--ink); }
.pc-marks { display: inline-flex; align-items: center; gap: 5px; }
.pc-marks .icon { width: 16px; height: 16px; }
.pc-btns { display: flex; gap: 6px; padding-top: 11px; border-top: 1px solid var(--v2-line); }
.pc-btns span { flex: 1; padding: 6px 8px; border-radius: 8px; background: var(--v2-card); font: 600 13px/1.4 var(--font-display); color: #4a5065; text-align: center; }
.placer-credit { margin-top: 12px; }
.placer-credit b { font-weight: 600; color: var(--ink); }
.placer-side .calc-note { margin-top: auto; padding-top: 16px; }

/* ==========================================================================
   THE DEVICE: one large port of the review page, with callouts beside it
   ========================================================================== */
.rp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 8px; }

/* the page ground the template paints behind its card (#f2f3f5, padding 32px 12px) */
.rp-screen { padding: 32px 16px; border-radius: 18px; background: #f2f3f5; box-shadow: inset 0 0 0 1px var(--v2-line); }
.rp-card { max-width: 460px; margin: 0 auto; padding: 34px 30px 30px; border-radius: 14px; background: #fff; border: 1px solid #ececf0; text-align: center; }
.rp-logo { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 10px; background: var(--ghost); font: 500 17px/1.2 var(--font-serif); color: var(--blue); }
.rp-h1 { margin: 0 0 10px; font: 700 24px/30px var(--font-display); letter-spacing: -.01em; color: #1b1d1e; }
.rp-intro { margin: 0 0 22px; font: 400 15px/23px var(--font-body); color: #5f6b6b; }

/* PillButton: 52px tall, 10px radius, 15px/22px padding, a 22px icon chip */
.rp-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 10px; padding: 13px 18px; border-radius: 10px; font: 600 14.5px/1.35 var(--font-display); text-align: center; }
.rp-btn:first-of-type { margin-top: 4px; }
.rp-btn--go { background: #2e7d32; color: #fff; }
.rp-btn--out { background: #fff; border: 1px solid #d6d9de; color: #2e7d32; }
.rp-btn--red { background: #fff; border: 1px solid #ececf0; color: #e63d3d; }
.rp-chip { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; }
.rp-chip .icon { width: 17px; height: 17px; }
.rp-div { margin: 24px 0 6px; border-top: 1px solid #ececf0; }
.rp-note { margin: 14px 0 6px; font: 400 14px/21px var(--font-body); color: #5f6b6b; }

/* the callouts: a numbered run beside the screen, each one a label and a clause */
.rp-notes { display: grid; gap: clamp(22px, 2.8vw, 34px); margin: 0; padding: 0; list-style: none; counter-reset: rpn; }
.rp-notes li { position: relative; padding-left: 42px; font: 400 15px/1.6 var(--font-body); color: var(--v2-body); text-wrap: pretty; }
.rp-notes li::before { counter-increment: rpn; content: counter(rpn); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ghost); font: 700 14px/1 var(--font-display); color: var(--blue); }
.rp-notes b { color: var(--ink); font-weight: 600; }
.rp-foot { max-width: 74ch; margin: clamp(30px, 3.4vw, 44px) auto 0; font: 400 16px/1.6 var(--font-body); color: var(--v2-body); text-align: center; text-wrap: pretty; }
.rp-foot strong { color: var(--ink); font-weight: 600; }
.rp-foot a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- breakpoints ---------- */
@media (max-width: 991px) {
  .qr-page .calc { grid-template-columns: 1fr; }
  .qr-page .calc > .reveal:first-child { padding-top: 0; }
  .rp { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .rp-notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* one column, and the lead says "type your business name and pick a spot": both halves dissolve into the grid so the name
     field can take the first row, then scene, picks, pane, note. The side's padding moves onto its children. */
  .placer { grid-template-columns: 1fr; }
  .placer-left, .placer-side { display: contents; }
  .placer-name { order: -1; margin: 0; padding: 16px 18px 14px; }
  .placer-scene { min-height: 340px; }
  .placer-panes { padding: 18px 18px 0; border-top: 1px solid var(--v2-line); }
  .placer-side .calc-note { margin-top: 0; padding: 14px 18px 16px; }
  .rp-notes { grid-template-columns: 1fr; }
  .rp-screen { padding: 20px 10px; }
  .rp-card { padding: 26px 18px 22px; }
  .m-talker { grid-template-columns: 1fr 84px; }
}
