/* =====================================================
   Wygard — pricing page styles
   Loaded only on the Pricing template (see functions.php).
   Tokens, base, .btn, .container, header & footer all come from main.css.
   ===================================================== */


/* HERO ================================================ */
.pricing-hero {
	position: relative;
	padding: 96px 0 56px;
	text-align: center;
	overflow: hidden;
}
.pricing-hero .decor-blob {
	position: absolute;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: var(--color-green-soft);
	filter: blur(80px);
	pointer-events: none;
	z-index: 0;
}
.pricing-hero .decor-blob--left  { top: -120px; left: -160px; }
.pricing-hero .decor-blob--right { top: 80px;  right: -200px; width: 400px; height: 400px; }

.pricing-hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.pricing-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	background: var(--color-green-soft);
	color: var(--color-black);
	font-size: var(--fs-sm);
	font-weight: 500;
	border-radius: var(--radius-full);
	margin-bottom: 24px;
}
.pricing-hero__eyebrow::before {
	content: "";
	width: 8px; height: 8px;
	background: var(--color-green);
	border-radius: 50%;
}
.pricing-hero__title {
	font-size: var(--fs-6xl);
	line-height: 1.05;
	margin-bottom: 24px;
}
.pricing-hero__lead {
	font-size: var(--fs-xl);
	line-height: 1.5;
	color: var(--color-text-secondary);
	max-width: 640px;
	margin: 0 auto;
}


/* BILLING TOGGLE ====================================== */
.billing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	margin-top: 40px;
	background: var(--color-bg-alt);
	border-radius: var(--radius-full);
}
.billing-toggle button {
	position: relative;
	padding: 10px 24px;
	background: transparent;
	border: 0;
	border-radius: var(--radius-full);
	font-family: var(--font-family);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: color var(--trans-fast), background var(--trans-fast);
}
.billing-toggle button.is-active {
	background: var(--color-white);
	color: var(--color-black);
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.billing-toggle .save-pill {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	background: var(--color-green-soft);
	color: var(--color-black);
	font-size: 11px;
	border-radius: var(--radius-full);
}


/* PLANS GRID ========================================== */
.plans-section {
	padding: 56px 0 96px;
	position: relative;
}
.plans-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: stretch;
}
.plan-card {
	display: flex;
	flex-direction: column;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	transition: transform var(--trans-med), box-shadow var(--trans-med), border-color var(--trans-med);
}
.plan-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
}

.plan-card__name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-2xl);
	font-weight: 600;
	margin-bottom: 12px;
}

.plan-card__best-for {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 18px;
	margin-bottom: 20px;
	background: var(--color-green-soft);
	border-left: 4px solid var(--color-green);
	border-radius: 10px;
}
.plan-card__best-for-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--color-text-secondary);
}
.plan-card__best-for-value {
	font-size: var(--fs-lg);
	font-weight: 600;
	color: var(--color-black);
	line-height: 1.3;
}

.plan-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 4px;
}
.plan-card__price-amount {
	font-size: var(--fs-4xl);
	font-weight: 600;
	line-height: 1;
}
.plan-card__price-period { font-size: var(--fs-base); color: var(--color-text-secondary); }
.plan-card__price-billed {
	font-size: var(--fs-sm);
	color: var(--color-text-subtle);
	margin-bottom: 24px;
	min-height: 21px;
}
.plan-card__cta { margin-bottom: 24px; }
.plan-card__divider {
	width: 100%;
	height: 1px;
	background: var(--color-border);
	margin-bottom: 20px;
}
.plan-card__features-title {
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--color-text-subtle);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 14px;
}
.plan-card__features { display: flex; flex-direction: column; gap: 12px; }
.plan-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--fs-sm);
	line-height: 1.5;
	color: var(--color-text);
}
.plan-card__features li svg {
	flex-shrink: 0;
	width: 18px; height: 18px;
	margin-top: 2px;
	color: var(--color-green);
}


/* COMPARE TABLE ======================================= */
.compare-section {
	padding: 96px 0;
	background: var(--color-bg-alt);
}
.compare-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.compare-section__title { font-size: var(--fs-5xl); line-height: 1.12; margin-bottom: 16px; }
.compare-section__lead { font-size: var(--fs-lg); color: var(--color-text-secondary); }

.compare-table-wrap {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.compare-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-base);
}
.compare-table th, .compare-table td {
	padding: 18px 20px;
	text-align: left;
	border-bottom: 1px solid var(--color-border);
	vertical-align: middle;
}
.compare-table thead th {
	padding-top: 28px;
	padding-bottom: 28px;
	background: var(--color-white);
	font-size: var(--fs-base);
	font-weight: 600;
	border-bottom: 2px solid var(--color-border);
}
.compare-table thead th:first-child { width: 32%; }
.compare-table tbody td:not(:first-child),
.compare-table thead th:not(:first-child) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover td { background: var(--color-bg-alt); }

