/* =============================================================================
   Color Lab — Product Page
   Scoped to .andp-cl-* classes. Loaded only on the Color Lab page template.
   Depends on CSS custom properties defined in the child theme :root.
   ============================================================================= */


/* ── Page section backgrounds ── */

.andp-cl-hero,
.andp-cl-how,
.andp-cl-acquire,
.andp-cl-video-section,
.andp-cl-platform-section,
.andp-cl-pricing-section {
	background-color: var(--andp-bg);
}


/* ── Plugin button override ── */

.page-template-page-color-lab .andp-trial__submit {
	background: var(--andp-gold) !important;
	color: #000000 !important;
	font-family: var(--andp-font-mono) !important;
	font-size: var(--andp-size-label) !important;
	font-weight: 500 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.15em !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 14px 24px !important;
	cursor: pointer !important;
	width: 100% !important;
	display: block !important;
	box-sizing: border-box !important;
	transition: background-color var(--andp-transition) !important;
}

.page-template-page-color-lab .andp-trial__submit:hover {
	background-color: #b8821e !important;
}


/* ── Sub-nav ── */

.andp-cl-subnav {
	position: sticky;
	top: var(--andp-nav-height);
	z-index: 90;
	background-color: var(--andp-bg);
	border-bottom: 1px solid var(--andp-border-light);
}

.andp-cl-subnav__list {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none !important;
	margin: 0;
	padding: 0;
}

.andp-cl-subnav__link {
	display: block;
	padding: 14px 20px;
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--andp-text-muted);
	text-decoration: none;
	transition: color var(--andp-transition);
}

.andp-cl-subnav__link:hover {
	color: var(--andp-gold);
}

/* Anchor scroll offset accounts for fixed header + sticky subnav */
#andp-cl-video,
#andp-cl-pricing,
#andp-cl-acquire {
	scroll-margin-top: calc(var(--andp-nav-height) + 49px);
}


/* ── Hero ── */

.andp-cl-hero {
	padding-bottom: 64px;
}

.andp-cl-hero__inner {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}

.andp-cl-hero__title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 300;
	color: var(--andp-white);
	margin: 8px 0 20px;
	line-height: 1.15;
}

.andp-cl-hero__title-em {
	font-style: normal;
	color: var(--andp-gold);
}

.andp-cl-hero__tagline {
	font-size: 15px;
	font-weight: 500;
	color: var(--andp-gold);
	margin: 0 0 20px;
	letter-spacing: 0.01em;
}

.andp-cl-hero__desc {
	font-size: 14px;
	color: var(--andp-text-muted);
	line-height: 1.7;
	margin: 0 0 28px;
	max-width: 400px;
}

.andp-cl-hero__features {
	list-style: none !important;
	margin: 0 0 36px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.andp-cl-hero__feature {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--andp-text-primary);
	font-family: var(--andp-font-sans);
}

.andp-cl-hero__feature::before {
	display: none !important;
}

.andp-cl-hero__feature-dot {
	display: block;
	width: 4px;
	height: 4px;
	background: var(--andp-gold);
	flex-shrink: 0;
}

.andp-cl-hero__ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}


/* ── Screenshot gallery grid (styles in lightbox.css) ── */

.andp-cl-hero__media {
	position: relative;
}


/* ── Platform section ── */

.andp-cl-platform-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--andp-border-light);
	border: 1px solid var(--andp-border-light);
}

.andp-cl-platform-card {
	background: var(--andp-surface);
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.andp-cl-platform-card__icon {
	color: var(--andp-gold);
}

.andp-cl-platform-card__name {
	font-family: var(--andp-font-sans);
	font-size: 18px;
	font-weight: 400;
	color: var(--andp-white);
}

.andp-cl-platform-card__desc {
	font-size: 14px;
	color: var(--andp-text-muted);
	line-height: 1.65;
	margin: 0;
}


/* ── Video section ── */

.andp-cl-video-frame {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--andp-surface);
	border: 1px solid var(--andp-border-light);
	overflow: hidden;
}

.andp-cl-video-frame iframe,
.andp-cl-video-frame video {
	width: 100%;
	height: 100%;
	display: block;
	border: none;
}

.andp-cl-video-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	color: var(--andp-text-dim);
}

.andp-cl-video-placeholder__label {
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	text-transform: uppercase;
	letter-spacing: 0.3em;
}




/* ── How it works ── */

.andp-cl-steps {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.andp-cl-step {
	flex: 1;
	padding: 28px;
	background: var(--andp-surface) !important;
	border: 1px solid var(--andp-border-light);
}

.andp-cl-step + .andp-cl-step {
	border-left: none;
}

.andp-cl-step__num {
	display: block;
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	color: var(--andp-gold);
	letter-spacing: 0.3em;
	margin-bottom: 16px;
}

.andp-cl-step__title {
	font-size: 15px;
	font-weight: 400;
	color: var(--andp-white);
	margin: 0 0 10px;
}

.andp-cl-step__desc {
	font-size: 14px;
	color: var(--andp-text-muted);
	line-height: 1.65;
	margin: 0;
}

.andp-cl-step__arrow {
	display: flex;
	align-items: center;
	padding: 28px 16px;
	color: var(--andp-text-dim);
	flex-shrink: 0;
	align-self: center;
}


/* ── Pricing section ── */

.andp-cl-pricing-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}

