/**
 * Homepage art direction (0.16.0): the visual language of the Quality &
 * Testing and Shop pages below the banner, which is unchanged.
 *
 * Rhythm, top to bottom:
 * 1. offer and testing panels and the trust bar on midnight navy, continuing
 *    from the banner;
 * 2. bestsellers on warm white (shop cards);
 * 3. shop by goal on white, the chosen goal on a dark panel in its colour;
 * 4. stacks on a pale lavender wash;
 * 5. brand strip and quality and testing as one dark band;
 * 6. reviews and the team on light grounds;
 * 7. the Start Here quiz as the closing dark band, running into the footer.
 *
 * Loads after refine.css on the homepage only.
 */

.nv {
	--art-deep: #17143a;
	--art-deeper: #110f2c;
	--art-band: #1b1740;
	--art-ink: #2b255e;
	--art-paper: #f8f6f2;
	--art-lavender: #f3f0f8;
	--art-line: rgba(43, 37, 94, 0.1);
	--art-spectrum: linear-gradient(90deg, #00b5cb 0%, #4e2583 52%, #e6007e 100%);
	--art-grid: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	--art-grid-ink: linear-gradient(rgba(43, 37, 94, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 37, 94, 0.05) 1px, transparent 1px);
}

/* Section headings with a short introduction beside the link. */
.nv .nv-section__lead {
	display: grid;
	gap: 0.6rem;
	max-inline-size: 40rem;
}

.nv .nv-section__lead .nv-eyebrow {
	margin: 0;
}

.nv .nv-section__lead .nv-section__intro {
	margin-block-start: 0.25rem !important;
}

/* ---------------------------------------------------------------
 * 1. Under the banner: offer and testing panels, trust bar
 * ------------------------------------------------------------- */
.nv .nv-promos {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(1rem, 0.7rem + 1.2vw, 2rem);
	background:
		radial-gradient(44rem 20rem at 88% 0%, rgba(78, 37, 131, 0.55), transparent 65%),
		radial-gradient(30rem 16rem at 4% 110%, rgba(0, 181, 203, 0.14), transparent 65%),
		linear-gradient(180deg, var(--art-deep) 0%, var(--art-deeper) 100%);
}

.nv .nv-promos::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--art-grid);
	background-size: 3.5rem 3.5rem;
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
	mask-image: linear-gradient(90deg, transparent 20%, #000 80%);
}

.nv .nv-promo {
	box-shadow: 0 1.25rem 2.5rem -1.75rem rgba(0, 0, 0, 0.7);
}

.nv .nv-promo:hover {
	box-shadow: 0 1.5rem 2.75rem -1.75rem rgba(0, 0, 0, 0.8);
}

.nv-r .nv .nv-trust,
.nv .nv-trust {
	position: relative;
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--art-deeper);
}

/* A fine spectrum rule where the dark opening meets the products. */
.nv .nv-trust::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 1px;
	background: var(--art-spectrum);
	opacity: 0.55;
}

/* ---------------------------------------------------------------
 * 2. Bestsellers: warm white, shop cards
 * ------------------------------------------------------------- */
.nv .nv-bestsellers {
	position: relative;
	isolation: isolate;
	background: linear-gradient(180deg, var(--art-lavender) 0%, var(--art-paper) 42%);
}

/* The measurement grid in ink, very faint, top right. */
.nv .nv-bestsellers::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--art-grid-ink);
	background-size: 3.5rem 3.5rem;
	background-position: right -1px top -1px;
	-webkit-mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 75%);
	mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 75%);
}

.nv .nv-bestsellers .nv-section__head {
	align-items: flex-end;
}

.nv .nv-cards .nv-slider .slider__slide {
	display: flex;
}

.nv .nv-cards .nv-slider .nv-card {
	inline-size: 100%;
}

/* ---------------------------------------------------------------
 * 3. Shop by goal: the chosen goal on a dark panel
 * ------------------------------------------------------------- */
.nv .nv-goals {
	border-block-start: 1px solid var(--art-line);
	background: #fff;
}

.nv .nv-goal__intro {
	isolation: isolate;
	border: 0;
	background:
		radial-gradient(24rem 16rem at 100% 100%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
		radial-gradient(32rem 20rem at 0% 0%, rgba(78, 37, 131, 0.5), transparent 70%),
		var(--art-deep);
	color: #fff;
}

.nv .nv-goal__intro::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--art-grid);
	background-size: 3rem 3rem;
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
	mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
}

.nv .nv-goal__intro > * {
	position: relative;
}

