/**
 * MindX Pricelist - Frontend Styles
 *
 * Dark pricing cards with thin white border, badge, photo,
 * expand/collapse features, and responsive layout.
 */

:root {
	--mxp-card-bg: #111114;
	--mxp-card-border: #ffffff;
	--mxp-card-radius: 20px;
	--mxp-purple: #682e96;
	--mxp-purple-hover: #572580;
	--mxp-text-white: #ffffff;
	--mxp-text-light: rgba(255, 255, 255, 0.78);
	--mxp-text-muted: rgba(255, 255, 255, 0.55);
	--mxp-inner-pad: 28px;
}

/* ===========================
   Section
   =========================== */
.mxp-pricelist {
	max-width: 1300px;
	margin: 0 auto;
	padding: 48px 20px;
}

/* ===========================
   Grid: 4 columns
   (minmax(0, 1fr) — without this, a track could expand beyond
   its fair share when content is wider than 1fr, causing unequal
   card widths)
   =========================== */
.mxp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
}

/* ===========================
   Card
   =========================== */
.mxp-card {
	position: relative;
	border: 1px solid var(--mxp-card-border);
	border-radius: var(--mxp-card-radius);
	background: var(--mxp-card-bg);
	padding-top: 16px;
	min-width: 0;             /* allow shrinking inside grid cell */
}

.mxp-card__inner {
	padding: 24px var(--mxp-inner-pad) 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ===========================
   Badge (sits ON the top border)
   =========================== */
.mxp-card__badge {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ffffff;
	color: #111114;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	padding: 6px 22px;
	white-space: nowrap;
	z-index: 1;
}

/* ===========================
   Plan Name
   =========================== */
.mxp-card__name {
	font-size: 44px;
	font-weight: 800;
	color: var(--mxp-text-white);
	text-transform: uppercase;
	letter-spacing: 6px;
	margin: 8px 0 16px;
	line-height: 1.15;
	max-width: 100%;
	word-break: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

/* ===========================
   Description
   =========================== */
.mxp-card__desc {
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
	color: var(--mxp-text-light);
	line-height: 1.55;
	margin: 0 0 20px;
	text-align: justify;
	max-width: 320px;
}

/* ===========================
   Photo (full-width, edge-to-edge)
   =========================== */
.mxp-card__photo {
	width: calc(100% + var(--mxp-inner-pad) * 2);
	margin-left: calc(var(--mxp-inner-pad) * -1);
	margin-right: calc(var(--mxp-inner-pad) * -1);
	margin-bottom: 24px;
	overflow: hidden;
}

.mxp-card__photo img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 16 / 10;
}

/* ===========================
   Price
   =========================== */
.mxp-card__price {
	font-size: 30px;
	font-weight: 400;
	color: var(--mxp-text-white);
	margin-bottom: 24px;
	letter-spacing: 1px;
}

/* ===========================
   Buttons
   =========================== */
.mxp-btn {
	display: block;
	width: 100%;
	max-width: 280px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	text-align: center;
	padding: 14px 20px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	line-height: 1.3;
}

/* Purple CTA */
.mxp-btn--cta {
	background: var(--mxp-purple);
	color: #ffffff;
	border: 2px solid var(--mxp-purple);
}

.mxp-btn--cta:hover,
.mxp-btn--cta:focus {
	background: var(--mxp-purple-hover);
	border-color: var(--mxp-purple-hover);
	color: #ffffff;
	text-decoration: none;
}

/* Outlined "LEARN MORE" / "SHOW LESS" */
.mxp-btn--more,
.mxp-btn--less {
	background: transparent;
	color: var(--mxp-text-white);
	border: 2px solid var(--mxp-card-border);
}

/* Hover/active: purple border, white bg, purple text */
.mxp-btn--more:hover,
.mxp-btn--more:focus,
.mxp-btn--less:hover,
.mxp-btn--less:focus {
	background: #ffffff;
	color: var(--mxp-purple);
	border-color: var(--mxp-purple);
}

/* ===========================
   CTA always visible, LEARN MORE hides when open
   =========================== */
.mxp-card__inner > .mxp-btn--cta {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 14px;
}

.mxp-card__inner > .mxp-btn--more {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0;
}

/* Hide LEARN MORE when card is open */
.mxp-card--open > .mxp-card__inner > .mxp-btn--more {
	display: none;
}

/* ===========================
   Expandable Features Section
   =========================== */
.mxp-card__expand {
	height: 0;
	overflow: hidden;
	transition: height 0.5s ease;
	width: 100%;
}

.mxp-card__expand .mxp-btn--cta,
.mxp-card__expand .mxp-btn--less {
	margin-top: 8px;
	margin-left: auto;
	margin-right: auto;
}

.mxp-card__expand .mxp-btn--less {
	margin-top: 14px;
}

/* ===========================
   Features Intro
   =========================== */
.mxp-card__features-intro {
	font-size: 14px;
	font-style: italic;
	color: var(--mxp-text-light);
	margin: 8px 0 16px;
	text-align: left;
}

/* ===========================
   Features List
   =========================== */
.mxp-card__features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	text-align: left;
}