.andp-cl-pricing-card {
	background: var(--andp-surface);
	border: 1px solid var(--andp-border-light);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.andp-cl-pricing-card--featured {
	border-color: rgba(201, 146, 42, 0.4);
}

.andp-cl-pricing-card__header {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.andp-cl-pricing-card__tier {
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--andp-gold);
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.andp-cl-pricing-card__perpetual {
	font-size: 9px;
	letter-spacing: 0.12em;
	color: var(--andp-text-muted);
	border: 1px solid var(--andp-border-mid);
	padding: 2px 7px;
	text-transform: uppercase;
}

.andp-cl-pricing-card__price {
	font-size: clamp(2rem, 3vw, 2.5rem);
	font-weight: 300;
	color: var(--andp-white);
	line-height: 1;
	margin-top: 4px;
}

.andp-cl-pricing-card__vat {
	font-size: 0.45em;
	font-weight: 400;
	color: var(--andp-text-muted);
	letter-spacing: 0.05em;
	vertical-align: middle;
}

.andp-cl-pricing-card__tagline {
	font-size: 13px;
	color: var(--andp-text-muted);
	margin: 0;
}

.andp-cl-pricing-card__list {
	list-style: none !important;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.andp-cl-pricing-card__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.andp-cl-pricing-card__item::before {
	content: '';
	display: block;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	margin-top: 1px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.andp-cl-pricing-card__item--yes {
	color: var(--andp-text-primary);
}

.andp-cl-pricing-card__item--yes::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7l3 3 6-6' stroke='%23C9922A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.andp-cl-pricing-card__item--no {
	color: var(--andp-text-dim);
}

.andp-cl-pricing-card__item--no::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 4l6 6M10 4l-6 6' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.andp-cl-pricing-card__footnote {
	font-family: var(--andp-font-mono);
	font-size: 12px;
	color: var(--andp-text-mid);
	letter-spacing: 0.05em;
	margin: 0;
}


/* ── Trial logged-in message ── */

.andp-cl-trial-logged-as {
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--andp-text-muted);
	margin: 0 0 16px;
}

.andp-cl-trial-logged-as strong {
	color: var(--andp-white);
	font-weight: 500;
}


/* ── Try or Buy section ── */

.andp-cl-acquire__cols {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: stretch;
}

.andp-cl-acquire__col {
	display: flex;
	flex-direction: column;
}


/* ── Shared tier header ── */

.andp-cl-tier__header {
	margin-bottom: 32px;
}

.andp-cl-tier__title {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 300;
	color: var(--andp-white);
	margin: 8px 0 6px;
}

.andp-cl-tier__subtitle {
	font-size: 13px;
	color: var(--andp-text-muted);
	margin: 0;
	line-height: 1.6;
}


/* ── Buy card ── */

.andp-cl-buy-card {
	padding: 28px;
	background: var(--andp-surface) !important;
	border: 1px solid var(--andp-border-light);
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.andp-cl-buy-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.andp-cl-buy-card__price {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 300;
	color: var(--andp-white);
}

.andp-cl-buy-card__price .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.andp-cl-buy-card__price-note {
	font-family: var(--andp-font-mono);
	font-size: var(--andp-size-label);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--andp-text-dim);
}

.andp-cl-buy-card__cta {
	width: 100%;
	justify-content: center;
}

.andp-cl-buy-card__note {
	font-family: var(--andp-font-mono);
	font-size: 11px;
	color: var(--andp-text-dim);
	margin: 0;
	letter-spacing: 0.05em;
	text-align: center;
}


/* ── Responsive ── */

@media (max-width: 1024px) {
	.andp-cl-steps {
		flex-wrap: wrap;
	}

	.andp-cl-step {
		flex: 1 1 calc(50% - 1px);
	}

	.andp-cl-step__arrow {
		display: none;
	}

	.andp-cl-step + .andp-cl-step {
		border-left: 1px solid var(--andp-border-light);
		border-top: none;
	}
}

@media (max-width: 960px) {
	.andp-cl-hero__inner {
		grid-template-columns: 1fr !important;
		gap: 48px;
	}

	.andp-cl-hero__desc {
		max-width: 100%;
	}

	.andp-cl-hero__media {
		order: -1;
	}

	.andp-cl-platform-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.andp-cl-pricing-cols {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.andp-cl-steps {
		flex-direction: column;
	}

	.andp-cl-step {
		flex: 1 1 100%;
	}

	.andp-cl-step + .andp-cl-step {
		border-left: 1px solid var(--andp-border-light);
		border-top: none;
	}

	.andp-cl-acquire__cols {
		grid-template-columns: 1fr !important;
		gap: 48px;
	}

	.andp-cl-subnav__link {
		padding: 12px 14px;
		font-size: 9px;
	}
}

@media (max-width: 480px) {
	.andp-cl-platform-grid {
		grid-template-columns: 1fr;
	}
}
