/* ZHI — cost ledger */
.costs { position: relative; isolation: isolate; overflow: clip; background: var(--navy-950); }
.costs__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(45% 55% at 0% 0%, rgba(43, 179, 186, 0.22), transparent 70%), radial-gradient(35% 45% at 100% 100%, rgba(201, 167, 107, 0.14), transparent 70%); }
.costs__grid { display: grid; gap: var(--space-7); }
.costs__copy { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.costs__copy p { margin: 0; color: rgba(255, 255, 255, 0.76); }
.costs__copy strong, .costs__text strong, .costs__note strong { color: #fff; font-weight: 500; }
.costs__table { display: grid; gap: 12px; }
.costs__row { display: grid; gap: var(--space-2); align-content: center; padding: var(--space-5) var(--space-5); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; background: linear-gradient(180deg, #0D2032, #091A29); transition: border-color 350ms var(--ease-out), background-color 350ms var(--ease-out); }
.costs__row:not(.costs__row--head):hover { border-color: rgba(201, 167, 107, 0.45); }
.costs__num { font-family: var(--font-display); font-size: var(--fs-sm, 0.9rem); letter-spacing: 0.12em; color: var(--bronze-300); }
.costs__label { font-family: var(--font-display); font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem); line-height: 1.2; color: #fff; }
.costs__text { color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.costs__row--head { display: none; background: var(--navy-950); border: 0; border-radius: 0; min-height: 0; padding-block: var(--space-3); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-300); }
.costs__foot { display: grid; gap: var(--space-5); justify-items: start; margin-top: var(--space-6); }
.costs__note { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 54ch; }
@media (min-width: 760px) {
	.costs { --pin: 104px; }
	.costs__row { grid-template-columns: 2.2rem minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-5); align-items: center; min-height: 8.75rem; }
	.costs__row--head { display: grid; min-height: 0; position: sticky; top: var(--pin); z-index: 50; }
}
@media (min-width: 1060px) {
	.costs__grid { grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr); gap: var(--space-9, 6rem); align-items: start; }
	.costs__intro { position: sticky; top: var(--pin); align-self: start; }
	.costs__intro .h2 { margin-top: 0; }
}
/* Stack: every card pins just below the head and the next one slides over it,
   leaving a slim edge of each earlier card visible. Cards are equal height so
   nothing is cut through the middle. */
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
	.costs__row:not(.costs__row--head) {
		position: sticky;
		top: calc(var(--pin) + 64px + var(--r, 0) * 14px);
		z-index: calc(var(--r, 0) + 1);
		height: 8.75rem;
	}
}
@media (max-width: 759px) {
	.costs__row { grid-template-columns: 2rem minmax(0, 1fr); padding: var(--space-4); }
	.costs__num { grid-row: 1 / span 2; }
}
/* Head bar steps aside once the last card has stacked */
.costs__row--head { transition: opacity 250ms var(--ease-out), visibility 250ms; }
.costs__table.is-stacked .costs__row--head { opacity: 0; visibility: hidden; pointer-events: none; }
