/**
 * Digital Menu Signage page — scoped styles
 *
 * Loaded by hifocus_dms_assets() on the single digital-menu-signage solution
 * post only, with hifocus-main as its declared dependency.
 *
 * Reuses from main.css: .container, .section-head, .btn / .btn--primary /
 * .btn--ghost, the data-reveal animation, the sw-faq accordion and the brand
 * tokens (--navy-*, --blue-*, --cyan-*, --gradient-brand, --ease-out).
 * Everything else is here:
 *
 *    0. Page tokens, bands, shared bits (eyebrow, buttons, picture)
 *    1. .dms-hero       — navy hero, glow, cross-fading TV, floating chips
 *    2. .dms-trust      — trust strip
 *    3. .dms-steps      — How it works
 *    4. .dms-features   — feature cards and their mini visuals
 *    5. .dms-gallery    — template scroller
 *    6. .dms-browser    — admin showcase, markers, callouts, playlist split
 *    7. .dms-packages   — price cards and licence line
 *    8. .dms-venues     — Who it's for
 *    9. FAQ             — spacing only; the accordion is main.css's
 *   10. .dms-cta        — closing band
 *   11. Responsive
 *   12. Reduced motion
 *
 * MOTION is transform and opacity only, so nothing triggers layout or paint
 * on the animated layers. Every keyframe animation is switched off in
 * section 12; the cross-fade script checks the same media query.
 *
 * Every rule is scoped under .dms-page, so no other page is affected.
 */

/* -------------------------------------------------- *
 * 0. Page tokens, bands, shared bits
 * -------------------------------------------------- */

.dms-page {
	--dms-amber: #f59e0b;
	--dms-green: #25d366;
	--dms-radius: 20px;
	--dms-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
	--dms-shadow-lg: 0 24px 50px rgba(16, 24, 40, 0.14);
	--dms-gap: 24px;
}

.dms-page .dms-band {
	padding-block: 96px;
	background-color: #fff;
}

.dms-page .dms-band--grey {
	background-color: var(--color-surface);
}

.dms-page .dms-band--navy {
	background-color: var(--navy-900);
	color: #fff;
}

.dms-page .section-head {
	margin-bottom: 48px;
}

.dms-page .section-head__title {
	margin-top: 0;
}

.dms-page .section-head__lead {
	margin: 0;
}

.dms-page h3 {
	margin: 0;
}

.dms-page .dms-steps,
.dms-page .dms-features,
.dms-page .dms-gallery,
.dms-page .dms-callouts,
.dms-page .dms-packages,
.dms-page .dms-package__items,
.dms-page .dms-venues,
.dms-page .dms-trust__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dms-page .dms-eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	color: var(--blue-500);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.dms-page .dms-eyebrow--dark {
	color: var(--cyan-400);
}

.dms-page .dms-pic {
	display: block;
}

.dms-page .dms-pic img {
	display: block;
	width: 100%;
	height: auto;
}

.dms-page .dms-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.dms-page .dms-actions--center {
	justify-content: center;
}

.dms-page .btn {
	padding: 1rem 1.7rem;
	font-size: 0.95rem;
}

/* Solid WhatsApp pill: the page's primary action. */
.dms-page .dms-btn-wa {
	background-color: var(--dms-green);
	color: #04250f;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.dms-page .dms-btn-wa:hover,
.dms-page .dms-btn-wa:focus-visible {
	color: #04250f;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.dms-page .btn-enquire__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.dms-page .dms-btn-outline {
	border-color: var(--color-border);
	color: var(--color-text);
}

.dms-page .dms-btn-outline:hover,
.dms-page .dms-btn-outline:focus-visible {
	border-color: var(--blue-500);
	color: var(--blue-500);
	transform: translateY(-2px);
}

.dms-page .dms-chip__dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #4ade80;
	box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
	animation: dms-pulse 2s ease-in-out infinite;
}

/* -------------------------------------------------- *
 * 1. Hero
 *
 * The TV stage has the landscape mockup's aspect ratio. All three slides sit
 * in it with object-fit: contain, so the portrait mockup shows narrower at
 * the same height instead of being stretched.
 * -------------------------------------------------- */

