/* Platforms v2: the shared parts of the builder pages (/platforms/<slug>) and their sub pages. Shared components
   (vx-), the one-viewport section system (os-), the sub pages (pg-) and the hub's guide list. Each builder's own
   styles are in assets/css/platforms/<slug>.css, loaded after this file. These pages don't load platforms.css. */

/* ---------- shared with the other builder pages (short answer + who) ---------- */
.pbx-l .sa { padding-top: clamp(3.5rem, 7vw, 6rem); }
.sa__who { margin-top: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.sa__who .eyebrow { margin-bottom: .9rem; }
.sa__who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem 2rem; }
@media (min-width: 900px) { .sa__who ul { grid-template-columns: repeat(3, 1fr); } }
.sa__who li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; line-height: 1.45; }
.sa__who svg { flex: none; width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 50%; background: var(--bs); color: var(--bt); margin-top: .05rem; }
.pbx-l .section--line + .section--line { border-top: 1px solid var(--line); }

/* every grid starts as one column that can shrink, so wide children (chip rows, frames) never widen the page */
.gx-app, .vx-view, .gx-cap, .gx-finder, .gx-brand, .gx-pair, .gx-msgs, .gx-setup, .vx-msg, .vx-lm, .gx-hero__grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- shared: film slot ---------- */
.vx-film { position: relative; aspect-ratio: var(--ar, 2900 / 1680); background: #0f1115; overflow: hidden; }
.vx-film video, .vx-film img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vx-film picture { display: contents; }
.vx-film__pp { all: unset; box-sizing: border-box; position: absolute; right: .75rem; bottom: .75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(15,17,21,.62); backdrop-filter: blur(6px); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.vx-film__pp:hover { background: rgba(15,17,21,.85); }
.vx-film__pp:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vx-film__pp span { width: .7rem; height: .8rem; border-inline: .22rem solid #fff; }
.vx-film__pp.is-paused span { width: 0; height: 0; border: 0; border-left: .7rem solid #fff; border-block: .42rem solid transparent; margin-left: .2rem; }

/* ---------- shared: frames ---------- */
.vx-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent; }
.vx-scroll:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: -2px; }
.vx-scroll img { display: block; width: 100%; height: auto; }
.vx-browser { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(16,24,40,.08), 0 30px 70px -34px rgba(16,24,40,.45); }
.vx-browser__bar { display: flex; align-items: center; gap: .38rem; padding: .55rem .8rem; background: #f2f4f7; border-bottom: 1px solid #e4e7ec; }
.vx-browser__bar i { width: .56rem; height: .56rem; border-radius: 50%; background: #d0d5dd; }
.vx-browser__bar span { margin: 0 auto; padding: .18rem 1.2rem; border-radius: 6px; background: #fff; font-size: .72rem; color: #667085; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-browser__view { aspect-ratio: 16 / 10; background: #fff; }
.vx-phone { margin: 0; width: 100%; max-width: 15rem; padding: .5rem; border-radius: 2.4rem; background: #101214; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 34px 70px -30px rgba(16,24,40,.6); }
.vx-phone__screen { aspect-ratio: 390 / 844; border-radius: 1.95rem; background: #fff; }
.vx-still { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg, #eee); }
.vx-still img { display: block; width: 100%; height: auto; }

/* lightbox (one <dialog>, made by the script) */
.vx-lb { width: min(100vw, 96rem); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0; background: #0f1115; color: #fff; }
.vx-lb::backdrop { background: rgba(10,12,16,.82); }
.vx-lb__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: rgba(15,17,21,.94); border-bottom: 1px solid rgba(255,255,255,.08); }
.vx-lb__bar b { font-weight: 500; font-size: .95rem; }
.vx-lb__x { all: unset; cursor: pointer; padding: .5rem .9rem; border-radius: 999px; background: #fff; color: #0f1115; font-weight: 600; font-size: .9rem; }
.vx-lb__x:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 2px; }
.vx-lb__body { height: calc(100dvh - 3.4rem); overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem 1rem 3rem; }
.vx-lb__body img { display: block; margin: 0 auto; width: 100%; height: auto; border-radius: 6px; }
.vx-lb.is-phone .vx-lb__body img { max-width: 26rem; }

.vx-zoom { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .86rem; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s; }
.vx-zoom::before { content: ""; width: .85rem; height: .85rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.vx-zoom:hover { border-color: var(--ink); }
.vx-zoom:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }

/* ---------- shared: page viewer ---------- */
.vx-view { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .vx-view { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; align-items: start; } }
.vx-view__list { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter); }
.vx-view__list::-webkit-scrollbar { display: none; }
@media (min-width: 1000px) { .vx-view__list { display: grid; gap: .35rem; margin: 0; padding: 0; overflow: visible; } }
.vx-view__list button { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: flex; align-items: center; gap: .7rem; padding: .6rem .85rem; border-radius: 10px; border: 1px solid #e4e7ec; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.vx-view__list button:hover { border-color: #b2c7f7; }
.vx-view__list button:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }
.vx-view__list button[aria-selected="true"] { border-color: var(--vx-focus, #155eef); background: var(--vx-soft, #eef4ff); box-shadow: inset 3px 0 0 var(--vx-focus, #155eef); }
.vx-view__n { font: 600 .72rem/1 var(--sans); color: #98a2b3; font-variant-numeric: tabular-nums; }
.vx-view__t { display: grid; gap: .1rem; min-width: 0; }
.vx-view__t b { font-weight: 600; font-size: .92rem; line-height: 1.25; color: #101828; white-space: nowrap; }
.vx-view__t code { font: .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: #667085; }
.vx-built { margin-left: auto; padding: .18rem .45rem; border-radius: 999px; background: #dcfae6; color: #067647; font: 600 .66rem/1.2 var(--sans); font-style: normal; white-space: nowrap; }
@media (max-width: 999px) { .vx-view__t code { display: none; } .vx-view__n { display: none; } .vx-view__list button { padding: .55rem .85rem; border-radius: 999px; } .vx-view__list button[aria-selected="true"] { box-shadow: none; } }
.vx-view__shots { position: relative; padding-right: clamp(4rem, 13vw, 9.5rem); padding-bottom: 2rem; }
.vx-view__shots .vx-phone { position: absolute; right: 0; bottom: 0; width: clamp(9rem, 22%, 13.5rem); }
.vx-view__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: 1.1rem; }
.vx-view__note > p:first-child { max-width: 34rem; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.vx-view__zoom { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 759px) {
  .vx-view__shots { padding: 0; display: flex; justify-content: center; }
  .vx-view__shots .vx-browser { display: none; }
  .vx-view__shots .vx-phone { position: static; width: min(74vw, 17rem); max-width: none; }
  .vx-view__note { justify-content: center; text-align: center; }
  .vx-view__note > p:first-child { max-width: none; }
  .vx-view__zoom { justify-content: center; }
}

/* ---------- shared: lead magnet ---------- */
.vx-lm { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .vx-lm { grid-template-columns: 1.35fr 1fr; } }
.vx-lm__mocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.vx-lm__m { margin: 0; border-radius: 14px; overflow: hidden; background: #eee; }
.vx-lm__m img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vx-lm__m--1 { grid-column: span 2; aspect-ratio: 3 / 2; }
.vx-lm__m--2, .vx-lm__m--3 { aspect-ratio: 1 / 1; }
.vx-lm__card { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.vx-lm__k { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.vx-lm__card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: .75rem; }
.vx-lm__card > p:not(.vx-lm__k) { color: var(--muted); margin-bottom: 1.4rem; }
.vx-lm__dl { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: transform .2s var(--ease); }
.vx-lm__dl span { font-weight: 400; font-size: .82rem; opacity: .7; }
.vx-lm__dl:hover { transform: translateY(-1px); }
.vx-lm__dl::before { content: ""; width: 1rem; height: 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.vx-teaser { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.vx-teaser a { display: block; border-radius: 16px; transition: transform .25s var(--ease), box-shadow .25s; }
.vx-teaser a:hover { transform: translateY(-2px); }
.vx-teaser a:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 3px; }
.vx-teaser img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.vx-teaser figcaption { margin-top: .7rem; font-size: .9rem; color: var(--muted); }

/* ---------- shared: ads ---------- */
.vx-ads { display: grid; gap: .8rem; grid-template-columns: 4.2rem minmax(0, 1fr); align-items: start; }
.vx-ads__list { display: grid; gap: .5rem; }
.vx-ads__list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .25rem; padding: .25rem; border-radius: 10px; border: 1.5px solid transparent; text-align: center; transition: border-color .2s; }
.vx-ads__list button img { display: block; width: 100%; height: auto; border-radius: 6px; }
.vx-ads__list button span { font-size: .66rem; font-weight: 600; color: var(--muted); }
.vx-ads__list button[aria-selected="true"] { border-color: var(--vx-focus, #155eef); }
.vx-ads__list button[aria-selected="true"] span { color: var(--vx-focus, #155eef); }
.vx-ads__list button:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }
.vx-ads__pane { margin: 0; }
@media (max-width: 599px) {
  .vx-ads { grid-template-columns: minmax(0, 1fr); }
  .vx-ads__list { order: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vx-ads__pane img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 24px 50px -28px rgba(16,24,40,.45); }
.vx-ads__pane figcaption { margin-top: .6rem; font-size: .86rem; color: var(--muted); }
.vx-story { margin: 0; }
.vx-story__img { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(16,24,40,.45); }
.vx-story__img img { display: block; width: 100%; height: auto; }
.vx-story__qa { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.vx-story.is-safe .vx-story__qa { opacity: 1; }
.vx-story figcaption { margin-top: .75rem; }
.vx-switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; font-weight: 500; }
.vx-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vx-switch span { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 999px; background: #d0d5dd; transition: background .2s; flex: none; }
.vx-switch span::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.vx-switch input:checked + span { background: var(--vx-focus, #155eef); }
.vx-switch input:checked + span::after { transform: translateX(1.1rem); }
.vx-switch input:focus-visible + span { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }

/* ---------- shared: messages ---------- */
.vx-msg { display: grid; gap: 1rem; }
@media (min-width: 700px) { .vx-msg { grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 1.5rem; align-items: start; } }
.vx-msg__list { display: grid; gap: .35rem; align-content: start; }
.vx-msg__list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; padding: .7rem .9rem; border-radius: 10px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.vx-msg__list button b { font-weight: 600; font-size: .95rem; }
.vx-msg__list button span { font-size: .85rem; line-height: 1.4; color: var(--muted); display: none; }
.vx-msg__list button:hover { background: rgba(255,255,255,.7); }
.vx-msg__list button[aria-selected="true"] { background: #fff; border-color: #e4e7ec; box-shadow: 0 10px 24px -18px rgba(16,24,40,.35); }
.vx-msg__list button[aria-selected="true"] span { display: block; }
.vx-msg__list button:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }
.vx-msg__pane { margin: 0; border-radius: 18px; background: var(--bg); overflow: hidden; }
.vx-msg__pane img { display: block; width: 100%; height: auto; }
@media (max-width: 699px) {
  .vx-msg__list { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .2rem var(--gutter); gap: .4rem; }
  .vx-msg__list button { flex: none; padding: .5rem .85rem; border-radius: 999px; border-color: #e4e7ec; background: #fff; }
  .vx-msg__list button[aria-selected="true"] { border-color: var(--vx-focus, #155eef); color: var(--vx-focus, #155eef); box-shadow: none; }
  .vx-msg__list button[aria-selected="true"] span { display: none; }
  .vx-msg__list button b { font-size: .86rem; white-space: nowrap; }
  .vx-msg__stage { max-width: 19rem; margin-inline: auto; width: 100%; }
}

/* ---------- shared: brand ---------- */
.vx-sheet { margin: 0; }
.vx-sheet__view { aspect-ratio: 3 / 4; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(16,24,40,.4); }
.vx-sheet figcaption { margin-top: .8rem; }
.vx-sw { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.vx-sw li { display: grid; grid-template-columns: 2.4rem 1fr; grid-template-rows: auto auto auto; column-gap: .7rem; padding: .6rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.vx-sw i { grid-row: span 3; width: 2.4rem; height: 100%; min-height: 3.2rem; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.vx-sw b { font-size: .9rem; font-weight: 600; line-height: 1.2; }
.vx-sw code { font: .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.vx-sw span { font-size: .76rem; line-height: 1.35; color: var(--muted); }

/* ---------- shared: guide card ---------- */
.vx-gcard { display: grid; gap: .35rem; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.vx-gcard:hover { border-color: var(--vx-focus, #155eef); transform: translateY(-1px); }
.vx-gcard__k { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--vx-focus, #155eef); }
.vx-gcard b { font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.vx-gcard__go { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--muted); }
.vx-gcard__go svg { width: .9rem; height: .9rem; }

/* =====================================================================
   GUIDES (/platforms/<slug>/<guide>)
   ===================================================================== */
.pbx-guide .eyebrow a { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--line-2); }
.pg-art { padding: 1rem !important; background: color-mix(in srgb, var(--bs) 60%, var(--paper-2)) !important; }
.pg-art figure { margin: 0; width: 100%; }
.pg-art img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.45); }
.atoc a span, .atoc-m a span { color: var(--bt); }
.pg-needs { margin: 1.5rem 0 .5rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: color-mix(in srgb, var(--bs) 55%, #fff); }
.pg-needs ul { margin: .4rem 0 0; }
.pg-step { scroll-margin-top: 6rem; }
.pg-step h2 { display: flex; align-items: flex-start; gap: .8rem; }
.pg-step__n { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-top: .05rem; border-radius: 50%; background: var(--bi); color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.article .pg-step code, .article p code { padding: .08rem .35rem; border-radius: 5px; background: var(--paper-2); font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pg-fig { margin: 1.5rem 0 1.75rem; }
.pg-fig img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px rgba(0,0,0,.45); }
.pg-fig--img img { max-width: 19rem; border-radius: 22px; box-shadow: 0 0 0 6px #15171c, 0 24px 60px -30px rgba(0,0,0,.5); margin: 6px; }
.pg-fig figcaption { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.pg-code { margin: 1rem 0 1.5rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: #15171c; color: #e6e8ec; overflow-x: auto; font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.pg-code code { background: none !important; padding: 0 !important; color: inherit; font: inherit !important; white-space: pre; }
.pg-tip { padding: .9rem 1.1rem; border-left: 3px solid var(--b); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--bs) 55%, #fff); font-size: .98rem; }

/* hub: guide list */
.pbhub-gl { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 800px) { .pbhub-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pbhub-gl a { display: grid; gap: .35rem; height: 100%; padding: 1.2rem 1.35rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); border-left: 4px solid var(--b); transition: border-color .2s, transform .2s var(--ease); }
.pbhub-gl a:hover { transform: translateY(-2px); border-color: var(--ink); border-left-color: var(--b); }
.pbhub-gl span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pbhub-gl b { font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.pbhub-gl em { font-style: normal; font-size: .86rem; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .cx-slide { animation: none; }
  .cx-bar i, .vx-story__qa { transition: none; }
}

/* hero text on every v2 builder page: plain keyword H1, the subheadline, then the example project in one line */
.pbx-v2 .pbx-h1.pbx-h1--plain { font-size: clamp(2.1rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1.04; }
.pbx-l.pbx-v2 .pbx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; }
.pbx-example { margin-top: .85rem; max-width: 36rem; font-size: .98rem; line-height: 1.5; color: var(--muted); padding-left: .85rem; border-left: 3px solid var(--vx-focus, var(--line-2)); }

/* Wix Studio sub pages: short answer, simple sections, steps under one heading, sibling links, the example page */
.pg-sa { margin: 0 0 1.25rem; padding: clamp(1.15rem, 3vw, 1.6rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--b); }
.pg-sa__q { margin: 0 0 .55rem; font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.pg-sa p:last-child { margin: 0; line-height: 1.6; }
.pg-sec { scroll-margin-top: 6rem; }
.article .pg-steps-h { margin-top: 3.25rem; }
.pg-step--sub h3 { display: flex; align-items: flex-start; gap: .75rem; font-size: 1.2rem; }
.pg-step--sub .pg-step__n { width: 1.8rem; height: 1.8rem; margin-top: -.1rem; font-size: .9rem; }
.pg-sib { margin: 2.5rem 0 0; padding: 1.15rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.article .pg-sib ul { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: 0; }
.article .pg-sib a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; line-height: 1.35; }
.article .pg-sib li:last-child a { border-bottom: 0; }
.pg-sib a svg { flex: none; width: 1rem; height: 1rem; color: var(--bt); }
.article .pg-sib a:hover { color: var(--bt); }
.pg-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0 .6rem; }
@media (min-width: 700px) { .pg-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pg-strip figure { margin: 0; }
.pg-strip img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0,0,0,.4); }
.pg-strip figcaption { margin-top: .4rem; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.article .pg-note { font-size: .9rem; color: var(--muted); }
.pg-duo > div { display: grid; gap: 1rem; align-items: start; grid-template-columns: minmax(0, 1fr); justify-items: center; }
@media (min-width: 600px) { .pg-duo > div { grid-template-columns: minmax(0, 1fr) minmax(0, 9.5rem); justify-items: stretch; } }
.pg-duo .pg-duo__m { max-width: 15rem; }
.pg-fig--ad img { max-width: 22rem; }
.pg-wide { margin: 1.5rem 0 .6rem; }
.pg-wide .vx-msg { padding: 1rem; border-radius: var(--radius); background: #f4f7fb; }
.article .vx-filmfig { max-width: none; }
.pg-show__top { display: grid; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.pg-show__top .pg-sa { max-width: 52rem; margin: 0; }
.pg-jump .answer__label { margin-bottom: .6rem; }
.pg-jump ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pg-jump a { display: inline-block; padding: .42rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .88rem; font-weight: 500; transition: border-color .2s; }
.pg-jump a:hover { border-color: var(--b); }
.pg-show__end { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.pg-show__end > * { max-width: 52rem; }
.pg--show .wx-sec, .pg--show .wx-site { scroll-margin-top: 4rem; }

/* ---------- shared: phone picker (full emails in a scrollable phone) and SMS screens ---------- */
.vx-pp { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .vx-pp { grid-template-columns: minmax(0, 32rem) minmax(0, 18rem); justify-content: start; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; } }
.vx-pp__list { display: grid; gap: .4rem; }
.vx-pp__list button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .1rem; padding: .7rem .95rem; border-radius: 10px; background: #fff; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.vx-pp__list button b { font-weight: 600; }
.vx-pp__list button span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.vx-pp__list .vx-pp__k { font-size: .7rem !important; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--vx-focus, #155eef) !important; }
.vx-pp__list button:hover { border-color: var(--line-2); }
.vx-pp__list button[aria-selected="true"] { border-color: var(--vx-focus, #155eef); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vx-focus, #155eef) 15%, transparent); }
.vx-pp__list button:focus-visible { outline: 2px solid var(--vx-focus, #155eef); outline-offset: 2px; }
.vx-pp__phone { display: grid; justify-items: center; }
@media (min-width: 860px) { .vx-pp__phone { position: sticky; top: 6rem; } }
.vx-pp__phone .vx-phone { max-width: 17.5rem; }
.vx-pp__pane { height: 100%; }
@media (max-width: 859px) { .vx-pp__phone { order: -1; } }
.vx-sms { display: flex; flex-direction: column; gap: .45rem; padding: 2rem .85rem 1rem; background: #fff; overflow-y: auto; }
.vx-sms__who { display: grid; justify-items: center; gap: .3rem; font-size: .74rem; color: #333; padding-bottom: .6rem; border-bottom: 1px solid #eee; margin-bottom: .2rem; }
.vx-sms__who i { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c, #333); color: #fff; font-style: normal; font-weight: 700; }
.vx-sms__when { text-align: center; font-size: .64rem; color: #8e8e93; margin-top: .3rem; }
.vx-sms__b { max-width: 88%; padding: .55rem .7rem; border-radius: 16px 16px 16px 4px; background: #e9e9eb; color: #111; font-size: .76rem; line-height: 1.4; }

/* more editor captures (anything not placed on purpose) */
.vx-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.vx-more__h { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.vx-more__grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .vx-more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vx-more figure { margin: 0; }
.vx-more img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -34px rgba(0,0,0,.45); }
.vx-more figcaption { margin-top: .6rem; font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* film figures (a film with a caption), shared */
.vx-filmfig { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 64rem; }
.vx-filmfig .vx-film { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(0,0,0,.45); }
.vx-filmfig figcaption { margin-top: .7rem; font-size: .86rem; color: var(--muted); }
.vx-more .vx-film { border-radius: 10px; }
.vx-filmfig:has(.vx-film--tall) { max-width: 22rem; }
.vx-more figure:has(.vx-film--tall) { max-width: 22rem; }
.vx-film--tall video { object-position: center; }
.vx-filmfig--dark figcaption { color: #c9d0f0; }
.vx-filmfig--dark .vx-film { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 70px -40px rgba(0,0,0,.6); }

/* =====================================================================
   ONE-VIEWPORT SECTIONS (os-). Every section on a builder page fits one laptop screen: checked at 1440 x 820 and
   1280 x 760 by scripts/check-sections.mjs. Anatomy: optional eyebrow, an H2 of at most two lines in one font style,
   a lead of at most two lines, ONE visual sized to the screen, up to three bullets or one picker, one link to the
   sub page that explains it. Split (text | visual) by default; os--stack puts a short head over a wide visual;
   os--sticky (one per page at most) keeps the visual in view while the text scrolls.
   --os-vh is the most height a visual may take.
   ===================================================================== */
.os { --os-vh: max(260px, calc(100vh - 306px)); padding-block: 68px; border-top: 1px solid var(--line); scroll-margin-top: 4.5rem; }
.os--stack { --os-vh: max(240px, calc(100vh - 356px)); }
.os--tint { background: var(--os-tint, #f4f6f9); }
.os--dark { background: var(--os-dark, #121315); color: #fff; --os-ink: #fff; --muted: #b9bec8; --line: rgba(255,255,255,.12); }
.os__grid { display: grid; gap: 28px clamp(2rem, 4.5vw, 4.5rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) {
  .os__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .os--flip .os__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .os--flip .os__txt { order: 2; }
  .os--even .os__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.os__txt { min-width: 0; }
.os__k { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--os-k, var(--bt)); margin-bottom: .8rem; }
.os__h2 { max-width: 34rem; font-size: clamp(1.75rem, 2.95vw, 2.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; color: var(--os-ink, var(--ink)); text-wrap: balance; }
.os__lead { max-width: 34rem; margin-top: .9rem; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.os__list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .55rem; max-width: 34rem; }
.os__list li { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .98rem; line-height: 1.45; }
.os__list svg { width: 1.35rem; height: 1.35rem; padding: .22rem; border-radius: 50%; background: var(--os-soft, var(--bs)); color: var(--os-k, var(--bt)); }
.os-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; color: var(--os-k, var(--bt)); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.os-link svg { display: inline-block; width: 1rem; height: 1rem; margin-left: .3rem; vertical-align: -.15em; }
.os-link:hover { text-decoration-color: currentColor; }
.os__vis { min-width: 0; display: flex; justify-content: center; align-items: center; }
.os--stack .os__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }
@media (min-width: 1000px) {
  .os--stack .os__txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; }
  .os--stack .os__body > :first-child { margin-top: 0; }
}
.os__body .os-link:first-child { margin-top: 0; }
/* one visual, never taller than --os-vh */
.os-img { margin: 0; display: flex; justify-content: center; max-width: 100%; }
.os-img picture { display: contents; }
.os-img img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--os-vh); object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px rgba(18,19,21,.1), 0 30px 70px -40px rgba(18,19,21,.45); }
.os-img--flat img { box-shadow: none; border-radius: 0; }
.os-img--soft img { box-shadow: 0 30px 70px -44px rgba(18,19,21,.5); border-radius: 14px; }
.os-film { width: 100%; display: flex; justify-content: center; }
.os-film .vx-film { width: min(100%, calc(var(--os-vh) * var(--ar))); border-radius: 12px; box-shadow: 0 0 0 1px rgba(18,19,21,.1), 0 30px 70px -40px rgba(18,19,21,.45); }
.os .vx-phone { width: min(15rem, calc(var(--os-vh) * .44)); max-width: none; flex: none; }
.os .vx-browser { width: min(100%, calc((var(--os-vh) - 32px) * 1.6)); }
.os-pair { position: relative; width: min(100%, calc((var(--os-vh) - 32px) * 1.6 + 3rem)); padding-right: 3rem; }
.os-pair .vx-browser { width: 100%; }
.os-pair .vx-phone { position: absolute; right: 0; bottom: -1rem; width: 27%; padding: .35rem; border-radius: 1.6rem; }
.os-pair .vx-phone .vx-phone__screen { border-radius: 1.3rem; }
.os-phones { --n: 1; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1rem; width: min(100%, calc(var(--n) * var(--os-vh) * .43 + (var(--n) - 1) * 1rem)); }
.os-phones .vx-phone { width: 100%; max-width: calc(var(--os-vh) * .44); margin-inline: auto; }
.os-phones--4 .vx-phone { padding: .35rem; border-radius: 1.6rem; }
.os-phones--4 .vx-phone__screen { border-radius: 1.3rem; }
.os-phones__l { display: grid; justify-items: center; gap: .45rem; text-align: center; min-width: 0; }
.os-phones__l > b { font-size: .86rem; font-weight: 600; line-height: 1.25; }
.os-note { margin-top: .6rem; font-size: .86rem; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* sticky: one per page at most; the visual stays in view while the text scrolls */
@media (min-width: 1000px) {
  .os--sticky .os__grid { align-items: start; }
  .os--sticky .os__vis { position: sticky; top: calc(var(--hdr, 72px) + 24px); max-height: calc(100vh - var(--hdr, 72px) - 48px); }
}
/* phones: stack, each visual at most about 70% of the screen */
@media (max-width: 999px) {
  .os { --os-vh: min(70vh, 34rem); padding-block: 56px; }
  .os--stack { --os-vh: min(70vh, 34rem); }
  .os__vis { justify-content: flex-start; }
  .os-pair { padding-right: 2rem; }
  .os-phones--4 { grid-template-columns: repeat(4, 10.5rem); width: auto; max-width: none; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) .5rem; justify-content: start; }
  .os-phones--4::-webkit-scrollbar { display: none; }
}
/* hero: text and the film side by side, the buttons above the fold */
.os-hero { padding-block: 28px 44px; }
.os-hero__grid { display: grid; gap: 28px clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .os-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.os-hero .crumbs { margin-bottom: 1rem; }
.os-hero .pbx-chip { margin-bottom: 1rem; }
.pbx-v2 .os-hero .pbx-h1.pbx-h1--plain { font-size: clamp(2.1rem, 3.9vw, 3.3rem); }
.os-hero .pbx-lead { margin-top: .9rem; }
.os-hero .pbx-ctas { margin-top: 1.4rem; }
.os-hero__vis { min-width: 0; display: flex; justify-content: center; }
.os-hero__vis > figure { width: min(100%, calc((100vh - 250px) * 1.7)); margin: 0; }
/* FAQ, how I work, testimonials */
.os-faq .os__grid { align-items: start; }
.os-faq .faq { max-width: none; margin: 0; }
.os-faq .faq summary { padding-block: 1.05rem; font-size: 1.05rem; }
.os-faq__more { margin-top: 1.5rem; }
.os-faq__more p { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.os-faq__more .links-grid a { padding: .4rem .8rem; font-size: .84rem; }
.os-how__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: os; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .os-how__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .os-how__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.os-how__list li { counter-increment: os; display: grid; align-content: start; gap: .35rem; padding-top: 1rem; border-top: 2px solid var(--os-ink, var(--ink)); }
.os-how__list li::before { content: counter(os, decimal-leading-zero); font: 600 .8rem/1 var(--sans); color: var(--os-k, var(--bt)); }
.os-how__list b { font-weight: 600; font-size: 1.05rem; color: var(--os-ink, var(--ink)); }
.os-how__list span { font-size: .93rem; line-height: 1.5; color: var(--muted); }
.os-proof .quotes { margin-top: 1.75rem; }
.os-wide { padding-block: 68px; border-top: 1px solid var(--line); }
.os-wide .os__h2 { max-width: 44rem; }
.os-page .sa { padding-block: 64px; border-top: 1px solid var(--line); }
.os-page .sa__card { gap: 1.5rem 3rem; }
/* shared pickers and frames inside a one-viewport section */
.os .vx-msg { width: 100%; max-width: 40rem; }
@media (min-width: 700px) { .os .vx-msg { grid-template-columns: minmax(0, 1fr) minmax(0, min(16rem, calc(var(--os-vh) * .52))); } }
.os .vx-msg__pane { max-height: var(--os-vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.os .vx-msg__list { max-height: var(--os-vh); overflow-y: auto; scrollbar-width: thin; }
.os .vx-ads { grid-template-columns: 4.2rem minmax(0, auto); justify-content: center; }
.os .vx-ads__pane img { width: auto; max-width: 100%; max-height: calc(var(--os-vh) - 2.6rem); }
.os .vx-ads__pane figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os .vx-sheet { width: 100%; max-width: calc(var(--os-vh) * .9); }
.os .vx-sheet__view { aspect-ratio: auto; height: calc(var(--os-vh) - 3.2rem); }
.os .vx-sheet figcaption { margin-top: .6rem; }
.os .vx-story__img { max-height: calc(var(--os-vh) - 2.5rem); aspect-ratio: 9 / 16; }
.os .vx-story__img img { height: 100%; object-fit: cover; }
.os .vx-filmfig { margin: 0; max-width: 100%; }
/* sub pages rebuilt to the one-viewport rules (pg-os): no figure taller than the screen */
.pg-os .pg-art img { width: auto; max-width: 100%; max-height: calc(100vh - 340px); margin-inline: auto; }
.pg-os .pg-fig img { width: auto; max-width: 100%; max-height: calc(100vh - 400px); }
.pg-os .pg-fig--img img { max-height: min(30rem, calc(100vh - 340px)); }
.pg-os .pg-duo img { max-height: none; }
.pg-os .pg-duo .pg-duo__m { max-height: min(32rem, calc(100vh - 300px)); width: auto; }
@media (min-width: 600px) { .pg-os .pg-duo > div { grid-template-columns: minmax(0, 1fr) auto; } }
.pg-os .vx-msg { --os-vh: min(30rem, calc(100vh - 320px)); }
.pg-os .vx-msg__pane { max-height: var(--os-vh); overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 700px) { .pg-os .vx-msg { grid-template-columns: minmax(0, 1fr) minmax(0, min(15rem, calc(var(--os-vh) * .52))); } }
.pg-os .vx-filmfig .vx-film { max-height: calc(100vh - 300px); }
/* the page viewer (a list of pages, the selected one on desktop and phone) inside one screen */
.os .vx-view { width: 100%; }
@media (min-width: 1000px) {
  .os .vx-view__list { max-height: var(--os-vh); overflow-y: auto; scrollbar-width: thin; align-content: start; }
  .os .vx-view__shots { max-width: calc((var(--os-vh) - 7.4rem) * 1.6 + 9.5rem); }
  .os .vx-view__shots .vx-phone { width: min(22%, calc((var(--os-vh) - 7.4rem) * .44)); }
  .os .vx-view__note { margin-top: .6rem; }
  .os .vx-view__note > p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
}
/* a row of three lead magnet mockups on a sub page */
.pg-mocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.pg-mocks img { display: block; width: 100%; height: 11rem; object-fit: cover; border-radius: 10px; }
/* a page on desktop and phone inside a sub page */
.pg-pagepair { display: flex; gap: 1rem; align-items: flex-end; margin: 1.25rem 0; }
.pg-pagepair .vx-browser { flex: 1 1 auto; min-width: 0; }
.pg-pagepair .vx-phone { width: 9.5rem; flex: none; padding: .35rem; border-radius: 1.6rem; }
@media (max-width: 599px) { .pg-pagepair .vx-phone { display: none; } }
/* ad picker thumbnails scroll when there are many */
.os .vx-ads__list { max-height: calc(var(--os-vh) - 1rem); overflow-y: auto; scrollbar-width: none; align-content: start; }
.pg-os .vx-ads__list { max-height: 24rem; overflow-y: auto; scrollbar-width: none; align-content: start; }
.pg-os .vx-ads__pane img { width: auto; max-width: 100%; max-height: min(26rem, calc(100vh - 380px)); }
.pg-os .vx-ads__pane figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-os .pg-fig--img img { max-height: min(26rem, calc(100vh - 400px)); }
/* the phone picker (a list of messages, one phone) inside one screen */
.os .vx-pp { width: 100%; }
@media (min-width: 860px) { .os .vx-pp { grid-template-columns: minmax(0, 1fr) minmax(0, min(17rem, calc(var(--os-vh) * .5))); } .os .vx-pp__phone { position: static; } }
.os .vx-pp__list { max-height: var(--os-vh); overflow-y: auto; }
.os .vx-pp__phone .vx-phone { width: min(17rem, calc(var(--os-vh) * .46)); }
/* a row of phones inside a sub page */
.pg-phones { margin: 1.25rem 0; }
.pg-phones .os-phones { --os-vh: 22rem; justify-content: flex-start; }
.os .vx-sheet { min-width: 0; }
.os--dark .os__k, .os--dark .os-link { color: var(--os-k-dark, #a9c1ff); }
/* a phone picker inside a sub page */
.pg-pp { --os-vh: min(30rem, calc(100vh - 320px)); }
@media (min-width: 860px) { .pg-pp .vx-pp { grid-template-columns: minmax(0, 1fr) 14rem; } .pg-pp .vx-pp__phone { position: static; } }
.pg-pp .vx-pp__list { max-height: var(--os-vh); overflow-y: auto; }
.pg-pp .vx-pp__phone .vx-phone { width: 14rem; }
