/**
 * Product landing (download singular) - demo, purchase, sticky CTA.
 * Loaded only on is_singular('download').
 */

/* -------------------------------------------------------------------------
   Product: visual main column + narrow sticky purchase card
------------------------------------------------------------------------- */

.product-page {
	--demo-ink: #1e1e1e;
	--demo-line: #e6e6e6;
	--demo-admin-accent: #2271b1;
	--product-section-gap: clamp(5.5rem, 11vw, 8.5rem);
	--product-panel: var(--wp--custom--color--surface-container, #f1f2f3);
	--product-panel-radius: 1.5rem;

	padding-block: var(--wp--custom--layout--pad-top) var(--wp--custom--space--8);
	background: var(--wp--custom--color--surface, #fff);
}

html:has(.product-page) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(.product-page) {
		scroll-behavior: auto;
	}
}

.product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "main" "demo" "buy" "more";
	gap: clamp(3.5rem, 8vw, 6.5rem);
	align-items: start;
}

/* Let hero children (main/demo/buy/more) participate in the product-hero grid. */
.product-hero > .product-content {
	display: contents;
}

/* wpautop leaves empty paragraphs between shortcode blocks. */
.product-hero > p {
	display: none;
}

/* display:contents lifts main/demo/buy/more into the hero grid; kill post-content
   flow margins so sticky buy starts flush with main (no jump on stick). */
.product-content.is-layout-flow > * + *,
.product-hero.is-layout-flow > * + *,
.product-purchase.is-layout-flow > * + *,
.product-more.is-layout-flow > * + * {
	margin-block-start: 0;
}

