/* ==========================================================================
   Promotion demo hero (templates/Components/elements/promotion-demo-hero.php)
   Playable hero of the promotion landings: centered intro and a workspace
   container with the use cases, the player (the mock of the active case
   around the iframe), the brands and the actions. From 1334px the workspace
   is an L (cases in a left rail, brands and actions in a bottom bar); below,
   one column. Tokens follow the dashboard-spa design system (magenta primary,
   magenta tinted neutrals, pills, soft shadows) implemented with Bootstrap 4
   utilities.
   ========================================================================== */

/* Montserrat for the headline: the local woff2 of the raffles landing (webroot/font/raffles-landing) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('../font/raffles-landing/montserrat-v31-latin_latin-ext-900.woff2') format('woff2'); }
/* Local stand-ins as wide as the web fonts (size-adjust): the intro keeps its lines when they load */
@font-face { font-family: 'Inter Fallback'; font-weight: 400; src: local('Arial'), local('Roboto'); size-adjust: 106.5%; }
@font-face { font-family: 'Inter Fallback'; font-weight: 500; src: local('Arial'), local('Roboto'); size-adjust: 108%; }
@font-face { font-family: 'Montserrat Fallback'; font-weight: 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Roboto Bold'), local('Roboto-Bold'), local('Arial'); size-adjust: 115%; }

/* === Tokens === */
.pdh {
    --pdh-n50: #faf7fb;
    --pdh-n100: #f4eff6;
    --pdh-n200: #e7dfeb;
    --pdh-n300: #d1c5d8;
    --pdh-n400: #a89ab0;
    --pdh-n500: #7b6d85;
    --pdh-n700: #443a4b;
    --pdh-n900: #1f1a22;
    --pdh-p50: #fdf2f9;
    --pdh-p100: #fae3f1;
    --pdh-p500: #d31c92;
    --pdh-p600: #b0167b;
    --pdh-shadow: 0 24px 48px -20px rgba(31, 26, 34, .28), 0 2px 6px rgba(31, 26, 34, .06);
}

/* === Intro text (server rendered, centered above the preview) === */
.pdh__intro { max-width: 820px; font-family: Inter, 'Inter Fallback', sans-serif; }
.pdh__intro h1 { font-family: 'Montserrat', 'Montserrat Fallback', Inter, -apple-system, 'Segoe UI', sans-serif; font-size: 58px; font-weight: 900; line-height: 1.08; letter-spacing: -.015em; color: var(--pdh-n900); }
/* German compounds ("Marketingaktionen") can be wider than a phone: hyphenate long words only (13+
   letters, 6 before and 7 after the break), so short ones such as "einen" or "Shopify" stay whole */
.pdh__intro h1:lang(de) { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 13 6 7; -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 7; }
.pdh__lead { max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--pdh-n500); }
/* Bullets side by side, wrapping on small screens */
.pdh__bullets { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.pdh__bullets li { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: 15px; font-weight: 500; color: var(--pdh-n700); }
/* Brush-stroke check of the automation landing, tinted with the brand color (mask + currentColor pattern of dm-automation.css) */
.pdh__check { flex: 0 0 auto; display: inline-block; width: 18px; height: 18px; background-color: var(--pdh-p500); -webkit-mask: url('/img/landings/dm-automation/check.svg') center / contain no-repeat; mask: url('/img/landings/dm-automation/check.svg') center / contain no-repeat; }
.pdh__trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--pdh-n500); }
.pdh__trust .ui-avatars-review__stars { display: inline-flex; margin-right: 0; }
/* Fixed box: the icon font loads late and the row must not grow */
.pdh__trust .stars { width: 1.125em; height: 1em; font-size: 14px; }
.pdh__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--pdh-p500); }
.pdh__link:hover { color: var(--pdh-p600); text-decoration: none; }
.pdh__link i { font-size: 12px; transition: transform .15s ease; }
.pdh__link:hover i { transform: translateX(3px); }
.pdh__note { margin-top: 16px; font-size: 13px; text-align: center; color: var(--pdh-n400); }
@media (max-width: 767.98px) {
    .pdh__intro h1 { font-size: 36px; }
}

/* === Header spacing: the workspace should start high, so the first screen shows it === */
@media (min-width: 992px) {
    header.landing-header.pdh { padding-top: 48px; padding-bottom: 72px; }
}

/* === Workspace: use cases, player, brands and actions in one container ===
   Phones: no box, everything stacked on the page background. From 768px the gradient box.
   From 1334px (where .container grows to 1292px) the L: rail | stage, and the bar below both.
   The gaps are generous on purpose: nothing sits tight against the player. */
