/*
 * Presence Suite package cards — hand-written CSS (not compiled Tailwind).
 *
 * assets/css/tailwind.css is a static, precompiled build and this theme has
 * no build step to regenerate it: any utility class that wasn't already in
 * the theme's PHP when it was generated silently does nothing. The package
 * cards need spacing, equal-height columns and a button treatment that the
 * existing build doesn't cover, so — exactly as assets/css/apply-form.css
 * does for the Apply form — they're styled by hand from the same design
 * tokens (--background, --foreground, --accent, --border, --brand-pink,
 * --font-heading/body/mono; see :root in tailwind.css).
 */

/* ---------- Grid ---------- */

.sm-pkg-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
@media (min-width: 900px) {
	.sm-pkg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

/* ---------- Card shell ---------- */

.sm-pkg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.sm-pkg-card:hover {
	border-color: hsl(var(--foreground) / .4);
	box-shadow: 0 26px 60px -34px hsl(var(--foreground) / .45);
}
.sm-pkg-card--featured {
	border-color: hsl(var(--foreground));
	box-shadow: 0 22px 60px -32px hsl(var(--foreground) / .5);
}
.sm-pkg-card--featured::before {
	content: "";
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	height: 4px;
	background: hsl(var(--brand-pink));
}

/* ---------- Media ---------- */

.sm-pkg-card__media {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: hsl(var(--muted));
	border-bottom: 1px solid hsl(var(--border));
}
.sm-pkg-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
}
.sm-pkg-card:hover .sm-pkg-card__media img {
	transform: scale(1.04);
}
.sm-pkg-card__flag {
	position: absolute;
	top: 0;
	right: 1.25rem;
	padding: .55rem .9rem;
	background: hsl(var(--brand-pink));
	color: hsl(var(--foreground));
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	line-height: 1;
}

/* ---------- Body ---------- */

.sm-pkg-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.75rem;
}
@media (min-width: 1024px) {
	.sm-pkg-card__body { padding: 2rem; }
}

.sm-pkg-card__tier {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / .45);
}
.sm-pkg-card__name {
	margin-top: .85rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: hsl(var(--foreground));
}
.sm-pkg-card__kicker {
	margin-top: .35rem;
	font-family: var(--font-script);
	font-style: italic;
	font-size: 1.0625rem;
	color: hsl(var(--accent));
}
.sm-pkg-card__blurb {
	margin-top: .9rem;
	font-family: var(--font-body);
	font-size: .875rem;
	line-height: 1.65;
	color: hsl(var(--foreground) / .7);
}

/* ---------- Price ---------- */

.sm-pkg-card__price {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1.15rem 0;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
}
.sm-pkg-card__amount {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 3rem;
	line-height: .9;
	letter-spacing: -.03em;
	color: hsl(var(--foreground));
}
.sm-pkg-card__size {
	text-align: right;
}
.sm-pkg-card__size b {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1;
	color: hsl(var(--foreground));
}
.sm-pkg-card__size span {
	display: block;
	margin-top: .4rem;
	font-family: var(--font-mono);
	font-size: 9px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / .5);
}

/* ---------- Inclusion list ---------- */

.sm-pkg-card__label {
	margin-top: 1.6rem;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / .45);
}
.sm-pkg-list {
	list-style: none;
	margin: .95rem 0 0;
	padding: 0;
}
.sm-pkg-list li {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .32rem 0;
	font-family: var(--font-body);
	font-size: .875rem;
	line-height: 1.4;
	color: hsl(var(--foreground) / .82);
}
.sm-pkg-list li svg {
	flex: 0 0 14px;
	margin-top: .15rem;
	color: hsl(var(--accent));
}
.sm-pkg-list li.is-out {
	color: hsl(var(--foreground) / .35);
}
.sm-pkg-list li.is-out .sm-pkg-list__dash {
	flex: 0 0 14px;
	text-align: center;
	color: hsl(var(--foreground) / .3);
}

/* ---------- Footer: "perfect for" + button ---------- */

.sm-pkg-card__foot {
	margin-top: auto;
	padding-top: 2rem;
}
.sm-pkg-card__for {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 6.75rem;
	padding: 1.15rem 1.25rem;
	background: hsl(var(--secondary) / .8);
	border-left: 2px solid hsl(var(--brand-pink));
}
.sm-pkg-card--featured .sm-pkg-card__for {
	border-left-color: hsl(var(--accent));
}
.sm-pkg-card__for p:first-child {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: hsl(var(--accent));
}
.sm-pkg-card__for p:last-child {
	margin-top: .5rem;
	font-family: var(--font-body);
	font-size: .875rem;
	line-height: 1.55;
	color: hsl(var(--foreground) / .78);
}

/* The button: an editorial outline rule that fills on hover. */
.sm-pkg-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin-top: 1.25rem;
	padding: 1.05rem 1.35rem;
	border: 1px solid hsl(var(--foreground));
	background: transparent;
	color: hsl(var(--foreground));
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition: background-color .28s ease, color .28s ease, border-color .28s ease;
}
.sm-pkg-btn svg {
	flex: 0 0 auto;
	transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.sm-pkg-btn:hover,
.sm-pkg-btn:focus-visible {
	background: hsl(var(--foreground));
	border-color: hsl(var(--foreground));
	color: hsl(var(--background));
}
.sm-pkg-btn:hover svg,
.sm-pkg-btn:focus-visible svg {
	transform: translate(3px, -3px);
}

/* The most-popular card leads with the filled button instead. */
.sm-pkg-btn--solid {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
}
.sm-pkg-btn--solid:hover,
.sm-pkg-btn--solid:focus-visible {
	background: hsl(var(--accent));
	border-color: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

/* ---------- Footnote ---------- */

.sm-pkg-note {
	margin-top: 2rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: .75rem;
	color: hsl(var(--foreground) / .5);
}
