/*
 * Sounds Amazing - Musical Mushroom page (Figma "musical mashroom" 383:528,
 * 1920px frame).
 *
 * Loads on top of shop.css (.sa-shop supplies the tokens, breadcrumb strip,
 * toolbar, product card and trust strip). Sizes interpolate from the 1024px
 * value to the 1920px design value like the other layers; tablet and mobile
 * rules are at the end.
 */

/* ------------------------------------------------------------ shared */

.sa-mm-title {
	margin: 0;
	font: 400 var(--display) / var(--display-lh) var(--serif);
	letter-spacing: -0.0115em;
	color: var(--ink);
	text-align: center;
}

.sa-mm-title--left {
	text-align: left;
}

.sa-mm-title--light {
	color: var(--cream);
}

.sa-mm-title--light .sa-gold {
	color: var(--gold-2);
}

.sa-mm-wave {
	display: block;
	height: auto;
	margin: 12px auto 0;
}

/* One flare PNG (gold waveform + rings on transparent) is placed six times in
   the design at different rotations. The --rot variant holds a landscape copy
   turned 90deg inside a portrait box. */
.sa-mm-flare {
	position: absolute;
	pointer-events: none;
	background: url(../img/musical-mushroom/flare.png) center / cover no-repeat;
}

.sa-mm-flare--rot {
	background: none;
	overflow: hidden;
}

.sa-mm-flare--rot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(90deg);
	background: url(../img/musical-mushroom/flare.png) center / cover no-repeat;
}

.sa-mm-cta {
	margin: 0;
	display: flex;
	justify-content: center;
}

/* 217 x 55 pill from the design, on top of the .sa-btn in shop.css */
.sa-shop .sa-btn--lg {
	height: 55px;
	min-width: 217px;
	padding: 0 22px;
	font-size: 11.199px;
	letter-spacing: 0.14em;
}

/* -------------------------------------------------------------- hero */

.sa-mm-hero {
	position: relative;
	overflow: hidden;
	background: #221327;
	color: #fff;
	min-height: clamp(300px, calc(330px + 183 * (100vw - 1024px) / 896), 513px);
	display: flex;
	align-items: center;
}

/* Figma "Rectangle 56": the bowl photo flush right, 110% of the band height,
   then a right-to-left wash from 55% to solid #221327 at the left edge. */
.sa-mm-hero__bg {
	position: absolute;
	inset: 0;
	background: url(../img/musical-mushroom/hero-bowl.jpg) right 45% / auto 110% no-repeat;
}

/* Figma runs the wash to solid at the far left edge; the photo (height-fitted,
   so narrower than the band) ends around 27% in, and its own purple differs
   from #221327 enough to show a seam under a 95% wash. Solid from 30% in. */
.sa-mm-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(34, 19, 39, 0.55) 0%, rgba(34, 19, 39, 0.9) 45%, #221327 70%);
}

.sa-mm-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--content);
	margin: 0 auto;
	padding: 64px var(--gutter);
}

.sa-mm-hero__title {
	margin: 0;
	max-width: 878px;
	font: 400 var(--display) / var(--display-lh) var(--serif);
	letter-spacing: -0.0115em;
	color: #fff;
}

.sa-mm-hero__title .sa-gold {
	color: var(--gold-2);
}

.sa-mm-hero__wave {
	width: min(753px, 90%);
	margin: 1px 0 0;
}

.sa-mm-hero__lead {
	margin: 33px 0 0;
	max-width: 658px;
	font: 700 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: var(--track);
	color: var(--cream);
}

/* -------------------------------------------------------------- kits */

.sa-mm-kits {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, calc(80px + 46 * (100vw - 1024px) / 896), 126px) var(--gutter) clamp(96px, calc(110px + 63 * (100vw - 1024px) / 896), 173px);
}

/* Figma "image 5": 1523 x 857, turned 180deg, hugging the top-left. */
.sa-mm-kits__flare {
	left: calc(50% - 954px);
	top: -2px;
	width: 1523px;
	height: 857px;
	transform: rotate(180deg);
}

.sa-mm-kits__inner {
	position: relative;
	max-width: var(--content);
	margin: 0 auto;
}

.sa-mm-kits__wave {
	width: min(762px, 80%);
}

.sa-mm-kits__head {
	max-width: 1571px;
	margin: clamp(48px, calc(56px + 26 * (100vw - 1024px) / 896), 82px) auto 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px 40px;
}

