/* ==========================================================================
   Pier landing page, the Wix Headless quiz and their bits on other pages.
   Loaded only by pages that ask for it ("css": ["pier"] in the page meta).
   BYQ gems rebuilt here without React or GSAP, motion values kept:
   Scroll Stack (.pstack), Flip Word Reveal (.flipb), Expanding Image Panels
   (.epan), Domino Wave Card Row (.domino), Checkbox Tick (.qz__box).
   ========================================================================== */

/* ---------- The official Wix logo next to "Headless" (Pier's own lockup) ---------- */
.wixhl { display: inline-flex; align-items: baseline; gap: .28em; white-space: nowrap; }
.wixlogo { height: .74em; width: auto; flex: none; align-self: baseline; transform: translateY(.02em); }
.wixhl > span { font-weight: inherit; letter-spacing: -.01em; }
.fact--wix { gap: .4em; }
.fact--wix .wixhl { font-weight: 600; }
.pill--wix { gap: .45em; }

/* ---------- Hero: a request moving through Pier (sample data, a made-up business) ---------- */
.hero--pier .hero__title { max-width: none; font-size: clamp(2.5rem, 1.3rem + 3.3vw, 4.25rem); }
.hero--pier .hero__stage { aspect-ratio: auto; display: flex; align-items: center; }
.preq { position: relative; width: 100%; max-width: 560px; margin-inline: auto; background: var(--card); border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--ink-12), 0 30px 60px -30px rgba(15, 21, 18, .45); overflow: hidden; }
.preq__bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--forest); color: var(--paper); font-size: .875rem; }
.preq__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 1.0625rem; }
.preq__brand i { width: 10px; height: 10px; border-radius: 2px; background: var(--mint); }
.preq__client { color: var(--paper-64); }
.preq__meter { margin-left: auto; padding: 4px 10px; border-radius: var(--r-sm); background: var(--forest-2); color: var(--paper-64); }
.preq__meter b { color: var(--mint); font-weight: 600; }
.preq__body { display: grid; gap: 16px; padding: 20px 18px 18px; }
.preq__ask { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-06); }
.preq__who { font-size: .75rem; font-weight: 600; color: var(--ink-48); }
.preq__ask p { font-size: 1rem; line-height: 1.5; }
.preq__att { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 9px; border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink-12); font-size: .8125rem; color: var(--ink-64); }
.preq__att svg { width: 14px; height: 14px; }
.preq__trail { display: grid; gap: 8px; }
.preq__trail li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r); background: var(--paper); }
.preq__trail b { font-weight: 600; font-size: .9375rem; }
.preq__trail small { grid-column: 2; font-size: .8125rem; color: var(--ink-48); }
.preq__i { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink-12); color: var(--ink-64); }
.preq__i svg { width: 15px; height: 15px; }
.preq__i--live { background: var(--mint); box-shadow: none; color: var(--ink); }
.preq__tag { display: block; padding: 0 18px 14px; font-size: .75rem; color: var(--ink-48); }
/* steps arrive one after another in their own rows, so no text ever sits on top of other text */
.js .preq [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
.js .preq [data-step].is-on { opacity: 1; transform: none; }
.js .preq.is-reset [data-step] { transition-duration: .3s; }
@media (prefers-reduced-motion: reduce) { .js .preq [data-step] { opacity: 1; transform: none; transition: none; } }

/* ---------- The honest problem ---------- */
.pprob { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tile-gap); margin-top: clamp(32px, 4vw, 56px); }
.pprob__card { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--paper); }
.pprob__n { font-size: .8125rem; font-weight: 600; color: var(--ink-48); }
.pprob__card--fix { background: var(--mint); }
.pprob__card--fix .pprob__n { color: var(--ink-64); }
@media (max-width: 767px) { .pprob { grid-template-columns: minmax(0, 1fr); } }

