/**
 * Phase 5.9.3 — Premium storefront hero.
 * Overrides .nds-market-hero--storefront only. Header untouched.
 */

.nds-market-hero--storefront {
	--nds-hero-ink: #071820;
	--nds-hero-deep: #0a2f36;
	--nds-hero-teal: #0d6570;
	--nds-hero-cream: #f3ebe1;
	--nds-hero-mist: #d7e8ea;
	position: relative;
	isolation: isolate;
	min-height: clamp(32rem, 68vh, 42rem);
	width: 100%;
	max-width: 100%;
	margin: 0.25rem 0 1.35rem;
	overflow: hidden;
	border-radius: 0;
	color: #fff;
	background: var(--nds-hero-ink);
}

.nds-market-hero--storefront .nds-market-hero__atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 48% 62% at 78% 42%, rgba(13, 101, 112, 0.38), transparent 68%),
		radial-gradient(ellipse 36% 48% at 12% 18%, rgba(243, 235, 225, 0.1), transparent 62%),
		radial-gradient(ellipse 42% 40% at 40% 100%, rgba(88, 112, 168, 0.16), transparent 70%),
		linear-gradient(118deg, #06141c 0%, #0a2830 46%, #0c3a42 72%, #102f38 100%);
}

.nds-market-hero--storefront .nds-market-hero__layout {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(1.5rem, 3.5vw, 3.25rem);
	min-height: inherit;
	padding: clamp(2.75rem, 5vw, 4.25rem) 0;
	max-width: min(94rem, calc(100% - 2rem));
	margin-inline: auto;
}

/* —— Copy column —— */
.nds-market-hero--storefront .nds-market-hero__copy {
	position: relative;
	z-index: 3;
	max-width: 36rem;
	padding-right: 0.5rem;
}

.nds-market-hero--storefront .nds-market-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(243, 235, 225, 0.22);
	border-radius: 999px;
	background: rgba(243, 235, 225, 0.08);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--nds-hero-cream);
}

.nds-market-hero--storefront .nds-market-hero__eyebrow::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #7ec8ce;
	box-shadow: 0 0 0 3px rgba(126, 200, 206, 0.25);
}

.nds-market-hero--storefront h1 {
	margin: 0 0 1.1rem;
	max-width: 11ch;
	font-family: var(--nds-font-display);
	font-size: clamp(2.55rem, 5.2vw, 4.35rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: #fff;
	text-wrap: balance;
}

.nds-market-hero--storefront .nds-market-hero__lede {
	margin: 0 0 1.85rem;
	max-width: 38ch;
	font-size: clamp(1.05rem, 1.55vw, 1.22rem);
	line-height: 1.6;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
}

.nds-market-hero--storefront .nds-market-hero__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.85rem;
	align-items: center;
	margin-bottom: 1.65rem;
}

.nds-market-hero--storefront .nds-btn--hero {
	min-height: 3.35rem;
	padding-inline: 1.65rem;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 0.7rem;
	box-shadow:
		0 14px 30px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.08);
	white-space: nowrap;
	transition:
		transform 0.2s var(--nds-ease, ease),
		box-shadow 0.2s var(--nds-ease, ease),
		background 0.2s var(--nds-ease, ease);
}

.nds-market-hero--storefront .nds-btn--hero:hover,
.nds-market-hero--storefront .nds-btn--hero:focus-visible {
	transform: translateY(-2px);
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.34),
		0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nds-market-hero--storefront .nds-btn--hero:focus-visible {
	outline: 2px solid #9fd4d8;
	outline-offset: 3px;
}

.nds-market-hero--storefront .nds-btn--hero-secondary {
	min-height: 3.35rem;
	padding-inline: 1.25rem;
	font-weight: 650;
	border-radius: 0.7rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.38);
	color: #fff;
	white-space: nowrap;
	box-shadow: none;
	transition:
		transform 0.2s var(--nds-ease, ease),
		background 0.2s var(--nds-ease, ease),
		border-color 0.2s var(--nds-ease, ease);
}

.nds-market-hero--storefront .nds-btn--hero-secondary:hover,
.nds-market-hero--storefront .nds-btn--hero-secondary:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: none;
}

.nds-market-hero--storefront .nds-btn--hero-secondary:focus-visible {
	outline: 2px solid #9fd4d8;
	outline-offset: 3px;
}

.nds-market-hero--storefront .nds-market-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nds-market-hero--storefront .nds-market-hero__trust li {
	position: relative;
	padding-left: 1.05rem;
	font-size: 0.86rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	color: rgba(243, 235, 225, 0.9);
}

.nds-market-hero--storefront .nds-market-hero__trust li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #7ec8ce;
}

