/* ── Pricing page ─────────────────────────────────────────────────────────── */

.pricing-hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: calc(var(--header-h, 3.5rem) + 80px) 24px 0;
	text-align: center;
}

.pricing-hero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 18px;
}

.pricing-hero .eyebrow-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.pricing-hero h1 {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: clamp(36px, 5vw, 62px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0 0 18px;
	color: #fff;
}

.pricing-hero h1 em {
	font-style: normal;
	color: rgba(255, 255, 255, 0.45);
}

.pricing-hero .lead {
	color: rgba(255, 255, 255, 0.45);
	font-size: 17px;
	max-width: 58ch;
	margin: 0 auto 44px;
	line-height: 1.6;
}

/* ── Billing toggle ────────────────────────────────────────────────────── */

.billing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 52px;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
}

.billing-toggle span {
	cursor: pointer;
	transition: color 0.2s;
}

.billing-toggle span.is-active {
	color: #fff;
}

.billing-toggle .toggle-track {
	position: relative;
	width: 46px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.billing-toggle .toggle-track:hover {
	border-color: rgba(255, 255, 255, 0.25);
}

.billing-toggle .toggle-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.billing-toggle.annual .toggle-thumb {
	transform: translateX(22px);
}

.billing-toggle.annual .toggle-track {
	background: rgba(255, 255, 255, 0.15);
}

.billing-save {
	display: inline-block;
	padding: 2px 8px;
	margin-left: 4px;
	background: rgba(74, 222, 128, 0.12);
	color: #4ade80;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* ── Tier cards ────────────────────────────────────────────────────────── */

.pricing-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 18px;
	overflow: hidden;
}

.pricing-tier-card {
	background: rgba(10, 10, 10, 0.95);
	padding: 44px 36px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: background 0.2s;
}

.pricing-tier-card:hover {
	background: rgba(18, 18, 18, 0.95);
}

.pricing-tier-card.featured {
	background: rgba(18, 18, 18, 0.98);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.pricing-tier-card.featured:hover {
	background: rgba(24, 24, 24, 0.98);
}

.pricing-popular {
	position: absolute;
	top: 18px;
	right: 18px;
	font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: #fff;
	color: #000;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: 700;
}

.pricing-tier-name {
	font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 14px;
	font-weight: 600;
}

.pricing-amount {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: 48px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
	line-height: 1;
	margin-bottom: 6px;
}

.pricing-amount sub {
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.35);
	letter-spacing: 0;
}

.pricing-cycle-info {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 32px;
	min-height: 20px;
}

.pricing-features {
	list-style: none;
	padding: 0;
	margin: 0 0 36px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pricing-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.45;
}

.pricing-features li::before {
	content: '';
	flex: 0 0 6px;
	height: 6px;
	margin-top: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
}

.pricing-tier-card.featured .pricing-features li::before {
	background: #fff;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.pricing-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 20px;
	border-radius: 12px;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.pricing-cta:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.pricing-cta.primary {
	background: #fff;
	color: #000;
	border-color: transparent;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 6px 20px -8px rgba(255, 255, 255, 0.15);
}

.pricing-cta.primary:hover {
	background: #f0f0f0;
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.4) inset,
		0 10px 28px -8px rgba(255, 255, 255, 0.2);
}

/* ── 3D Avatar overlay ─────────────────────────────────────────────────── */

.pricing-avatar-canvas {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 50;
}

/* ── Feature comparison ────────────────────────────────────────────────── */

.pricing-comparison {
	max-width: 1100px;
	margin: 0 auto;
	padding: 100px 24px 0;
}

.pricing-comparison h2 {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #fff;
	text-align: center;
	margin: 0 0 48px;
}

.comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.comparison-table thead th {
	padding: 16px 20px;
	text-align: center;
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.5);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table thead th:first-child {
	text-align: left;
	color: rgba(255, 255, 255, 0.3);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

.comparison-table thead th.featured-col {
	color: #fff;
}

.comparison-table tbody td {
	padding: 14px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
	vertical-align: middle;
}

.comparison-table tbody td:first-child {
	text-align: left;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
}

.comparison-table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.02);
}

