/**
 * ZOUMA Savings Calculator — front end.
 *
 * Sizes come from the 1728-wide Figma frame, used as CSS pixels at the top of
 * each clamp, the same way the theme's page stylesheets do it.
 *
 * The palette falls back to literals rather than assuming the theme's custom
 * properties exist, so the calculator still looks like itself if it is dropped
 * into a different theme via the shortcode.
 */

.zsc-hero,
.zsc-calc,
.zsc-cta {
	--zsc-dark: var(--zouma-dark, #121212);
	--zsc-navy: #093f56;
	--zsc-blue: var(--zouma-blue, #0e85b6);
	--zsc-blue-dark: var(--zouma-blue-dark, #0b6d95);
	--zsc-cyan: var(--zouma-cyan, #2baee4);
	--zsc-sky: #56bde9;
	--zsc-pale: var(--zouma-blue-pale, #e1edf9);
	--zsc-tint: var(--zouma-blue-tint, #f2f8fc);
	--zsc-border: var(--zouma-color-border, #d9e6f0);
	--zsc-line: #e8eef4;
	--zsc-text: var(--zouma-color-text, #121212);
	--zsc-muted: var(--zouma-color-muted, #5b6770);
	--zsc-faint: #97a3ac;
	--zsc-heading: var(--zouma-font-heading, "Albert Sans", system-ui, sans-serif);
	--zsc-radius: 12px;
	--zsc-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout shell ---------------------------------------------------------- */

.zsc-shell {
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2.5rem);
	/* Never wider than the space it is given.
	 *
	 * The theme lays `main > section` out as a grid, so this shell is a grid
	 * item and carries the automatic min-width: auto floor — it refuses to
	 * shrink below its content's min-content width. On a 390px phone it
	 * measured 1031px, and the theme's .zouma-site clips on the x axis, so
	 * the overflow never showed as a scrollbar: the country chips, the mode
	 * switch and the seniority buttons were simply cut off mid-control.
	 *
	 * That floor also silently defeated the mobile rules further down. The
	 * max-width: 760px block turns .zsc-countries into a horizontal scroller,
	 * but a scroller inside a 1031px box has nothing to scroll — the row just
	 * ran off the screen. width: 100% loses to the floor; min-width: 0
	 * releases it and those rules start doing their job. */
	min-width: 0;
}

.zsc-icon {
	flex: none;
	display: block;
}

/* The panel hides the team controls and the discount note with the hidden
 * attribute; several of them carry a display of their own, which would
 * otherwise win against the user-agent rule. */
.zsc-calc [hidden] {
	display: none !important;
}

.zsc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	color: var(--zsc-blue);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.zsc-eyebrow--light {
	color: var(--zouma-accent, #addbf3);
}

/* 01 · Hero -------------------------------------------------------------- */

.zsc-hero {
	position: relative;
	display: flex;
	align-items: center;
	/* Height comes from the content, not the viewport.
	 *
	 * The hero holds an eyebrow, a three-line heading and a sentence — about
	 * 290px of copy. Held at a full screen it carried 500-700px of empty space
	 * under that, depending on the display. The padding below still sets the
	 * rhythm, and the negative margin still pulls the section up under the
	 * header, which is what keeps the scrim dark rather than grey. */
	min-height: auto;
	/* The hero must start UNDER the header, not below it.
	 *
	 * The theme's header is sticky and its surface is a backdrop-filter, so it
	 * has no colour of its own — it takes one by blurring whatever sits behind
	 * it. Starting this section below the bar left the page's white background
	 * back there, and the blur turned that into a pale grey band across the top
	 * of the page. Pulling up by the header's height puts the dark hero behind
	 * it instead, which is what every hero in the theme does
	 * (.zouma-hero, .zouma-legal-hero, .zouma-pt-hero all pull up the same way).
	 *
	 * The padding then puts the copy back below the bar, so nothing moves. */
	margin-top: calc(-1 * var(--zouma-header-h, 76px));
	padding: calc(var(--zouma-header-h, 76px) + clamp(2rem, 4vw, 4rem)) 0 clamp(2.5rem, 5vw, 4.5rem);
	background: var(--zsc-dark);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
}

.zsc-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	display: block;
}

.zsc-hero__map {
	position: absolute;
	inset: 0;
	display: block;
	background: url("../images/world-dots.svg") center 60% / min(1500px, 118%) auto no-repeat;
	opacity: 0.38;
}

/* A single soft light behind the headline, so the map reads as depth rather
 * than as a flat texture. */
.zsc-hero__glow {
	position: absolute;
	inset: 0;
	display: block;
	background: radial-gradient(60% 80% at 50% 105%, rgba(14, 133, 182, 0.45), transparent 70%);
}

.zsc-hero__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.zsc-hero__title {
	max-width: 22ch;
	margin: 0.25rem 0 0;
	color: #fff;
	font-family: var(--zsc-heading);
	font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5625rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.zsc-hero__text {
	max-width: 62ch;
	margin: 1.25rem 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8125rem;
	line-height: 1.75;
}

/* 02 · Calculator -------------------------------------------------------- */

.zsc-calc {
	padding-block: clamp(2.5rem, 4.5vw, 4.5rem) clamp(3rem, 5vw, 5rem);
	background: #fff;
	color: var(--zsc-text);
}

/* Country picker */

.zsc-picker__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	color: var(--zsc-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.zsc-countries {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem;
}

.zsc-country {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	padding: 0.75rem 1.125rem;
	background: #fff;
	border: 1px solid var(--zsc-border);
	border-radius: 10px;
	color: var(--zsc-text);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: border-color 180ms var(--zsc-ease), background 180ms var(--zsc-ease),
		box-shadow 180ms var(--zsc-ease), transform 180ms var(--zsc-ease);
}

.zsc-country:hover {
	border-color: var(--zsc-cyan);
	transform: translateY(-1px);
}

.zsc-country.is-active {
	background: var(--zsc-tint);
	border-color: var(--zsc-blue);
	box-shadow: 0 0 0 1px var(--zsc-blue) inset;
}

.zsc-country__flag {
	display: block;
	width: 24px;
	height: 16px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(9, 63, 86, 0.12);
}

.zsc-flag {
	display: block;
	width: 100%;
	height: 100%;
}

/* Stated rather than inherited from the chip: the theme carries a global
 * button:hover colour, and an inherited value always loses to a declaration
 * that matches the span itself — otherwise the label goes white on hover and
 * disappears against the light chip. */
.zsc-country__name {
	color: var(--zsc-text);
}

.zsc-country__code {
	color: var(--zsc-faint);
	font-size: 0.75rem;
	font-weight: 500;
}

.zsc-country.is-active .zsc-country__code {
	color: var(--zsc-blue);
}

/* Single employee / dedicated team */

/* The segmented control is the padded track itself, so the active pill sits
 * inset on it rather than needing a separate slider element. */
.zsc-modes {
	display: flex;
	gap: 4px;
	width: fit-content;
	margin: clamp(1.5rem, 2.5vw, 2.25rem) auto 0;
	padding: 5px;
	background: var(--zsc-pale);
	border-radius: 12px;
}

.zsc-mode {
	padding: 0.625rem 1.5rem;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--zsc-muted);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 200ms var(--zsc-ease), color 200ms var(--zsc-ease),
		box-shadow 200ms var(--zsc-ease);
}

.zsc-mode.is-active {
	background: #fff;
	color: var(--zsc-text);
	box-shadow: 0 1px 3px rgba(9, 63, 86, 0.14);
}

.zsc-mode:not(.is-active):hover {
	color: var(--zsc-blue);
}

/* The two columns */

.zsc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2.5rem);
	align-items: start;
	margin-top: clamp(1.75rem, 3vw, 3rem);
}

/* Configure panel */

.zsc-panel {
	padding: clamp(1.25rem, 2vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--zsc-line);
	border-radius: var(--zsc-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
}

.zsc-panel__title {
	margin: 0 0 1.5rem;
	color: var(--zsc-text);
	font-family: var(--zsc-heading);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.zsc-field {
	margin-bottom: 1.25rem;
}

.zsc-field__label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--zsc-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Role select */

.zsc-select {
	position: relative;
	display: block;
}

.zsc-select select {
	width: 100%;
	height: 46px;
	padding: 0 2.75rem 0 0.875rem;
	background: #fff;
	border: 1px solid var(--zsc-border);
	border-radius: 8px;
	color: var(--zsc-text);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.2;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 180ms var(--zsc-ease), box-shadow 180ms var(--zsc-ease);
}

.zsc-select select.is-placeholder {
	color: var(--zsc-muted);
}

.zsc-select select:focus-visible {
	outline: none;
	border-color: var(--zsc-blue);
	box-shadow: 0 0 0 3px rgba(14, 133, 182, 0.16);
}

.zsc-select__caret {
	position: absolute;
	top: 50%;
	right: 0.875rem;
	display: block;
	color: var(--zsc-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

/* Which service line the chosen role belongs to */

.zsc-pillar {
	margin-bottom: 1.25rem;
	padding: 0.875rem 1rem;
	background: var(--zsc-tint);
	border: 1px solid #dceaf5;
	border-radius: 8px;
}

.zsc-pillar__name {
	margin: 0 0 0.375rem;
	color: var(--zsc-blue);
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.zsc-pillar__text {
	margin: 0;
	color: var(--zsc-muted);
	font-size: 0.75rem;
	line-height: 1.6;
}

/* Experience level */

.zsc-levels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.zsc-level {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.125rem;
	min-height: 54px;
	padding: 0.5rem 0.25rem;
	background: #fff;
	border: 1px solid var(--zsc-border);
	border-radius: 8px;
	color: var(--zsc-text);
	font: inherit;
	cursor: pointer;
	transition: border-color 180ms var(--zsc-ease), color 180ms var(--zsc-ease),
		background 180ms var(--zsc-ease), transform 180ms var(--zsc-ease);
}

.zsc-level:hover {
	border-color: var(--zsc-cyan);
	transform: translateY(-1px);
}

/* Stated for the same reason as .zsc-country__name above. */
.zsc-level__label {
	color: var(--zsc-text);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
}

.zsc-level__years {
	color: var(--zsc-muted);
	font-size: 0.6875rem;
	line-height: 1.3;
}

.zsc-level.is-active {
	background: #fff;
	border-color: var(--zsc-blue);
	box-shadow: 0 0 0 1px var(--zsc-blue) inset;
	color: var(--zsc-blue);
}

/* The selected level is the one piece of state the panel shouts about, so it
 * shifts to the same small-caps treatment the field labels use. */
.zsc-level.is-active .zsc-level__label {
	color: var(--zsc-blue);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.zsc-level.is-active .zsc-level__years {
	color: var(--zsc-blue);
}

/* Team size */

.zsc-stepper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: fit-content;
	padding: 0.25rem;
	background: #fff;
	border: 1px solid var(--zsc-border);
	border-radius: 8px;
}

.zsc-stepper__btn {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: var(--zsc-tint);
	border: 0;
	border-radius: 6px;
	color: var(--zsc-blue);
	cursor: pointer;
	transition: background 180ms var(--zsc-ease), color 180ms var(--zsc-ease);
}

.zsc-stepper__btn:hover {
	background: var(--zsc-blue);
	color: #fff;
}

.zsc-stepper__btn[disabled] {
	background: #f3f5f7;
	color: var(--zsc-faint);
	cursor: not-allowed;
}

.zsc-stepper__input {
	width: 64px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--zsc-text);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.zsc-stepper__input::-webkit-outer-spin-button,
.zsc-stepper__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.zsc-range {
	display: block;
	width: 100%;
	margin-top: 0.875rem;
	accent-color: var(--zsc-blue);
	cursor: pointer;
}

.zsc-discount {
	display: inline-flex;
	align-items: center;
	margin: 0.75rem 0 0;
	padding: 0.3125rem 0.625rem;
	background: var(--zsc-pale);
	border-radius: 6px;
	color: var(--zsc-blue-dark);
	font-size: 0.6875rem;
	font-weight: 600;
}

/* Cost breakdown */

.zsc-break {
	margin-top: 1.5rem;
	border: 1px solid var(--zsc-line);
	border-radius: 10px;
	overflow: hidden;
}

.zsc-break__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
}

.zsc-break__row--base {
	border-bottom: 1px solid var(--zsc-line);
}

.zsc-break__list {
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
}

.zsc-break__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.375rem 1rem;
	color: var(--zsc-muted);
	font-size: 0.75rem;
}

.zsc-break__row--total {
	background: #f1f4f7;
	border-top: 1px solid var(--zsc-line);
	font-weight: 700;
}

.zsc-break__amount {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.zsc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	margin: 1rem 0 0;
	padding: 0.3125rem 0.625rem;
	background: var(--zsc-pale);
	border-radius: 6px;
	color: var(--zsc-blue);
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1;
}

.zsc-note {
	margin: 1rem 0 0;
	color: var(--zsc-faint);
	font-size: 0.6875rem;
	line-height: 1.7;
}

/* Results column */

.zsc-results {
	display: flex;
	flex-direction: column;
	gap: clamp(0.875rem, 1.5vw, 1.25rem);
}

.zsc-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.875rem, 1.5vw, 1.25rem);
}

.zsc-stat {
	padding: clamp(1.125rem, 1.6vw, 1.5rem);
	background: #fff;
	border: 1px solid var(--zsc-line);
	border-radius: var(--zsc-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.zsc-stat__label {
	margin: 0 0 0.75rem;
	color: var(--zsc-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.zsc-stat__value {
	margin: 0 0 0.5rem;
	font-family: var(--zsc-heading);
	font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.zsc-stat--zouma .zsc-stat__value {
	color: var(--zsc-blue);
}

.zsc-stat__note {
	margin: 0;
	color: var(--zsc-faint);
	font-size: 0.6875rem;
	line-height: 1.5;
}

/* Savings card */

.zsc-savings {
	padding: clamp(1.25rem, 2vw, 1.75rem);
	background: linear-gradient(135deg, #1a97cd 0%, #0e85b6 58%, #0d7ba8 100%);
	border-radius: var(--zsc-radius);
	color: #fff;
	box-shadow: 0 10px 30px rgba(14, 133, 182, 0.22);
}

.zsc-savings__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.zsc-savings__title {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.zsc-savings__value {
	margin: 0;
	font-family: var(--zsc-heading);
	font-size: clamp(2rem, 1.4rem + 2vw, 2.875rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.zsc-savings__note {
	margin: 0.5rem 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.75rem;
}

.zsc-savings__badge {
	display: grid;
	place-items: center;
	flex: none;
	width: 72px;
	height: 72px;
	margin: 0;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 50%;
	font-family: var(--zsc-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.zsc-savings__split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: clamp(1rem, 1.6vw, 1.5rem);
	padding-top: clamp(0.875rem, 1.4vw, 1.125rem);
	border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.zsc-savings__key {
	margin: 0 0 0.375rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.zsc-savings__sub {
	margin: 0;
	font-family: var(--zsc-heading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

/* Comparison chart */

.zsc-chart {
	padding: clamp(1.125rem, 1.8vw, 1.5rem);
	background: #fff;
	border: 1px solid var(--zsc-line);
	border-radius: var(--zsc-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.zsc-chart__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	color: var(--zsc-text);
	font-family: var(--zsc-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.zsc-chart__title .zsc-icon {
	color: var(--zsc-blue);
}

.zsc-chart__plot {
	--zsc-plot-h: 150px;

	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.zsc-chart__axis {
	position: relative;
	flex: none;
	width: 2.25rem;
	height: var(--zsc-plot-h);
	margin: 0;
	padding: 0;
	list-style: none;
}

.zsc-chart__axis li {
	position: absolute;
	right: 0;
	bottom: calc(var(--zsc-t, 0) * 100%);
	color: var(--zsc-faint);
	font-size: 0.625rem;
	line-height: 1;
	transform: translateY(50%);
	font-variant-numeric: tabular-nums;
}

.zsc-chart__bars {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	flex: 1 1 auto;
	/* A share of the plot rather than a fixed length, so the bars keep the
	 * design's proportions — broad columns with a narrow channel between them —
	 * at every width the card is given. */
	gap: 7.5%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zsc-chart__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.zsc-chart__track {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: var(--zsc-plot-h);
	border-bottom: 1px solid var(--zsc-line);
}

.zsc-chart__bar {
	display: block;
	width: 100%;
	max-width: 160px;
	/* The height is the whole animation: every recalculation writes --zsc-h and
	 * the bar grows or drops to the new figure rather than snapping to it. */
	height: var(--zsc-h, 0%);
	border-radius: 6px 6px 0 0;
	transition: height 700ms var(--zsc-ease);
}

.zsc-chart__bar--local {
	background: linear-gradient(180deg, #0b4a63 0%, var(--zsc-navy) 100%);
}

.zsc-chart__bar--zouma {
	background: linear-gradient(180deg, #1a93c7 0%, var(--zsc-blue) 100%);
}

.zsc-chart__bar--saving {
	background: linear-gradient(180deg, #6bc8ee 0%, var(--zsc-sky) 100%);
}

.zsc-chart__label {
	margin: 0.75rem 0 0;
	color: var(--zsc-faint);
	font-size: 0.5625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

/* Focus, shared ---------------------------------------------------------- */

.zsc-country:focus-visible,
.zsc-mode:focus-visible,
.zsc-level:focus-visible,
.zsc-stepper__btn:focus-visible,
.zsc-btn:focus-visible {
	outline: 2px solid var(--zsc-blue);
	outline-offset: 2px;
}

/* 03 · Closing band ------------------------------------------------------ */

.zsc-cta {
	/* Opts out of the theme’s shared `main > section` screen-height floor, so
	 * the band is only as tall as its own content and padding.
	 *
	 * Nothing here ever set a height: zouma-theme gives every direct child of
	 * <main> a `min-height: 100svh`, and this band’s content is a couple of
	 * hundred pixels, so it was being padded out to a full screen of mostly
	 * empty blue. The floor is stated at (0,0,2), which a single class outranks
	 * — and it is declared rather than assumed so the calculator keeps its own
	 * height in any theme, with or without that rule. */
	min-height: 0;
	padding-block: clamp(3rem, 5.5vw, 5.5rem);
	background: var(--zsc-pale);
	color: var(--zsc-text);
}

.zsc-cta__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 4rem);
}

.zsc-cta__body {
	max-width: 46rem;
}

.zsc-cta__title {
	margin: 0 0 1rem;
	font-family: var(--zsc-heading);
	font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.zsc-cta__text {
	max-width: 62ch;
	margin: 0;
	color: var(--zsc-muted);
	font-size: 0.8125rem;
	line-height: 1.75;
}

.zsc-btn {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.375rem;
	background: var(--zsc-dark);
	border-radius: 999px;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background 200ms var(--zsc-ease), transform 200ms var(--zsc-ease);
}

.zsc-btn:hover,
.zsc-btn:focus {
	background: var(--zsc-blue);
	color: #fff;
	transform: translateY(-1px);
}

.zsc-btn .zsc-icon {
	transition: transform 200ms var(--zsc-ease);
}

.zsc-btn:hover .zsc-icon {
	transform: translateX(3px);
}

/* Page content typed into the page itself, between the calculator and the
 * closing band. */

.zsc-page-content {
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

/* Theme interop ---------------------------------------------------------- */

/* The theme paints every bare <button> as a filled primary button, and its
 * `button:hover` rule — one class plus one pseudo-class — outranks the
 * single-class rules the controls below are built from. That turned a hovered
 * chip into a dark blue block with white text. Each control restates the hover
 * it actually wants, scoped to the calculator so the selector outranks the
 * theme's whichever order the two stylesheets load in. */

.zsc-calc .zsc-country:hover,
.zsc-calc .zsc-level:hover {
	background: #fff;
	color: var(--zsc-text);
}

.zsc-calc .zsc-country.is-active:hover {
	background: var(--zsc-tint);
}

.zsc-calc .zsc-level.is-active:hover {
	color: var(--zsc-blue);
}

.zsc-calc .zsc-mode:hover {
	background: transparent;
}

.zsc-calc .zsc-mode.is-active:hover {
	background: #fff;
	color: var(--zsc-text);
}

.zsc-calc .zsc-mode:not(.is-active):hover {
	color: var(--zsc-blue);
}

.zsc-calc .zsc-stepper__btn:hover {
	background: var(--zsc-blue);
	color: #fff;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
	.zsc-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.zsc-hero {
		min-height: auto;
		text-align: left;
	}

	.zsc-hero__inner {
		align-items: flex-start;
	}

	.zsc-hero__title,
	.zsc-hero__text {
		max-width: none;
	}

	/* Horizontally scrolled rather than wrapped: six two-line chips stacked in
	 * a column push the calculator itself below the fold. */
	.zsc-countries {
		flex-wrap: nowrap;
		justify-content: flex-start;
		margin-inline: calc(-1 * clamp(1rem, 3vw, 2.5rem));
		padding-inline: clamp(1rem, 3vw, 2.5rem);
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
	}

	.zsc-countries::-webkit-scrollbar {
		display: none;
	}

	.zsc-country {
		flex: none;
		scroll-snap-align: center;
	}

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

	.zsc-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 420px) {
	.zsc-levels {
		grid-template-columns: minmax(0, 1fr);
	}

	.zsc-savings__badge {
		width: 60px;
		height: 60px;
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zsc-country,
	.zsc-level,
	.zsc-mode,
	.zsc-chart__bar,
	.zsc-btn,
	.zsc-btn .zsc-icon {
		transition-duration: 1ms;
	}

	.zsc-country:hover,
	.zsc-level:hover,
	.zsc-btn:hover {
		transform: none;
	}
}