/* Flex gap owns section spacing; beat pattern Group inline margin-top. */
.product-more > .wp-block-group {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

.product-main {
	position: relative;
	grid-area: main;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
	max-width: 40rem;
}

/* Desktop: scroll cue in the unused gap beside the claim → demo. */
.product-scroll-demo {
	display: none;
}

@media (min-width: 1100px) {
	.product-scroll-demo {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		position: absolute;
		left: calc(100% + clamp(1.5rem, 3.5vw, 2.75rem));
		top: 50%;
		transform: translateY(-50%);
		z-index: 1;
		color: var(--wp--preset--color--muted);
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.06em;
		line-height: 1.2;
		text-decoration: none;
		text-transform: uppercase;
		white-space: nowrap;
		transition:
			opacity var(--wp--custom--motion--duration-short, 160ms) var(--wp--custom--motion--easing, ease),
			color var(--wp--custom--motion--duration-short, 160ms) var(--wp--custom--motion--easing, ease);
	}

	.product-scroll-demo:hover,
	.product-scroll-demo:focus-visible {
		color: var(--wp--custom--color--primary);
	}

	.product-scroll-demo.is-hidden {
		opacity: 0;
		pointer-events: none;
	}

	.product-scroll-demo__mouse {
		position: relative;
		width: 1.35rem;
		height: 2.15rem;
		border: 1.5px solid currentColor;
		border-radius: 999px;
	}

	.product-scroll-demo__wheel {
		position: absolute;
		top: 0.4rem;
		left: 50%;
		width: 0.2rem;
		height: 0.35rem;
		margin-left: -0.1rem;
		border-radius: 999px;
		background: currentColor;
		animation: product-scroll-wheel 1.45s var(--wp--custom--motion--easing, ease) infinite;
	}
}

@keyframes product-scroll-wheel {
	0% {
		opacity: 1;
		transform: translateY(0);
	}

	100% {
		opacity: 0;
		transform: translateY(0.55rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.product-scroll-demo__wheel {
		animation: none;
	}
}

/* Beat theme flow margins; flex gap owns title → lede spacing. */
.product-main.is-layout-flow > * {
	margin-block: 0;
}

.product-claim {
	margin: 0;
	font-size: clamp(1.85rem, 3.8vw, 2.65rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: var(--wp--custom--tracking--display);
	color: var(--wp--preset--color--text);
	text-wrap: balance;
	max-width: 22ch;
}

.product-claim > span {
	display: block;
	margin-bottom: 0.4em;
	color: var(--wp--preset--color--muted);
	font-size: 0.42em;
	font-weight: 500;
}

.product-lede {
	max-width: 34rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.product-lede p,
.product-lede .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Scroll chapters in post content. */
.product-story {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: clamp(3.75rem, 7.5vw, 5.75rem);
	margin: 0;
	scroll-margin-top: var(--sticky-under-header);
}

.product-story.is-layout-flow > * + *,
.product-story__chapter.is-layout-flow > * + *,
.product-story__copy.is-layout-flow > * + * {
	margin-block-start: 0;
}

.product-story__chapter {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	min-width: 0;
}

.product-story__index {
	margin: 0 0 0.65rem;
	color: var(--wp--custom--color--primary);
	font-size: 0.6875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h2.product-story__heading {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3.2vw, 2.25rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: 1.15;
	text-wrap: balance;
	color: var(--wp--preset--color--text);
	scroll-margin-top: var(--sticky-under-header);
}

.product-story__body {
	margin: 0;
	max-width: 30rem;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.35vw, 1.125rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.product-story__list {
	margin: 0.85rem 0 0;
	padding: 0 0 0 1.15rem;
	max-width: 32rem;
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	line-height: 1.55;
}

.product-story__list li + li {
	margin-top: 0.4rem;
}

.product-story__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--product-panel-radius);
	background: var(--product-panel, #f1f2f3);
}

/* Natural aspect - do not cover-crop feature UIs (forms are portrait). */
.product-story__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(48rem, 85vh);
	object-fit: contain;
	object-position: top center;
	border-radius: inherit;
	background: #fff;
}

@media (min-width: 782px) {
	.product-story__chapter {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 2.75rem;
	}

	.product-story__chapter:nth-child(even) .product-story__copy {
		order: 2;
	}
}

/* Interactive demo: booking form replica beside the React admin calendar. */
.product-demo {
	grid-area: demo;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	min-width: 0;
	container-type: inline-size;
	scroll-margin-top: var(--sticky-under-header);
}

.product-demo__panes {
	display: grid;
	gap: 1.25rem;
}

@container (min-width: 44rem) {
	.product-demo__panes {
		grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
		align-items: start;
	}

	.demo-admin {
		position: sticky;
		top: var(--sticky-under-header);
	}
}

.demo-pane {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.demo-pane__label {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.demo-form,
.demo-admin__frame {
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 0.875rem;
	background: #fff;
}

.demo-form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
	padding: 1rem;
	color: var(--demo-ink);
	font-size: 0.875rem;
	line-height: 1.4;
}

.demo-form button,
.demo-form select {
	font: inherit;
	color: inherit;
}

.demo-form select {
	font-size: 1rem;
}

.demo-form button {
	cursor: pointer;
}

.demo-form__product {
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--demo-line);
	font-size: 0.9375rem;
}

.demo-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.9375rem;
}

.demo-form__field select {
	height: 2.5rem;
	padding: 0 1.75rem 0 0.6rem;
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 0.9rem;
	appearance: none;
}

.demo-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 1.0625rem;
}

.demo-cal__head button {
	width: var(--wp--custom--layout--touch, 3rem);
	height: var(--wp--custom--layout--touch, 3rem);
	border: 0;
	border-radius: 4px;
	background: none;
	font-size: 1.25rem;
}

.demo-cal__head button:disabled {
	color: #c9c9c9;
	cursor: default;
}

.demo-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	min-height: calc(1.55rem + 6 * 2.75rem);
}

.demo-cal__dow {
	padding: 0.4rem 0;
	color: #555;
	font-size: 0.75rem;
	text-align: center;
}

.demo-cal__day {
	height: 2.75rem;
	border: 0;
	border-radius: 4px;
	background: none;
	font-weight: 700;
}

.demo-cal__day:disabled {
	color: #c4c4c4;
	font-weight: 400;
	cursor: default;
}

.demo-cal__day.is-other {
	visibility: hidden;
}

@media (hover: hover) {
	:is(.demo-cal__day, .demo-slot, .demo-cal__head button):not(:disabled, .is-selected):hover {
		background: #f1f1f1;
	}
}

.demo-form .is-selected {
	background: var(--demo-ink);
	color: #fff;
}

.demo-form__picked {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--demo-line);
	font-weight: 600;
}

[data-demo-picked] {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.65rem;
}

.demo-form__picked select {
	margin-left: auto;
	padding: 0.15rem 0.25rem;
	border: 0;
	background: none;
	color: #666;
	font-weight: 400;
}

.demo-slots {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	text-align: center;
}

.demo-slots__col {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.demo-slots__head {
	padding-bottom: 0.3rem;
	color: #444;
}

.demo-slot {
	min-height: 2.75rem;
	border: 0;
	border-radius: 4px;
	background: none;
	font-weight: 700;
}

.demo-slots__none {
	padding: 0.5rem 0;
	color: #aaa;
}

.demo-form__extras {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	padding: 0.75rem 0 0;
	border: 0;
	border-top: 1px solid var(--demo-line);
}

.demo-form__extras legend {
	float: left;
	width: 100%;
	margin: 0 0 0.35rem;
	padding: 0;
	font-size: 0.9375rem;
}

.demo-form__extras label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #555;
	cursor: pointer;
}

.demo-form__extras small {
	color: #8a8a8a;
}

.demo-form__cost {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--demo-line);
	font-weight: 700;
}