.comparison-table .section-row td {
	padding-top: 28px;
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table .check {
	display: inline-block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	position: relative;
}

.comparison-table .check::after {
	content: '';
	position: absolute;
	top: 5px;
	left: 6px;
	width: 5px;
	height: 8px;
	border: solid rgba(255, 255, 255, 0.5);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.comparison-table .check.yes::after {
	border-color: #fff;
}

.comparison-table .check.yes {
	background: rgba(255, 255, 255, 0.12);
}

.comparison-table .val {
	color: rgba(255, 255, 255, 0.6);
	font-weight: 500;
}

.comparison-table td.featured-col {
	background: rgba(255, 255, 255, 0.02);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.pricing-faq {
	max-width: 720px;
	margin: 0 auto;
	padding: 100px 24px 0;
}

.pricing-faq h2 {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: clamp(26px, 3.5vw, 38px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #fff;
	text-align: center;
	margin: 0 0 48px;
}

.pricing-faq details {
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-faq details:first-of-type {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-faq summary {
	cursor: pointer;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	font-size: 15px;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: color 0.15s;
}

.pricing-faq summary::-webkit-details-marker {
	display: none;
}

.pricing-faq summary:hover {
	color: #fff;
}

.pricing-faq summary::after {
	content: '+';
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.4);
	font-size: 16px;
	font-weight: 400;
	transition: background 0.15s, transform 0.2s;
}

.pricing-faq details[open] summary::after {
	content: '\2212';
	transform: rotate(180deg);
	background: rgba(255, 255, 255, 0.1);
}

.pricing-faq details p {
	color: rgba(255, 255, 255, 0.45);
	margin: 14px 0 0;
	line-height: 1.65;
	font-size: 14.5px;
	padding-right: 40px;
}

/* ── Bottom CTA ────────────────────────────────────────────────────────── */

.pricing-bottom-cta {
	max-width: 800px;
	margin: 0 auto;
	padding: 100px 24px 80px;
	text-align: center;
}

.pricing-bottom-cta .cta-card {
	padding: 64px 48px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.02);
}

.pricing-bottom-cta .cta-card h2 {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #fff;
	margin: 0 0 14px;
	line-height: 1.15;
}

.pricing-bottom-cta .cta-card p {
	color: rgba(255, 255, 255, 0.4);
	font-size: 16px;
	margin: 0 0 32px;
}

.pricing-bottom-cta .cta-row {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ── Inline pricing upgrade banner (used on avatar-studio, agent, dashboard) ── */

.upgrade-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	margin: 16px 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.02);
	transition: background 0.15s, border-color 0.15s;
}

.upgrade-banner:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.12);
}

.upgrade-banner-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
}

.upgrade-banner-icon svg {
	width: 18px;
	height: 18px;
	color: rgba(255, 255, 255, 0.6);
}

.upgrade-banner-text {
	flex: 1;
	min-width: 0;
}

.upgrade-banner-title {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 2px;
}

.upgrade-banner-desc {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.4;
}

.upgrade-banner-btn {
	flex-shrink: 0;
	padding: 8px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.upgrade-banner-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.2);
}

/* ── Compact pricing card (embeddable section for other pages) ─────── */

.pricing-embed-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 80px 24px;
}

.pricing-embed-section .section-eyebrow {
	font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 14px;
	text-align: center;
}

.pricing-embed-section h2 {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: clamp(26px, 3.5vw, 40px);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
	text-align: center;
	margin: 0 0 12px;
}

.pricing-embed-section .section-lead {
	color: rgba(255, 255, 255, 0.4);
	font-size: 16px;
	text-align: center;
	max-width: 52ch;
	margin: 0 auto 44px;
}

.pricing-embed-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	overflow: hidden;
}

.pricing-embed-card {
	background: rgba(10, 10, 10, 0.95);
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: background 0.15s;
}

.pricing-embed-card:hover {
	background: rgba(18, 18, 18, 0.95);
}

.pricing-embed-card.featured {
	background: rgba(18, 18, 18, 0.98);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pricing-embed-card .embed-tier-name {
	font-family: var(--font-mono, 'SF Mono', 'Fira Code', monospace);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 10px;
	font-weight: 600;
}

.pricing-embed-card .embed-price {
	font-family: var(--font-display, 'Space Grotesk', 'Inter', sans-serif);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #fff;
	line-height: 1;
	margin-bottom: 4px;
}

.pricing-embed-card .embed-price sub {
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.35);
}

.pricing-embed-card .embed-cycle {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.3);
	margin-bottom: 20px;
}

.pricing-embed-card .embed-feats {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pricing-embed-card .embed-feats li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.4;
}

.pricing-embed-card .embed-feats li::before {
	content: '✓';
	color: rgba(255, 255, 255, 0.3);
	font-weight: 700;
	font-size: 11px;
	flex-shrink: 0;
	margin-top: 1px;
}

.pricing-embed-card.featured .embed-feats li::before {
	color: #fff;
}

.pricing-embed-card .embed-popular {
	position: absolute;
	top: 14px;
	right: 14px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: #fff;
	color: #000;
	padding: 3px 8px;
	border-radius: 999px;
}

.pricing-embed-cta {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.pricing-embed-cta a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.15s;
}

.pricing-embed-cta a:hover {
	color: #fff;
}

.pricing-embed-cta a .arrow {
	transition: transform 0.15s;
}

.pricing-embed-cta a:hover .arrow {
	transform: translateX(3px);
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
	.pricing-tiers {
		grid-template-columns: 1fr;
	}

	.pricing-embed-grid {
		grid-template-columns: 1fr;
	}

	.comparison-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.comparison-table thead th,
	.comparison-table tbody td {
		padding: 12px 14px;
		white-space: nowrap;
	}
}

@media (max-width: 560px) {
	.pricing-hero {
		padding-top: calc(var(--header-h, 3.5rem) + 48px);
	}

	.pricing-tier-card {
		padding: 32px 24px;
	}

	.pricing-comparison {
		padding-top: 64px;
	}

	.pricing-faq {
		padding-top: 64px;
	}

	.pricing-bottom-cta {
		padding: 64px 24px 48px;
	}

	.pricing-bottom-cta .cta-card {
		padding: 40px 24px;
	}

	.upgrade-banner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.upgrade-banner-btn {
		width: 100%;
		text-align: center;
	}
}