.dms-page .dms-hero {
	position: relative;
	padding-block: 88px 104px;
	background-color: var(--navy-900);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}

.dms-page .dms-hero__mesh {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(60% 70% at 85% 30%, rgba(22, 102, 232, 0.35), transparent 70%),
		radial-gradient(40% 50% at 10% 90%, rgba(34, 211, 238, 0.14), transparent 70%),
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
}

.dms-page .dms-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.dms-page .dms-hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2.3rem, 4.2vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.dms-page .dms-hero__accent {
	display: block;
	background-image: linear-gradient(100deg, var(--dms-amber) 0%, #fb7185 50%, var(--cyan-400) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dms-page .dms-hero__lead {
	max-width: 34em;
	margin: 0 0 34px;
	color: #c9d4e5;
	font-size: 1.1875rem;
	line-height: 1.55;
}

.dms-page .dms-hero__visual {
	position: relative;
}

.dms-page .dms-hero__glow {
	position: absolute;
	inset: 6% 4% 2%;
	z-index: -1;
	border-radius: 50%;
	background: conic-gradient(from 200deg, var(--dms-amber), #fb7185, var(--blue-500), var(--cyan-400), var(--dms-amber));
	filter: blur(70px);
	opacity: 0.45;
	animation: dms-glow 12s linear infinite;
}

.dms-page .dms-tv {
	position: relative;
	aspect-ratio: 2144 / 1376;
	animation: dms-float 7s ease-in-out infinite;
}

.dms-page .dms-tv__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.dms-page .dms-tv__slide.is-active {
	opacity: 1;
}

.dms-page .dms-tv__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dms-page .dms-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background-color: rgba(11, 18, 32, 0.78);
	backdrop-filter: blur(8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
	animation: dms-float 6s ease-in-out infinite;
}

.dms-page .dms-chip--live {
	top: -5%;
	left: 4%;
	animation-delay: -2s;
}

.dms-page .dms-chip--price {
	right: 0;
	bottom: 8%;
	animation-delay: -4s;
}

.dms-page .dms-chip--price s {
	color: #94a3b8;
	font-weight: 500;
}

.dms-page .dms-chip--price strong {
	color: var(--dms-amber);
	font-size: 1rem;
}

/* -------------------------------------------------- *
 * 2. Trust strip
 * -------------------------------------------------- */

.dms-page .dms-trust {
	padding-block: 22px;
	background-image: linear-gradient(90deg, #0b1220, #111c33 50%, #0b1220);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: #e2e8f0;
}

.dms-page .dms-trust__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 14px 32px;
}

.dms-page .dms-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.975rem;
	font-weight: 600;
}

.dms-page .dms-trust__tick {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	border-radius: 50%;
	background-image: var(--gradient-brand);
	color: #fff;
}

.dms-page .dms-trust__tick svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}

/* -------------------------------------------------- *
 * 3. How it works
 *
 * The dashed connector behind the cards is the <ol>'s ::before; it sits at
 * the height of the number badges and is hidden once the steps stack.
 * -------------------------------------------------- */

.dms-page .dms-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--dms-gap);
	counter-reset: dms-step;
}

.dms-page .dms-steps::before {
	content: "";
	position: absolute;
	top: 278px;
	left: 16%;
	right: 16%;
	border-top: 2px dashed rgba(22, 102, 232, 0.3);
}

.dms-page .dms-step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 24px 32px;
	background-color: #fff;
	border-radius: var(--dms-radius);
	box-shadow: var(--dms-shadow);
	text-align: center;
}

.dms-page .dms-step__visual {
	display: grid;
	place-items: center;
	width: 100%;
	height: 230px;
	border-radius: 14px;
	background: radial-gradient(70% 70% at 50% 40%, rgba(34, 211, 238, 0.14), transparent 70%), #f2f6fc;
	overflow: hidden;
}

.dms-page .dms-setup {
	width: 86%;
	height: auto;
}