/* ---------- How Pier works: BYQ Scroll Stack (scroll-scrubbed, no GSAP) ---------- */
.pstack { position: relative; height: 260vh; margin-top: clamp(16px, 2vw, 32px); }
.pstack__stage { position: sticky; top: calc(var(--header-h) - 8px); height: calc(100vh - var(--header-h) + 8px); height: calc(100svh - var(--header-h) + 8px); display: grid; place-items: center; padding: 16px var(--gutter); }
.pstack__cards { position: relative; width: min(920px, 100%); height: var(--pstack-h, 360px); }
.pstack__card { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(104px, 12vw, 160px); align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-lg); background: var(--acc-wash); box-shadow: 0 0 0 1px var(--ink-06), 0 24px 48px -24px rgba(15, 21, 18, .35);
  transform-origin: top center; will-change: transform; }
.pstack__txt { display: flex; flex-direction: column; gap: 12px; transition: opacity .3s var(--ease); }
.pstack__n { font-family: var(--f-display); font-size: 1rem; color: var(--acc-deep); }
.pstack__t { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1; letter-spacing: -.03em; }
.pstack__txt p { font-size: var(--t-lead); line-height: 1.5; max-width: 30em; color: var(--ink-80); }
.pstack__ico { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--card); color: var(--acc-deep); box-shadow: inset 0 0 0 1px var(--ink-06); transition: opacity .3s var(--ease); }
.pstack__ico svg { width: 42%; height: auto; stroke-width: 1.5; }
.pstack__card.is-under .pstack__txt, .pstack__card.is-under .pstack__ico { opacity: 0; }   /* covered cards show only their edge, never half a line of text */
.pstack.is-static { height: auto; }
.pstack.is-static .pstack__stage { position: static; height: auto; padding-block: 0; }
.pstack.is-static .pstack__cards { height: auto; display: grid; gap: var(--tile-gap); }
.pstack.is-static .pstack__card { position: static; will-change: auto; }
@media (max-width: 767px) {
  .pstack__card { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
  .pstack__ico { width: 64px; order: -1; }
  .pstack__txt p { font-size: 1rem; }
}

/* ---------- 4 hours a month: BYQ Flip Word Reveal as a split-flap meter ---------- */
.phours__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.phours__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.phours__txt .lead { color: var(--paper-64); max-width: 34em; }
.phours__board { display: grid; gap: var(--tile-gap); }
.flipb { display: grid; justify-items: start; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--forest-2); box-shadow: inset 0 0 0 1px var(--paper-12); }
.flipb__k { font-size: .875rem; color: var(--paper-64); }
.flipb__digits { display: flex; gap: 6px; }
.fl-col { display: inline-grid; place-items: center; width: var(--fl-w, .72em); height: 1.25em; perspective: 600px; position: relative;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(4rem, 2.4rem + 6vw, 7.5rem); line-height: 1; color: var(--paper);
  border-radius: var(--r); background: #0d1611; box-shadow: inset 0 0 0 1px var(--paper-12); font-variant-numeric: tabular-nums; }
.fl-col::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--forest); }   /* the split line on a flap board */
.fl-col--sep { width: .32em; background: none; box-shadow: none; color: var(--mint); }
.fl-col--sep::after { display: none; }
.fl-flip { display: grid; grid-template-areas: "cell"; transform-style: preserve-3d; transform: rotateX(0deg); transition: transform .26s cubic-bezier(.65, 0, .35, 1); }
.fl-flip.is-flipped { transform: rotateX(180deg); }
.fl-face { grid-area: cell; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fl-face--back { transform: rotateX(180deg); visibility: hidden; }
.fl-flip.is-flipped .fl-face--back { visibility: visible; }   /* the back face only exists while it flips, so the two faces never sit on top of each other */
.flipb__unit { font-size: 1rem; color: var(--paper-64); margin-top: -6px; }
.flipb__say { min-height: 3em; color: var(--paper); max-width: 30em; }
.flipb__btn { padding: 11px 18px; }
.phours__price { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--paper-12); color: var(--paper); font-size: .9375rem; }
.phours__price b { color: var(--mint); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .fl-flip { transition-duration: .001ms !important; } }
@media (max-width: 991px) { .phours__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pier or the Wix editor ---------- */
.pvs .vs__note { max-width: 46em; }
.pslot { margin-top: clamp(32px, 4vw, 56px); }
.pslot[data-slot] { position: relative; outline: 2px dashed var(--ink-32); outline-offset: 8px; }
.pslot[data-slot]::before { content: attr(data-slot-label); position: absolute; top: -34px; left: 0; padding: 2px 8px; border-radius: var(--r-sm); background: var(--gold); font-size: .75rem; font-weight: 600; }

/* ---------- Built on Wix Headless: BYQ Expanding Image Panels ---------- */
.epan { display: flex; gap: 10px; height: min(30rem, 62vh); margin-top: clamp(32px, 4vw, 56px); }
.epan__p { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); transition: flex-grow .7s cubic-bezier(.16, 1, .3, 1); }
.epan__p.is-active { flex-grow: 5.2; }
@media (hover: hover) and (min-width: 768px) {
  .epan:hover .epan__p.is-active { flex-grow: 1; }
  .epan:hover .epan__p:hover { flex-grow: 5.2; }
}
.epan__b { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: var(--r-lg); background: var(--forest); color: var(--paper); cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.epan__b:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; }
.epan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.82); transform: scale(1.06); transition: filter .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.epan__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(10, 15, 12, .86) 0%, rgba(10, 15, 12, .4) 38%, rgba(10, 15, 12, 0) 66%); opacity: 0; transition: opacity .6s cubic-bezier(.16, 1, .3, 1); }
.epan__ix { position: absolute; left: 14px; bottom: 16px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-display); font-size: .9375rem; color: var(--paper); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); transition: opacity .4s ease; }
.epan__cap { position: absolute; left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 26px); width: min(26rem, calc(100% - 36px)); display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.16, 1, .3, 1) .08s, transform .6s cubic-bezier(.16, 1, .3, 1) .08s; }
.epan__k { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-sm); background: var(--mint); color: var(--ink); font-size: .8125rem; font-weight: 600; }
.epan__t { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.05; letter-spacing: -.02em; }
.epan__d { font-size: .9375rem; line-height: 1.45; color: var(--paper); }
.epan__p.is-open .epan__img { filter: none; transform: scale(1); }
.epan__p.is-open .epan__scrim, .epan__p.is-open .epan__cap { opacity: 1; }
.epan__p.is-open .epan__cap { transform: none; }
.epan__p.is-open .epan__ix { opacity: 0; }
@media (max-width: 767px) {
  .epan { flex-direction: column; height: auto; }
  .epan__p { flex: none; height: 4.6rem; transition: height .7s cubic-bezier(.16, 1, .3, 1); }
  .epan__p.is-active { height: 19rem; }
  .epan__ix { writing-mode: horizontal-tb; transform: none; top: 14px; bottom: auto; left: 16px; }
  .epan__cap { width: calc(100% - 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .epan__p, .epan__img, .epan__scrim, .epan__cap, .epan__ix { transition-duration: .001ms !important; }
  .epan__img, .epan__p.is-open .epan__img { transform: none; }
}
.ptrust { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 20px 40px; align-items: start; margin-top: clamp(28px, 3vw, 44px); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink-06); }
.ptrust__head { display: grid; gap: 8px; }
.ptrust__head a { text-decoration: underline; text-underline-offset: 3px; }
.ptrust__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ptrust__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); font-weight: 500; font-size: .9375rem; }
.ptrust__list svg { width: 18px; height: 18px; flex: none; color: var(--mint-deep); }
.ptrade { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; margin-top: var(--tile-gap); padding: 18px clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--gold-wash); }
.ptrade__k { font-weight: 600; color: var(--gold-deep); white-space: nowrap; }
@media (max-width: 991px) {
  .ptrust { grid-template-columns: minmax(0, 1fr); }
  .ptrust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ptrade { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
@media (max-width: 479px) { .ptrust__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- AI-assisted, human-led ---------- */
.pai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.pai__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pai__q { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--forest); color: var(--paper); }
.pai__q blockquote p { font-family: var(--f-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.25; letter-spacing: -.02em; }
.pai__q .who__r { color: var(--paper-64); }
@media (max-width: 991px) { .pai { grid-template-columns: minmax(0, 1fr); } }

/* ---------- On the way: BYQ Domino Wave Card Row ---------- */
.domino { display: flex; gap: 12px; margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; }
.domino__c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 22px; border-radius: var(--r-lg); background: var(--acc-wash);
  transform-origin: center 120%; outline: none; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.domino__c:focus-visible { box-shadow: 0 0 0 3px var(--acc-deep); }
.domino__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); background: var(--card); color: var(--acc-deep); }
.domino__ico svg { width: 24px; height: 24px; }
.domino__chip { align-self: flex-start; padding: 2px 8px; border-radius: var(--r-sm); background: var(--card); color: var(--acc-deep); font-size: .75rem; font-weight: 600; }
.domino__c b { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; }
.domino__c span:last-child { font-size: .9375rem; line-height: 1.45; color: var(--ink-64); }
@media (max-width: 1399px) { .domino { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .domino { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; } }
@media (max-width: 459px) { .domino { grid-template-columns: minmax(0, 1fr); } .domino__c { flex-direction: row; flex-wrap: wrap; align-items: center; } .domino__ico { width: 44px; height: 44px; } .domino__c b { flex: 1 1 60%; } .domino__c span:last-child { flex-basis: 100%; } }

/* ---------- The walkthrough video slot ---------- */
.wslot { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--forest); }
.wslot__poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.wslot__over { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); max-width: 30rem; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: rgba(15, 21, 18, .82); color: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.wslot__over p { color: var(--paper-64); }
.wslot__over .chip--ink { background: var(--mint); color: var(--ink); }
@media (max-width: 767px) {
  .wslot__over { position: static; max-width: none; border-radius: 0; background: var(--forest); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- The quiz (on /pier, /wix-headless and /wix-headless-quiz) ---------- */
.qz__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.qz__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.qz__card { position: relative; min-height: 520px; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--ink-06), 0 28px 56px -32px rgba(15, 21, 18, .4); }
.qz__noscript { padding: 14px; border-radius: var(--r); background: var(--paper); }
.qz__noscript a { text-decoration: underline; }
.qz__intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; min-height: 440px; }
.qz__k { font-size: .875rem; font-weight: 600; color: var(--mint-deep); }
.qz__big { font-family: var(--f-display); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.12; letter-spacing: -.02em; max-width: 16em; }
.qz__top { display: grid; gap: 10px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.qz__count { font-size: .875rem; font-weight: 600; color: var(--ink-64); }
.qz__prog { height: 4px; border-radius: 2px; background: var(--ink-06); overflow: hidden; }
.qz__prog i { display: block; height: 100%; background: var(--mint-deep); transform-origin: left center; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.qz__q { margin: 0; padding: 0; border: 0; min-width: 0; transition: opacity .17s var(--ease), transform .25s var(--ease-out); }
.qz__q.is-out-next { opacity: 0; transform: translateX(-18px); }
.qz__q.is-out-back { opacity: 0; transform: translateX(18px); }
.qz__q.is-in-next { opacity: 0; transform: translateX(18px); transition: none; }
.qz__q.is-in-back { opacity: 0; transform: translateX(-18px); transition: none; }
.qz__t { display: block; padding: 0; margin-bottom: 8px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; outline: none; text-wrap: balance; }
.qz__hint { color: var(--ink-64); margin-bottom: 4px; }
.qz__opts { display: grid; gap: 8px; margin-top: 18px; }
.qz__opts--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz__opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 14px; border-radius: var(--r); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink-12); cursor: pointer; transition: background-color .18s ease, box-shadow .18s ease; }
.qz__opt:hover { background: var(--paper-2); }
.qz__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.qz__opt:has(input:checked) { background: var(--mint-wash); box-shadow: inset 0 0 0 2px var(--mint-deep); }
.qz__opt:has(input:focus-visible) { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.qz__lab { font-weight: 500; line-height: 1.35; }
/* BYQ Checkbox Tick: a squish-bounce fill and a tick that draws itself */
.qz__box { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--r-sm); border: 2px solid var(--ink-32); background: var(--card); color: var(--ink); transition: background-color .25s ease, border-color .25s ease; }
.qz__box svg { width: 15px; height: 15px; }
.qz__tickpath { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .3s ease .08s; }
input:checked + .qz__box { background: var(--mint); border-color: var(--mint-deep); animation: qzpop .34s cubic-bezier(.3, 1.5, .5, 1); }
input:checked + .qz__box .qz__tickpath { stroke-dashoffset: 0; }
@keyframes qzpop { 0% { transform: scale(1); } 40% { transform: scale(.82); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.qz__note { margin-top: 14px; font-size: .875rem; color: var(--ink-64); }
.qz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(20px, 2.6vw, 32px); padding-top: 16px; border-top: 1px solid var(--ink-06); }
.qz__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 6px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-64); cursor: pointer; border-radius: var(--r-sm); }
.qz__back:hover { color: var(--ink); }
.qz__back svg { width: 16px; height: 16px; }
.qz__next { padding: 11px 22px; min-height: 46px; }
.qz__next:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.qz__result { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.qz__rtitle { outline: none; text-wrap: balance; }
.qz__rtext { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-80); max-width: 36em; }
.qz__reasons { display: grid; gap: 10px; width: 100%; }
.qz__reasons li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); }
.qz__reasons svg { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 2px; border-radius: 3px; background: var(--mint); color: var(--ink); }
.qz__reasons .qz__tickpath { stroke-dashoffset: 0; }
.qz__result[data-result="studio"] .qz__k { color: var(--gold-deep); }
.qz__result[data-result="check"] .qz__k { color: var(--sky-deep); }
.qz__form { width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--ink-06); }
.qz__ftitle { grid-column: 1 / -1; color: var(--ink-80); }
.qz__ftitle b { font-weight: 600; color: var(--ink); }
.qz__optin { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9375rem; line-height: 1.45; color: var(--ink-80); }
.qz__optin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz__optin .qz__box { margin-top: 1px; }
.qz__optin:has(input:focus-visible) .qz__box { outline: 3px solid var(--mint-deep); outline-offset: 2px; }
.qz__test { display: none; grid-column: 1 / -1; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r); background: var(--gold-wash); outline: none; }
.form.is-test > :not(.qz__test) { display: none; }
.form.is-test .qz__test { display: flex; }
.qz__restart { margin-top: 4px; }
@media (max-width: 991px) {
  .qz__grid { grid-template-columns: minmax(0, 1fr); }
  .qz__head { position: static; }
  .qz__card { min-height: 0; }
  .qz__intro { min-height: 0; }
}
@media (max-width: 599px) { .qz__opts--many { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .qz__q, .qz__prog i, .qz__tickpath { transition: none; }
  input:checked + .qz__box { animation: none; }
}

/* the quiz on its own page */
.qzpage .phero__title { max-width: 14em; }
.qzpage + .qz { padding-top: clamp(20px, 2.6vw, 40px); }
.qzmore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tile-gap); }
.qzmore__card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--paper); transition: background-color .2s var(--ease); }
.qzmore__card:hover { background: var(--paper-2); }
.qzmore__k { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mint-deep); }
.qzmore__k svg { width: 18px; height: 18px; }
.qzmore__card b { font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1.2; }
@media (max-width: 767px) { .qzmore { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The Pier strip on the Wix Headless page ---------- */
.pstrip { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px clamp(20px, 3vw, 40px); align-items: center; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-lg); background: var(--paper); }
.pstrip__ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r); background: var(--mint-wash); color: var(--mint-deep); }
.pstrip__ico svg { width: 30px; height: 30px; }
.pstrip__t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 767px) { .pstrip { grid-template-columns: minmax(0, 1fr); justify-items: start; } .pstrip__ico { width: 56px; height: 56px; } }