/* Beat theme button[type=submit] primary (equal specificity otherwise). */
.demo-form button.demo-form__book[type="submit"] {
	width: 100%;
	min-height: 2.85rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 4px;
	background: var(--demo-ink);
	color: #fff;
	font-weight: 600;
	box-shadow: none;
}

.demo-form button.demo-form__book[type="submit"]:is(:hover, :active, :focus-visible) {
	background: var(--demo-ink);
	color: #fff;
}

.demo-form button.demo-form__book[type="submit"]:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.demo-admin__frame {
	position: relative;
	overflow: hidden;
	color: #1d2327;
	font-size: 0.8125rem;
	background: #f0f0f1;
	container-type: inline-size;
}

.demo-admin__title {
	padding: 0.55rem 0.75rem 0.1rem;
	font-size: 1.05rem;
	font-weight: 400;
	line-height: 1.3;
}

.demo-admin__toolbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
	min-width: 0;
	padding: 0.25rem 0.55rem 0.55rem;
}

.demo-admin__new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	flex: 0 0 auto;
	height: 1.75rem;
	padding: 0 0.7rem 0 0.45rem;
	border-radius: 999px;
	background: var(--demo-admin-accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.demo-admin__new-icon {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
}

.demo-admin__today,
.demo-admin__chev,
.demo-admin__filter,
.demo-admin__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 1.75rem;
	color: #1d2327;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.demo-admin__today {
	padding: 0 0.45rem;
	border-radius: 4px;
}

.demo-admin__period {
	display: flex;
	align-items: center;
	gap: 0;
	min-width: 0;
	flex: 1 1 auto;
}

.demo-admin__chev {
	width: 1.25rem;
	font-size: 0.95rem;
	opacity: 0.7;
}

.demo-admin__when {
	margin: 0 0.1rem;
	min-width: 0;
	overflow: hidden;
	color: #1d2327;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.demo-admin__filter {
	width: 1.75rem;
	border-radius: 4px;
}

.demo-admin__filter svg {
	display: block;
	width: 14px;
	height: 14px;
}

.demo-admin__view {
	margin-left: 0.15rem;
	padding: 0 1.15rem 0 0.45rem;
	border-radius: 999px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%231d2327' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 0.25rem center / 0.85rem;
}

@container (max-width: 22rem) {
	.demo-admin__new {
		width: 1.75rem;
		padding: 0;
		font-size: 0;
	}

	.demo-admin__new-icon {
		font-size: 1rem;
	}

	.demo-admin__today {
		display: none;
	}
}

