/**
 * Product panel (dark) — values from Figma (Neat Pulse: 424:2395, 424:2398, 424:2397).
 */

.nc-product-panel__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Logo (Figma: 646×150) */
.nc-product-panel .nc-product-panel__logo-img {
	width: auto;
	max-width: min(646px, 80vw);
	max-height: 150px;
}

/* Image card (Figma: 1280×720, radius 64, fallback colour #f1ddd8) */
.nc-product-panel__card {
	position: relative;
	width: 100%;
	max-width: 1280px;
	aspect-ratio: 1280 / 720;
	margin-top: 120px;
	overflow: hidden;
	border-radius: 64px;
	background: #f1ddd8;
	text-align: left;
}

.nc-product-panel__media {
	position: absolute;
	inset: 0;
}

.nc-product-panel .nc-product-panel__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Frosted panel on the right (Figma: 460×624, padding 72, radius 62) */
.nc-product-panel__glass {
	position: absolute;
	top: 50%;
	right: 48px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 36px;
	width: 460px;
	height: calc(100% - 96px);
	max-height: 624px;
	padding: 72px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 62px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(60px);
	-webkit-backdrop-filter: blur(60px);
	transform: translateY(-50%);
	color: var(--nc-color-white);
}

.nc-product-panel .nc-product-panel__glass-text {
	margin: 0;
	color: var(--nc-color-white);
	font-size: 26px;
	font-weight: 400; /* Figma: Maison Neue Book */
	line-height: 1.2;
}

.nc-product-panel .nc-product-panel__icons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 28px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	list-style: none;
}

.nc-product-panel .nc-product-panel__icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* Statement (Figma: 56px Bold; regular = 64% white, Bold = white) */
.nc-product-panel .nc-product-panel__statement {
	max-width: 1118px;
	margin-top: 120px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 56px;
	font-weight: 700;
	line-height: 1.2;
}

.nc-product-panel .nc-product-panel__statement p {
	margin: 0;
}

.nc-product-panel .nc-product-panel__statement strong,
.nc-product-panel .nc-product-panel__statement b {
	color: var(--nc-color-white);
}

.nc-product-panel__actions {
	margin-top: 40px;
}

/* ---------- Small desktop: tighter panel ---------- */

@media (max-width: 1279px) {
	.nc-product-panel__glass {
		width: 400px;
		padding: 48px;
	}

	.nc-product-panel .nc-product-panel__glass-text {
		font-size: 22px;
	}
}

/* ---------- Tablet: panel moves below the image ---------- */

@media (max-width: 1099px) {
	.nc-product-panel__card {
		aspect-ratio: auto;
		margin-top: 72px;
		border-radius: 40px;
		background: rgba(255, 255, 255, 0.06);
	}

	.nc-product-panel__media {
		position: relative;
		aspect-ratio: 1280 / 720;
	}

	.nc-product-panel__glass {
		position: static;
		width: 100%;
		height: auto;
		max-height: none;
		padding: 40px;
		border: 0;
		border-radius: 0;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		transform: none;
		gap: 32px;
	}

	.nc-product-panel .nc-product-panel__glass-text {
		font-size: 22px;
	}

	.nc-product-panel .nc-product-panel__statement {
		margin-top: 72px;
		font-size: 36px;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.nc-product-panel__card {
		margin-top: 40px;
		border-radius: var(--nc-radius-media);
	}

	.nc-product-panel__glass {
		padding: 24px;
		gap: 24px;
	}

	.nc-product-panel .nc-product-panel__glass-text {
		font-size: 18px;
	}

	.nc-product-panel .nc-product-panel__icons {
		padding-top: 20px;
	}

	.nc-product-panel .nc-product-panel__statement {
		margin-top: 48px;
		font-size: 26px;
	}

	.nc-product-panel__actions {
		margin-top: 32px;
	}
}

/* ---------- Plans pop-up (button "Plans popup") ----------
   Dark backdrop, one white card per plan: light gradient header with name and price line,
   then feature groups and optional small print. */

html.nc-plans-open {
	overflow: hidden; /* No page scroll behind the pop-up */
}

.nc-plans {
	width: min(1180px, calc(100vw - 48px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 56px 0 0;
	overflow: visible;
	border: 0;
	background: transparent;
	color: #333333;
	font-family: var(--nc-font);
}

.nc-plans:focus,
.nc-plans:focus-visible {
	outline: none;
}

.nc-plans::backdrop {
	background: rgba(20, 20, 20, 0.92);
}

.nc-plans__grid {
	display: grid;
	grid-template-columns: repeat(var(--nc-plans-cols, 3), minmax(0, 1fr));
	gap: 24px;
	max-height: calc(100dvh - 104px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.nc-plan {
	display: flex;
	flex-direction: column;
	min-height: 520px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--nc-color-white);
}

.nc-plan__head {
	padding: 40px 32px 36px;
	background: linear-gradient(180deg, #ffffff 0%, #f2f5fa 100%);
	text-align: center;
}

.nc-plans .nc-plan__name {
	margin: 0;
	color: #222222;
	font-family: var(--nc-font);
	font-size: 2.5rem;      /* 40px */
	font-weight: 700;
	line-height: 1.1;
}

.nc-plans .nc-plan__price {
	margin: 16px 0 0;
	color: #555555;
	font-size: 0.875rem;    /* 14px */
	line-height: 1.4;
}

.nc-plan__body {
	padding: 32px 32px 40px;
	text-align: left;
}

.nc-plans .nc-plan__list {
	margin: 0 0 20px;
	padding: 0 0 0 18px;
	color: #444444;
	font-size: 0.9375rem;   /* 15px */
	line-height: 1.5;
	list-style: disc;
}

.nc-plans .nc-plan__list li {
	margin: 0;
}

.nc-plans .nc-plan__note {
	margin: 24px 0 0;
	color: #757575;
	font-size: 0.75rem;     /* 12px */
	line-height: 1.5;
}

/* Close (×), above the cards on the right */
.nc-plans__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.nc-plans__close:hover {
	background: rgba(255, 255, 255, 0.24);
}

.nc-plans__close::before,
.nc-plans__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	border-radius: 1px;
	background: var(--nc-color-white);
	transform: translate(-50%, -50%) rotate(45deg);
}

.nc-plans__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.nc-plans__close:focus-visible {
	outline: 2px solid var(--nc-color-white);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.nc-plans[open] {
		animation: nc-plans-in 0.2s ease-out;
	}

	@keyframes nc-plans-in {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
	}
}

/* Tablet and phones: one column, scroll inside the pop-up */
@media (max-width: 899px) {
	.nc-plans {
		width: min(560px, calc(100vw - 32px));
		max-height: calc(100dvh - 32px);
		padding-top: 52px;
	}

	.nc-plans__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		max-height: calc(100dvh - 84px);
		scrollbar-width: none; /* Still scrolls by swipe; no visible scroll bar */
	}

	.nc-plans__grid::-webkit-scrollbar {
		display: none;
	}

	.nc-plan {
		min-height: 0;
		border-radius: 20px;
	}

	.nc-plan__head {
		padding: 32px 32px 28px;
	}

	.nc-plans .nc-plan__name {
		font-size: 2rem;
	}

	.nc-plans .nc-plan__price {
		margin-top: 8px;
	}

	.nc-plan__body {
		padding: 28px 32px 36px;
	}
}