.nv-r .nv .nv-goal__label,
.nv .nv-goal__label {
	color: color-mix(in srgb, var(--accent) 45%, #fff);
}

.nv .nv-goal__text {
	color: #fff;
}

.nv .nv-goal__icon {
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nv .nv-goal__intro .nv-goal__quiz,
.nv .nv-goal__intro .nv-goal__quiz:hover {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------
 * 4. Stacks: a pale lavender wash leading into the dark band
 * ------------------------------------------------------------- */
.nv .nv-stacks {
	background: linear-gradient(180deg, var(--art-paper) 0%, var(--art-lavender) 100%);
}

/* ---------------------------------------------------------------
 * 5. Brand strip and quality and testing: one dark band
 * ------------------------------------------------------------- */
/* The strip artwork is lettering on black: shown in screen mode on the
   band's navy, the black takes the navy and the lettering is unchanged. */
.nv .image-strip {
	background: var(--art-band);
}

.nv .image-strip img {
	mix-blend-mode: screen;
}

.nv .nv-quality {
	isolation: isolate;
	background:
		radial-gradient(48rem 28rem at 88% 0%, rgba(78, 37, 131, 0.5), transparent 65%),
		radial-gradient(40rem 26rem at 0% 100%, rgba(0, 181, 203, 0.12), transparent 70%),
		radial-gradient(36rem 26rem at 100% 100%, rgba(230, 0, 126, 0.1), transparent 70%),
		var(--art-band);
}

.nv .nv-quality::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--art-grid);
	background-size: 3.5rem 3.5rem;
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, transparent 75%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 18%, transparent 75%);
}

.nv .nv-quality::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 1px;
	background: var(--art-spectrum);
	opacity: 0.5;
}

/* ---------------------------------------------------------------
 * 6. Reviews and team
 * ------------------------------------------------------------- */
.nv .nv-reviews {
	background: var(--art-paper);
}

.nv .nv-review {
	border: 1px solid var(--art-line);
	box-shadow: none;
}

.nv .nv-team {
	border-block-start: 1px solid var(--art-line);
	background: #fff;
}

/* A person without a photograph: the words alone, on a light wash. */
.nv .nv-person--no-photo,
.nv .nv-team__grid--1 .nv-person--no-photo {
	position: relative;
	grid-template-columns: minmax(0, 1fr);
	border-color: var(--art-line);
	background:
		radial-gradient(30rem 18rem at 100% 0%, rgba(78, 37, 131, 0.07), transparent 70%),
		linear-gradient(135deg, var(--art-lavender) 0%, #fff 60%);
}

.nv .nv-person--no-photo::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	inline-size: 3px;
	background: linear-gradient(180deg, #00b5cb 0%, #4e2583 52%, #e6007e 100%);
}

.nv .nv-person--no-photo .nv-person__body {
	max-inline-size: 52rem;
}

/* ---------------------------------------------------------------
 * 7. Start Here quiz: the closing dark band
 * ------------------------------------------------------------- */
.nv .nv-quiz {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-block-end: 1px solid rgba(255, 255, 255, 0.08);
	background:
		radial-gradient(50rem 28rem at 6% 0%, rgba(78, 37, 131, 0.6), transparent 62%),
		radial-gradient(34rem 22rem at 100% 100%, rgba(230, 0, 126, 0.12), transparent 62%),
		linear-gradient(180deg, #1b1744 0%, var(--art-deep) 100%);
	color: #fff;
}

.nv .nv-quiz::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: 1px;
	background: var(--art-spectrum);
	opacity: 0.55;
}

.nv .nv-quiz::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--art-grid);
	background-size: 3.5rem 3.5rem;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

.nv .nv-quiz__card {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.nv-r .nv .nv-quiz .nv-heading,
.nv .nv-quiz .nv-heading {
	color: #fff;
}

.nv-r .nv .nv-quiz .nv-section__intro,
.nv .nv-quiz .nv-section__intro {
	color: rgba(255, 255, 255, 0.76);
}

.nv-r .nv .nv-quiz .nv-eyebrow,
.nv .nv-quiz .nv-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.nv-r .nv .nv-quiz .nv-button,
.nv .nv-quiz .nv-button {
	border-color: #fff;
	background: #fff;
	color: var(--art-ink);
}

.nv-r .nv .nv-quiz .nv-button:hover,
.nv .nv-quiz .nv-button:hover {
	border-color: #ece9f6;
	background: #ece9f6;
	color: var(--art-ink);
	box-shadow: none;
}

.nv .nv-quiz__preview {
	background: #fff;
	box-shadow: 0 2rem 4rem -2.5rem rgba(0, 0, 0, 0.7);
}

.nv .nv-quiz__options li {
	background: var(--art-paper);
	border-color: transparent;
}

/* ---------------------------------------------------------------
 * Phones
 * ------------------------------------------------------------- */
@media (max-width: 47.99em) {
	.nv .nv-promos::before {
		background-size: 2.5rem 2.5rem;
	}

	.nv .nv-bestsellers .nv-section__head {
		align-items: flex-start;
	}

	.nv .nv-quiz .nv-button {
		inline-size: 100%;
	}
}