.demo-admin__grid {
	display: flex;
	flex-direction: column;
	min-height: 18rem;
	margin: 0 0.5rem 0.5rem;
	overflow: hidden;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
}

.demo-admin__colhead,
.demo-admin__row {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	min-width: 0;
}

.demo-admin__colhead {
	border-bottom: 1px solid #dcdcde;
}

.demo-admin__axis {
	border-right: 1px solid #ececec;
}

.demo-admin__dayhead {
	padding: 0.45rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.demo-admin__row {
	min-height: 2.65rem;
}

.demo-admin__time {
	padding: 0.2rem 0.4rem 0 0;
	border-right: 1px solid #ececec;
	border-top: 1px solid #f0f0f1;
	color: #757575;
	font-size: 0.6875rem;
	line-height: 1.2;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.demo-admin__cell {
	display: flex;
	gap: 2px;
	min-width: 0;
	padding: 2px;
	border-top: 1px solid #f0f0f1;
	background: #fff;
}

.demo-admin__cell.is-off {
	background-color: rgba(128, 128, 128, 0.05);
	background-image: repeating-linear-gradient(
		112deg,
		rgba(128, 128, 128, 0.9),
		rgba(128, 128, 128, 0.9) 2px,
		transparent 2px,
		transparent 7px
	);
}

.demo-appt {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	justify-content: flex-start;
	gap: 0.05rem;
	box-sizing: border-box;
	min-width: 0;
	margin: 0;
	padding: 0.2rem 0.4rem;
	overflow: hidden;
	border: 0;
	border-radius: 3px;
	background: #2271b1;
	color: #fff;
	font: inherit;
	font-size: 0.6875rem;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
}

button.demo-appt:hover {
	box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.12), 0 0 0 1px #fff;
}

button.demo-appt:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.demo-appt.is-tone-1 {
	background: #b5487a;
}

.demo-appt.is-tone-2 {
	background: #0e7c86;
}

.demo-appt__time,
.demo-appt__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.demo-appt__time {
	font-weight: 400;
	opacity: 0.95;
}

.demo-appt__title {
	font-weight: 500;
}

.demo-appt.is-draft {
	background: rgba(130, 130, 130, 0.12);
	color: #50575e;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
	cursor: default;
}

.demo-appt.is-flash {
	animation: demo-pop 0.55s cubic-bezier(0.2, 0, 0, 1);
}

.demo-panel {
	position: absolute;
	inset: 0;
	z-index: 8;
	pointer-events: none;
}

.demo-panel[hidden] {
	display: none;
}

.demo-panel__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}

.demo-panel__card {
	position: absolute;
	z-index: 1;
	box-sizing: border-box;
	width: min(17rem, calc(100% - 1rem));
	max-height: calc(100% - 1rem);
	overflow: auto;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
	color: #1d2327;
	pointer-events: auto;
}

.demo-panel__card::before {
	content: "";
	position: absolute;
	top: var(--demo-panel-caret-y, 18px);
	left: -6px;
	border: 6px solid transparent;
	border-right-color: #fff;
	filter: drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.06));
	pointer-events: none;
}

.demo-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.55rem 0.4rem 0.45rem 0.85rem;
}

.demo-panel__title {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	color: #757575;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.3;
}

.demo-panel__title > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.demo-panel__icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: #757575;
}

