/*
 * Buytena — page-level additions on top of the A1 Pharmacy design system.
 * These reuse the template's design tokens (--color-*, --font-*, --shell-*)
 * so they stay visually consistent with the rest of the site.
 */

/* ── Billing toggle (pricing) ─────────────────────────────────────────── */
.pricing-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0 2rem;
	padding: 0.375rem;
	border: 1px solid var(--color-line);
	background: var(--color-surface);
}

.pricing-toggle .badge {
	margin-left: 0.25rem;
}

/* ── Pricing cards (mapped from service/list patterns) ─────────────────── */
.service-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 52rem) {
	.service-grid {
		grid-template-columns: repeat(3, 1fr);
		align-items: stretch;
	}
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem;
	border: 1px solid var(--color-line);
	background: var(--color-surface);
}

.service-card--featured {
	border-color: var(--color-signal);
}

.service-card__badge {
	position: absolute;
	top: -0.75rem;
	left: 1.5rem;
}

.service-card__tagline {
	color: var(--color-ink-3);
}

.service-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.service-card__features {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0.25rem 0 0.75rem 0;
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	list-style: none;
}

.service-card__features li {
	position: relative;
	padding-left: 1.25rem;
	color: var(--color-ink-2);
	font-size: 0.95rem;
	line-height: 1.4;
}

.service-card__features li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--color-signal-bright);
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.service-card .button {
	width: 100%;
	justify-content: center;
	margin-top: auto;
}

/* ── Stats / counters on use-case pages ────────────────────────────────── */
.stat-band {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1px;
	border: 1px solid var(--color-line);
	background: var(--color-line);
}

.stat-band__cell {
	display: grid;
	gap: 0.35rem;
	padding: 1.5rem;
	background: var(--color-surface);
}

.stat-band__value {
	font-family: var(--font-mono);
	font-size: var(--text-d3);
	line-height: var(--leading-d3);
	letter-spacing: var(--tracking-d3);
}

.stat-band__label {
	color: var(--color-ink-3);
}

/* ── Testimonial cards ─────────────────────────────────────────────────── */
.testimonial {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--paper-15);
}

.testimonial__quote {
	margin: 0;
	color: var(--paper-70);
	line-height: var(--leading-lead);
}

.testimonial__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem;
}

.testimonial__stars {
	color: var(--color-accent);
	font-family: var(--font-mono);
	font-size: var(--text-data);
}

.testimonial__author {
	color: var(--color-surface);
	font-weight: 500;
}

.testimonial__business {
	color: var(--paper-55);
	font-family: var(--font-mono);
	font-size: var(--text-label);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
}

/* ── Journal / blog cards ──────────────────────────────────────────────── */
/* The template (css/pages/home.css) already styles .journal-grid and
 * .journal-card; these touch nothing the template does not. Only the
 * no-image case is handled here to keep an empty plate from collapsing. */

.journal-card__plate img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.journal-card__plate:has(img:not([src])) {
	display: none;
}

/* ── Legal / prose pages ───────────────────────────────────────────────── */
.prose {
	max-width: var(--shell-max-tight);
}

.prose h2 {
	margin: 2.5rem 0 0.75rem;
}

.prose h3 {
	margin: 2rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol {
	line-height: var(--leading-lead);
	color: var(--color-ink-2);
}

.prose li {
	margin: 0.4rem 0;
}

.prose a {
	color: var(--color-signal-bright);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Auth (clean & classic card) ───────────────────────────────────────── */
.auth-shell {
	padding: 3.5rem 0 5rem;
}

.auth-shell__inner {
	margin: 0 auto;
	width: min(100% - 2rem, 27rem);
}

.auth-shell--wide .auth-shell__inner {
	width: min(100% - 2rem, 30rem);
}

.auth-card {
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: 18px;
	padding: 2.25rem 2rem 2rem;
	box-shadow: 0 20px 50px -30px rgb(7 42 29 / 0.3);
}

.auth-card__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
}

.auth-card__brand .logo__mark {
	font-size: 1.25rem;
}

.auth-card__brand .logo__name {
	font-size: 1rem;
}

.auth-card__head {
	text-align: center;
	margin-bottom: 1.75rem;
}

.auth-card__title {
	margin: 1.25rem 0 0.35rem;
	font-size: clamp(1.375rem, 3vw, 1.6875rem);
	line-height: 1.16;
	letter-spacing: -0.02em;
}

.auth-card__sub {
	margin: 0;
	color: var(--color-ink-3);
	font-size: 0.9375rem;
}

.auth-card .button {
	width: 100%;
}

.auth-google {
	margin-bottom: 1.25rem;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.375rem 0;
	color: var(--color-ink-3);
	font-family: var(--font-mono);
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--color-line);
}

.auth-error {
	margin: 0 0 1.25rem;
	font-size: 0.875rem;
	color: var(--color-danger);
}

.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.auth-note {
	margin-top: 1.5rem;
	text-align: center;
	color: var(--color-ink-3);
}

.auth-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.25rem;
	padding: 0.75rem 0.875rem;
	border: 1px solid rgb(22 132 91 / 0.16);
	border-radius: 10px;
	background: rgb(22 132 91 / 0.06);
	color: var(--color-ink-2);
	font-size: 0.75rem;
	font-weight: 600;
}

.auth-trust span span {
	margin-right: 0.2rem;
	color: #16845b;
	font-size: 0.9rem;
}

@media (max-width: 480px) {
	.auth-shell {
		padding: 2rem 0 3rem;
	}

	.auth-card {
		padding: 2rem 1.25rem 1.5rem;
		border-radius: 16px;
	}

	.auth-card__head {
		margin-bottom: 1.5rem;
	}
}
