/* ==========================================================================
   Pricing page (Figma "Inner - Pricing (1440)" 65:674)
   ========================================================================== */

/* Hero (65:689): pt 56, pb 40, gap 16, H1 52/1.08, lead 19 in 700px */
.pricing-hero { padding: 56px 0 40px; }
.pricing-hero .page-hero__inner { gap: 16px; }
.pricing-hero .page-hero__title { max-width: 960px; font-size: 52px; text-wrap: wrap; }
.pricing-hero .page-hero__lead { max-width: 700px; }

/* Plans (65:739): pt 16, pb 72. Cards reuse .plan from main.css */
.pricing-plans { padding: 16px 0 72px; }
.pricing-plans .plan__name h2 { font-size: 22px; font-weight: 700; line-height: normal; letter-spacing: 0; }
.pricing-plans .plan__name p { font-size: 14px; color: var(--muted); }

/* Feature comparison (65:740): pt 72, pb 96, gap 32 */
.ptable-sec { padding: 72px 0 96px; }
.ptable-sec__title { margin-bottom: 32px; text-align: center; }

.ptable-wrap {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--white);
}
.ptable {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 15px;
	line-height: 1.25;
}
/* Columns line up with Figma's flex row: 28px side padding, 24px gaps, 4 equal columns */
.ptable__c-feat,
.ptable col:last-child { width: 25.67%; }
.ptable th,
.ptable td { padding: 16px 12px; text-align: left; vertical-align: middle; }
.ptable tr > :first-child { padding-left: 28px; }
.ptable tr > :last-child { padding-right: 28px; }

.ptable thead tr { background: var(--navy); }
.ptable thead th { font-weight: 600; color: var(--white); }
.ptable thead th.is-club { color: var(--orange); }

.ptable tbody tr:nth-child(odd) { background: var(--white); }
.ptable tbody tr:nth-child(even) { background: var(--bg-alt); }
.ptable tbody th { font-weight: 600; color: var(--text); }
.ptable tbody td { color: var(--text); }
.ptable tbody td.is-club { color: var(--ink); }
.ptable tbody tr { transition: background-color .3s; }
.ptable tbody tr:hover { background: var(--orange-soft); }

/* Billing FAQ (65:798): heading -> list gap 24 */
.pricing-page .faq--center .faq__inner { gap: 24px; }

/* Tablet: 3 cards become 2 + 1 full width (main.css does this from 960px; extend to the whole tablet range) */
@media (min-width: 768px) and (max-width: 1180px) {
	.pricing-plans .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pricing-plans .plan:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
	.ptable th,
	.ptable td { padding: 15px 10px; }
	.ptable tr > :first-child { padding-left: 22px; }
	.ptable tr > :last-child { padding-right: 22px; }
}

@media (max-width: 900px) {
	.pricing-hero .page-hero__title { font-size: 42px; }
	.ptable-sec { padding: 64px 0 80px; }
	.ptable { font-size: 14px; }
	.ptable th,
	.ptable td { padding: 14px 8px; }
	.ptable tr > :first-child { padding-left: 18px; }
	.ptable tr > :last-child { padding-right: 18px; }
}

/* Mobile: one feature per block, then Free / Club / Pro in a 3-column mini grid */
@media (max-width: 767px) {
	.pricing-hero { padding: 32px 0 25px; }
	.pricing-hero .page-hero__title { font-size: 32px; line-height: 1.12; }
	.pricing-plans { padding: 0 0 60px; }

	.ptable-sec { padding: 60px 0; }
	.ptable-sec__title { margin-bottom: 25px; }
	.ptable-wrap { border-radius: 16px; }

	.ptable,
	.ptable thead,
	.ptable tbody,
	.ptable tr,
	.ptable th,
	.ptable td { display: block; }
	.ptable colgroup { display: none; }

	.ptable tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: 12px;
		padding: 14px 20px;
	}
	.ptable th,
	.ptable td,
	.ptable tr > :first-child,
	.ptable tr > :last-child { padding: 0; }

	.ptable thead tr { padding-block: 13px; }
	.ptable__corner { display: none !important; }

	.ptable tbody th {
		grid-column: 1 / -1;
		margin-bottom: 6px;
		font-size: 15px;
		color: var(--ink);
	}
	.ptable tbody td { font-size: 14px; line-height: 1.35; }
}

@media (max-width: 420px) {
	.pricing-hero .page-hero__title { font-size: 28px; }
	.ptable tr { column-gap: 10px; }
}