.compare-table .plan-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.compare-table .plan-head__name {
	font-size: var(--fs-lg);
	font-weight: 600;
	color: var(--color-black);
}
.compare-table .plan-head__best-for {
	display: inline-block;
	padding: 4px 12px;
	background: var(--color-green-soft);
	color: var(--color-black);
	font-size: var(--fs-xs);
	font-weight: 600;
	border-radius: var(--radius-full);
	white-space: nowrap;
}
.compare-table .plan-head__best-for span {
	color: var(--color-text-secondary);
	font-weight: 500;
	margin-right: 4px;
}

.compare-table .row--group td {
	background: var(--color-bg-alt) !important;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-text-subtle);
	padding-top: 14px;
	padding-bottom: 14px;
}
.compare-table tbody tr.row--group:hover td { background: var(--color-bg-alt) !important; }

.compare-table td .yes,
.compare-table td .no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 50%;
}
.compare-table td .yes { background: var(--color-green); color: var(--color-white); }
.compare-table td .no  { background: var(--color-bg-alt); color: var(--color-text-subtle); }
.compare-table td .yes svg,
.compare-table td .no svg { width: 14px; height: 14px; }
.compare-table td .feature-name { display: flex; align-items: center; gap: 8px; }
.compare-table td .feature-note {
	color: var(--color-text-subtle);
	font-size: var(--fs-sm);
	display: block;
	margin-top: 2px;
}
.compare-table td .price-row {
	font-size: var(--fs-2xl);
	font-weight: 600;
}
.compare-table tfoot td {
	padding-top: 28px;
	padding-bottom: 28px;
	background: var(--color-white);
	border-bottom: 0;
	border-top: 2px solid var(--color-border);
}


/* FAQ ================================================= */
.faq-section { padding: 96px 0; }
.faq-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.faq-section__title { font-size: var(--fs-5xl); line-height: 1.12; margin-bottom: 16px; }
.faq-section__lead { font-size: var(--fs-lg); color: var(--color-text-secondary); }
.faq-list {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.faq-item {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: border-color var(--trans-fast);
}
.faq-item[open] { border-color: var(--color-black); }
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 28px;
	font-size: var(--fs-lg);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "";
	width: 14px; height: 14px;
	border-right: 2px solid var(--color-black);
	border-bottom: 2px solid var(--color-black);
	transform: rotate(45deg);
	transition: transform var(--trans-fast);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item__body {
	padding: 0 28px 24px;
	color: var(--color-text-secondary);
	line-height: 1.6;
	font-size: var(--fs-base);
}


/* BOTTOM CTA (pricing variant) ======================== */
.pricing-cta-section {
	position: relative;
	padding: 120px 0;
	background: var(--color-black);
	color: var(--color-white);
	overflow: hidden;
	text-align: center;
}
.pricing-cta-section .blob {
	position: absolute;
	width: 480px; height: 480px;
	border-radius: 50%;
	background: var(--color-green-soft);
	filter: blur(80px);
	pointer-events: none;
}
.pricing-cta-section .blob--a { top: -180px; left: -120px; }
.pricing-cta-section .blob--b { bottom: -180px; right: -120px; }
.pricing-cta-section__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.pricing-cta-section__title { font-size: var(--fs-5xl); line-height: 1.12; margin-bottom: 16px; }
.pricing-cta-section__title .accent-green { color: var(--color-green); }
.pricing-cta-section__lead {
	font-size: var(--fs-lg);
	color: rgba(255,255,255,0.7);
	margin-bottom: 32px;
}
.pricing-cta-section__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.pricing-cta-section .btn--outlined { color: var(--color-white); border-color: var(--color-white); }
.pricing-cta-section .btn--outlined:hover { background: var(--color-white); color: var(--color-black); }


/* RESPONSIVE ========================================== */
@media (max-width: 1100px) {
	.plans-grid { grid-template-columns: repeat(2, 1fr); }
	.compare-table { font-size: var(--fs-sm); }
	.compare-table th, .compare-table td { padding: 14px 12px; }
}
@media (max-width: 760px) {
	.pricing-hero { padding: 56px 0 40px; }
	.pricing-hero__title { font-size: 40px; }
	.pricing-hero__lead { font-size: var(--fs-base); }
	.plans-section { padding: 32px 0 64px; }
	.plans-grid { grid-template-columns: 1fr; }
	.compare-section { padding: 64px 0; }
	.compare-section__title,
	.faq-section__title,
	.pricing-cta-section__title { font-size: var(--fs-3xl); }
	.compare-table-wrap { overflow-x: auto; }
	.compare-table { min-width: 720px; }
	.faq-section { padding: 64px 0; }
	.faq-item summary { padding: 18px 22px; font-size: var(--fs-base); }
	.pricing-cta-section { padding: 80px 0; }
}