.dms-page .dms-setup__box {
	animation: dms-nudge 3s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

.dms-page .dms-screen {
	width: 86%;
	padding: 6px;
	background-color: #0b1220;
	border-radius: 10px;
	box-shadow: 0 14px 28px rgba(11, 18, 32, 0.25);
}

.dms-page .dms-screen img {
	border-radius: 5px;
}

.dms-page .dms-phone {
	width: 112px;
	margin-top: 26px;
	padding: 5px;
	background-color: #0b1220;
	border-radius: 20px;
	box-shadow: 0 14px 28px rgba(11, 18, 32, 0.25);
	align-self: start;
}

.dms-page .dms-phone img {
	border-radius: 15px;
}

.dms-page .dms-step__num {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -22px 0 14px;
	border: 4px solid #fff;
	border-radius: 50%;
	background-image: var(--gradient-brand);
	color: #fff;
	font-weight: 800;
	box-sizing: content-box;
}

.dms-page .dms-step__title {
	font-size: 1.1875rem;
	line-height: 1.3;
}

.dms-page .dms-step__desc {
	margin: 8px 0 0;
	color: var(--color-muted);
}

/* -------------------------------------------------- *
 * 4. Features
 * -------------------------------------------------- */

.dms-page .dms-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--dms-gap);
}

.dms-page .dms-feature {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--dms-radius);
	overflow: hidden;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s, opacity 0.7s var(--ease-out);
}

/* data-reveal also sets transform; the lift only applies once revealed. */
.dms-page .dms-feature:hover,
.dms-page .dms-feature:focus-within {
	transform: translateY(-6px);
	border-color: rgba(22, 102, 232, 0.25);
	box-shadow: var(--dms-shadow-lg);
}

.dms-page .dms-feature__visual {
	position: relative;
	display: grid;
	place-items: center;
	height: 180px;
	background: radial-gradient(80% 90% at 50% 0%, rgba(22, 102, 232, 0.12), transparent 70%), #f5f8fd;
	overflow: hidden;
}

.dms-page .dms-feature__body {
	padding: 22px 24px 26px;
}

.dms-page .dms-feature__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 14px;
	border-radius: 12px;
	background-color: rgba(22, 102, 232, 0.1);
	color: var(--blue-500);
}

.dms-page .dms-feature__icon svg {
	width: 22px;
	height: 22px;
}

.dms-page .dms-feature__title {
	font-size: 1.125rem;
}

.dms-page .dms-feature__desc {
	margin: 6px 0 0;
	color: var(--color-muted);
}

/* Live price: old price slides out, new one in. */
.dms-page .dms-v-price {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 22px;
	background-color: #0b1220;
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(11, 18, 32, 0.25);
	color: #fff;
	font-weight: 700;
}

.dms-page .dms-v-price__flip {
	position: relative;
	display: block;
	width: 5.2em;
	height: 1.5em;
	overflow: hidden;
	color: var(--dms-amber);
	font-size: 1.375rem;
}

.dms-page .dms-v-price__old,
.dms-page .dms-v-price__new {
	position: absolute;
	inset: 0;
	text-align: right;
	animation: dms-flip-out 4s var(--ease-out) infinite;
}

.dms-page .dms-v-price__new {
	animation-name: dms-flip-in;
}

/* Sold out: the real admin card, cropped to its top half. */
.dms-page .dms-v-soldout {
	align-self: start;
	width: 78%;
	margin-top: 22px;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(11, 18, 32, 0.16);
	overflow: hidden;
	transition: transform 0.5s var(--ease-out);
}

.dms-page .dms-feature:hover .dms-v-soldout {
	transform: translateY(-10px);
}

/* Schedules: the active chip cycles through the day. */
.dms-page .dms-v-schedule {
	display: grid;
	gap: 8px;
	width: 70%;
}

.dms-page .dms-v-schedule span {
	position: relative;
	display: flex;
	justify-content: space-between;
	padding: 8px 14px;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
	color: var(--color-muted);
	font-size: 0.875rem;
	overflow: hidden;
}

.dms-page .dms-v-schedule b {
	color: var(--color-text);
}

.dms-page .dms-v-schedule span::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--blue-500);
	border-radius: inherit;
	opacity: 0;
	animation: dms-slot 6s linear infinite;
}

.dms-page .dms-v-schedule span:nth-child(2)::before {
	animation-delay: 2s;
}

.dms-page .dms-v-schedule span:nth-child(3)::before {
	animation-delay: 4s;
}

