/* Pricing page (page-pricing.php) – semantic tokens only, so Light and Dark both work. */

.promptix-pricing-page { padding-bottom: 56px; }
.promptix-pricing-page [hidden],
.pxpr-plans [hidden] { display: none !important; }

/* Hero */
.pxpr-hero { position: relative; overflow: hidden; padding: 40px 0 72px; background: var(--gradient-soft); border-bottom: 1px solid var(--border-default); }
.pxpr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pxpr-hero__badge { margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.pxpr-hero__title { margin: 0 0 16px; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--text-heading); }
.pxpr-grad { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pxpr-hero__lead { max-width: 560px; margin: 0 0 24px; font-size: 1.0625rem; color: var(--text-body); }

/* Monthly / Annual switch */
.pxpr-switch { display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); }
.pxpr-switch__label { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
[data-billing="monthly"] .pxpr-switch__label[data-billing-set="monthly"],
[data-billing="annual"] .pxpr-switch__label[data-billing-set="annual"] { color: var(--text-heading); }
.pxpr-switch__toggle { position: relative; width: 52px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--border-strong); cursor: pointer; transition: background .2s ease; }
.pxpr-switch__toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s ease; }
.pxpr-switch__toggle[aria-checked="true"] { background: var(--gradient-primary); }
.pxpr-switch__toggle[aria-checked="true"]::after { transform: translateX(-24px); }
.pxpr-switch__toggle:focus-visible, .pxpr-switch__label:focus-visible { outline: 2px solid var(--ui-focus-ring); outline-offset: 3px; }

/* Hero artwork */
.pxpr-hero__art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 18px; min-height: 280px; padding: 32px; border-radius: var(--radius-xl); background: var(--gradient-primary); color: var(--text-inverse); box-shadow: var(--shadow-lg); overflow: hidden; }
.pxpr-hero__art::before { content: ""; position: absolute; inset: auto auto -80px -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pxpr-hero__art.has-image { align-items: flex-end; min-height: 340px; background: var(--bg-card); }
.pxpr-hero__art.has-image::before { display: none; }
.pxpr-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pxpr-hero__slogan { position: relative; display: flex; align-items: center; gap: 10px; max-width: 300px; margin: 0; color: var(--text-inverse); font-size: 1.625rem; font-weight: 800; line-height: 1.15; }
.pxpr-hero__slogan .promptix-icon { flex: none; }
.pxpr-hero__chips { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pxpr-hero__chips li { display: inline-flex; align-items: center; gap: 10px; width: max-content; padding: 8px 8px 8px 14px; border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-heading); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-md); }
.pxpr-hero__chips li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--badge-purple-bg); color: var(--color-purple); }
.pxpr-hero__art.has-image .pxpr-hero__slogan { padding: 10px 14px; border-radius: var(--radius-md); background: rgba(17, 24, 39, .55); }

/* Plans */
.pxpr-plans { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; margin-top: -40px; }
.pxpr-plan { position: relative; display: flex; flex-direction: column; padding: 28px; }
.pxpr-plan.is-popular { border: 2px solid var(--color-purple); box-shadow: 0 0 0 6px var(--badge-purple-bg), var(--shadow-lg); }
.pxpr-plan__popular { position: absolute; top: -16px; right: 50%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: var(--radius-md); background: var(--gradient-primary); color: var(--text-inverse); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transform: translateX(50%); }
.pxpr-plan__ribbon { position: absolute; top: -12px; left: 18px; text-transform: uppercase; letter-spacing: .04em; }
.pxpr-plan__head { display: flex; gap: 16px; align-items: flex-start; }
.pxpr-plan__icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: var(--radius-lg); background: var(--color-primary-light); color: var(--color-primary); }
.pxpr-plan.is-popular .pxpr-plan__icon { background: var(--gradient-primary); color: var(--text-inverse); }
.pxpr-plan__name { margin: 2px 0 2px; font-size: 1.375rem; font-weight: 700; color: var(--text-heading); }
.pxpr-plan__tagline { margin: 0; font-size: 14px; color: var(--text-secondary); }
.pxpr-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 76px 0 0; color: var(--text-secondary); }
.pxpr-plan__price strong { font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text-heading); }
.pxpr-plan__billed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; margin: 8px 76px 0 0; font-size: 13px; color: var(--text-secondary); }
.pxpr-plan__billed .badge { padding: 2px 8px; font-size: 11px; }
.pxpr-plan__desc { margin: 18px 0 0; color: var(--text-body); }
.pxpr-plan__list { display: grid; gap: 12px; margin: 20px 0 28px; padding: 0; list-style: none; }
.pxpr-plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-body); }
.pxpr-plan__list li.is-no { color: var(--text-muted); }
.pxpr-plan__btn { width: 100%; margin-top: auto; }