.pdh-work { position: relative; margin-top: 60px; }
.pdh-work__bar { margin-top: 28px; }
@media (min-width: 768px) {
    /* 20px keeps the iframe 650px wide on the 720px container, where the games still lay out in two columns */
    .pdh-work { margin-top: 56px; padding: 20px; border-radius: 24px; background: linear-gradient(135deg, #fde7f3 0%, #ece4f8 55%, #dcebff 100%); }
}
@media (min-width: 992px) {
    .pdh-work { margin-top: 68px; padding: 32px; border-radius: 32px; }
    .pdh-work__bar { margin-top: 36px; }
}
@media (min-width: 1334px) {
    /* Taller top padding: the caption pill sits on that edge (see the pill below) */
    .pdh-work { display: grid; grid-template-columns: 228px minmax(0, 1fr); grid-template-areas: "rail stage" "bar bar"; column-gap: 28px; row-gap: 36px; margin-top: 92px; padding: 56px 32px 32px; }
    .pdh-work__rail { grid-area: rail; min-width: 0; }
    /* Not positioned: the pill inside is placed against the whole container */
    .pdh-work__stage { grid-area: stage; min-width: 0; }
    .pdh-work__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; grid-area: bar; margin-top: 0; }
}

/* === Eyebrows: small uppercase labels above the use cases and the brands === */
.pdh-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.3; text-align: center; text-transform: uppercase; color: var(--pdh-n500); }
@media (min-width: 1334px) {
    .pdh-eyebrow { margin: 4px 0 12px 4px; text-align: left; }
    .pdh-eyebrow--brands { margin: 0 0 8px; }
}

/* === Use cases: a row of chips (centered while they fit, horizontal scroll when they do not);
   in the desktop rail, a column of two-line items with their hint === */
.pdh-cases { display: flex; gap: 8px; padding: 4px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pdh-cases::-webkit-scrollbar { display: none; }
.pdh-case { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--pdh-n200); border-radius: 999px; background-color: #fff; font-size: 14px; font-weight: 600; color: var(--pdh-n700); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.pdh-case:first-child { margin-left: auto; }
.pdh-case:last-child { margin-right: auto; }
.pdh-case__icon { display: inline-flex; font-size: 14px; color: var(--pdh-n400); transition: color .15s ease, background-color .15s ease; }
.pdh-case__hint { display: none; }
.pdh-case:hover { border-color: var(--pdh-n300); background-color: var(--pdh-n50); color: var(--pdh-n900); }
.pdh-case:focus { outline: 0; }
.pdh-case:focus-visible, .pdh-case.is-active:focus-visible { box-shadow: 0 0 0 3px rgba(168, 154, 176, .35); }
/* Selected: the same white chip with a dark outline; the icon goes from gray to near black */
.pdh-case.is-active { border-color: var(--pdh-n900); background-color: #fff; box-shadow: inset 0 0 0 1px var(--pdh-n900); color: var(--pdh-n900); }
.pdh-case.is-active .pdh-case__icon { color: var(--pdh-n900); }
@media (max-width: 767.98px) {
    /* Bleeds to the screen edges so the scroll feels native */
    .pdh-cases { margin-right: -15px; margin-left: -15px; }
}
@media (min-width: 992px) and (max-width: 1333.98px) {
    /* The six chips fit the row of the 960px container without scrolling */
    .pdh-cases { padding-right: 0; padding-left: 0; }
    .pdh-case { padding: 0 13px; }
}
@media (min-width: 1334px) {
    .pdh-cases { flex-direction: column; gap: 10px; padding: 0; overflow: visible; }
    .pdh-case { gap: 12px; height: auto; padding: 14px 16px; border-color: transparent; border-radius: 16px; background-color: rgba(255, 255, 255, .45); text-align: left; white-space: normal; }
    .pdh-case:first-child, .pdh-case:last-child { margin: 0; }
    .pdh-case__icon { flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; font-size: 18px; }
    .pdh-case__text { display: flex; flex-direction: column; min-width: 0; }
    .pdh-case__label { font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--pdh-n900); }
    .pdh-case__hint { display: block; font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--pdh-n500); }
    .pdh-case:hover { border-color: transparent; background-color: rgba(255, 255, 255, .75); }
    .pdh-case.is-active { border-color: transparent; background-color: #fff; box-shadow: 0 10px 24px -14px rgba(31, 26, 34, .35), 0 0 0 1px rgba(31, 26, 34, .04); color: var(--pdh-n900); }
}

/* === Caption pill: what the active case shows. White over the gradient, pops in on every change
   (Vue transition "pdh-pill"). In the L it sits on the top edge of the container, centered on its
   whole width. === */
.pdh-pill-wrap { display: flex; justify-content: center; min-height: 38px; margin: 18px 0 24px; }
.pdh-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 9px 18px; border-radius: 999px; background-color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 26, 34, .4), 0 0 0 1px rgba(31, 26, 34, .05); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--pdh-n900); }
.pdh-pill i { flex: 0 0 auto; font-size: 14px; color: var(--pdh-p500); }
@media (max-width: 767.98px) {
    /* The caption wraps to two lines here: more room between the icon and the text */
    .pdh-pill { gap: 12px; padding-left: 16px; }
}
@keyframes pdh-pill-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
.pdh-pill-enter-active { animation: pdh-pill-in .32s cubic-bezier(.2, .9, .3, 1.2) both; }
.pdh-pill-leave-active { animation: pdh-pill-in .1s ease reverse both; }
@media (min-width: 1334px) {
    /* Placed against .pdh-work: half above its top edge, half inside; the top padding of the
       container keeps the player well below it */
    .pdh-pill-wrap { position: absolute; top: -19px; right: 0; left: 0; z-index: 6; margin: 0; pointer-events: none; }
}

