/*
 * The product-page template (Bold Stack): canvas "Stacked Redesign", page "Site · Product page"
 * (the /exchange/ boards at 1440 and 390, approved by Simon on 3 Nov 2026), with the slots of the
 * research synthesis (6.2). Rendered by scripts/build-product-pages.mjs from
 * templates/product-page.template.html for /exchange/ and the product pages after it, whose
 * benefit visuals (the stills in recording slots, and so on) are styled here too.
 *
 * Loaded after css/bold-stack.css, whose conversion layouts (hp-: hero, splits, FAQ, final card,
 * footer, dock) the template shares with the homepage, and after the page's demo sheet
 * (css/buy-demo.css on /exchange/, css/wallet-demo.css on /wallet/, and so on). The px- rules
 * are the template's own. The page wrapper
 * carries .px, which scopes the few places where the product board sets a shared layout a
 * little differently from the homepage board. Same breakpoints as the homepage: 1000px
 * (header) and 860px (phone layout); fluid sizes use vw where the board used cqi.
 */

/* ------------------------------------------- the product board's measures */

.px .hp-h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.04; }
.px .hp-hero-copy { gap: 22px; }
.px .hp-copy { flex-basis: 440px; }
.px .hp-p17 { max-width: 32em; }
.px .hp-stack { gap: 32px; }
.px .hp-faq-intro { flex-basis: 360px; }
.px .hp-final .hm-wrap { padding-bottom: 40px; }

/* ----------------------------------------------------------------- hero */

.px .hp-hero-inner { padding-bottom: clamp(48px, 5.5vw, 80px); }
.px-h1 { font-size: clamp(42px, 5.2vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.96; text-wrap: balance; }

/* /wallet/ on a computer: the one action is the Stacked Wallet, so the hero's button row holds the
   QR code and the stores' badges (the final card's parts), and Register is the text link under it. */
.px-get { flex: 1 0 100%; display: flex; align-items: center; gap: 20px; }
.px-get-copy { display: flex; flex-direction: column; gap: 12px; }
.px-get .hp-badges { gap: 12px; }
.px-get .hm-badge img { height: 40px; }
.hp-final-copy .px-final-alt { align-self: flex-start; }

/* ------------------------------------------------------------- benefits */

/* "How selling works" stops below the sticky header (76px), not under it. */
.px-benefit { scroll-margin-top: 76px; }

/* One fact per benefit, in a hairline box (on the surface band, the box is slate). Its 32em is
   the text's measure, padding outside it, as on the board. */
.px-fact { box-sizing: content-box; display: flex; gap: 14px; align-items: flex-start; max-width: 32em; padding: 16px 18px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); }
.hp-sec--surface .px-fact { background: var(--bs-slate); }
.px-fact p { font-size: 14px; font-weight: 500; line-height: 1.55; }

/* A recording's slot and its still, or a still alone. The browser bar is .bs-bar, and at phone widths the
   window is a gold phone's screen (css/bold-stack.css). */