.demo-panel__close {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: var(--wp--custom--layout--touch, 3rem);
	height: var(--wp--custom--layout--touch, 3rem);
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #50575e;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.demo-panel__close:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.demo-panel__grid,
.demo-panel__status-row {
	display: grid;
	grid-template-columns: 1rem minmax(0, 1fr);
	column-gap: 0.75rem;
	align-items: start;
	padding: 0 0.85rem;
}

.demo-panel__grid {
	row-gap: 0.75rem;
	padding-top: 0.15rem;
	padding-bottom: 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.demo-panel__status-row {
	padding-bottom: 0.85rem;
}

.demo-panel__key {
	display: inline-flex;
	align-items: center;
	align-self: start;
	min-height: 1.3rem;
}

.demo-panel__val {
	min-width: 0;
	color: #1d2327;
	overflow-wrap: anywhere;
}

.demo-panel__product {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.demo-panel__dot {
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #2271b1;
}

.demo-panel__dot.is-tone-1 {
	background: #b5487a;
}

.demo-panel__dot.is-tone-2 {
	background: #0e7c86;
}

.demo-panel__person {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.demo-panel__avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: #dcdcde;
	color: #1d2327;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1;
}

.demo-panel__status {
	display: inline-flex;
	align-items: center;
	min-height: 1.6rem;
	padding: 0 0.55rem;
	border-radius: 4px;
	background: #edfaef;
	color: #007017;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
}

.demo-admin__legend {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0 0.75rem 0.65rem;
	color: #50575e;
	font-size: 0.6875rem;
	line-height: 1.3;
}

.demo-admin__swatch {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 2px;
	background-color: rgba(128, 128, 128, 0.05);
	background-image: repeating-linear-gradient(
		112deg,
		rgba(128, 128, 128, 0.9),
		rgba(128, 128, 128, 0.9) 2px,
		transparent 2px,
		transparent 7px
	);
}

.demo-admin__log {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.demo-admin__log:has(li:not(.is-hint)) {
	min-height: 6.75rem;
}

.demo-admin__log li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.875rem;
	font-weight: 500;
	animation: demo-in 0.35s both;
}

.demo-admin__log li::before {
	content: "\2713";
	display: grid;
	flex: 0 0 1.25rem;
	place-items: center;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--demo-admin-accent);
	color: #fff;
	font-size: 0.6875rem;
}

.demo-admin__log li.is-hint {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.demo-admin__log li.is-hint::before {
	content: "";
	flex-basis: 0.6rem;
	height: 0.6rem;
	margin-inline: 0.325rem;
	animation: demo-pulse 1.6s ease-in-out infinite;
}

@keyframes demo-pop {
	0% {
		opacity: 0;
		transform: scale(0.6);
	}

	60% {
		opacity: 1;
		transform: scale(1.05);
	}
}

@keyframes demo-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
}

@keyframes demo-pulse {
	50% {
		opacity: 0.35;
		transform: scale(0.7);
	}
}

@media (prefers-reduced-motion: reduce) {
	.demo-appt.is-flash,
	.demo-admin__log li,
	.demo-admin__log li.is-hint::before {
		animation: none;
	}
}

.product-demo__note {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
}

.product-demo__note a {
	color: var(--demo-admin-accent);
	font-weight: 500;
}

/* Purchase card */
.product-purchase {
	grid-area: buy;
	display: flex;
	flex-direction: column;
	gap: var(--bwp-card-gap, 0.85rem);
	margin: 0;
	padding: var(--bwp-card-pad, 1rem);
	background: var(--wp--custom--color--surface);
	border: 1px solid transparent;
	border-radius: var(--wp--custom--shape--md, 1rem);
	scroll-margin-top: var(--sticky-under-header);
	transition: border-color 140ms ease;
}

.product-purchase:is(:hover, :focus-within) {
	border-color: var(--wp--preset--color--hairline);
}

.product-purchase h2.product-purchase__title {
	margin: 0;
	color: var(--wp--preset--color--text);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.product-purchase > *,
.product-purchase form.edd_download_purchase_form {
	margin: 0;
}

.product-purchase .edd_download_purchase_form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.product-purchase__facts {
	display: grid;
	gap: 0.45rem;
	color: var(--wp--preset--color--subtle, #8b949e);
	font-size: 0.8125rem;
	line-height: 1.45;
	text-wrap: pretty;
}

.product-purchase__facts > p {
	margin: 0;
}

.product-purchase__facts a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.product-purchase__facts a:hover,
.product-purchase__facts a:focus-visible {
	color: var(--wp--preset--color--text);
}

.bookingwp-product-meta {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--wp--custom--color--outline-variant);
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted);
}

.bookingwp-product-meta .sl_label .sl_data {
	margin-left: 0.35rem;
}

.bookingwp-product-meta a.sl_data {
	color: var(--wp--preset--color--accent);
	font-weight: 500;
	text-decoration: none;
}

.bookingwp-product-meta a.sl_data:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (max-width: 781px) {
	.product-purchase__facts a,
	.bookingwp-product-meta a.sl_data {
		display: inline-flex;
		align-items: center;
		min-height: 1.5rem;
	}
}

.bookingwp-product-meta__links {
	display: flex;
	gap: 0.15rem;
	margin-inline: -0.55rem;
}

.bookingwp-product-meta__links a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0 0.55rem;
	border-radius: var(--wp--custom--shape--full);
	color: var(--wp--preset--color--accent);
	font-weight: 500;
	text-decoration: none;
}

.bookingwp-product-meta__links a:hover {
	background: color-mix(in srgb, var(--wp--custom--color--primary) calc(var(--md-state-hover, 0.08) * 100%), transparent);
	text-decoration: none;
}

/* Details: story, who, compare, screenshots, FAQ. Gap owns major chapter breaks. */
.product-more {
	grid-area: more;
	display: flex;
	flex-direction: column;
	gap: var(--product-section-gap);
	min-width: 0;
}

/* Screenshots h2/lede/gallery are unwrapped siblings - keep them one unit. */
.product-more.is-layout-flow > h2 + p {
	margin-block-start: calc(1.35rem - var(--product-section-gap));
}

.product-more.is-layout-flow > :is(h2, p) + :is(.gallery, .wp-block-gallery) {
	margin-block-start: calc(1.65rem - var(--product-section-gap));
}

/* Demo label: quiet cue for what the interactive panes do - not a chapter title. */
.product-demo__title {
	margin: 0;
	max-width: none;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--title);
	line-height: 1.35;
	color: var(--wp--preset--color--text);
}