.sa-mm-kits__label {
	margin: 0 0 4px;
	font: 400 clamp(28px, calc(30px + 10 * (100vw - 1024px) / 896), 40px) / 1.2 var(--serif);
	color: var(--ink);
}

.sa-mm-kits .sa-shop-toolbar {
	margin-top: 0;
}

.sa-mm-kits .sa-select__input {
	min-width: 152px;
}

.sa-mm-kits__count {
	margin: 0 0 0 clamp(8px, calc(12px + 40 * (100vw - 1024px) / 896), 52px);
	font: 500 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: var(--track);
	color: var(--purple);
}

/* Four 364px cards with 38px gaps = the 1571px row in the design. */
.woocommerce .sa-shop .sa-mm-kits ul.sa-products {
	max-width: 1571px;
	margin-top: clamp(40px, calc(44px + 7 * (100vw - 1024px) / 896), 51px);
	column-gap: clamp(20px, calc(22px + 16 * (100vw - 1024px) / 896), 38px);
}

.woocommerce .sa-shop .sa-mm-kits ul.sa-products.sa-products--list {
	grid-template-columns: minmax(0, 1fr);
}

/* The kit cards carry no category eyebrow or blurb in the design. */
.sa-mm-kits .sa-card__eyebrow {
	display: none;
}

.woocommerce .sa-shop .sa-mm-kits ul.sa-products li.product h3.sa-card__title {
	margin-top: 0;
}

.sa-mm-kits .sa-card.is-filtered-out {
	display: none !important;
}

.sa-mm-kits__empty {
	margin: 40px auto 0;
	max-width: 640px;
	text-align: center;
	font: 500 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: var(--track);
	color: var(--purple);
}

/* ---------------------------------------------------------- features */

.sa-mm-features {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse closest-side at 50% 50%, #5f3f77 0%, #4e305e 50%, #3c2146 100%);
	color: var(--cream);
	padding: clamp(120px, calc(140px + 88 * (100vw - 1024px) / 896), 228px) var(--gutter) clamp(100px, calc(110px + 54 * (100vw - 1024px) / 896), 164px);
}

.sa-mm-features__flare--left {
	left: calc(50% - 1356px);
	top: -11px;
	width: 1232px;
	height: 693px;
	opacity: 0.4;
	transform: scaleX(-1);
}

.sa-mm-features__flare--right {
	left: calc(50% + 292px);
	top: -55px;
	width: 857px;
	height: 1524px;
	opacity: 0.6;
}

.sa-mm-features__flare--right::before {
	width: 1524px;
	height: 857px;
}

.sa-mm-features__inner {
	position: relative;
	max-width: var(--content);
	margin: 0 auto;
}

.sa-mm-features__wave {
	width: min(435px, 70%);
}

/* Three 480px cards with 64px gaps = the 1562px row in the design. */
.sa-mm-features__grid {
	list-style: none;
	margin: clamp(56px, calc(60px + 23 * (100vw - 1024px) / 896), 83px) auto 0;
	padding: 0;
	max-width: 1562px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, calc(36px + 28 * (100vw - 1024px) / 896), 64px);
}

.sa-feature {
	position: relative;
}

.sa-feature__photo {
	aspect-ratio: 480 / 314;
	border: 1px solid var(--gold);
	border-radius: 22px;
	overflow: hidden;
}