.px-rec { flex: 0 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.px-browser { position: relative; overflow: hidden; background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
/* The recording: a poster whose width and height give the box its shape on computers and, from its
   <source>, on phones, with the video on top of it. js/video-loop.js sets data-loop-on when motion is
   allowed. Without it the still shows and no video downloads; with it the still's picture is hidden, so it
   downloads only if the browser reaches it before the script runs, and its label stays for screen readers. */
.px-rec-stage { display: none; position: relative; }
.px-rec[data-loop-on] .px-rec-stage { display: block; }
.px-rec-stage img { display: block; width: 100%; height: auto; }
.px-rec-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-rec[data-loop-on] .px-browser > [role="img"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.px-rec[data-loop-on] .bs-still img { display: none; }
/* In the gold phone: the phone stands in the middle of the column, and the recording fills the screen,
   from the top. */
@media (max-width: 560px) {
  .px-rec { align-items: center; }
  .px-rec-cap { align-self: stretch; }
  .gp--still > .gp-screen > .px-browser { display: flex; flex-direction: column; }
  .gp--still .px-rec-stage { flex: 1 1 0; min-height: 0; }
  .gp--still .px-rec-stage img { height: 100%; object-fit: cover; object-position: top; }
  .gp--still .px-rec-video { top: -1px; height: calc(100% + 1px); object-position: top; } /* 1px over, because the screen's top falls between pixels and the poster's top row would show */
}

/* Its caption: "Example figures" on the still; "Recorded on Stacked Web · example figures" and the
   Pause button (js/video-loop.js) when the recording shows. */
.px-rec-cap { display: flex; justify-content: space-between; }
.px-rec:not([data-loop-on]) .px-rec-only, .px-rec[data-loop-on] .px-still-only { display: none; }

/* Every buy's Deliver to step, and a Target Buy's. At phone widths it's a gold phone, clipped under what it
   shows. On a computer the wrappers are nothing. */
.px-clip { display: contents; }
.px-clip .px-browser { flex: 0 1 560px; min-width: 0; }
@media (max-width: 560px) {
  .px-clip { display: flex; align-items: flex-start; justify-content: center; width: 100%; height: var(--px-clip, 420px); overflow: hidden; border-bottom: 1px solid var(--bs-hairline); }
}
.px-check { flex: 0 0 auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bs-teal); color: var(--bs-slate); }

/* A recording slot whose caption belongs to the recording alone (no example figures on the
   still): hidden unless the recording shows. */
.px-rec:not([data-loop-on]) .px-rec-cap--rec { display: none; }

/* A phone recording (the Stacked Wallet) in the gold phone. A recording brings its own status bar, so
   its stage covers the phone's. The clip's shape is near the screen's, so it fills it and crops under
   1%. */
.px-rec--phone { flex-basis: 440px; align-items: center; }
.px-rec--phone .px-rec-cap { align-self: stretch; justify-content: center; }
.px-rec-stage--phone { position: absolute; inset: 0; z-index: 4; }
.px-rec-stage--phone img { height: 100%; object-fit: cover; }
.px-phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The Pay Anyone link: the web app's bank note, rendered from a seeded link. */
.px-note-img { align-self: center; width: 100%; max-width: 380px; height: auto; border-radius: 17px; box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45); }
.px-note-slot { flex: 0 1 520px; min-width: 0; display: flex; justify-content: center; }

/* /otc/ and /bitcoin-treasury/: a benefit's list, when there's no screen to show. */
.px-list { flex: 0 1 520px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.hp-sec--surface .px-list { background: var(--bs-slate); }
.px-list-rows { display: flex; flex-direction: column; gap: 14px; }
.px-list-row { display: flex; gap: 12px; align-items: flex-start; }
.px-list-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.px-list-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.px-list-text { font-size: 14px; font-weight: 500; line-height: 1.5; }

/* The merchant page: "Choose Business during signup" and the Basin artwork. */
.px-note-line strong { font-weight: 800; }
.px-basin { flex: 0 1 520px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--bs-hairline); border-radius: 20px; }
.px-basin img { width: 100%; height: auto; }
.px-map { overflow: hidden; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-feature); background: var(--bs-surface); }
.px-map iframe { display: block; width: 100%; height: clamp(360px, 46vw, 560px); border: 0; }

/* /switch/: the comparison keeps its width and scrolls sideways inside its own frame (the guides'
   table, css/guide-page.css). */
