/* ============================================================
   KODIF — PRICING
   Tokens (--primary, --bg-reverse, …) are declared in css/style.css.
   Order: components → @media (breakpoints at the end of the file).
   ============================================================ */

/* ============ PAGE ============ */
/* Whole page rides the dark brand background; grid sits behind the hero copy. */
.section-pricing {
	position: relative;
	background: var(--bg-reverse);
	padding: 64px 0;
	overflow: hidden;
}

/* Subtle grid backdrop, faded out toward the edges (mirrors the home hero) */
.pricing-hero__grid {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 60px 60px;
	-webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 18%, #000 35%, transparent 80%);
	mask-image: radial-gradient(ellipse 70% 50% at 50% 18%, #000 35%, transparent 80%);
	pointer-events: none;
}

/* Keep page content above the grid */
.section-pricing .container {
	position: relative;
	z-index: 1;
}

/* ============ HERO ============ */
.pricing-hero {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

.pricing-hero__eyebrow {
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8a8a;
}

.pricing-hero .title {
	margin-bottom: 24px;
}

.pricing-hero__lead {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dim);
}

/* ============ PLANS ============ */
.pricing__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 64px;
	align-items: stretch;
}

/* Card: white body on the dark page. Per-card accent (--color) drives the
   4px frame and the header band, so each plan is themed from one value. */
.plan {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 4px solid var(--color, #ebebeb);
	transition:
		transform 0.4s ease,
		box-shadow 0.4s ease;
}

/* Header band takes the card's accent color */
.plan__head {
	padding: 12px 24px;
	background: var(--color, #f0efe9);
	text-align: center;
}

.plan__name {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--white);
}

/* Starter's light header (--color: #edeae4) needs dark text */
.plan:first-child .plan__name {
	color: var(--text-title);
}

.plan__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 32px;
}

/* Price: oversized amount, muted period suffix on the baseline */
.plan__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.plan__amount {
	font-size: 48px;
	line-height: 1;
	font-weight: 700;
	color: var(--text-title);
}

.plan__period {
	font-size: 24px;
	color: var(--text-title);
}

.plan__rate {
	margin-top: 8px;
	font-size: 14px;
	color: var(--text-title);
}

/* Volume is the headline number for the plan → brand color */
.plan__volume {
	margin-top: 20px;
	font-size: 15px;
	font-weight: 600;
	color: var(--primary);
}

.plan__per {
	margin-top: 0;
	font-size: 14px;
	color: var(--text-title);
}

.plan__cta {
	width: 100%;
	margin-top: 20px;
}

/* ============ FEATURES ============ */
.plan__features {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #ebebeb;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.plan__group-title {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--primary);
}

.plan__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* Custom round bullet so we control its color/size */
.plan__item {
	position: relative;
	padding-left: 18px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-title);
}

.plan__item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 9px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--text-title);
}

/* ============ VALUE PROPS ============ */
.pricing-values {
	list-style: none;
	margin: 64px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	text-align: center;
}

.pricing-value__title {
	margin-bottom: 12px;
	font-size: 24px;
	font-weight: 600;
	color: var(--primary);
}

.pricing-value__desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-dim);
}

/* ============ MARQUEE ============ */
/* Full-bleed yellow band; two identical lists scroll right in a seamless loop. */
.marquee {
	overflow: hidden;
	background: var(--type-yellow);
	border-top: 3px solid var(--bg-reverse);
	padding: 36px 0;
}

.marquee__track {
	display: flex;
	width: max-content;
	/* Slide one full list-width to the left, then snap back invisibly */
	animation: marquee-left 28s linear infinite;
}

.marquee__list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 64px;
	margin: 0;
	padding: 0 32px 0 0;
	list-style: none;
}

.marquee__item {
	display: flex;
	align-items: center;
	gap: 64px;
	white-space: nowrap;
	font-size: 40px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--bg-reverse);
}

/* Square bullet ahead of each claim (matches the no-rounding house style) */
.marquee__item::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bg-reverse);
}

@keyframes marquee-left {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* Honor reduced-motion: freeze the track in place */
@media (prefers-reduced-motion: reduce) {
	.marquee__track {
		animation: none;
	}
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1199px) {
	.pricing__grid {
		gap: 20px;
		margin-top: 40px;
	}
	.pricing-values {
		margin-top: 56px;
	}
	.plan__amount {
		font-size: 42px;
	}
	.plan__period {
		font-size: 20px;
	}
	.plan__features {
		gap: 18px;
	}
	.plan__name,
	.plan__group-title,
	.plan__item {
		font-size: 14px;
	}
	.plan__body {
		padding: 16px;
	}
}

@media (max-width: 991px) {
	.section-pricing {
		padding: 48px 0;
	}
	/* Stack to two columns on tablet (gap/margin carry from ≤1199) */
	.pricing__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pricing-values {
		margin-top: 40px;
		gap: 24px;
	}
	.pricing-value__title {
		margin-bottom: 4px;
		font-size: 20px;
	}
	/* Scale the marquee down with the viewport */
	.marquee {
		padding: 28px 0;
	}
	.marquee__item,
	.marquee__list {
		gap: 48px;
	}
	.marquee__item {
		font-size: 30px;
	}
	.marquee__item::before {
		width: 13px;
		height: 13px;
	}
}

@media (max-width: 767px) {
	.pricing__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	/* Single column → value props read better stacked too */
	.pricing-values {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.pricing-value__title {
		font-size: 18px;
	}
	.pricing-value__desc br {
		display: none;
	}
	.marquee {
		padding: 22px 0;
	}
	.marquee__item,
	.marquee__list {
		gap: 40px;
	}
	.marquee__item {
		font-size: 24px;
	}
	.marquee__item::before {
		width: 10px;
		height: 10px;
	}
}

@media (max-width: 539px) {
	.section-pricing {
		padding: 40px 0;
	}
	.pricing-hero .title {
		margin-bottom: 16px;
	}
	.plan__amount {
		font-size: 36px;
	}
	.plan__period {
		font-size: 18px;
	}
	.plan__volume {
		margin-top: 16px;
	}
	.plan__features {
		margin-top: 16px;
		padding-top: 16px;
		gap: 16px;
	}
	.pricing-values {
		margin-top: 40px;
	}
	/* Tighten the marquee on small screens */
	.marquee {
		padding: 16px 0;
	}
	.marquee__item,
	.marquee__list {
		gap: 28px;
	}
	.marquee__item {
		font-size: 18px;
	}
	.marquee__item::before {
		width: 8px;
		height: 8px;
	}
}