/* the quiz's screens and the marked slots use the hidden attribute: keep it winning over display rules */
.qz [hidden], [data-slot][hidden] { display: none !important; }
.hero__facts .fact--wix svg.wixlogo, .pill svg.wixlogo { width: auto; height: .74em; color: currentColor; margin: 0; }

/* the Pier call to action has no figure, so centre its buttons when they wrap */
.cta__inner > .btn-row { justify-content: center; }
@media (max-width: 767px) {
  /* phones: Back and Next stay in reach on long questions */
  .qz__nav { position: sticky; bottom: 0; z-index: 2; margin-inline: calc(-1 * clamp(22px, 3vw, 40px)); padding: 12px clamp(22px, 3vw, 40px); background: var(--card); box-shadow: 0 -10px 18px -14px rgba(15, 21, 18, .35); }
}

.phours__price a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.phours__price a:hover { text-decoration-color: currentColor; }

/* ---------- Abstract graphics instead of photos, and the Pier logo (Ryan, 22 Oct) ---------- */
.epan__art { display: block; }
/* the walkthrough panel: a banner, logo then words down the left, the graphic behind (Ryan: tighter, logo left-aligned) */
.wslot__art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wslot__in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.6vw, 36px); padding: clamp(24px, 3.6vw, 56px);
  background: linear-gradient(90deg, rgba(15, 21, 18, .9) 0%, rgba(15, 21, 18, .62) 42%, rgba(15, 21, 18, 0) 72%); }