.px-table-wrap { overflow: hidden; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); background: var(--bs-slate); }
.px-table-scroll { overflow-x: auto; }
.px-table-scroll:focus-visible { outline: 2px solid var(--bs-teal); outline-offset: -2px; }
.px-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.px-table th, .px-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bs-hairline); font-size: 14px; line-height: 1.5; }
.px-table th { font-weight: 700; }
.px-table td { font-weight: 500; }
.px-table thead tr { background: var(--bs-surface); }
.px-table thead th:first-child { width: 20%; }
.px-table .px-table-us { background: var(--bs-teal-advice); font-weight: 700; }
.px-table-note { padding: 12px 16px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.px-table-swipe { display: none; margin-top: -20px; font-size: 13px; font-weight: 500; }
@media (max-width: 760px) {
  .px-table-swipe { display: block; }
}

/* /otc/: the hero holds the form, so the phone's docked button waits until the form has left the
   screen, or it would sit over the fields. Without scroll-driven animations, this page has no dock. */
.px--form .px-dock { display: none !important; }
@supports (animation-timeline: scroll()) and (timeline-scope: --px-form) {
  .px--form { timeline-scope: --px-form; }
  .px--form .qf { view-timeline: --px-form block; }
  @media (max-width: 860px) {
    .px--form .px-dock { display: flex !important; animation-timeline: --px-form; animation-range: exit 70% exit 100%; }
  }
}

/* ---------------------------------------------------- what happens next */

.px-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.px-step { padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); }
.px-step-n { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--bs-teal); }
.px-step-title { font-size: 17px; font-weight: 800; }
.px-step-time { font-size: 12px; font-weight: 700; }
.px-step p { font-size: 14px; font-weight: 500; line-height: 1.55; }

/* ----------------------------------------------------------------- fees */

.px-fee-card { flex: 0 1 420px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bs-slate); border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-feature); }
.px-fee-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bs-hairline); }
.px-fee-list > div:last-child { border-bottom: 0; }
.px-fee-list dt, .px-fee-list dd { font-size: 15px; font-weight: 500; }
.px-fee-list dd { font-weight: 700; }
.px-fee-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; border-radius: var(--bs-radius-card); background: var(--bs-teal-wash); font-size: 15px; font-weight: 700; }
.px-fee-get { display: flex; align-items: baseline; gap: 6px; }
.px-fee-get .bs-tnum { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.px-fee-unit { font-size: 14px; font-weight: 500; }

/* ---------------------------------------------------------------- proof */

.px-quote-wrap { display: flex; justify-content: center; }
.px-quote { max-width: 820px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.px-quote > svg { color: var(--bs-teal); }
.px-quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; text-wrap: balance; }
.px-quote figcaption { font-size: 14px; font-weight: 700; }
.px-quote figcaption span { font-weight: 500; }

/* ----------------------------------------------------------- learn more */

.px-learn .hm-wrap { padding-bottom: clamp(56px, 6.5vw, 96px); display: flex; flex-direction: column; gap: 16px; }
.px-learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.px-learn-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); color: var(--bs-white); font-size: 15px; font-weight: 700; }
.px-learn-link:hover { border-color: var(--bs-teal); text-decoration: none; }
.px-learn-link > svg { flex: 0 0 auto; color: var(--bs-teal); }

/* ----------------------------------------------------------- phone dock */

/* The docked Register button, in CSS: a scroll-driven animation slides it in as the page scrolls
   past the hero button (560-660px, as on the board). Where scroll-driven animations aren't
   supported, it stays docked from the start. With reduced motion it fades instead of sliding. */
.px-dock { transform: none; visibility: visible; transition: none; }
@supports (animation-timeline: scroll()) {
  .px-dock { animation: pxDock linear both; animation-timeline: scroll(nearest); animation-range: 560px 660px; }
}
@keyframes pxDock { from { opacity: 0; transform: translateY(100%); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
@keyframes pxDockFade { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .px-dock { animation-name: pxDockFade; }
}

/* -------------------------------------------------- layout by width */

/* The second benefit's visual sits on the left beside its copy; on phones the copy comes first. */
@media (min-width: 861px) {
  .px-split--reverse { flex-direction: row-reverse; }
}

@media (max-width: 860px) {
  .px .hp-split { gap: 32px; }
}