/* Promo video: thumbnail with a pulsing play button. */
.dms-page .dms-v-video {
	position: relative;
	width: 78%;
	border-radius: 12px;
	box-shadow: 0 14px 30px rgba(11, 18, 32, 0.22);
	overflow: hidden;
}

.dms-page .dms-v-video .dms-pic img {
	transition: transform 0.6s var(--ease-out);
}

.dms-page .dms-feature:hover .dms-v-video .dms-pic img {
	transform: scale(1.06);
}

.dms-page .dms-v-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
	animation: dms-pulse 2.4s ease-in-out infinite;
}

.dms-page .dms-v-video__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 9px 0 9px 14px;
	border-color: transparent transparent transparent var(--navy-900);
	transform: translate(-50%, -50%);
}

/* Portrait or landscape: one screen turning between the two. */
.dms-page .dms-v-rotate span {
	display: block;
	width: 140px;
	height: 84px;
	border: 6px solid #0b1220;
	border-radius: 10px;
	background-image: linear-gradient(135deg, var(--dms-amber), #fb7185 55%, var(--blue-500));
	box-shadow: 0 14px 30px rgba(11, 18, 32, 0.22);
	animation: dms-rotate 5s var(--ease-out) infinite;
}

/* Offline: crossed-out Wi-Fi, menu still playing. */
.dms-page .dms-v-offline {
	display: grid;
	justify-items: center;
	gap: 14px;
}

.dms-page .dms-v-offline__icon {
	width: 56px;
	height: 56px;
	color: #94a3b8;
}

.dms-page .dms-v-offline__icon svg {
	width: 100%;
	height: 100%;
}

.dms-page .dms-v-offline__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	background-color: #0b1220;
	border-radius: 999px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
}

/* -------------------------------------------------- *
 * 5. Templates gallery
 *
 * A horizontal scroll-snap track CONTAINED to the heading's width. The <ul>
 * is a sibling after the .container in the markup, so the track sizes itself
 * to the container's content box instead: the container's max width minus its
 * padding, centred with auto margins, never wider than the section minus that
 * padding. Overflow is clipped at those edges, so the gaps either side of the
 * gallery are equal at any width.
 *
 * WHOLE CARDS ONLY. Card width = (track width - gaps) / --dms-visible:
 * 3 at >=1024, 2 at 768-1023, 1.15 below 768 (one card plus a peek of the
 * next). The track has no inline padding, so with snap-align start the first
 * card sits on the heading's left edge and the last visible card on the
 * container's right edge, at rest and at the end of the scroll.
 *
 * Every card is a 16:9 frame. The Portrait Board image keeps its own 9:16
 * shape inside it (object-fit: contain), so nothing is stretched.
 *
 * The head is a two-column grid. The heading block is display: contents, so
 * its eyebrow, title and lead are the grid's rows and the arrows can sit in
 * the title's row, centred on it, at the container's right edge.
 *
 * The script adds .is-enhanced to the track and builds .dms-gallery-progress
 * after it. Only then is the native scrollbar hidden, so without JS the
 * scrollbar stays as the scroll cue.
 * -------------------------------------------------- */

.dms-page .dms-gallery-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	margin-bottom: 40px;
}

.dms-page .dms-gallery-head > div:first-child {
	display: contents;
}

.dms-page .dms-gallery-head > div:first-child > * {
	grid-column: 1;
}

.dms-page .dms-gallery-head__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.dms-page .dms-gallery-head__lead {
	margin: 0;
	color: #a9b6ca;
	font-size: var(--fs-lg);
}

.dms-page .dms-gallery-nav {
	display: flex;
	grid-column: 2;
	grid-row: 2;
	align-self: center;
	align-items: center;
	gap: 10px;
	/* Zero-height line: the buttons centre on it without making the title row
	   taller than the title, so the lead keeps its spacing. */
	height: 0;
	/* Cancel the title's bottom margin so the arrows centre on its text. */
	margin-bottom: 10px;
}

.dms-page .dms-gallery-nav__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.05);
	color: #fff;
	cursor: pointer;
	transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.dms-page .dms-gallery-nav__btn:hover,