.pmk { width: 44px; height: 44px; border-radius: var(--r); background: var(--mint); color: var(--ink); display: grid; place-items: center; flex: none; }
.pmk svg { width: 62%; height: 62%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.pmk__wave { animation: pmk-wave 2.4s ease-in-out infinite; }
@keyframes pmk-wave { 50% { transform: translateX(-1.4px); } }
.pmk--sm { width: 22px; height: 22px; border-radius: 5px; }
.preq__brand .pmk--sm svg { width: 70%; height: 70%; stroke-width: 2.4; }
.wslot__logo { display: flex; align-items: center; gap: clamp(12px, 1.2vw, 16px); color: var(--paper); pointer-events: none; }
.wslot__logo .pmk { width: clamp(48px, 4.4vw, 64px); height: clamp(48px, 4.4vw, 64px); border-radius: var(--r-lg); box-shadow: 0 0 0 8px rgba(130, 244, 133, .12), 0 18px 48px -12px rgba(130, 244, 133, .55); }
.wslot__brand { display: grid; gap: clamp(4px, .6vw, 8px); }
.wslot__brand b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); line-height: .9; letter-spacing: -.045em; }
.wslot__brand svg { width: clamp(88px, 7.5vw, 124px); height: auto; aspect-ratio: 3572 / 453; color: var(--paper-64); }
@media (prefers-reduced-motion: reduce) { .pmk__wave { animation: none; } }
.wslot .wslot__over { position: static; max-width: 32rem; padding: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 767px) { .wslot__in { background: linear-gradient(180deg, rgba(15, 21, 18, .55) 0%, rgba(15, 21, 18, .88) 55%); } }
