/* ======================================================
   MSP EDITION PREVIEW (popup)
   Scoped to .msp-modal. Uses the product page tokens, with fallbacks
   so the component also renders on a page without them.
   ====================================================== */
.msp-modal{
  --m-blue:var(--blue-2,#1640B6); --m-blue-3:var(--blue-3,#0A1B6C);
  --m-ink:var(--ink,#101828); --m-ink-2:var(--ink-2,#3A4457); --m-muted:var(--muted,#667085);
  --m-line:var(--line,#E3E8F2); --m-line-2:var(--line-2,#D5DCEA);
  --m-soft:var(--bg-soft,#F4F7FC); --m-tint:var(--bg-tint,#EAF0FD);
  --m-green:var(--green,#1E9E36); --m-green-ink:var(--green-ink,#137A29); --m-green-soft:var(--green-soft,#E7F5EA);
  --m-orange:var(--orange,#FF6A13); --m-orange-d:var(--orange-d,#E85A06);
  padding:0;border:0;margin:auto;width:min(1180px, calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);
  border-radius:24px;background:#fff;color:var(--m-ink);font-family:var(--font,"Roboto",system-ui,sans-serif);
  overflow:auto;overscroll-behavior:contain;box-shadow:0 40px 90px -30px rgba(6,14,48,.55)}
.msp-modal::backdrop{background:rgba(6,14,48,.62);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.msp-modal[open]{animation:msp-in .22s ease-out}
@keyframes msp-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
html.msp-lock{overflow:hidden}

.msp-modal__grid{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);min-height:100%}
.msp-modal__grid > *{min-width:0}

/* ---- Left pane ---- */
.msp-gallery{background:var(--m-soft);padding:34px 34px 28px;border-right:1px solid var(--m-line)}
.msp-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--m-green-ink)}
.msp-eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--m-green)}
.msp-title{margin:10px 0 0;font-size:clamp(1.4rem, 2.2vw, 1.85rem);line-height:1;font-weight:700;letter-spacing:-.015em;text-wrap:balance;max-width:26ch}
.msp-desc{margin:8px 0 0;font-size:15.5px;line-height: 1.4em; color:var(--m-ink-2);max-width:60ch}

.msp-carousel{margin-top:20px}
.msp-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:16px;outline-offset:4px}
.msp-track::-webkit-scrollbar{display:none}
.msp-slide{flex:0 0 100%;margin:0;scroll-snap-align:start;scroll-snap-stop:always}
.msp-slide picture,.msp-slide img{display:block;width:100%;height:auto}
.msp-slide img{aspect-ratio:2480/1520;border-radius:12px;background:var(--m-tint)}
.msp-slide figcaption{padding:6px 4px 0}
.msp-slide h3{margin:0;font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--m-ink)}
.msp-slide p{margin:6px 0 0;font-size:15px;line-height:1.4em;color:var(--m-ink-2);max-width:66ch}