@media (min-width: 480px) {
	.product-demo__title {
		white-space: nowrap;
	}
}

/* Chapter titles: compare, screenshots, FAQ (not SEO who - own measure). */
.product-more > h2,
.product-more > .wp-block-group:not(.product-seo-who) > h2:first-of-type,
.product-faq h2 {
	margin: 0 0 1.25rem;
	max-width: 28rem;
	font-size: clamp(1.95rem, 3.8vw, 2.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.1;
	text-align: left;
	text-wrap: balance;
	color: var(--wp--preset--color--text);
}

.product-more > h2 {
	margin-bottom: 0;
}

.product-more > .wp-block-group:not(.product-seo-who) > h2:first-of-type + p {
	max-width: 40rem;
	margin: 0 0 2rem;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.4vw, 1.125rem);
	line-height: 1.55;
	text-wrap: pretty;
}

/* Who SEO block: one left edge, keep full copy, chapter-scale title. */
.product-seo-who {
	max-width: 40rem;
}

.product-page .product-seo-who.is-layout-constrained > * {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.product-seo-who > h2 {
	margin: 0 0 1.15rem;
	font-size: clamp(1.95rem, 3.8vw, 2.65rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--display);
	line-height: 1.1;
	text-wrap: balance;
	color: var(--wp--preset--color--text);
}

.product-seo-who > h3 {
	margin: 2rem 0 0.75rem;
	font-size: clamp(1.2rem, 2vw, 1.375rem);
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--headline);
	line-height: 1.25;
	color: var(--wp--preset--color--text);
}

.product-seo-who > p {
	margin: 0 0 1.15rem;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.4vw, 1.125rem);
	line-height: 1.55;
	text-wrap: pretty;
}

.product-seo-who > p:last-child {
	margin-bottom: 0;
}

.product-more > .product-faq {
	max-width: none;
	margin: 0;
	padding: var(--wp--custom--space--6) 0 0;
	border-top: 1px solid var(--wp--preset--color--hairline);
}

.product-more > .product-faq > * {
	max-width: none;
}