/* === Scene and frame ===
   The scene holds the mock of the active case and the iframe. Every mock marks the slot of the
   promotion (ref="slot"); the iframe is a single node that promotion-demo.js moves over that slot
   once measured. Same markup at every width: every size lives here, no script involved.
   - From 992px the scene has one fixed height; the mocks are absolutely positioned inside it and
     zoomed out with --pdh-s.
   - Below, the mocks flow in one centered column and the scene is as tall as the mock. In every
     case the promotion gets the screen of a phone: 390px wide (the games use their mobile layout)
     and --pdh-screen-h tall; longer games scroll inside the frame. The mocks are scaled by width
     steps (--pdh-m). */
.pdh-scene { position: relative; width: 100%; }
/* Width steps below 992px. --pdh-m is the scale at which the 390px viewport fills the stage on the
   narrowest screen of each step (15px of container gutter per side; from 768px the workspace box
   adds 20px). The mocks take their scales from it, so their outer edges line up: the browser
   windows are 390px x m wide, the phone m - .04 (7px of rings per side), the popup and the tablet
   m - .08 (16px of the store in sight per side; 14px of bezel and a 2px ring per side). */
/* --pdh-screen-h: the screen of the phone mock below its status band (390x874, the same phone as
   on desktop screens), shared by every mock so they all keep a phone's proportions */
@media (max-width: 991.98px) { .pdh-scene { --pdh-m: 1.04; --pdh-screen-h: 824px; } }
@media (max-width: 575.98px) { .pdh-scene { --pdh-m: .97; } }
@media (max-width: 411.98px) { .pdh-scene { --pdh-m: .92; } }
@media (max-width: 389.98px) { .pdh-scene { --pdh-m: .88; } }
@media (max-width: 374.98px) { .pdh-scene { --pdh-m: .84; } }
@media (max-width: 359.98px) { .pdh-scene { --pdh-m: .79; } }
@media (max-width: 339.98px) { .pdh-scene { --pdh-m: .74; } }
/* A mock is mounted when its case is selected, so this animation gives the fade of every change.
   Opacity only: a transform would move the slot while the script measures it. */