.dms-page .dms-gallery-nav__btn:focus-visible {
	border-color: var(--cyan-400);
	background-color: rgba(34, 211, 238, 0.12);
	transform: translateY(-2px);
}

.dms-page .dms-gallery-nav__btn[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
}

.dms-page .dms-gallery-nav__btn[aria-disabled="true"]:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background-color: rgba(255, 255, 255, 0.05);
	transform: none;
}

.dms-page .dms-gallery-nav__btn svg {
	width: 20px;
	height: 20px;
}

.dms-page .dms-gallery {
	--dms-pad: 24px; /* .container's padding-inline: --space-md, 16px at <=640 on this page */
	--dms-gap: 24px;
	--dms-visible: 3;
	display: flex;
	gap: var(--dms-gap);
	width: min(calc(100% - 2 * var(--dms-pad)), calc(var(--container) - 2 * var(--dms-pad)));
	margin-inline: auto;
	/* Top room for the 6px hover lift; overflow-x: auto clips the y axis too. */
	padding: 8px 0 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.dms-page .dms-gallery.is-enhanced {
	padding-bottom: 16px;
	scrollbar-width: none;
}

.dms-page .dms-gallery.is-enhanced::-webkit-scrollbar {
	display: none;
}

/* Scroll cue: a thin bar inside the container width. The thumb's width is the
   visible share of the track (set on resize); scrolling only moves it with a
   transform. */
.dms-page .dms-gallery-progress {
	margin-top: 8px;
}

.dms-page .dms-gallery-progress__bar {
	display: block;
	height: 3px;
	border-radius: 3px;
	background-color: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.dms-page .dms-gallery-progress__thumb {
	display: block;
	height: 100%;
	border-radius: inherit;
	background-image: var(--gradient-brand);
	will-change: transform;
}

.dms-page .dms-gallery:focus-visible {
	outline: 2px solid var(--cyan-400);
	outline-offset: -2px;
}

.dms-page .dms-gallery__item {
	flex: 0 0 calc((100% - (var(--dms-visible) - 1) * var(--dms-gap)) / var(--dms-visible));
	min-width: 0;
	scroll-snap-align: start;
}

.dms-page .dms-gallery__figure {
	margin: 0;
}

.dms-page .dms-gallery__frame {
	aspect-ratio: 16 / 9;
	padding: 6px;
	background-color: #1a2942;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transition: transform 0.4s var(--ease-out), border-color 0.4s;
}

.dms-page .dms-gallery__frame:hover {
	transform: translateY(-6px);
	border-color: rgba(34, 211, 238, 0.4);
}

.dms-page .dms-gallery__frame .dms-pic,
.dms-page .dms-gallery__frame img {
	width: 100%;
	height: 100%;
}

.dms-page .dms-gallery__frame img {
	object-fit: contain;
	border-radius: 8px;
}

.dms-page .dms-gallery__caption {
	margin-top: 14px;
	color: #e2e8f0;
	font-weight: 700;
}

/* -------------------------------------------------- *
 * 6. Admin showcase
 * -------------------------------------------------- */

.dms-page .dms-browser {
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: 16px;
	box-shadow: var(--dms-shadow-lg);
	overflow: hidden;
}

.dms-page .dms-browser--hero {
	max-width: 1040px;
	margin-inline: auto;
}

.dms-page .dms-browser__bar {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 40px;
	padding-inline: 16px;
	background-color: #f1f4f9;
	border-bottom: 1px solid var(--color-border);
}

.dms-page .dms-browser__bar > span:not(.dms-browser__url) {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: #f87171;
}

.dms-page .dms-browser__bar > span:nth-child(2) {
	background-color: #fbbf24;
}

.dms-page .dms-browser__bar > span:nth-child(3) {
	background-color: #4ade80;
}

.dms-page .dms-browser__url {
	flex: 0 1 320px;
	margin-inline: auto;
	padding: 5px 14px;
	background-color: #fff;
	border-radius: 999px;
	color: var(--color-muted);
	font-size: 0.8125rem;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dms-page .dms-browser__view {
	position: relative;
}

.dms-page .dms-marker {
	position: absolute;
	top: var(--y);
	left: var(--x);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid #fff;
	border-radius: 50%;
	background-image: var(--gradient-brand);
	box-shadow: 0 6px 16px rgba(22, 102, 232, 0.45);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 800;
}

.dms-page .dms-marker::after {
	content: "";
	position: absolute;
	inset: -3px;
	border: 2px solid var(--cyan-400);
	border-radius: 50%;
	animation: dms-ring 2.4s ease-out infinite;
}

.dms-page .dms-marker--static {
	position: relative;
	top: auto;
	left: auto;
	flex-shrink: 0;
	margin: 0;
}

.dms-page .dms-marker--static::after {
	content: none;
}

.dms-page .dms-callouts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--dms-gap);
	max-width: 1040px;
	margin: 32px auto 0;
}

.dms-page .dms-callout {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px;
	background-color: #fff;
	border-radius: 16px;
	box-shadow: var(--dms-shadow);
}

.dms-page .dms-callout__title {
	font-size: 1.0625rem;
}

.dms-page .dms-callout__desc {
	margin: 4px 0 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
}

.dms-page .dms-split {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	gap: 56px;
	align-items: center;
	margin-top: 96px;
}

.dms-page .dms-split__title {
	font-size: clamp(1.5rem, 2.8vw, 2rem);
	line-height: 1.2;
}

.dms-page .dms-split__desc {
	margin: 14px 0 0;
	color: var(--color-muted);
	font-size: var(--fs-lg);
	line-height: 1.6;
}

/* -------------------------------------------------- *
 * 7. Packages
 * -------------------------------------------------- */

.dms-page .dms-packages {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--dms-gap);
	align-items: stretch;
}