.mxp-card__feature {
	margin-bottom: 18px;
	padding-left: 32px;
	position: relative;
	line-height: 1.5;
	min-height: 22px;
}

/* Check icon (default/dark variant): WHITE circle with DARK check
   — needed for contrast against the dark card background */
.mxp-card__feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23ffffff'/><path d='M6.75 12.25 L10.5 16 L17.5 8.5' fill='none' stroke='%23111114' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.mxp-card__feature strong {
	display: block;
	color: var(--mxp-text-white);
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 2px;
}

.mxp-card__feature span {
	display: block;
	color: var(--mxp-text-light);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

/* ===========================
   Responsive: Tablet (2 cols)
   =========================== */
@media (max-width: 1024px) {
	.mxp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.mxp-card__name {
		font-size: 36px;
		letter-spacing: 4px;
	}

	.mxp-card__price {
		font-size: 26px;
	}
}

/* ===========================
   Responsive: Mobile (1 col)
   =========================== */
@media (max-width: 680px) {
	.mxp-pricelist {
		padding: 28px 16px;
	}

	.mxp-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		max-width: 420px;
		margin: 0 auto;
	}

	.mxp-card__inner {
		--mxp-inner-pad: 22px;
		padding: 20px var(--mxp-inner-pad) 28px;
	}

	.mxp-card__name {
		font-size: 32px;
		letter-spacing: 4px;
	}

	.mxp-card__desc {
		max-width: none;
	}

	.mxp-card__price {
		font-size: 24px;
	}

	.mxp-btn {
		padding: 12px 28px;
		font-size: 13px;
	}
}

/* ===========================
   WHITE VARIANT
   - white bg, dark text
   - purple badge
   - features show titles only (inline, no expand)
   - LEARN MORE is a real link (purple outline)
   =========================== */
.mxp-pricelist--white .mxp-card {
	background: #ffffff;
	border: 1px solid #eaeaea;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	color: #111114;
}

/* Purple badge on white card */
.mxp-pricelist--white .mxp-card__badge {
	background: var(--mxp-purple);
	color: #ffffff;
}

/* Plan name in dark */
.mxp-pricelist--white .mxp-card__name {
	color: #111114;
}

/* Description in dark-muted */
.mxp-pricelist--white .mxp-card__desc {
	color: rgba(0, 0, 0, 0.72);
}

/* Price in dark */
.mxp-pricelist--white .mxp-card__price {
	color: #111114;
}

/* Inline (non-expandable) features list */
.mxp-pricelist--white .mxp-card__features--inline {
	margin: 0 0 24px;
	width: 100%;
}

/* Intro text (e.g. "Everything on MindX 360 Core, plus:") — dark on white */
.mxp-pricelist--white .mxp-card__features-intro {
	color: rgba(0, 0, 0, 0.72);
	text-align: center;
	width: 100%;
}

/* Features in white variant: titles only, dark text */
.mxp-pricelist--white .mxp-card__feature {
	color: #111114;
}

.mxp-pricelist--white .mxp-card__feature strong {
	color: #111114;
	font-size: 15px;
	font-weight: 500;
}

/* Check icon (white variant): DARK circle with WHITE check
   — needed for contrast against the white card background */
.mxp-pricelist--white .mxp-card__feature::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%23111114'/><path d='M6.75 12.25 L10.5 16 L17.5 8.5' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* LEARN MORE link (purple outlined, purple text) */
.mxp-pricelist--white .mxp-btn--more {
	background: transparent;
	color: var(--mxp-purple);
	border: 2px solid var(--mxp-purple);
	margin-top: 12px;
}

.mxp-pricelist--white .mxp-btn--more:hover,
.mxp-pricelist--white .mxp-btn--more:focus {
	background: var(--mxp-purple);
	color: #ffffff;
	border-color: var(--mxp-purple);
	text-decoration: none;
}