/* —— Showcase / covers —— */
.nds-market-hero--storefront .nds-market-hero__showcase {
	position: relative;
	z-index: 2;
	min-height: clamp(26rem, 52vh, 34rem);
	width: 100%;
}

.nds-market-hero--storefront .nds-market-hero__stage {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.nds-market-hero--storefront .nds-market-hero__cover {
	position: absolute;
	margin: 0;
	overflow: hidden;
	border-radius: 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow:
		0 28px 55px rgba(0, 0, 0, 0.42),
		0 8px 18px rgba(0, 0, 0, 0.22);
	background: #12343c;
	transform-origin: center center;
	transition: transform 0.55s var(--nds-ease, cubic-bezier(0.22, 1, 0.36, 1));
	will-change: transform;
}

.nds-market-hero--storefront .nds-market-hero__cover img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.nds-market-hero--storefront .nds-market-hero__cover--featured {
	width: min(18.5rem, 42%);
	left: 28%;
	top: 8%;
	z-index: 6;
	transform: rotate(-3deg);
	border-width: 1.5px;
	box-shadow:
		0 36px 70px rgba(0, 0, 0, 0.5),
		0 12px 28px rgba(13, 101, 112, 0.28),
		0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nds-market-hero--storefront .nds-market-hero__cover--2 {
	width: min(13.5rem, 30%);
	left: 4%;
	top: 18%;
	z-index: 4;
	transform: rotate(-11deg);
}

.nds-market-hero--storefront .nds-market-hero__cover--3 {
	width: min(12.75rem, 28%);
	right: 2%;
	top: 12%;
	left: auto;
	z-index: 5;
	transform: rotate(9deg);
}

.nds-market-hero--storefront .nds-market-hero__cover--4 {
	width: min(11.5rem, 26%);
	left: 10%;
	bottom: 6%;
	top: auto;
	z-index: 3;
	transform: rotate(5deg);
}

.nds-market-hero--storefront .nds-market-hero__cover--5 {
	width: min(10.75rem, 24%);
	right: 8%;
	bottom: 8%;
	top: auto;
	left: auto;
	z-index: 4;
	transform: rotate(-7deg);
}

.nds-market-hero--storefront .nds-market-hero__cover--6 {
	width: min(9.75rem, 22%);
	right: 28%;
	bottom: 2%;
	top: auto;
	left: auto;
	z-index: 2;
	transform: rotate(12deg);
	opacity: 0.94;
}

.nds-market-hero--storefront .nds-market-hero__cue {
	position: absolute;
	left: 42%;
	bottom: 18%;
	z-index: 8;
	display: grid;
	gap: 0.15rem;
	min-width: 8.5rem;
	padding: 0.7rem 0.85rem;
	border-radius: 0.7rem;
	background: rgba(243, 235, 225, 0.95);
	color: var(--nds-hero-ink);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
	transform: rotate(-2deg);
}

.nds-market-hero--storefront .nds-market-hero__cue-label {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nds-market-hero--storefront .nds-market-hero__cue-meta {
	font-size: 0.78rem;
	font-weight: 600;
	color: rgba(7, 24, 32, 0.7);
}

.nds-market-hero--storefront .nds-market-hero__chip {
	position: absolute;
	z-index: 7;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(8px);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	white-space: nowrap;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.nds-market-hero--storefront .nds-market-hero__chip--practice {
	top: 4%;
	right: 18%;
}

.nds-market-hero--storefront .nds-market-hero__chip--guides {
	top: 46%;
	left: 0;
}

.nds-market-hero--storefront .nds-market-hero__chip--updated {
	bottom: 28%;
	right: 0;
	background: rgba(13, 101, 112, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
	.nds-market-hero--storefront:hover .nds-market-hero__cover--featured {
		transform: rotate(-2deg) translateY(-8px);
	}
	.nds-market-hero--storefront:hover .nds-market-hero__cover--2 {
		transform: rotate(-12deg) translateY(-5px);
	}
	.nds-market-hero--storefront:hover .nds-market-hero__cover--3 {
		transform: rotate(10deg) translateY(-6px);
	}
}

/* Kill legacy absolute content/veil when storefront layout is active */
.nds-market-hero--storefront .nds-market-hero__veil,
.nds-market-hero--storefront .nds-market-hero__content,
.nds-market-hero--storefront .nds-market-hero__brand {
	display: none !important;
}

/* —— 1440 / large desktop —— */
@media (min-width: 1280px) {
	.nds-market-hero--storefront .nds-market-hero__cover--featured {
		width: min(20rem, 44%);
	}
	.nds-market-hero--storefront .nds-market-hero__cover--2 {
		width: min(14.5rem, 32%);
	}
	.nds-market-hero--storefront .nds-market-hero__cover--3 {
		width: min(13.5rem, 30%);
	}
}

/* —— 1024 tablet landscape —— */
@media (max-width: 1100px) {
	.nds-market-hero--storefront {
		min-height: auto;
	}

	.nds-market-hero--storefront .nds-market-hero__layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
		gap: 1.25rem;
		padding: 2.5rem 0 2.25rem;
	}

	.nds-market-hero--storefront .nds-market-hero__showcase {
		min-height: 24rem;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--5,
	.nds-market-hero--storefront .nds-market-hero__cover--6,
	.nds-market-hero--storefront .nds-market-hero__chip--updated {
		display: none;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--featured {
		width: min(15.5rem, 48%);
		left: 26%;
	}

	.nds-market-hero--storefront .nds-market-hero__actions {
		flex-wrap: wrap;
	}
}

/* —— 768 tablet —— */
@media (max-width: 860px) {
	.nds-market-hero--storefront .nds-market-hero__layout {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2.35rem 0 1.75rem;
	}

	.nds-market-hero--storefront .nds-market-hero__copy {
		max-width: 40rem;
		padding-right: 0;
	}

	.nds-market-hero--storefront h1 {
		max-width: 14ch;
		font-size: clamp(2.2rem, 7vw, 3.1rem);
	}

	.nds-market-hero--storefront .nds-market-hero__showcase {
		min-height: 18.5rem;
		max-width: 34rem;
		margin-inline: auto;
		width: 100%;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--4,
	.nds-market-hero--storefront .nds-market-hero__chip--guides {
		display: none;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--featured {
		width: min(12.5rem, 42%);
		left: 30%;
		top: 6%;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--2 {
		width: min(9.5rem, 32%);
		left: 6%;
		top: 22%;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--3 {
		width: min(9rem, 30%);
		right: 4%;
		top: 16%;
	}

	.nds-market-hero--storefront .nds-market-hero__cue {
		left: 34%;
		bottom: 10%;
		min-width: 7.5rem;
		padding: 0.55rem 0.7rem;
	}
}

/* —— Mobile 390 / 360 —— */
@media (max-width: 560px) {
	.nds-market-hero--storefront {
		min-height: auto;
		margin-bottom: 1rem;
	}

	.nds-market-hero--storefront .nds-market-hero__layout {
		padding: 1.85rem 0 1.35rem;
		gap: 1.15rem;
	}

	.nds-market-hero--storefront .nds-market-hero__eyebrow {
		font-size: 0.72rem;
		margin-bottom: 0.75rem;
	}

	.nds-market-hero--storefront h1 {
		margin-bottom: 0.85rem;
		font-size: clamp(2rem, 8.5vw, 2.45rem);
		max-width: 13ch;
	}

	.nds-market-hero--storefront .nds-market-hero__lede {
		margin-bottom: 1.35rem;
		font-size: 1rem;
		max-width: none;
	}

	.nds-market-hero--storefront .nds-market-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
		margin-bottom: 1.15rem;
	}

	.nds-market-hero--storefront .nds-btn--hero,
	.nds-market-hero--storefront .nds-btn--hero-secondary {
		width: 100%;
		justify-content: center;
		min-height: 3rem;
		white-space: normal;
		text-align: center;
	}

	.nds-market-hero--storefront .nds-market-hero__trust {
		gap: 0.45rem 0.85rem;
	}

	.nds-market-hero--storefront .nds-market-hero__trust li {
		font-size: 0.8rem;
	}

	.nds-market-hero--storefront .nds-market-hero__showcase {
		min-height: 14.5rem;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--3,
	.nds-market-hero--storefront .nds-market-hero__chip--practice {
		display: none;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--featured {
		width: min(10.5rem, 46%);
		left: 28%;
		top: 4%;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--2 {
		width: min(8rem, 36%);
		left: 4%;
		top: 28%;
	}

	.nds-market-hero--storefront .nds-market-hero__cue {
		right: 4%;
		left: auto;
		bottom: 8%;
		transform: rotate(2deg);
	}
}

@media (max-width: 380px) {
	.nds-market-hero--storefront .nds-market-hero__showcase {
		min-height: 13.25rem;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--featured {
		width: 9.5rem;
	}

	.nds-market-hero--storefront .nds-market-hero__cover--2 {
		width: 7.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nds-market-hero--storefront .nds-market-hero__cover,
	.nds-market-hero--storefront .nds-btn--hero,
	.nds-market-hero--storefront .nds-btn--hero-secondary {
		transition: none;
	}

	.nds-market-hero--storefront:hover .nds-market-hero__cover--featured,
	.nds-market-hero--storefront:hover .nds-market-hero__cover--2,
	.nds-market-hero--storefront:hover .nds-market-hero__cover--3,
	.nds-market-hero--storefront .nds-btn--hero:hover,
	.nds-market-hero--storefront .nds-btn--hero-secondary:hover {
		transform: none;
	}
}