.dms-page .dms-package {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background-color: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--dms-radius);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.7s var(--ease-out);
}

.dms-page .dms-package:hover {
	transform: translateY(-6px);
	box-shadow: var(--dms-shadow-lg);
}

.dms-page .dms-package--featured {
	/* Gradient border: navy fill on the padding box, brand gradient under the border. */
	background: linear-gradient(var(--navy-800), var(--navy-800)) padding-box, var(--gradient-brand) border-box;
	border: 2px solid transparent;
	box-shadow: 0 24px 50px rgba(22, 102, 232, 0.25);
	color: #fff;
}

.dms-page .dms-package__name {
	font-size: 1.375rem;
}

.dms-page .dms-package__lead {
	margin: 6px 0 20px;
	color: var(--color-muted);
}

.dms-page .dms-package--featured .dms-package__name {
	color: #fff;
}

.dms-page .dms-package--featured .dms-package__lead {
	color: #a9b6ca;
}

.dms-page .dms-package__price {
	margin: 0 0 22px;
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.dms-page .dms-package__from {
	display: block;
	margin-bottom: 6px;
	color: var(--color-muted);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dms-page .dms-package--featured .dms-package__price {
	background-image: linear-gradient(100deg, var(--cyan-300), #fff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dms-page .dms-package--featured .dms-package__from {
	color: #a9b6ca;
	-webkit-text-fill-color: #a9b6ca;
}

.dms-page .dms-package__items {
	display: grid;
	gap: 10px;
	margin-bottom: 28px;
}

.dms-page .dms-package__items li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.dms-page .dms-package__items svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--blue-500);
	stroke-width: 2.2;
}

.dms-page .dms-package--featured .dms-package__items svg {
	color: var(--cyan-400);
}

.dms-page .dms-package__cta {
	margin-top: auto;
	width: 100%;
}

.dms-page .dms-licence {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	margin: 36px auto 0;
	padding: 14px 22px;
	background-color: var(--color-surface);
	border: 1px dashed rgba(22, 102, 232, 0.35);
	border-radius: 14px;
	text-align: left;
}

.dms-page .dms-licence__icon {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--blue-500);
}

.dms-page .dms-licence__icon svg {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------- *
 * 8. Who it's for
 * -------------------------------------------------- */

.dms-page .dms-venues {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
}

.dms-page .dms-venue {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 26px 12px;
	background-color: #fff;
	border-radius: 18px;
	box-shadow: var(--dms-shadow);
	text-align: center;
}

.dms-page .dms-venue__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 113, 133, 0.16));
	color: #c2410c;
	transition: transform 0.35s var(--ease-out);
}

