/**
 * The GTM Guy — Pricing section.
 *
 * Uses gtm-guy-theme's design tokens (with fallbacks, so it also renders in
 * the block editor or another theme) and its .section-head, .eyebrow, .edge
 * and .gtm-btn components.
 */
.gtm-pricing {
	--gp-text: var(--c-text, #eef2f8);
	--gp-muted: var(--c-muted, #94a2bd);
	--gp-faint: var(--c-faint, #5c6a86);
	--gp-cyan: var(--c-cyan, #22d3ee);
	--gp-glass: var(--glass-bg, rgba(255, 255, 255, 0.045));
	--gp-glass-strong: var(--glass-bg-strong, rgba(255, 255, 255, 0.07));
	--gp-border: var(--glass-border, rgba(255, 255, 255, 0.09));
	--gp-border-strong: var(--glass-border-strong, rgba(255, 255, 255, 0.16));
	--gp-grad: var(--grad-brand, linear-gradient(120deg, #2dd4bf 0%, #22d3ee 35%, #6366f1 100%));
	--gp-grad-text: var(--grad-text, linear-gradient(120deg, #5eead4 0%, #22d3ee 45%, #818cf8 100%));
	--gp-grad-soft: var(--grad-brand-soft, linear-gradient(120deg, rgba(45, 212, 191, 0.16), rgba(99, 102, 241, 0.16)));
	--gp-display: var(--f-display, "Space Grotesk", "Segoe UI", system-ui, sans-serif);
	--gp-r-lg: var(--r-lg, 22px);
	--gp-r-md: var(--r-md, 16px);
	--gp-ease: var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
	--gp-gap: clamp(16px, 2vw, 24px);

	position: relative;
	color: var(--gp-text);
	font-size: 1rem;
	line-height: 1.6;
}

/* Break out of a narrow content column (the theme's pages are 760px wide)
   to the site's full content width, centred on the column. */
.gtm-pricing--wide {
	--gp-width: min(var(--maxw, 1180px), calc(100vw - 2 * var(--gutter, clamp(18px, 4vw, 40px))));
	width: var(--gp-width);
	max-width: none;
	margin-left: calc(50% - var(--gp-width) / 2);
	margin-right: calc(50% - var(--gp-width) / 2);
}

.editor-styles-wrapper .gtm-pricing--wide {
	width: auto;
	margin-left: 0;
	margin-right: 0;
}

.gtm-pricing--section {
	padding-block: var(--section-y, clamp(72px, 11vw, 150px));
}

.gtm-pricing *,
.gtm-pricing *::before,
.gtm-pricing *::after {
	box-sizing: border-box;
}

.gtm-pricing [hidden] {
	display: none !important;
}

/* Heading falls back to simple styles when the theme's are missing. */
.gtm-pricing__head {
	max-width: var(--maxw-narrow, 760px);
	margin: 0 auto clamp(28px, 4vw, 44px);
	text-align: center;
}

.gtm-pricing__head .section-head__title {
	font-family: var(--gp-display);
}

.gtm-pricing__head .section-head__sub {
	color: var(--gp-muted);
}

/* ----------------------------------------------------- Size switcher */
.gtm-pricing__tiers {
	display: flex;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto clamp(28px, 4vw, 44px);
	padding: 6px;
	border-radius: calc(var(--gp-r-md) + 6px);
	background: var(--gp-glass);
	border: 1px solid var(--gp-border);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.gtm-pricing__tier {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	min-width: 0;
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: var(--gp-r-md);
	background: transparent;
	color: var(--gp-muted);
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background 0.25s var(--gp-ease), color 0.25s var(--gp-ease), border-color 0.25s var(--gp-ease);
}

.gtm-pricing__tier:hover {
	color: var(--gp-text);
}

.gtm-pricing__tier:focus-visible {
	outline: 2px solid var(--gp-cyan);
	outline-offset: 2px;
}

.gtm-pricing__tier[aria-pressed="true"] {
	background: var(--gp-grad-soft);
	border-color: rgba(34, 211, 238, 0.35);
	color: var(--gp-text);
}

.gtm-pricing__tier-label {
	font-family: var(--gp-display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

.gtm-pricing__tier-note {
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--gp-muted);
}

/* ----------------------------------------------------------- Cards */
.gtm-pricing__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gp-gap);
}

.gtm-pricing__card {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 0 1 calc((100% - 2 * var(--gp-gap)) / 3);
	min-width: 0;
	padding: clamp(24px, 2.6vw, 34px);
	border-radius: var(--gp-r-lg);
	background: var(--gp-glass);
	border: 1px solid var(--gp-border);
	-webkit-backdrop-filter: blur(var(--glass-blur, 16px)) saturate(140%);
	backdrop-filter: blur(var(--glass-blur, 16px)) saturate(140%);
	box-shadow: var(--sh-md, 0 20px 50px -28px rgba(0, 0, 0, 0.85));
	transition: transform 0.35s var(--gp-ease), border-color 0.35s var(--gp-ease);
}

.gtm-pricing__grid--2 .gtm-pricing__card {
	flex-basis: calc((100% - var(--gp-gap)) / 2);
	max-width: 520px;
}

.gtm-pricing__grid--1 .gtm-pricing__card {
	flex-basis: 100%;
	max-width: 560px;
}

.gtm-pricing__card:hover {
	transform: translateY(-4px);
	border-color: var(--gp-border-strong);
}

/* Only featured cards get the gradient hairline from the theme's .edge. */
.gtm-pricing__card.edge:not(.is-featured)::after {
	opacity: 0;
}

.gtm-pricing__card.is-featured {
	background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(99, 102, 241, 0.04) 60%, var(--gp-glass));
	box-shadow: var(--glow-cyan, 0 18px 50px -18px rgba(34, 211, 238, 0.45)), var(--sh-md, 0 20px 50px -28px rgba(0, 0, 0, 0.85));
}

.gtm-pricing__badge {
	position: absolute;
	top: clamp(18px, 2vw, 24px);
	right: clamp(18px, 2vw, 24px);
	padding: 5px 11px;
	border-radius: var(--r-pill, 999px);
	background: var(--gp-grad-soft);
	border: 1px solid rgba(34, 211, 238, 0.35);
	color: var(--gp-cyan);
	font-family: var(--gp-display);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}

.gtm-pricing__name {
	margin: 0 0 8px;
	padding-right: 96px;
	font-family: var(--gp-display);
	font-size: clamp(1.15rem, 1.6vw, 1.3rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--gp-text);
}

.gtm-pricing__card:not(:has(.gtm-pricing__badge)) .gtm-pricing__name {
	padding-right: 0;
}

.gtm-pricing__tagline {
	margin: 0 0 20px;
	color: var(--gp-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.gtm-pricing__plan {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gtm-pricing__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 0 6px;
	padding-top: 18px;
	border-top: 1px solid var(--gp-border);
}

.gtm-pricing__from {
	font-family: var(--gp-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gp-muted);
}

.gtm-pricing__amount {
	font-family: var(--gp-display);
	font-size: clamp(2.1rem, 3.4vw, 2.6rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	background: var(--gp-grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.gtm-pricing__amount--quote {
	font-size: clamp(1.6rem, 2.6vw, 1.9rem);
}

.gtm-pricing__suffix {
	color: var(--gp-muted);
	font-size: 0.9rem;
}

.gtm-pricing__delivery {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 18px;
	color: var(--gp-faint);
	font-size: 0.85rem;
}

.gtm-pricing__delivery svg {
	flex: none;
	color: var(--gp-cyan);
	opacity: 0.8;
}

.gtm-pricing__list {
	display: grid;
	gap: 10px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.gtm-pricing__list li {
	position: relative;
	margin: 0;
	padding-left: 26px;
	color: var(--gp-text);
	font-size: 0.93rem;
	line-height: 1.5;
}

.gtm-pricing__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 16px;
	height: 16px;
	background: var(--gp-grad);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gtm-pricing__cta {
	margin-top: auto;
	width: 100%;
}

/* Minimal button styles when the theme's .gtm-btn is not loaded. */
.gtm-pricing .gtm-pricing__cta:not([class*="gtm-btn--"]),
.editor-styles-wrapper .gtm-pricing .gtm-pricing__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--gp-display);
	text-decoration: none;
}

.editor-styles-wrapper .gtm-pricing .gtm-btn--primary {
	background: var(--gp-grad);
	color: #04121a;
}

.editor-styles-wrapper .gtm-pricing .gtm-btn--ghost {
	border: 1px solid var(--gp-border-strong);
	color: var(--gp-text);
}

/* ------------------------------------------------- Enterprise banner */
.gtm-pricing__enterprise {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	margin-top: var(--gp-gap);
	padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 38px);
	border-radius: var(--gp-r-lg);
	background: var(--gp-grad-soft);
	border: 1px solid var(--gp-border);
}

.gtm-pricing__enterprise-title {
	margin: 0 0 6px;
	font-family: var(--gp-display);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--gp-text);
}

.gtm-pricing__enterprise p {
	margin: 0;
	max-width: 720px;
	color: var(--gp-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.gtm-pricing__enterprise .gtm-pricing__cta {
	flex: none;
	width: auto;
	margin: 0;
}

.gtm-pricing__footnote {
	max-width: 760px;
	margin: clamp(22px, 3vw, 32px) auto 0;
	color: var(--gp-faint);
	font-size: 0.85rem;
	line-height: 1.6;
	text-align: center;
}

.gtm-pricing-admin-note {
	margin: 0 0 24px;
	padding: 10px 14px;
	border: 1px dashed rgba(251, 191, 36, 0.6);
	border-radius: 10px;
	background: rgba(251, 191, 36, 0.08);
	color: #fcd34d;
	font-size: 0.88rem;
	text-align: center;
}

/* Block editor: give the preview the site's dark background. */
.editor-styles-wrapper .gtm-pricing {
	padding: 32px;
	border-radius: 16px;
	background: #070b12;
	font-family: var(--f-body, Inter, system-ui, sans-serif);
}

/* ------------------------------------------------------- Responsive */
/* Two-line pitch slot keeps prices lined up across a row. */
@media (min-width: 721px) {
	.gtm-pricing__tagline {
		min-height: calc(2 * 1.55em);
	}
}

@media (max-width: 1024px) {
	.gtm-pricing__card,
	.gtm-pricing__grid--3 .gtm-pricing__card {
		flex-basis: calc((100% - var(--gp-gap)) / 2);
	}
}

@media (max-width: 720px) {
	.gtm-pricing__card,
	.gtm-pricing__grid--2 .gtm-pricing__card,
	.gtm-pricing__grid--3 .gtm-pricing__card {
		flex-basis: 100%;
		max-width: none;
	}

	.gtm-pricing__tiers {
		width: 100%;
	}

	.gtm-pricing__tier {
		flex: 1 1 0;
		padding: 10px 12px;
	}

	.gtm-pricing__enterprise {
		flex-direction: column;
		align-items: flex-start;
	}

	.gtm-pricing__enterprise .gtm-pricing__cta {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gtm-pricing__card,
	.gtm-pricing__tier {
		transition: none;
	}

	.gtm-pricing__card:hover {
		transform: none;
	}
}