.sa-feature__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Cream panel overlapping the photo by 57px, badge straddling its top edge. */
.sa-feature__body {
	position: relative;
	margin: -57px 10px 0 11px;
	padding: 47px 24px 27px;
	border: 0.7px solid var(--gold);
	border-radius: 20px;
	background: linear-gradient(to bottom, #fdf7f3 13.36%, #f8eeff 53.652%, #fff 124.38%);
	box-shadow: 0 2px 8px rgba(83, 53, 105, 0.2);
	text-align: center;
	color: var(--ink);
}

.sa-feature__badge {
	position: absolute;
	left: 50%;
	top: -55px;
	transform: translateX(-50%);
	width: 89px;
	height: 89px;
	border-radius: 50%;
	border: 1.3px solid var(--gold-2);
	background: radial-gradient(circle closest-side, #5f3f77 0%, #4e305e 50%, #3c2146 100%);
	display: grid;
	place-items: center;
}

.sa-feature__badge img {
	display: block;
}

.sa-feature__title {
	margin: 0;
	font: 400 clamp(22px, calc(23px + 6.916 * (100vw - 1024px) / 896), 29.916px) / 1.25 var(--serif);
	color: var(--ink);
}

.sa-feature__text {
	margin: 10px auto 0;
	max-width: 383px;
	font: 400 14px / 24.265px var(--sans);
	letter-spacing: 1px;
}

.sa-mm-features .sa-mm-cta {
	margin-top: 65px;
}

/* ------------------------------------------------------- installation */

.sa-mm-install {
	position: relative;
	overflow: hidden;
	padding: clamp(96px, calc(110px + 63 * (100vw - 1024px) / 896), 173px) var(--gutter) clamp(120px, calc(150px + 133 * (100vw - 1024px) / 896), 283px);
}

/* Figma "image 21" (710 x 1260, turned 90deg, off the left edge) and
   "image 22" (1050 x 591, right of steps 2-3). */
.sa-mm-install__flare--left {
	left: -232px;
	top: 11.5%;
	width: 710px;
	height: 1260px;
}

.sa-mm-install__flare--left::before {
	width: 1260px;
	height: 710px;
}

.sa-mm-install__flare--right {
	left: calc(50% - 47px);
	top: 57%;
	width: 1050px;
	height: 591px;
}

.sa-mm-install__inner {
	position: relative;
	max-width: var(--content);
	margin: 0 auto;
}

.sa-mm-install__wave {
	width: min(656px, 80%);
}

.sa-mm-steps {
	list-style: none;
	margin: clamp(56px, calc(64px + 42 * (100vw - 1024px) / 896), 106px) auto 0;
	padding: 0;
	max-width: 1511px;
	display: flex;
	flex-direction: column;
	gap: clamp(64px, calc(72px + 48 * (100vw - 1024px) / 896), 120px);
}

/* text 376 + 72 gap | circle 124 + 58 + divider 47 | photo 835 (the divider
   touches the photo in the design, so the gap lives on the text column). */
.sa-step {
	display: grid;
	grid-template-columns: minmax(0, 448fr) auto minmax(0, 835fr);
	align-items: center;
	column-gap: 0;
}

.sa-step--flip {
	grid-template-columns: minmax(0, 835fr) auto minmax(0, 448fr);
}

.sa-step__text {
	order: 1;
	padding-right: clamp(28px, calc(32px + 40 * (100vw - 1024px) / 896), 72px);
}

.sa-step--flip .sa-step__text {
	padding-right: 0;
	padding-left: clamp(28px, calc(32px + 40 * (100vw - 1024px) / 896), 72px);
}

.sa-step__mid {
	order: 2;
	display: flex;
	align-items: center;
	gap: clamp(24px, calc(28px + 30 * (100vw - 1024px) / 896), 58px);
}

.sa-step__photo {
	order: 3;
}

.sa-step--flip .sa-step__photo {
	order: 1;
}

.sa-step--flip .sa-step__mid {
	flex-direction: row-reverse;
}

.sa-step--flip .sa-step__text {
	order: 3;
}

.sa-step__title {
	margin: 0;
	font: 400 clamp(34px, calc(38px + 17 * (100vw - 1024px) / 896), 55px) / 1.2 var(--serif);
	text-transform: uppercase;
	color: var(--ink);
}

.sa-step--flip .sa-step__title {
	max-width: 376px;
	text-align: center;
}

.sa-step__body {
	margin: 14px 0 0;
	max-width: 376px;
	font: 500 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: var(--track);
	color: var(--ink);
}

.sa-step__note {
	margin: 15px 0 0;
	max-width: 376px;
	font: italic 500 16px / 24.265px var(--sans);
	letter-spacing: var(--track);
	color: var(--purple);
}

.sa-step__num {
	flex: none;
	width: clamp(80px, calc(88px + 36 * (100vw - 1024px) / 896), 124px);
	height: clamp(80px, calc(88px + 36 * (100vw - 1024px) / 896), 124px);
	border-radius: 50%;
	border: 1.196px solid var(--gold);
	background: radial-gradient(circle closest-side, #5f3f77 0%, #4e305e 50%, #3c2146 100%);
	color: #fff;
	font: 700 clamp(34px, calc(36px + 13.6 * (100vw - 1024px) / 896), 49.6px) / 1 var(--sans);
	display: grid;
	place-items: center;
}

/* The 456 x 47 wave stood on end. */
.sa-step__divider {
	flex: none;
	position: relative;
	width: 47px;
	height: 456px;
}

.sa-step__divider img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 456px;
	height: 47px;
	max-width: none;
	transform: translate(-50%, -50%) rotate(90deg);
}

.sa-step__photo {
	aspect-ratio: 835 / 540;
	border: 1.7px solid var(--gold);
	border-radius: 30px;
	box-shadow: 0 2px 13px rgba(166, 126, 72, 0.5);
	overflow: hidden;
}

.sa-step__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------- faq + advice */

/* FAQ column 907 (gutter + 785 + 33) beside the 1013px purple panel. */
.sa-mm-help {
	display: grid;
	grid-template-columns: minmax(0, 907fr) minmax(0, 1013fr);
}

.sa-mm-faq {
	padding: clamp(60px, calc(64px + 33 * (100vw - 1024px) / 896), 97px) clamp(20px, calc(24px + 9 * (100vw - 1024px) / 896), 33px) clamp(60px, calc(70px + 92 * (100vw - 1024px) / 896), 162px) var(--gutter);
}

.sa-mm-faq__head {
	padding-left: 17px;
}

.sa-mm-faq__wave {
	width: min(478px, 90%);
	margin: 8px 0 0;
}

.sa-faq-list {
	margin-top: clamp(36px, calc(40px + 11 * (100vw - 1024px) / 896), 51px);
	display: flex;
	flex-direction: column;
	gap: 19.56px;
}

.sa-faq-item {
	background: #fcf4ee;
	border: 1.223px solid rgba(166, 126, 72, 0.5);
	border-radius: 14.673px;
}

.sa-faq-item__h {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

.sa-shop .sa-faq-item__q {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 31px 30px 28px;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font: 700 clamp(17px, calc(17.5px + 2.064 * (100vw - 1024px) / 896), 19.564px) / 1.375 var(--sans);
	color: var(--ink);
	/* The parent theme button reset sets nowrap; questions must wrap on phones. */
	white-space: normal;
	min-width: 0;
}

.sa-shop .sa-faq-item__q::after {
	content: "";
	flex: none;
	width: 19.56px;
	height: 19.56px;
	margin-top: 3.7px;
	background: url(../img/support/plus.svg) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.sa-faq-item.is-open .sa-faq-item__q::after {
	background-image: url(../img/support/minus.svg);
}

.sa-shop .sa-faq-item__q:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 14px;
}

.sa-faq-item__a {
	margin: 0;
	padding: 0 31px 30px 28px;
	font: 500 17.118px / 24.455px var(--sans);
	color: var(--ink);
	opacity: 0.8;
}

.sa-faq-item__a[hidden] {
	display: none;
}

/* purchase advice panel */

.sa-advice {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse closest-side at 50% 50%, #55376b 0%, #3c2146 100%);
	color: var(--cream);
	padding: clamp(60px, calc(64px + 33 * (100vw - 1024px) / 896), 97px) clamp(32px, calc(36px + 24 * (100vw - 1024px) / 896), 60px) clamp(60px, calc(64px + 16 * (100vw - 1024px) / 896), 80px) clamp(72px, calc(80px + 83 * (100vw - 1024px) / 896), 163px);
}

/* Figma "image 24": the flare stood on end down the centre of the panel, 50%. */
.sa-advice__flare {
	left: 50%;
	top: -19px;
	width: 591px;
	height: 910px;
	transform: translateX(-50%);
	opacity: 0.5;
	background: none;
	overflow: hidden;
}

.sa-advice__flare::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 910px;
	height: 591px;
	transform: translate(-50%, -50%) rotate(90deg);
	background: url(../img/musical-mushroom/flare.png) 118% 0 / 150.46% 100% no-repeat;
}

.sa-advice__inner {
	position: relative;
}

/* The 444 x 25 wave stood on end, 87px left of the heading. */
.sa-advice__divider {
	position: absolute;
	left: -87px;
	top: 209px;
	width: 25px;
	height: 444px;
}

.sa-advice__divider img {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 444px;
	height: 25px;
	max-width: none;
	transform: translate(-50%, -50%) rotate(90deg);
}

.sa-advice__wave {
	width: min(562px, 95%);
	margin: 0 0 0 6px;
}

/* "If You" column 228 wide, kits column past the central flare. */
.sa-advice__table {
	margin-top: clamp(40px, calc(44px + 38 * (100vw - 1024px) / 896), 82px);
	display: grid;
	grid-template-columns: 228px minmax(0, 1fr);
	column-gap: clamp(24px, calc(32px + 213 * (100vw - 1024px) / 896), 245px);
	row-gap: 13px;
}

.sa-advice__row {
	display: contents;
}

.sa-advice__col {
	margin: 0 0 24px;
	font: 400 clamp(34px, calc(38px + 17 * (100vw - 1024px) / 896), 55px) / 1.4 var(--serif);
	letter-spacing: -0.0167em;
	color: var(--cream);
}

.sa-advice__col--if {
	padding-left: 19px;
}

.sa-advice__col--buy {
	text-align: center;
}

.sa-advice__if {
	margin: 0;
	align-self: center;
	max-width: 228px;
	font: 700 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: 0.14em;
	color: #fff;
}

.sa-advice__kit {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-self: start;
	min-width: 228px;
}

.sa-advice__kit-name {
	font: 400 clamp(28px, calc(30px + 10 * (100vw - 1024px) / 896), 40px) / 1.55 var(--serif);
	letter-spacing: -0.023em;
	color: var(--gold-2);
	white-space: nowrap;
	transition: color 0.2s ease;
}

.sa-advice__kit-name:hover,
.sa-advice__kit-name:focus-visible {
	color: #fff;
}

.sa-advice__kit-units {
	margin-top: -4px;
	font: 700 var(--body) / var(--body-lh) var(--sans);
	letter-spacing: 0.14em;
	color: #fff;
}

.sa-advice__cta {
	margin-top: 11px;
}

/* ============================================================== tablet */

@media (max-width: 1024px) {
	.sa-mm-hero__bg {
		background-position: 70% 45%;
		background-size: auto 100%;
	}

	.sa-mm-kits__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.sa-mm-features__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
		gap: 48px;
	}

	.sa-step,
	.sa-step--flip {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
		max-width: 640px;
		margin: 0 auto;
	}

	.sa-step__photo,
	.sa-step--flip .sa-step__photo {
		order: 1;
	}

	.sa-step__mid,
	.sa-step--flip .sa-step__mid {
		order: 2;
		flex-direction: row;
	}

	.sa-step__text,
	.sa-step--flip .sa-step__text {
		order: 3;
	}

	.sa-step__divider {
		display: none;
	}

	.sa-step__body,
	.sa-step__note,
	.sa-step--flip .sa-step__title {
		max-width: none;
		text-align: left;
	}

	.sa-mm-help {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-mm-faq {
		padding-right: var(--gutter);
	}

	.sa-advice {
		padding-left: var(--gutter);
		padding-right: var(--gutter);
	}

	.sa-advice__divider {
		display: none;
	}

	.sa-advice__table {
		column-gap: 40px;
	}
}

/* ============================================================== mobile */

@media (max-width: 767px) {
	.sa-mm-hero {
		min-height: 320px;
	}

	.sa-mm-hero__bg {
		background-position: 80% 45%;
		background-size: auto 80%;
	}

	.sa-mm-hero__bg::after {
		background: linear-gradient(270deg, rgba(34, 19, 39, 0.75) 0%, rgba(34, 19, 39, 0.92) 50%, #221327 100%);
	}

	.sa-mm-hero__lead {
		margin-top: 20px;
	}

	.sa-mm-kits .sa-shop-toolbar {
		gap: 12px;
	}

	.sa-mm-kits__count {
		margin-left: 0;
		flex-basis: 100%;
	}

	.sa-feature__body {
		margin-left: 8px;
		margin-right: 8px;
	}

	.sa-step__num {
		width: 64px;
		height: 64px;
		font-size: 28px;
	}

	.sa-step__photo {
		border-radius: 20px;
	}

	.sa-mm-faq__head {
		padding-left: 0;
	}

	.sa-shop .sa-faq-item__q {
		padding: 20px;
	}

	.sa-faq-item__a {
		padding: 0 20px 20px;
		font-size: 15px;
		line-height: 22px;
	}

	.sa-advice__table {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 16px;
		row-gap: 20px;
	}

	.sa-advice__col--if {
		padding-left: 0;
	}

	.sa-advice__col--buy {
		text-align: left;
	}

	.sa-advice__kit {
		align-items: flex-start;
		min-width: 0;
	}

	.sa-advice__kit-name {
		white-space: normal;
		line-height: 1.2;
	}

	.sa-advice__kit-units {
		margin-top: 4px;
	}
}