.dms-page .dms-venue:nth-child(even) .dms-venue__icon {
	background: linear-gradient(135deg, rgba(22, 102, 232, 0.14), rgba(34, 211, 238, 0.16));
	color: var(--blue-500);
}

.dms-page .dms-venue:hover .dms-venue__icon {
	transform: translateY(-4px) rotate(-6deg);
}

.dms-page .dms-venue__icon svg {
	width: 32px;
	height: 32px;
}

.dms-page .dms-venue__label {
	font-weight: 700;
}

/* -------------------------------------------------- *
 * 9. FAQ
 * -------------------------------------------------- */

.dms-page #faq .section-head {
	margin-bottom: 0;
}

/* -------------------------------------------------- *
 * 10. Closing CTA
 * -------------------------------------------------- */

.dms-page .dms-cta {
	position: relative;
	padding-block: 104px;
	background-color: var(--navy-900);
	color: #fff;
	text-align: center;
	overflow: hidden;
	isolation: isolate;
}

.dms-page .dms-cta__glow {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: min(900px, 120vw);
	aspect-ratio: 2 / 1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(22, 102, 232, 0.5), rgba(34, 211, 238, 0.15) 60%, transparent);
	transform: translate(-50%, -50%);
}

.dms-page .dms-cta__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(2rem, 4.4vw, 3rem);
	letter-spacing: -0.02em;
}

.dms-page .dms-cta__lead {
	margin: 0 0 34px;
	color: #c9d4e5;
	font-size: var(--fs-lg);
}

/*
 * The footer's global margin-top leaves a white strip under this navy band.
 * :has() scopes it to this page even though the footer sits outside the
 * article (the stylesheet only loads here anyway). Browsers without :has()
 * keep the strip, which is harmless.
 */
body:has(.dms-page) .site-footer {
	margin-top: 0;
}

/* -------------------------------------------------- *
 * Keyframes — transform and opacity only
 * -------------------------------------------------- */

@keyframes dms-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes dms-glow {
	to { transform: rotate(360deg); }
}

@keyframes dms-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.12); opacity: 0.85; }
}

@keyframes dms-ring {
	0% { transform: scale(1); opacity: 0.9; }
	100% { transform: scale(1.9); opacity: 0; }
}

@keyframes dms-nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

@keyframes dms-flip-out {
	0%, 40% { transform: translateY(0); opacity: 1; }
	50%, 90% { transform: translateY(-100%); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}

@keyframes dms-flip-in {
	0%, 40% { transform: translateY(100%); opacity: 0; }
	50%, 90% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(100%); opacity: 0; }
}

@keyframes dms-slot {
	0%, 30% { opacity: 1; }
	34%, 100% { opacity: 0; }
}

@keyframes dms-rotate {
	0%, 35% { transform: rotate(0); }
	50%, 85% { transform: rotate(90deg) scale(0.9); }
	100% { transform: rotate(0); }
}

/* -------------------------------------------------- *
 * 11. Responsive
 *
 * <=1024: venues go to three columns; hero gap tightens.
 * <=1023: gallery shows two whole cards.
 * <=900:  hero, steps, features, packages, callouts and the playlist split
 *         stack or go to two.
 * <768:   gallery shows one card plus a peek; arrows hidden (swipe + progress
 *         bar).
 * <=640:  single column throughout, 16px gutters, smaller bands.
 * -------------------------------------------------- */

@media (max-width: 1024px) {
	.dms-page .dms-hero__inner {
		gap: 40px;
	}

	.dms-page .dms-venues {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.dms-page .dms-band {
		padding-block: 72px;
	}

	.dms-page .dms-hero {
		padding-block: 56px 72px;
	}

	.dms-page .dms-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
		text-align: center;
	}

	.dms-page .dms-hero__lead {
		margin-inline: auto;
	}

	.dms-page .dms-hero .dms-actions {
		justify-content: center;
	}

	.dms-page .dms-hero__visual {
		max-width: 640px;
		margin-inline: auto;
		width: 100%;
	}

	.dms-page .dms-trust__list {
		justify-content: center;
	}

	.dms-page .dms-steps {
		grid-template-columns: minmax(0, 1fr);
		max-width: 440px;
		margin-inline: auto;
	}

	.dms-page .dms-steps::before {
		content: none;
	}

	.dms-page .dms-features,
	.dms-page .dms-packages {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dms-page .dms-packages .dms-package:last-child {
		grid-column: 1 / -1;
		max-width: calc(50% - var(--dms-gap) / 2);
		justify-self: center;
		width: 100%;
	}

	.dms-page .dms-callouts {
		grid-template-columns: minmax(0, 1fr);
		max-width: 560px;
	}

	.dms-page .dms-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
		margin-top: 72px;
		text-align: center;
	}
}