/* Tick / cross marks */
.pxpr-mark { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; }
.pxpr-mark .promptix-icon { stroke-width: 3; }
.pxpr-mark.is-yes { background: var(--color-success); color: var(--text-inverse); }
.pxpr-mark.is-no { background: var(--color-error-bg); color: var(--color-error); }

/* Section shell */
.pxpr-section { margin-top: 32px; }
.pxpr-section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pxpr-section__head > div { flex: 1; min-width: 0; }
.pxpr-section__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--color-primary-light); color: var(--color-primary); }
.pxpr-section__icon--round { border-radius: 50%; background: var(--gradient-primary); color: var(--text-inverse); font-size: 1.5rem; font-weight: 800; }
.pxpr-section__title { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--text-heading); }
.pxpr-section__lead { margin: 4px 0 0; color: var(--text-secondary); }

/* Feature comparison */
.pxpr-compare { padding: 24px; }
.pxpr-compare:hover { box-shadow: var(--shadow-sm); }
.pxpr-compare__scroll { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.pxpr-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.pxpr-table th, .pxpr-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-default); text-align: center; color: var(--text-body); }
.pxpr-table tbody tr:last-child > * { border-bottom: 0; }
.pxpr-table tbody tr:nth-child(even) { background: var(--bg-section); }
.pxpr-table tbody th { width: 34%; font-weight: 500; text-align: right; border-left: 1px solid var(--border-default); }
.pxpr-table thead th { padding: 14px 16px; background: var(--bg-subtle); }
.pxpr-table__plan { display: inline-flex; align-items: center; gap: 10px; text-align: right; }
.pxpr-table__plan .promptix-icon { color: var(--color-primary); }
.pxpr-table__plan strong { display: block; color: var(--text-heading); }
.pxpr-table__plan small { color: var(--text-secondary); font-size: 13px; }
.pxpr-table td .pxpr-mark { margin: 0; }
.pxpr-table .is-popular { background: var(--badge-purple-bg); box-shadow: inset -1px 0 0 var(--color-purple), inset 1px 0 0 var(--color-purple); }
.pxpr-table thead .is-popular { box-shadow: inset -1px 0 0 var(--color-purple), inset 1px 0 0 var(--color-purple), inset 0 1px 0 var(--color-purple); }
.pxpr-table tbody tr:last-child .is-popular { box-shadow: inset -1px 0 0 var(--color-purple), inset 1px 0 0 var(--color-purple), inset 0 -1px 0 var(--color-purple); }
.pxpr-table thead .is-popular .promptix-icon { color: var(--color-purple); }

/* FAQ */
.pxpr-faq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pxpr-faq__item { padding: 20px 22px; }
.pxpr-faq__item summary { display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-weight: 700; color: var(--text-heading); }
.pxpr-faq__item summary::-webkit-details-marker { display: none; }
.pxpr-faq__item summary > .promptix-icon { flex: none; margin-right: auto; color: var(--text-secondary); transition: transform .2s ease; }
.pxpr-faq__item[open] summary > .promptix-icon { transform: rotate(-180deg); }
.pxpr-faq__q { flex: 1; }
.pxpr-faq__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--badge-info-bg); color: var(--color-info); }
.pxpr-faq__item--1 .pxpr-faq__icon { background: var(--badge-purple-bg); color: var(--color-purple); }
.pxpr-faq__item--2 .pxpr-faq__icon { background: var(--badge-success-bg); color: var(--color-success); }
.pxpr-faq__item--3 .pxpr-faq__icon { background: var(--badge-warning-bg); color: var(--color-warning); }
.pxpr-faq__item p { margin: 6px 64px 0 0; color: var(--text-secondary); font-size: 14px; }

@media (max-width: 991px) {
	.pxpr-hero__grid { grid-template-columns: 1fr; }
	.pxpr-hero__art { min-height: 0; }
	.pxpr-plans { margin-top: -32px; }
}

@media (max-width: 782px) {
	.pxpr-faq__grid { grid-template-columns: 1fr; }
	.pxpr-section__head { flex-wrap: wrap; }
	.pxpr-faq__all { width: 100%; }
}

@media (max-width: 600px) {
	.pxpr-hero { padding: 28px 0 56px; }
	.pxpr-switch { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
	.pxpr-hero__art { padding: 24px; }
	.pxpr-hero__slogan { font-size: 1.375rem; }
	.pxpr-plans { grid-template-columns: 1fr; gap: 32px; }
	.pxpr-plan { padding: 22px; }
	.pxpr-plan__price, .pxpr-plan__billed { margin-right: 0; }
	.pxpr-compare { padding: 16px; }
	.pxpr-faq__item p { margin-right: 0; }
}