.product-more > p.text-centered {
	max-width: 38rem;
	color: var(--wp--preset--color--muted);
	font-size: clamp(1.0625rem, 1.4vw, 1.125rem);
	line-height: 1.55;
	text-align: left;
	text-wrap: pretty;
}

.product-more > :is(.gallery, .wp-block-gallery) {
	display: grid !important; /* beat core is-layout-flex */
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--custom--space--5, 1.25rem);
	align-items: start;
	margin: 0;
}

@media (min-width: 480px) {
	.product-more > :is(.gallery, .wp-block-gallery) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.product-more .wp-block-gallery figure.wp-block-image {
	position: relative;
	isolation: isolate;
	width: 100% !important; /* beat core has-nested-images column widths */
	margin: 0;
	padding: 0.75rem;
	border-radius: var(--wp--custom--shape--md, 0.75rem);
}

/* Gray plate; :has(figcaption) beats core caption ::before max-height:3em. */
.product-more .wp-block-gallery figure.wp-block-image:has(figcaption)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	height: auto;
	max-height: none;
	border-radius: inherit;
	background: var(--product-panel, #f1f2f3);
	pointer-events: none;
	transition: inset var(--wp--custom--motion--duration-short, 160ms) var(--wp--custom--motion--easing, ease);
}

.product-more .wp-block-gallery figure.wp-block-image:has(figcaption):is(:hover, :focus-within)::before {
	inset: -0.5rem;
}

.product-more .wp-block-gallery figure.wp-block-image a {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	border-radius: calc(var(--wp--custom--shape--md, 0.75rem) - 0.2rem);
	background: #fff;
}

/* Uniform tile frame; contain so feature UI is not cover-cropped. */
.product-more .wp-block-gallery figure.wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top center;
	border-radius: inherit;
	background: #fff;
}

/* Landscape docs loop fills the tile; still image remains for lightbox. */
.product-more .wp-block-gallery figure.wp-block-image video.product-gallery__motion {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	border-radius: inherit;
	background: #fff;
}

.product-more .wp-block-gallery figure.wp-block-image:has(video.product-gallery__motion) > a > img,
.product-more .wp-block-gallery figure.wp-block-image:has(video.product-gallery__motion) > img {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.product-more .wp-block-gallery figure.wp-block-image figcaption {
	position: static;
	margin: 0.55rem 0 0;
	padding: 0;
	background: none;
	color: var(--wp--preset--color--subtle);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: left;
	text-shadow: none;
}

#screenshots,
#features,
#how-it-works {
	scroll-margin-top: var(--sticky-under-header);
}

@media (min-width: 640px) {
	.product-more > :is(.gallery, .wp-block-gallery) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	/* Extra claim air on main only - keeps buy aligned to stick top (no jump). */
	.product-main {
		padding-top: 1.75rem;
	}

	.product-more > :is(.gallery, .wp-block-gallery) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.product-hero {
		grid-template-columns: minmax(0, 1fr) 17.25rem;
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "main buy" "demo buy" "more buy";
		column-gap: 2.5rem;
	}

	.product-purchase {
		position: sticky;
		top: var(--sticky-under-header);
	}
}

@media (max-width: 899px) {
	.product-main {
		max-width: none;
	}
}

/* Phones: entry price + one action while the purchase card is off-screen. */
.product-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	display: none;
	gap: 0.75rem;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem var(--wp--custom--layout--gutter);
	padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--wp--custom--color--surface) 92%, transparent);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--wp--preset--color--hairline);
	transform: translateY(110%);
	transition: transform 0.2s var(--wp--custom--motion--easing);
}

.product-sticky-cta.is-visible {
	transform: translateY(0);
}

.product-sticky-cta__price {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

.product-sticky-cta__price strong {
	color: var(--wp--preset--color--text);
	font-size: 1.0625rem;
}

@media (max-width: 899px) {
	.product-sticky-cta {
		display: flex;
	}

	html:has(.product-sticky-cta) {
		padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
	}
}

@media (min-width: 900px) {
	.product-sticky-cta {
		display: none !important;
	}
}