/* Gallery: two whole cards on tablets. */
@media (max-width: 1023px) {
	.dms-page .dms-gallery {
		--dms-visible: 2;
	}
}

/* Phones and small tablets: one card plus a peek, no arrows (swipe and the
   progress bar). */
@media (max-width: 767px) {
	.dms-page .dms-gallery {
		--dms-visible: 1.15;
	}

	.dms-page .dms-gallery-nav {
		display: none;
	}
}

@media (max-width: 640px) {
	.dms-page .container {
		padding-inline: 16px;
	}

	.dms-page .dms-band,
	.dms-page .dms-cta {
		padding-block: 56px;
	}

	.dms-page .section-head {
		margin-bottom: 32px;
	}

	.dms-page .dms-hero__title {
		font-size: 2.25rem;
	}

	.dms-page .dms-hero__lead {
		font-size: 1.0625rem;
	}

	.dms-page .dms-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dms-page .dms-chip {
		font-size: 0.75rem;
		padding: 7px 11px;
	}

	.dms-page .dms-chip--live {
		left: 0;
		top: -6%;
	}

	.dms-page .dms-chip--price {
		bottom: -2%;
	}

	.dms-page .dms-trust__list {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 12px 16px;
	}

	.dms-page .dms-trust__item {
		font-size: 0.875rem;
		align-items: flex-start;
	}

	.dms-page .dms-features,
	.dms-page .dms-packages {
		grid-template-columns: minmax(0, 1fr);
	}

	.dms-page .dms-packages .dms-package:last-child {
		max-width: none;
	}

	.dms-page .dms-gallery-head {
		margin-bottom: 28px;
	}

	.dms-page .dms-gallery {
		--dms-pad: 16px;
		--dms-gap: 16px;
	}

	.dms-page .dms-gallery__caption {
		margin-top: 10px;
	}

	.dms-page .dms-marker {
		width: 26px;
		height: 26px;
		margin: -13px 0 0 -13px;
		border-width: 2px;
		font-size: 0.75rem;
	}

	.dms-page .dms-marker--static {
		width: 32px;
		height: 32px;
		margin: 0;
	}

	.dms-page .dms-browser__bar {
		height: 30px;
		padding-inline: 10px;
		gap: 5px;
	}

	.dms-page .dms-browser__bar > span:not(.dms-browser__url) {
		width: 8px;
		height: 8px;
	}

	.dms-page .dms-browser__url {
		font-size: 0.6875rem;
		padding: 3px 10px;
	}

	.dms-page .dms-venues {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.dms-page .dms-licence {
		align-items: flex-start;
	}
}

/* -------------------------------------------------- *
 * 12. Reduced motion
 *
 * Every looping animation stops and hover lifts are removed. The hero shows
 * the first TV only (the script never starts the cross-fade).
 * -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.dms-page *,
	.dms-page *::before,
	.dms-page *::after {
		animation: none !important;
	}

	.dms-page .dms-v-price__new {
		opacity: 0;
	}

	.dms-page .dms-v-schedule span:first-child::before {
		opacity: 1;
	}

	.dms-page .dms-feature:hover,
	.dms-page .dms-feature:focus-within,
	.dms-page .dms-package:hover,
	.dms-page .dms-gallery__frame:hover,
	.dms-page .dms-feature:hover .dms-v-soldout,
	.dms-page .dms-feature:hover .dms-v-video .dms-pic img,
	.dms-page .dms-venue:hover .dms-venue__icon,
	.dms-page .btn:hover {
		transform: none;
	}

	.dms-page .dms-tv__slide {
		transition: none;
	}
}