/* Progress: counter + one segment per screen (clickable), above the screenshot */
.msp-progress{display:flex;align-items:flex-start;gap:16px;margin-bottom:14px}
.msp-count{flex:0 0 auto;font-size:13px;font-weight:500;color:var(--m-muted);font-variant-numeric:tabular-nums;line-height:1;padding-top:1px}
.msp-count b{font-size:15px;color:var(--m-ink);font-weight:700}
.msp-segs{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.msp-seg{appearance:none;border:0;background:none;padding:0;margin:0;font:inherit;text-align:left;cursor:pointer;color:var(--m-muted)}
.msp-seg::before{content:"";display:block;height:4px;border-radius:999px;background:#D5DDEC;transition:background .25s}
.msp-seg span{display:block;margin-top:7px;font-size:12.5px;font-weight:500;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .2s}
.msp-seg.is-done::before{background:#8FA8E0}
.msp-seg[aria-current="true"]::before{background:var(--m-blue)}
.msp-seg[aria-current="true"] span{color:var(--m-blue)}
.msp-seg:hover span{color:var(--m-ink)}

/* Arrows on the sides of the screenshot */
.msp-stage{position:relative}
.msp-nav{position:absolute;left:0;right:0;top:0;aspect-ratio:2480/1520;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.msp-arrow{pointer-events:auto;width:48px;height:48px;border-radius:50%;border:1px solid rgba(16,24,40,.08);background:#fff;color:var(--m-ink);display:grid;place-items:center;cursor:pointer;
  box-shadow:0 10px 24px -8px rgba(10,27,108,.35),0 2px 6px rgba(16,24,40,.08);transition:transform .15s,color .15s,background .15s,opacity .2s,visibility .2s}
.msp-arrow--prev{margin-left:-20px}
.msp-arrow--next{margin-right:-20px}
.msp-arrow:hover:not(:disabled){background:var(--m-blue);color:#fff;transform:scale(1.06)}
.msp-arrow:disabled{opacity:0;visibility:hidden}
.msp-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.msp-note{margin:10px 4px 0;font-size:12.5px;color:var(--m-muted)}

/* ---- Right pane ---- */
.msp-form{padding:40px 34px 32px;display:flex;flex-direction:column;justify-content:center}
.msp-form__title{margin:0;font-size:22px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.msp-form__lede{margin:8px 0 0;font-size:15px;line-height:1.55;color:var(--m-ink-2)}
.msp-form__fields{margin-top:22px;display:grid;gap:14px}
.msp-field{display:grid;gap:6px}
.msp-field label{font-size:13.5px;font-weight:500;color:var(--m-ink);margin-bottom:0px}
.msp-opt{font-weight:400;color:var(--m-muted)}
.msp-field input,.msp-field textarea{font:inherit;font-size:15.5px;color:var(--m-ink);width:100%;padding:12px 14px;border:1px solid var(--m-line-2);border-radius:10px;background:#fff;transition:border-color .15s, box-shadow .15s}
.msp-field textarea{resize:vertical;min-height:88px}
.msp-field input::placeholder,.msp-field textarea::placeholder{color:#98A2B3}
.msp-field input:focus,.msp-field textarea:focus{outline:none;border-color:var(--m-orange);box-shadow:0 0 0 3px rgba(255,106,19,.18)}
.msp-field [aria-invalid="true"]{border-color:#D92D20}
.msp-err{display:none;font-size:12.5px;color:#B42318}
.msp-field [aria-invalid="true"] ~ .msp-err{display:block}
.msp-form-error{margin:0;font-size:13.5px;color:#B42318}
.msp-submit{margin-top:6px;font:inherit;font-weight:700;font-size:16px;color:#fff;background:var(--m-orange);border:0;border-radius:999px;padding:14px 24px;cursor:pointer;transition:background .15s}
.msp-submit:hover{background:var(--m-orange-d)}
.msp-submit[disabled]{opacity:.7;cursor:progress}
.msp-privacy{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0 0;font-size:13.5px;color:var(--m-muted)}
.msp-privacy svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.msp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.msp-done{text-align:center;padding:24px 8px}
.msp-done:focus{outline:none}
.msp-done__icon{width:56px;height:56px;border-radius:50%;background:var(--m-green-soft);color:var(--m-green-ink);display:grid;place-items:center;margin:0 auto 16px}
.msp-done__icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.msp-done h3{margin:0;font-size:20px}
.msp-done p{margin:8px 0 0;color:var(--m-ink-2);font-size:15px}

.msp-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;border:1px solid var(--m-line);background:#fff;color:var(--m-ink-2);display:grid;place-items:center;cursor:pointer;z-index:2}
.msp-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msp-close:hover{color:var(--m-ink);border-color:var(--m-line-2)}

.msp-modal :focus-visible{outline:3px solid var(--m-orange);outline-offset:3px}

@media (max-width:900px){
  .msp-modal{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}
  .msp-modal__grid{grid-template-columns:1fr}
  .msp-gallery{border-right:0;border-bottom:1px solid var(--m-line);padding:56px 16px 22px}
  .msp-form{padding:26px 16px 32px}
  .msp-arrow{width:40px;height:40px}
  .msp-arrow--prev{margin-left:-8px}
  .msp-arrow--next{margin-right:-8px}
  .msp-seg span{font-size:11.5px}
}
@media (prefers-reduced-motion:reduce){
  .msp-modal[open]{animation:none}
  .msp-track{scroll-behavior:auto}
}
