/* Public page /precios: what the CHABIM Viewer does and its plans. Builds on app.css
   (brand tokens, .btn, .brand, .topbar); the plan cards are written by the Worker. */

html {
	scroll-behavior: smooth;
}

/* ---------- Top bar ---------- */
.pricing-bar nav {
	justify-content: center;
}

.bar-actions {
	display: flex;
	gap: 8px;
}

.bar-actions .btn {
	white-space: nowrap;
}

/* ---------- Layout ---------- */
.pricing {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
}

.pricing h1,
.pricing h2,
.pricing h3 {
	font-family: 'Outfit', sans-serif;
	color: #ffffff;
}

.section {
	padding: 64px 0 8px;
	scroll-margin-top: 64px;
}

.section h2,
.cta h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 700;
	line-height: 1.15;
}

.section-lead {
	margin: 0 0 28px;
	max-width: 640px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: center;
	padding: 56px 0 24px;
}

.eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--brand-orange);
}

.pricing .hero h1 {
	margin: 0 0 16px;
	font-size: clamp(32px, 4.6vw, 48px);
	font-weight: 800;
	line-height: 1.08;
}

.hero-lead {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-soft);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hero-note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--text-muted);
}

.hero-shot {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.hero-shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Features ---------- */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.feature {
	background: rgba(25, 25, 56, 0.7);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
}

.feature svg {
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 10px;
	background: rgba(var(--brand-orange-rgb), 0.12);
	fill: none;
	stroke: var(--brand-orange);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.feature h3,
.steps h3 {
	margin: 14px 0 6px;
	font-size: 17px;
	font-weight: 600;
}

.feature p,
.steps p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.steps li {
	border-top: 2px solid rgba(var(--brand-orange-rgb), 0.5);
	padding-top: 16px;
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	color: var(--bg-deep);
	background: var(--brand-orange);
}

/* ---------- Plans ---------- */
.plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.plan {
	display: flex;
	flex-direction: column;
	background: rgba(25, 25, 56, 0.92);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px 20px 20px;
}

.plan h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.plan-price {
	margin: 8px 0 16px;
	font-family: 'Outfit', sans-serif;
	font-size: 32px;
	font-weight: 700;
	color: var(--brand-orange-light);
}

.plan-price small {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
}

.plan ul {
	list-style: none;
	margin: 0 0 20px;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

.plan li {
	position: relative;
	padding-left: 22px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--text-soft);
}

.plan li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 4px;
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--brand-orange);
	border-bottom: 2px solid var(--brand-orange);
	transform: rotate(-45deg);
}

.plan .btn {
	width: 100%;
}

.plan-current {
	cursor: default;
	opacity: 0.75;
}

.plans-note,
.plans-empty {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 820px;
}

.faq details {
	background: rgba(25, 25, 56, 0.7);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 0 18px;
}

.faq summary {
	cursor: pointer;
	padding: 16px 0;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
}

.faq details p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
}

/* ---------- Closing call to action and footer ---------- */
.cta {
	margin: 72px 0 0;
	padding: 36px 28px;
	text-align: center;
	border-radius: 18px;
	border: 1px solid rgba(var(--brand-orange-rgb), 0.3);
	background: rgba(var(--brand-orange-rgb), 0.08);
}

.cta p {
	margin: 0 0 20px;
	color: var(--text-soft);
}

.cta .hero-actions {
	justify-content: center;
}

.pricing-footer {
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 20px 36px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: var(--text-faint);
}

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
	.plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 36px;
	}

	.pricing-bar nav {
		display: none;
	}

	.pricing-bar .bar-actions {
		margin-left: auto;
	}
}

@media (max-width: 640px) {
	/* One row on phones: app.css lets the top bar wrap, which would take a third of the screen */
	.pricing-bar {
		flex-wrap: nowrap;
		gap: 10px;
		padding: 10px 16px;
	}

	.bar-actions {
		gap: 6px;
	}

	.bar-actions .btn {
		padding: 7px 10px;
		font-size: 12px;
	}

	.pricing {
		padding: 0 16px;
	}

	.steps,
	.plans {
		grid-template-columns: minmax(0, 1fr);
	}

	.section {
		padding-top: 48px;
	}

	.cta {
		padding: 28px 18px;
	}
}