.pdh-scene__mocks > * { animation: pdh-fade-in .4s ease; }
@media (min-width: 992px) {
    /* One height for every case and screen: the phone and the tablet read well and the browser
       windows keep a 3:2 look. The workspace may be taller than the viewport. */
    .pdh-scene { height: 660px; }
    /* Layer of the mocks, the size of the scene */
    .pdh-scene__mocks { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
}
.pdh-frame { position: absolute; top: 0; left: 0; z-index: 3; overflow: hidden; background-color: #fff; transform-origin: 0 0; }
.pdh-frame iframe { display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .25s ease; }
/* Hidden until the first demo-config lands: the default theme of the player never shows */
.pdh-frame.is-configured iframe { opacity: 1; }
/* Holds the place of the promotion until the player is configured (while it loads and when a
   restart reloads it): a neutral spinner centered on the white frame. In frame pixels, so it
   scales with the mock. */
.pdh-frame__loader { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: #9aa0ac; pointer-events: none; }
.pdh-frame__loader .spinner-border { width: 48px; height: 48px; border-width: 4px; }
@keyframes pdh-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdh-pop-in { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: scale(1); } }
/* Case change: the frame fades in together with the mock of the new case (the mocks fade on mount, above) */
.pdh-frame.is-fading,
.pdh-popup__close.is-fading { animation: pdh-fade-in .4s ease; }
/* Popup entrance (website pop-up): the overlay fades in and the popup pops after a short beat,
   when the case is selected and every time a launcher of the page mock opens it again. The popup
   look (white, rounded, shadow) lives on the iframe itself so it scales as one piece with the
   animation; the close button plays along */
.pdh-frame.is-popping iframe,
.pdh-frame.is-popping .pdh-frame__loader,
.pdh-popup__close.is-popping { animation: pdh-pop-in .45s cubic-bezier(.2, .8, .2, 1) .12s both; }
/* Corner radius of the slot of each mock, in frame pixels (scaled with the frame) */
/* Popups: the frame is just a positioned box, the iframe carries the white popup with its corners and shadow */
.pdh-frame--popup { overflow: visible; background-color: transparent; transition: opacity .2s ease; }
/* Popup closed by the visitor: the iframe stays in place (no reload), out of sight and out of the way */
.pdh-frame--popup.is-closed { visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.pdh-frame--popup iframe { border-radius: 20px; background-color: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55); }
/* The loader of the popup is that same white panel, so the spinner never floats alone over the store */
.pdh-frame--popup .pdh-frame__loader { border-radius: 20px; background-color: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55); }
.pdh-frame--page { border-radius: 0 0 17.5px 17.5px; }
.pdh-frame--tablet { border-radius: 26px; }
.pdh-frame--phone,
.pdh-frame--sheet { border-radius: 0 0 53px 53px; }
@media (max-width: 991.98px) {
    /* The 14px corners of the browser window, in frame pixels */
    .pdh-frame--page { border-radius: 0 0 calc(14px / var(--pdh-m)) calc(14px / var(--pdh-m)); }
}

/* Skeleton bars of the mocks */
.pdh-sk { display: block; border-radius: 6px; background-color: #e9e4ee; }
.pdh-sk--title { width: 360px; height: 28px; border-radius: 8px; }
.pdh-sk--text { width: 70%; height: 12px; }
.pdh-sk--btn { width: 140px; height: 40px; border-radius: 999px; background-color: #d1c5d8; }
.pdh-sk--price { width: 60px; height: 14px; }

/* Browser chrome of the window mocks */
.pdh-chrome { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--pdh-n200); background-color: var(--pdh-n50); }
.pdh-chrome__dots { display: inline-flex; gap: 5px; }
.pdh-chrome__dots span { width: 10px; height: 10px; border-radius: 50%; background-color: var(--pdh-n200); }
/* The address pill: plain white with dark text (no gray tones), so yourstore.com / yourbrand.com/play
   reads at a glance; a hairline shadow separates it from the bar */
.pdh-chrome__url { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; max-width: 260px; height: 26px; margin: 0 auto; border-radius: 999px; background-color: #fff; box-shadow: 0 0 0 1px rgba(31, 26, 34, .07), 0 1px 3px rgba(31, 26, 34, .08); font-size: 12px; font-weight: 600; color: var(--pdh-n900); }
.pdh-chrome__url i { font-size: 10px; }
/* Website pop-up: the back arrow is a real button (leaving the page fires the exit intent) in
   the colors of the brand (inline styles, promotion-demo.js), like the sticky bar of the page; the
   forward arrow beside it is decoration. While the popup is closed the arrow calls for attention. */
.pdh-chrome__nav { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; width: 52px; }
.pdh-chrome__back { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background-color: var(--pdh-n900); font-size: 11px; color: #fff; cursor: pointer; transition: filter .15s ease; }
.pdh-chrome__back:hover { filter: brightness(1.1); }
.pdh-chrome__back:focus { outline: 0; }
.pdh-chrome__back:focus-visible { box-shadow: 0 0 0 3px rgba(168, 154, 176, .45); }
/* The pulse is a copy of the button behind it, in its own color (the brand's), growing and fading */
.pdh-chrome__back.is-calling::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; border-radius: 50%; background: inherit; animation: pdh-call-ping 1.6s ease-out infinite; }
.pdh-chrome__fwd { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 11px; color: var(--pdh-n300); }
@keyframes pdh-call-ping { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
/* The close button of the popup, over the dark overlay: a white ring around its own shadow, with a beat */
@keyframes pdh-close-beat {
    0% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 255, 255, .7); transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    70%, 100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 12px rgba(255, 255, 255, 0); transform: scale(1); }
}
@keyframes pdh-call-nudge { 0%, 55%, 100% { transform: scale(1); } 25% { transform: scale(1.08); } }
@media (max-width: 991.98px) {
    /* A bigger back arrow: it is tapped here */
    .pdh-chrome__nav { width: 58px; }
    .pdh-chrome__back { width: 30px; height: 30px; font-size: 13px; }
}
@media (max-width: 575.98px) {
    /* No window buttons on phones: the address keeps the room */
    .pdh-chrome__dots { display: none; }
}

/* === Mocks ===
   The looks first, shared by every width; then the sizes and positions of each mock on desktop
   screens (>= 992px) and below. */

/* --- Browser windows (website pop-up, standalone page): the chrome bar and, below it, the page:
   a logical viewport zoomed out by --pdh-s. Its size is the room in the window divided by that
   scale, so it fills the window at any size. --- */
.pdh-device { border-radius: 14px; background-color: #fff; box-shadow: 0 30px 60px -24px rgba(31, 26, 34, .4); overflow: hidden; }
.pdh-canvas { position: absolute; top: 40px; left: 0; width: calc(100% / var(--pdh-s)); height: calc((100% - 40px) / var(--pdh-s)); transform: scale(var(--pdh-s)); transform-origin: 0 0; }

/* Website pop-up: a store in skeletons (nav, hero, product grid) dimmed by the popup overlay.
   The sticky bar is the only real element of the page: a button in the colors of the brand
   (inline styles, promotion-demo.js) that opens the popup. .is-closed: the visitor closed the popup. */
.pdh-store { overflow: hidden; background-color: #fff; }
.pdh-store__nav { display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 48px; border-bottom: 1px solid #f1ecf3; }
.pdh-store__logo { width: 120px; height: 26px; border-radius: 8px; background-color: #d9d2de; }
.pdh-store__link { width: 72px; height: 12px; }
.pdh-store__cart { width: 36px; height: 36px; margin-left: auto; border-radius: 50%; }
.pdh-store__hero { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 36px 48px; padding: 48px; border-radius: 20px; background: linear-gradient(135deg, #f4eff6, #e7dfeb); }
.pdh-store__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0 48px 24px; }
.pdh-store__product { display: flex; flex-direction: column; gap: 10px; }
.pdh-store__photo { width: 100%; height: 200px; border-radius: 14px; }
.pdh-store__bar { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; height: 76px; padding: 0 32px; border: 0; background-color: #1f1a22; box-shadow: 0 -12px 30px -14px rgba(31, 26, 34, .4); font-size: 21px; font-weight: 700; line-height: 1.2; color: #fff; cursor: pointer; }
.pdh-store__bar i { font-size: 24px; }
/* Bar text (short and long copy): when it wraps, lines of even length, never a word alone */
.pdh-store__bar > span:not(.pdh-store__bar-cta) { text-wrap: balance; }
.pdh-store__bar:focus { outline: 0; }
.pdh-store__bar:focus-visible { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7); }
.pdh-store__bar-cta { padding: 9px 22px; border-radius: 999px; background-color: #fff; font-size: 17px; white-space: nowrap; color: #1f1a22; }
.pdh-store.is-closed .pdh-store__bar-cta { animation: pdh-call-nudge 1.6s ease-in-out infinite; }
/* Fades in a beat after the mock is mounted ("backwards": once played, the opacity below rules
   again), then follows the popup: clicking it closes the popup, like the close button */
.pdh-store__overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; background-color: rgba(31, 26, 34, .55); transition: opacity .25s ease; animation: pdh-fade-in .3s ease .12s backwards; }
.pdh-store.is-closed .pdh-store__overlay { opacity: 0; pointer-events: none; }
/* The popup slot: only positions the promotion (the iframe draws the popup) over the page, zoomed
   out a bit more than the page behind, so it reads as a modal */
.pdh-popup { position: absolute; pointer-events: none; }
/* Its close button lives in the scene, above the iframe (promotion-demo.js places it on the slot
   corner). It beats while the popup is open: closing it is how the launchers of the page are
   found. The entrance animations above take over while the popup comes in. */
.pdh-popup__close { position: absolute; z-index: 4; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background-color: #fff; color: var(--pdh-n900); font-size: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); cursor: pointer; transition: background-color .15s ease; animation: pdh-close-beat 1.6s ease-out 1s infinite; }
.pdh-popup__close:hover { background-color: var(--pdh-n100); }
.pdh-popup__close:focus { outline: 0; }
.pdh-popup__close:focus-visible { box-shadow: 0 6px 16px rgba(0, 0, 0, .25), 0 0 0 3px rgba(255, 255, 255, .6); }

/* Standalone page: the promotion fills the window under the chrome bar */
.pdh-page__slot { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* --- Event: a tablet in kiosk mode. The screen is a logical viewport zoomed out by --pdh-s inside the bezel. --- */
.pdh-tablet { box-sizing: content-box; background-color: #1a1f36; box-shadow: 0 0 0 2px #2d1f5e, 0 40px 80px rgba(45, 31, 94, .25), 0 20px 40px rgba(211, 28, 146, .15); }
.pdh-tablet__camera { position: absolute; width: 6px; height: 6px; border-radius: 50%; background-color: #3a4060; }
.pdh-tablet__screen { border-radius: 26px; background-color: #000; transform: scale(var(--pdh-s)); transform-origin: 0 0; }

/* --- Phone mocks (physical store, Instagram): a side piece and the customer's phone. Shell of the
   automation landing phone (.dma-phone): dark body, violet ring, soft shadows. The layout box takes
   the scaled size, the canvas inside renders a 390x874 viewport zoomed out by --pdh-s, at every
   width: games longer than its screen scroll inside the frame. --- */
.pdh-phone { --pdh-band: 50px; position: relative; flex: 0 0 auto; width: calc(390px * var(--pdh-s)); height: calc(874px * var(--pdh-s)); background-color: #1a1f36; box-shadow: 0 0 0 5px #1a1f36, 0 0 0 7px #2d1f5e, 0 40px 80px rgba(45, 31, 94, .25), 0 20px 40px rgba(211, 28, 146, .15); }
.pdh-phone__canvas { position: absolute; top: 0; left: 0; width: 390px; height: 874px; border-radius: 53px; background-color: #fff; overflow: hidden; transform: scale(var(--pdh-s)); transform-origin: 0 0; }
/* Status bar band above the promotion, in the page color of the theme (or the app color of the DM).
   Taller than the island: the promotion below has its own background and should not touch it. */
.pdh-phone__band { height: var(--pdh-band); }
.pdh-phone__band--app { background-color: #fff; }
.pdh-phone__notch { position: absolute; top: 12px; right: 0; left: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 36px 0 44px; pointer-events: none; }
.pdh-phone__status { display: inline-flex; align-items: center; gap: 5px; }
.pdh-phone__status-icon { display: block; width: auto; height: 13px; }
.pdh-phone__island { position: absolute; left: 50%; width: 120px; height: 27px; border-radius: 27px; background-color: #000; transform: translateX(-50%); }
/* Dark promotion backgrounds get white status icons (the assets are dark) */
.pdh-phone__notch--light .pdh-phone__status-icon { filter: brightness(0) invert(1); }
.pdh-phone__slot { position: absolute; top: var(--pdh-band); right: 0; bottom: 0; left: 0; }

/* Physical store: the sticker on the table (thick white die-cut border around a tinted inner card) */
.pdh-qrcard { width: 284px; padding: 10px; border-radius: 28px; background-color: #fff; box-shadow: 0 0 0 1px rgba(31, 26, 34, .06), 0 30px 50px -24px rgba(31, 26, 34, .45), 0 2px 6px rgba(31, 26, 34, .08); transform: rotate(-4deg); }
/* Colors come from the selected brand (inline styles, promotion-demo.js); these are the fallbacks */
.pdh-qrcard__inner { padding: 22px 18px 18px; border-radius: 20px; background-color: #1f1a22; color: #fff; text-align: center; }
.pdh-qrcard__brand { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #f27ac6; }
.pdh-qrcard__title { margin-top: 6px; font-family: 'Montserrat', Inter, sans-serif; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
/* The code in a framed white box with a hard offset shadow in the button color */
.pdh-qrcard__frame { width: 166px; margin: 18px auto 16px; padding: 10px; border: 3px solid #fff; border-radius: 16px; background-color: #fff; box-shadow: 6px 6px 0 var(--pdh-p500); }
.pdh-qrcard__qr { display: block; width: 140px; height: 140px; }
.pdh-qrcard__hint { font-size: 13px; font-weight: 600; opacity: .9; }
.pdh-qrcard__foot { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background-color: #fff; color: var(--pdh-n900); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Instagram: the post with the keyword comment, a plain card slightly turned */
.pdh-post { width: 330px; border-radius: 16px; background-color: #fff; box-shadow: 0 30px 50px -24px rgba(31, 26, 34, .45), 0 2px 6px rgba(31, 26, 34, .08); transform: rotate(2deg); }
.pdh-post__inner { border-radius: 16px; overflow: hidden; }
.pdh-post__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pdh-post__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background-color: var(--pdh-n100); }
.pdh-post__user { font-size: 14px; font-weight: 600; color: #262626; }
.pdh-post__dots { width: 18px; margin-left: auto; }
/* The image: brand colors with a dot pattern (promotion-demo.js), big call to comment, clipped */
.pdh-post__media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 250px; padding: 24px 18px; background-size: 22px 22px; text-align: center; overflow: hidden; }
.pdh-post__media-line { font-family: 'Montserrat', Inter, sans-serif; font-size: 34px; font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.pdh-post__media-mark { display: inline-block; padding: 8px 14px; border-radius: 8px; font-family: 'Montserrat', Inter, sans-serif; font-size: 17px; font-weight: 900; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; transform: rotate(-2deg); }
.pdh-post__actions { display: flex; align-items: center; gap: 14px; padding: 12px 14px 8px; }
.pdh-post__actions img { width: 22px; height: 22px; }
.pdh-post__bookmark { margin-left: auto; }
.pdh-post__caption { padding: 0 14px 12px; font-size: 13px; line-height: 1.4; color: #262626; }
.pdh-post__caption-user { font-weight: 600; }
/* The comment, like the automation landing mock (.dma-ig-comments__item) */
.pdh-post__comment { display: flex; align-items: flex-start; gap: 10px; margin: 0 14px 14px; padding-top: 12px; border-top: 1px solid #efefef; }
.pdh-post__comment-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #fff3a3 0%, #ffd500 46%, #ffb300 100%); }
.pdh-post__comment-body { font-size: 13px; line-height: 1.35; color: rgba(26, 31, 54, .88); }
.pdh-post__comment-user { font-weight: 600; color: #1a1f36; }
.pdh-post__keyword { font-weight: 700; color: var(--pdh-p500); }
.pdh-post__comment-meta { margin-top: 4px; font-size: 11px; color: #8e8e8e; }
/* Like button of the comment, faint, at its right end */
.pdh-post__comment-like { flex: 0 0 auto; align-self: center; width: 14px; height: 14px; margin-left: auto; opacity: .35; }

/* Instagram: the DM inside the phone, in frame pixels */
.pdh-dm { position: absolute; top: var(--pdh-band); right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background-color: #fff; }
.pdh-dm__head { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; border-bottom: 1px solid #efefef; font-size: 18px; color: #262626; }
.pdh-dm__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background-color: #efefef; }
.pdh-dm__name { font-size: 16px; font-weight: 700; line-height: 1.2; color: #262626; }
.pdh-dm__sub { font-size: 12px; color: #8e8e8e; }
.pdh-dm__bubble { align-self: flex-start; max-width: 320px; margin: 14px 16px 12px; padding: 10px 16px; border-radius: 22px 22px 22px 6px; background-color: #efefef; font-size: 15px; line-height: 1.35; color: #262626; }
.pdh-dm__link { display: block; margin-top: 2px; font-weight: 600; color: #3478f6; text-decoration: underline; }
/* Instagram's in-app browser over the dimmed chat: a sheet with close and menu buttons, the promotion full width */
.pdh-dm__overlay { position: absolute; top: var(--pdh-band); right: 0; bottom: 0; left: 0; z-index: 1; background-color: rgba(0, 0, 0, .35); }
/* The sheet takes what the message leaves of the screen, above the overlay that dims the chat */
.pdh-inapp { position: relative; z-index: 2; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; border-radius: 22px 22px 0 0; background-color: #fff; overflow: hidden; }
.pdh-inapp__bar { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-bottom: 1px solid #efefef; color: #262626; font-size: 20px; }
.pdh-inapp__btn { display: inline-flex; }
.pdh-inapp__url { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #262626; }
.pdh-inapp__url i { font-size: 11px; color: #8e8e8e; }
.pdh-inapp__slot { flex: 1; background-color: #efefef; }

/* --- Desktop screens: every mock fills or is centered in the fixed scene --- */
@media (min-width: 992px) {
    .pdh-device { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
    .pdh-canvas { --pdh-s: .7; }
    /* Standalone page: less zoomed out */
    .pdh-page { --pdh-s: .8; }
    /* Website pop-up: 1200x740 is the viewport the promotion gets, centered on the page; its own
       scale zooms it out a bit more than the page behind */
    .pdh-popup { top: 50%; left: 50%; width: 1200px; height: 740px; transform: translate(-50%, -50%) scale(.9); }

    /* Event: landscape tablet centered in the scene. The screen is a 1200x900 viewport (wide
       enough for the desktop layout of the games) inside an 18px bezel. */
    .pdh-tablet { --pdh-s: .68; position: absolute; top: 50%; left: 50%; width: calc(1200px * var(--pdh-s)); height: calc(900px * var(--pdh-s)); padding: 18px; border-radius: 36px; transform: translate(-50%, -50%); }
    .pdh-tablet__camera { top: 50%; left: 6px; margin-top: -3px; }
    .pdh-tablet__screen { width: 1200px; height: 900px; }

    /* Phone mocks: the side piece and the phone in a row, centered in the scene */
    .pdh-group { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 40px; }
    .pdh-phone { --pdh-s: .72; border-radius: 40px; }
    .pdh-group__arrow { width: 92px; margin: -100px -8px 0; transform: rotate(-25deg); }
}

/* --- Below 992px: one centered column, scaled by the width steps of --pdh-m (scene, above). The
   promotion gets 390 x --pdh-screen-h logical pixels in every mock. --- */
@media (max-width: 991.98px) {
    /* Browser windows: 390 logical pixels wide, as tall as the chrome bar and the page */
    .pdh-device { position: relative; width: calc(390px * var(--pdh-m)); margin: 0 auto; }
    .pdh-canvas { --pdh-s: var(--pdh-m); }
    .pdh-device--page { height: calc(40px + var(--pdh-screen-h) * var(--pdh-m)); }
    /* Website pop-up: 16px of the store above the popup, the popup, 16px more and the sticky bar
       (64 logical pixels) */
    .pdh-device--popup { height: calc(72px + var(--pdh-screen-h) * (var(--pdh-m) - .08) + 64px * var(--pdh-m)); }
    /* The store of a phone site: logo and cart, a shorter hero, two columns of products */
    .pdh-store__nav { gap: 16px; height: 56px; padding: 0 20px; }
    .pdh-store__logo { width: 96px; height: 22px; }
    .pdh-store__link { display: none; }
    .pdh-store__cart { width: 30px; height: 30px; }
    .pdh-store__hero { gap: 12px; margin: 20px; padding: 28px 24px; }
    .pdh-store__hero .pdh-sk--title { width: 85%; }
    .pdh-store__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 20px 20px; }
    .pdh-store__photo { height: 150px; }
    /* The sticky bar: the text wraps beside the button, large enough to read with the store zoomed out */
    .pdh-store__bar { justify-content: space-between; gap: 10px; height: 64px; padding: 0 16px; font-size: 16px; line-height: 1.15; text-align: left; }
    .pdh-store__bar i { font-size: 20px; }
    .pdh-store__bar-cta { padding: 8px 14px; font-size: 14px; }
    /* The popup: the 390px viewport, 16px below the top of the page, zoomed out to m - .08 */
    .pdh-popup { top: calc(16px / var(--pdh-m)); left: 50%; width: 390px; height: var(--pdh-screen-h); transform: translateX(-50%) scale(calc((var(--pdh-m) - .08) / var(--pdh-m))); transform-origin: 50% 0; }

    /* Event: the tablet stands up around the phone screen, with a thinner bezel and the camera on top */
    .pdh-tablet { --pdh-s: calc(var(--pdh-m) - .08); position: relative; width: calc(390px * var(--pdh-s)); height: calc(var(--pdh-screen-h) * var(--pdh-s)); margin: 0 auto; padding: 14px; border-radius: 34px; }
    .pdh-tablet__camera { top: 4px; left: 50%; margin-left: -3px; }
    .pdh-tablet__screen { width: 390px; height: var(--pdh-screen-h); }

    /* Phone mocks: the side piece on top, in a row of fixed height (the phone below never moves
       under the frame), and the phone, the same 390x874 viewport as on desktop screens */
    .pdh-group { display: grid; justify-items: center; align-items: center; row-gap: 12px; }
    .pdh-group > .pdh-phone { grid-column: 1 / -1; }
    .pdh-phone { --pdh-s: calc(var(--pdh-m) - .04); border-radius: calc(53px * var(--pdh-s) + 2px); }

    /* Physical store: a smaller sticker above the phone, a bit left of center (the wider right
       column), and the arrow at its right, pointing down to the phone */
    .pdh-group--physical-store { grid-template-columns: 1fr auto 1.4fr; grid-template-rows: 196px auto; row-gap: 28px; }
    .pdh-group--physical-store .pdh-qrcard { grid-column: 2; zoom: .46; }
    .pdh-group__arrow { grid-column: 3; justify-self: start; align-self: end; width: 84px; margin: 0 0 26px -4px; transform: rotate(38deg); }

    /* Instagram: a compact post (type at its natural size, so the comment with the keyword reads;
       a shorter image and no action row) centered in a taller row, with air above and below */
    .pdh-group--instagram { grid-template-columns: minmax(0, 1fr); grid-template-rows: 370px auto; row-gap: 16px; }
    .pdh-post { width: calc(100% - 24px); max-width: 330px; transform: rotate(1.5deg); }
    .pdh-post__media { gap: 8px; height: 150px; padding: 14px 18px; }
    .pdh-post__media-line { font-size: 24px; }
    .pdh-post__media-mark { padding: 6px 12px; font-size: 14px; }
    .pdh-post__actions { display: none; }
    .pdh-post__caption { padding-top: 10px; }
}
@media (max-width: 767.98px) {
    /* No gradient box behind the workspace on phones: the white browser windows get a hairline ring
       and a shadow all around, so they stand out from the light page background */
    .pdh-device { box-shadow: 0 0 0 1px rgba(31, 26, 34, .14), 0 4px 14px rgba(31, 26, 34, .1), 0 30px 60px -24px rgba(31, 26, 34, .4); }
}

/* === Brands: cards in one row (horizontal scroll on small screens, wrapping from 992px);
   in the desktop bar, logo-only buttons with the selected brand named beside them === */
.pdh-brands { display: flex; gap: 12px; padding: 6px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pdh-brands::-webkit-scrollbar { display: none; }
.pdh-brand { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 122px; padding: 14px 10px 12px; border: 1px solid var(--pdh-n200); border-radius: 16px; background-color: #fff; cursor: pointer; transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease; }
.pdh-brand:first-child { margin-left: auto; }
.pdh-brand:last-child { margin-right: auto; }
.pdh-brand:hover { transform: translateY(-2px); border-color: var(--pdh-n300); box-shadow: 0 12px 24px -16px rgba(31, 26, 34, .35); }
.pdh-brand:focus { outline: 0; }
.pdh-brand:focus-visible { box-shadow: 0 0 0 3px rgba(168, 154, 176, .35); }
.pdh-brand.is-active { border-color: var(--pdh-p500); box-shadow: 0 0 0 3px var(--pdh-p100); }
.pdh-brand__logo { width: 40px; height: 40px; border-radius: 50%; }
.pdh-brand__name { font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--pdh-n900); }
.pdh-brand__dots { display: flex; gap: 4px; }
.pdh-brand__dots span { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(31, 26, 34, .1); }
.pdh-brand-current { display: none; }
@media (max-width: 767.98px) {
    .pdh-brands { margin-right: -15px; margin-left: -15px; }
}
@media (min-width: 992px) {
    /* The eight cards share one row */
    .pdh-brands { justify-content: center; padding: 6px 0; overflow: visible; }
    .pdh-brand { flex: 1 1 0; width: auto; min-width: 0; max-width: 122px; }
    .pdh-brand__name { max-width: 100%; line-height: 1.2; text-align: center; white-space: normal; }
    .pdh-brand:first-child { margin-left: 0; }
    .pdh-brand:last-child { margin-right: 0; }
}
@media (min-width: 1334px) {
    .pdh-brands-row { display: flex; align-items: center; gap: 16px; }
    .pdh-brands { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; padding: 0; }
    .pdh-brand { flex: 0 0 auto; width: 48px; max-width: none; height: 48px; padding: 0; justify-content: center; border: 2px solid transparent; border-radius: 50%; background-color: transparent; }
    .pdh-brand:hover { border-color: transparent; box-shadow: none; }
    .pdh-brand.is-active { border-color: var(--pdh-p500); box-shadow: 0 0 0 3px var(--pdh-p100); }
    .pdh-brand__name, .pdh-brand .pdh-brand__dots { display: none; }
    .pdh-brand-current { display: flex; flex-direction: column; gap: 5px; padding-left: 16px; border-left: 1px solid rgba(31, 26, 34, .12); }
    .pdh-brand-current__name { font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--pdh-n900); }
}

/* === Actions: quiet "Get Started" beside the primary "Use this template" === */
.pdh__cta { margin-top: 24px; text-align: center; }
.pdh__cta-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pdh .btn.pdh-secondary { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 1px solid var(--pdh-n200); border-radius: 999px; background-color: #fff; font-size: 16px; font-weight: 600; color: var(--pdh-n700); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.pdh .btn.pdh-secondary:hover { border-color: var(--pdh-n300); background-color: var(--pdh-n50); color: var(--pdh-n900); }
.pdh .btn.pdh-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 700; box-shadow: 0 12px 24px -10px rgba(211, 28, 146, .65); transition: transform .15s ease, box-shadow .15s ease; }
/* Phones: stacked, the primary first */
.pdh__cta-row .pdh-save { order: -1; }
.pdh .btn.pdh-save:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(211, 28, 146, .7); }
.pdh .btn.pdh-save:active { transform: translateY(0) scale(1); }
.pdh .btn.pdh-save .spinner-border { margin: 0; }
@media (min-width: 576px) {
    .pdh__cta-row { flex-direction: row; justify-content: center; align-items: center; gap: 12px; }
    .pdh__cta-row .pdh-save { order: 0; }
    .pdh .btn.pdh-save { width: auto; }
}
@media (min-width: 1334px) {
    /* In the bar: the actions close the L at the bottom right */
    .pdh__cta { flex: 0 0 auto; margin-top: 0; text-align: right; }
    .pdh__cta-row { justify-content: flex-end; }
    .pdh .btn.pdh-secondary, .pdh .btn.pdh-save { height: 48px; }
}

/* === Reduced motion: no entrances === */
@media (prefers-reduced-motion: reduce) {
    .pdh-pill-enter-active,
    .pdh-pill-leave-active,
    .pdh-scene__mocks > *,
    .pdh-store__overlay,
    .pdh-chrome__back.is-calling::after,
    .pdh-store.is-closed .pdh-store__bar-cta,
    .pdh-frame.is-fading,
    .pdh-frame.is-popping iframe,
    .pdh-frame.is-popping .pdh-frame__loader,
    .pdh-popup__close,
    .pdh-popup__close.is-fading,
    .pdh-popup__close.is-popping { animation: none; }
}
