/**
 * Calculator Landing Page
 * ---------------------------------------------------------------------------
 * Self-contained styles for page-calculator-landing-page.php.
 * Every selector is scoped under .clp / .clp-* so nothing here can affect the
 * rest of the theme, and the global stylesheet cannot bleed into the page.
 *
 * Not compiled by CodeKit — edit this file directly.
 *
 * Breakpoints: desktop (default) / mobile (max-width: 1023px)
 */

/* ==========================================================================
   Tokens
   ========================================================================== */

.clp {
	--clp-yellow: #fac21f;
	--clp-ink: #1c0000;
	--clp-body: #5d4c44;
	--clp-line: #d9d9de;
	--clp-mist: #f5f5f5;
	--clp-white: #ffffff;
	--clp-rule: #4a342a;

	--clp-font: "Corporative", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--clp-weight-medium: 500;
	--clp-weight-bold: 700;
	--clp-weight-black: 900;

	--clp-pad-x: 45px;
	--clp-pad-y: 90px;
	/* Derived from --clp-pad-y so one edit moves every section, including
	   the sections that need a roomier or tighter rhythm than the default. */
	--clp-pad-y-lg: calc(var(--clp-pad-y) * 1.1);
	--clp-pad-y-sm: calc(var(--clp-pad-y) * 0.5);
	--clp-max: 1220px;

	font-family: var(--clp-font);
	color: var(--clp-ink);
	display: block;
	overflow-x: hidden;
}

/* ==========================================================================
   Scoped reset — neutralises global theme rules on this page
   ========================================================================== */

.clp *,
.clp *::before,
.clp *::after {
	box-sizing: border-box;
}

/* No `padding: 0` here — `.clp section` is (0,1,1) and would outrank the
   `.clp-section` padding below on specificity, not source order. */
.clp section {
	margin: 0;
}

.clp h1,
.clp h2,
.clp h3,
.clp p,
.clp figure,
.clp blockquote,
.clp ul,
.clp ol {
	margin: 0;
	padding: 0;
}

.clp ul,
.clp ol {
	list-style: none;
}

.clp img {
	max-width: 100%;
	height: auto;
	display: block;
}

.clp a {
	color: inherit;
	text-decoration: none;
}

.clp button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.clp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.clp-display {
	font-family: var(--clp-font);
	font-weight: var(--clp-weight-bold);
	font-size: 44px;
	line-height: 44px;
	letter-spacing: -1px;
}

.clp-body {
	font-weight: var(--clp-weight-medium);
	font-size: 18px;
	line-height: 26px;
}

.clp-muted {
	color: var(--clp-body);
}

.clp-hl {
	color: var(--clp-yellow);
}

/* Yellow eyebrow badge.
   Scoped to `.clp` for specificity: badges render as <p>, so a bare
   `.clp-badge` (0,1,0) loses its padding to the `.clp p` reset (0,1,1). */
.clp .clp-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	background: var(--clp-yellow);
	color: var(--clp-ink);
	font-weight: var(--clp-weight-black);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 2px;
	padding: 4px 8px;
	width: auto;
}

/* Also scoped, so it still outranks the base badge rule above. */
.clp .clp-badge--rounded {
	border-radius: 3px;
	padding: 5px 10px;
}

/* Small yellow inline tag used inside benefit cards */
.clp-tag {
	display: inline-flex;
	align-self: flex-start;
	background: var(--clp-yellow);
	color: var(--clp-ink);
	font-weight: var(--clp-weight-bold);
	font-size: 16px;
	line-height: 1.35;
	padding: 2px 7px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

/* Scoped to `.clp` for specificity: buttons render as <a>, so a bare
   `.clp-btn` (0,1,0) loses `color` to the `.clp a { color: inherit }`
   reset (0,1,1) and picks up white text on dark sections. */
.clp .clp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--clp-yellow);
	color: var(--clp-ink);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.2;
	padding: 14px 26px;
	border-radius: 100px;
	border: 2px solid var(--clp-yellow);
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.clp-btn:hover,
.clp-btn:focus-visible {
	background: #e5ae14;
	border-color: #e5ae14;
	color: var(--clp-ink);
}

/* Also scoped, so it still outranks the base button rule above and keeps
   its white text — ghost buttons sit on dark sections. */
.clp .clp-btn--ghost {
	background: transparent;
	color: var(--clp-white);
}

.clp-btn--ghost:hover,
.clp-btn--ghost:focus-visible {
	background: var(--clp-yellow);
	border-color: var(--clp-yellow);
	color: var(--clp-ink);
}

.clp-btn--nav {
	font-size: 20px;
	padding: 10px 20px;
	border-radius: 50px;
	white-space: nowrap;
}

.clp :focus-visible {
	outline: 2px solid var(--clp-yellow);
	outline-offset: 3px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.clp-section {
	position: relative;
	padding: var(--clp-pad-y) var(--clp-pad-x);
}

.clp-section > * {
	position: relative;
	z-index: 1;
}

/* Dark sections carry a photographic background behind an 83% black scrim */
.clp-section--dark {
	background-color: var(--clp-ink);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--clp-white);
}

.clp-section--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.83);
	z-index: 0;
	pointer-events: none;
}

.clp-section--light {
	background: var(--clp-mist);
}

.clp-section--white {
	background: var(--clp-white);
}

.clp-section__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	max-width: var(--clp-max);
	margin: 0 auto 60px;
	width: 100%;
}

.clp-section--dark .clp-section__head {
	color: var(--clp-white);
}

.clp-section--light .clp-section__head .clp-display,
.clp-section--white .clp-section__head .clp-display {
	color: var(--clp-ink);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.clp-navbar {
	position: relative;
	z-index: 3;
	margin: calc(var(--clp-pad-y) * -1) calc(var(--clp-pad-x) * -1) 0;
	padding: 20px var(--clp-pad-x);
}

.clp-navbar--solid {
	margin: 0;
	background: var(--clp-ink);
	color: var(--clp-white);
}

.clp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	max-width: 1440px;
	margin: 0 auto;
}

.clp-nav__logo img {
	width: 300px;
	max-width: 100%;
	height: auto;
}

.clp-nav__menu ul {
	display: flex;
	align-items: center;
	gap: 29px;
}

.clp-nav__menu a {
	color: var(--clp-white);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.2;
	white-space: nowrap;
}

.clp-nav__menu a:hover,
.clp-nav__menu a:focus-visible {
	color: var(--clp-yellow);
}

.clp-nav__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.clp-nav__cta-short,
.clp-nav__toggle {
	display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.clp-hero {
	padding-bottom: var(--clp-pad-y-lg);
}

.clp-hero__inner {
	display: grid;
	max-width: 1440px;
	margin: 0 auto;
	padding-top: 50px;
	column-gap: 100px;
	row-gap: 24px;
	align-items: center;
	grid-template-columns: minmax(0, 1fr) 460px;
	grid-template-areas:
		"badge   media"
		"heading media"
		"lede    media"
		"buttons media"
		"trust   media";
	align-content: center;
	justify-content: start;
}

.clp-hero__badge {
	grid-area: badge;
	justify-self: start;
}

.clp-hero__heading {
	grid-area: heading;
	color: var(--clp-white);
}

.clp-hero__lede {
	grid-area: lede;
	color: var(--clp-white);
	max-width: 560px;
}

.clp-hero__media {
	grid-area: media;
	align-self: center;
	width: 460px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	overflow: hidden;
}

.clp-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.clp-hero__buttons {
	grid-area: buttons;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.clp-hero__trust {
	grid-area: trust;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
}

.clp-hero__trust li {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--clp-white);
	font-weight: var(--clp-weight-black);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 2px;
}

.clp-hero__trust-icon {
	width: 10px;
	height: 15px;
	flex: none;
}

/* On desktop the mark reads as a separator, so the first one is dropped */
.clp-hero__trust li:first-child .clp-hero__trust-icon {
	display: none;
}

/* ==========================================================================
   Video player facade (video section + testimonials)
   ========================================================================== */

/* Head stays on the 1220 grid so it lines up with the player; text is capped */
.clp-video-section .clp-section__head .clp-display,
.clp-video-section .clp-section__head .clp-body {
	max-width: 902px;
}

.clp-player {
	position: relative;
	max-width: var(--clp-max);
	margin: 0 auto;
	width: 100%;
	background: var(--clp-white);
	border: 1px solid var(--clp-line);
	border-radius: 16px;
	overflow: hidden;
}

.clp-video-section .clp-player {
	height: 690px;
}

.clp-player__trigger {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 0;
}

.clp-player__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.clp-play {
	position: relative;
	z-index: 1;
	display: block;
	width: 93.6px;
	height: 93.6px;
}

.clp-play svg {
	display: block;
	width: 100%;
	height: 100%;
}

.clp-player__trigger:hover .clp-play,
.clp-player__trigger:focus-visible .clp-play {
	transform: scale(1.05);
}

.clp-play {
	transition: transform 0.15s ease;
}

.clp-player iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Chapter chips */
.clp-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	max-width: var(--clp-max);
	margin: 60px auto 0;
}

.clp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--clp-ink);
	border: 1px solid var(--clp-line);
	border-radius: 50px;
	padding: 10px 20px;
	white-space: nowrap;
}

button.clp-chip:hover,
button.clp-chip:focus-visible {
	border-color: var(--clp-yellow);
}

.clp-chip__time {
	color: var(--clp-yellow);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.2;
}

.clp-chip__label {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 18px;
	line-height: 26px;
}

/* ==========================================================================
   Calculator
   ========================================================================== */

.clp-calc__columns {
	display: grid;
	grid-template-columns: minmax(0, 590fr) minmax(0, 570fr);
	gap: 60px;
	align-items: start;
	max-width: var(--clp-max);
	margin: 0 auto;
}

.clp-calc__sliders {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.clp-calc__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.clp-calc__field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.clp-calc__field-head label {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 18px;
	line-height: 26px;
	cursor: pointer;
}

.clp-calc__value {
	color: var(--clp-yellow);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.2;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.clp-calc__helper {
	color: var(--clp-line);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

/* Range input */
.clp-calc__range {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	background: transparent;
	margin: 0;
	padding: 6px 0;
	cursor: pointer;
}

.clp-calc__range::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 3px;
	background: rgba(250, 194, 31, 0.35);
}

.clp-calc__range::-moz-range-track {
	height: 5px;
	border-radius: 3px;
	background: rgba(250, 194, 31, 0.35);
}

.clp-calc__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -6.5px;
	border-radius: 50%;
	background: var(--clp-yellow);
	border: 0;
}

.clp-calc__range::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--clp-yellow);
	border: 0;
}

.clp-calc__results {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.clp-calc__card {
	display: flex;
	flex-direction: column;
	gap: 35px;
	width: 100%;
	background: var(--clp-ink);
	border: 2px dashed var(--clp-yellow);
	border-radius: 16px;
	padding: 30px;
}

.clp-calc__card-title {
	color: var(--clp-yellow);
	font-weight: var(--clp-weight-black);
	font-size: 13px;
	line-height: 1;
	letter-spacing: 2px;
}

.clp-calc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 35px;
}

.clp-calc__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.clp-calc__stat-label {
	color: var(--clp-white);
	font-weight: var(--clp-weight-bold);
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.24px;
	text-transform: uppercase;
}

.clp-calc__stat-value {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	color: var(--clp-white);
	font-weight: var(--clp-weight-black);
	font-size: 44px;
	line-height: 44px;
	letter-spacing: 2px;
	font-variant-numeric: tabular-nums;
}

.clp-calc__stat-value--accent {
	color: var(--clp-yellow);
}

.clp-calc__stat-unit {
	color: var(--clp-white);
	font-weight: var(--clp-weight-bold);
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.24px;
	text-transform: uppercase;
}

.clp-calc__disclaimer {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

/* ==========================================================================
   How it works
   ========================================================================== */

.clp-how {
	padding-bottom: var(--clp-pad-y-sm);
}

.clp-how .clp-section__head {
	margin-bottom: 50px;
}

.clp-how__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	max-width: var(--clp-max);
	margin: 0 auto;
}

.clp-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background: var(--clp-white);
	border: 1px solid var(--clp-line);
	border-radius: 14px;
}

.clp-how__card {
	gap: 12px;
	padding: 20px;
}

.clp-how__icon {
	height: 38px;
	width: auto;
}

.clp-card__title {
	color: var(--clp-ink);
	font-weight: var(--clp-weight-bold);
	font-size: 24px;
	line-height: 1.2;
}

.clp-card__copy {
	color: var(--clp-body);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

/* ==========================================================================
   Benefits carousel
   ========================================================================== */

.clp-benefits {
	padding-top: var(--clp-pad-y-sm);
}

.clp-benefits .clp-section__head {
	margin-bottom: 40px;
}

.clp-carousel {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 20px;
	row-gap: 20px;
	max-width: var(--clp-max);
	margin: 0 auto;
}

.clp-carousel__viewport {
	overflow: hidden;
	grid-column: 2;
}

.clp-carousel__track {
	display: flex;
	transition: transform 0.35s ease;
}

.clp-carousel__slide {
	flex: 0 0 100%;
	min-width: 100%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.clp-benefits__card {
	gap: 10px;
	padding: 26px 24px;
	height: 100%;
}

.clp-carousel__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: none;
}

/* Natural export aspect (16.182 x 28.121) preserved */
.clp-carousel__arrow img {
	width: 16px;
	height: 28px;
}

.clp-carousel__arrow--prev {
	grid-column: 1;
	grid-row: 1;
}

.clp-carousel__arrow--next {
	grid-column: 3;
	grid-row: 1;
}

.clp-carousel__arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.clp-carousel__dots {
	grid-column: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

/* Inactive: grey outline. Active: filled grey. border-box keeps both states
   the same 15px overall, so the row doesn't shift as the active dot moves. */
.clp .clp-carousel__dot {
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: transparent;
	border: 2px solid var(--clp-body);
}

.clp .clp-carousel__dot.is-active {
	background: var(--clp-body);
}

.clp-carousel--single .clp-carousel__arrow,
.clp-carousel--single .clp-carousel__dots {
	display: none;
}

/* Coming soon card */
.clp-soon {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	background: var(--clp-ink);
	border-radius: 16px;
	padding: 40px;
	max-width: var(--clp-max);
	margin: 40px auto 0;
	color: var(--clp-white);
}

.clp-soon__heading {
	font-weight: var(--clp-weight-bold);
	font-size: 30px;
	line-height: 36px;
	color: var(--clp-white);
}

.clp-soon__copy {
	max-width: 952px;
	color: var(--clp-white);
}

.clp-soon__footnote {
	color: var(--clp-yellow);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.2;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.clp-testimonials .clp-section__head {
	margin-bottom: 40px;
}

.clp-testimonials__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: var(--clp-max);
	margin: 0 auto;
}

/* Scoped to `.clp` for specificity: the card is a <figure>, so a bare
   `.clp-testimonial` (0,1,0) loses its padding to the `.clp figure` reset. */
.clp .clp-testimonial {
	display: flex;
	align-items: center;
	gap: 35px;
	background: var(--clp-yellow);
	border-radius: 16px;
	padding: 30px;
}

.clp-testimonial__media {
	flex: 1 1 0;
	min-width: 0;
	height: 340px;
	background: var(--clp-white);
	border: 0;
	border-radius: 14px;
	margin: 0;
	max-width: none;
}

.clp-testimonial__body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 0;
	min-width: 0;
	color: var(--clp-ink);
}

.clp-testimonial__quote {
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.3;
}

.clp-testimonial__cite {
	display: flex;
	flex-direction: column;
	font-style: normal;
}

.clp-testimonial__name {
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 26px;
}

.clp-testimonial__meta {
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

/* ==========================================================================
   Sign up
   ========================================================================== */

.clp-signup__columns {
	display: grid;
	grid-template-columns: minmax(0, 540fr) minmax(0, 557fr);
	gap: 60px;
	align-items: center;
	max-width: var(--clp-max);
	margin: 0 auto;
}

.clp-signup__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 40px;
}

.clp-signup__copy .clp-display {
	color: var(--clp-white);
}

.clp-signup__copy .clp-badge + .clp-display {
	margin-top: -26px;
}

.clp-signup__steps {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 441px;
}

.clp-signup__steps li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.clp-signup__step-num {
	flex: none;
	width: 28px;
	text-align: center;
	color: var(--clp-yellow);
	font-weight: var(--clp-weight-black);
	font-size: 13px;
	line-height: 26px;
	letter-spacing: 2px;
}

.clp-signup__steps .clp-body {
	color: var(--clp-white);
}

.clp-signup__card {
	background: var(--clp-ink);
	border: 1px solid var(--clp-rule);
	border-radius: 16px;
	padding: 32px 60px;
}

.clp-signup__note {
	margin-top: 20px;
	color: rgba(255, 255, 255, 0.7);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

.clp-signup__notice {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

/* --- Sign-up form ---------------------------------------------------------
   Plain markup from section-signup.php: name + email, an optional consent
   checkbox, and the yellow pill submit. Values below come from Figma node
   355:233 — the same ones the old Gravity Forms block was reproducing. */

.clp-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.clp-form__time {
	color: var(--clp-white);
	font-weight: var(--clp-weight-bold);
	font-size: 12px;
	line-height: 20px;
	letter-spacing: 0.24px;
	text-transform: uppercase;
}

.clp-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.clp-form__label {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 18px;
	line-height: 26px;
}

.clp-form__req {
	color: var(--clp-yellow);
}

.clp-form__input {
	width: 100%;
	background: var(--clp-ink);
	border: 1px solid var(--clp-yellow);
	border-radius: 10px;
	padding: 10px 14px;
	min-height: 46px;
	color: var(--clp-white);
	font-family: var(--clp-font);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
}

.clp-form__input::placeholder {
	color: rgba(255, 255, 255, 0.7);
	opacity: 1;
}

/* Yellow in every state, including :invalid — the browser otherwise tints
   required fields in some engines before the visitor has typed anything. */
.clp-form__input:hover,
.clp-form__input:focus,
.clp-form__input:invalid {
	border-color: var(--clp-yellow);
}

.clp-form__input:focus-visible {
	outline: 2px solid var(--clp-yellow);
	outline-offset: 2px;
}

.clp-form__choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.clp-form__choice input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	background: var(--clp-ink);
	border: 1.5px solid var(--clp-yellow);
	border-radius: 4px;
	display: grid;
	place-content: center;
	cursor: pointer;
}

.clp-form__choice input[type="checkbox"]::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 2px;
	transform: scale(0);
	background: var(--clp-yellow);
	transition: transform 0.1s ease;
}

.clp-form__choice input[type="checkbox"]:checked::after {
	transform: scale(1);
}

.clp-form__choice-label {
	color: var(--clp-white);
	font-weight: var(--clp-weight-medium);
	font-size: 16px;
	line-height: 22px;
	cursor: pointer;
}

/* The pill itself — colours, padding, radius, hover — comes from `.clp-btn`
   (see Buttons above); the button carries both classes. That rule is scoped
   `.clp .clp-btn` (0,2,0), which is what lets it beat the `.clp button` reset
   (0,1,1) that would otherwise strip the background and padding. Only the
   full-width sizing is specific to the form. */
.clp-form__submit {
	width: 100%;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.clp-faq .clp-section__head {
	margin-bottom: 40px;
}

.clp-faq__list {
	background: var(--clp-white);
	border: 1px solid var(--clp-line);
	border-radius: 14px;
	max-width: var(--clp-max);
	margin: 0 auto;
	overflow: hidden;
}

.clp-faq__item + .clp-faq__item {
	border-top: 1px solid var(--clp-line);
}

.clp-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 28px;
	cursor: pointer;
	list-style: none;
	color: var(--clp-ink);
	font-weight: var(--clp-weight-bold);
	font-size: 20px;
	line-height: 1.3;
}

.clp-faq__q::-webkit-details-marker {
	display: none;
}

.clp-faq__marker {
	flex: none;
	position: relative;
	width: 18px;
	height: 18px;
}

.clp-faq__marker::before,
.clp-faq__marker::after {
	content: "";
	position: absolute;
	background: var(--clp-body);
	inset: 50% 0 auto;
	height: 2px;
	transform: translateY(-50%);
}

.clp-faq__marker::after {
	inset: 0 50% auto auto;
	width: 2px;
	height: 100%;
	right: 50%;
	transform: translateX(50%);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.clp-faq__item[open] .clp-faq__marker::after {
	transform: translateX(50%) scaleY(0);
	opacity: 0;
}

.clp-faq__a {
	padding: 0 28px 22px;
	color: var(--clp-body);
	font-weight: var(--clp-weight-medium);
	font-size: 18px;
	line-height: 26px;
	max-width: 900px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.clp-final {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding-block: var(--clp-pad-y-lg);
	text-align: center;
}

.clp-final .clp-badge {
	align-self: center;
}

.clp-final__heading {
	color: var(--clp-white);
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 1023px) {
	.clp {
		--clp-pad-x: 25px;
		--clp-pad-y: 40px;
	}

	.clp-display {
		font-size: 34px;
		line-height: 40px;
	}

	.clp-section__head {
		gap: 12px;
		margin-bottom: 40px;
	}

	/* Nav ---------------------------------------------------------------- */

	.clp-nav {
		gap: 12px;
	}

	.clp-nav__logo img {
		width: 183px;
	}

	.clp-nav__menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--clp-ink);
		border-top: 1px solid var(--clp-rule);
		padding: 0 var(--clp-pad-x);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease, padding 0.25s ease;
	}

	.clp-nav__menu.is-open {
		max-height: 60vh;
		padding: 16px var(--clp-pad-x) 24px;
		overflow-y: auto;
	}

	.clp-nav__menu ul {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}

	.clp-nav__actions {
		gap: 12px;
	}

	.clp-btn--nav {
		font-size: 14px;
		line-height: 20px;
		padding: 6px 16px;
	}

	.clp-nav__cta-full {
		display: none;
	}

	.clp-nav__cta-short {
		display: inline;
	}

	.clp-nav__toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 26px;
		height: 26px;
		flex: none;
	}

	.clp-nav__toggle-bar {
		display: block;
		width: 21px;
		height: 2px;
		background: var(--clp-white);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.clp-nav__toggle[aria-expanded="true"] .clp-nav__toggle-bar:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.clp-nav__toggle[aria-expanded="true"] .clp-nav__toggle-bar:nth-child(2) {
		opacity: 0;
	}

	.clp-nav__toggle[aria-expanded="true"] .clp-nav__toggle-bar:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	/* Hero --------------------------------------------------------------- */

	.clp-hero {
		padding-bottom: 48px;
	}

	.clp-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"badge"
			"heading"
			"lede"
			"media"
			"buttons"
			"trust";
		row-gap: 16px;
		padding-top: 40px;
	}

	.clp-hero__media {
		width: 100%;
		aspect-ratio: auto;
		height: 220px;
		border: 1px solid var(--clp-rule);
		border-radius: 16px;
		margin-top: 19px;
	}

	.clp-hero__buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 19px;
	}

	.clp-hero__buttons .clp-btn {
		width: 100%;
	}

	.clp-hero__trust {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-top: 8px;
	}

	.clp-hero__trust li {
		gap: 8px;
	}

	.clp-hero__trust li:first-child .clp-hero__trust-icon {
		display: block;
	}

	/* Video -------------------------------------------------------------- */

	.clp-video-section .clp-player {
		height: 210px;
	}

	.clp-play {
		width: 72px;
		height: 72px;
	}

	.clp-chips {
		flex-direction: column;
		gap: 8px;
		margin-top: 24px;
	}

	.clp-chip {
		padding: 10px 16px;
	}

	.clp-chip__label {
		font-size: 16px;
		line-height: 22px;
	}

	/* Calculator --------------------------------------------------------- */

	.clp-calc__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.clp-calc__sliders {
		gap: 32px;
	}

	.clp-calc__card {
		padding: 24px;
		gap: 28px;
	}

	.clp-calc__grid {
		row-gap: 24px;
	}

	.clp-calc__stat-value {
		font-size: 36px;
		line-height: 40px;
	}

	.clp-calc__results .clp-btn {
		width: 100%;
	}

	/* How ---------------------------------------------------------------- */

	.clp-how {
		padding-bottom: 32px;
	}

	.clp-how .clp-section__head {
		margin-bottom: 32px;
	}

	.clp-how__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.clp-how__card {
		padding: 20px 28px;
	}

	/* Benefits ----------------------------------------------------------- */

	.clp-benefits {
		padding-top: 32px;
	}

	.clp-carousel {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
	}

	.clp-carousel__viewport {
		grid-column: 1;
	}

	.clp-carousel__slide {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.clp-carousel__arrow--prev,
	.clp-carousel__arrow--next {
		grid-row: 2;
		grid-column: 1;
	}

	.clp-carousel__arrow--prev {
		justify-self: start;
	}

	.clp-carousel__arrow--next {
		justify-self: end;
	}

	.clp-carousel__dots {
		grid-column: 1;
		grid-row: 2;
	}

	.clp-carousel__arrow img {
		width: 11px;
		height: 19px;
	}

	.clp-soon {
		padding: 24px 28px;
		margin-top: 32px;
	}

	.clp-soon__heading {
		font-size: 26px;
		line-height: 32px;
	}

	/* Testimonials ------------------------------------------------------- */

	.clp-testimonials__row {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 86%;
		gap: 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		margin-inline: calc(var(--clp-pad-x) * -1);
		padding-inline: var(--clp-pad-x);
	}

	/* Scoped to match the desktop rule above, so this still wins on order. */
	.clp .clp-testimonial {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 20px;
		scroll-snap-align: center;
	}

	.clp-testimonial__media {
		flex: none;
		height: 258px;
	}

	.clp-testimonial__body {
		flex: none;
	}

	/* Sign up ------------------------------------------------------------ */

	.clp-signup__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.clp-signup__copy {
		gap: 28px;
	}

	.clp-signup__copy .clp-badge + .clp-display {
		margin-top: -16px;
	}

	.clp-signup__card {
		padding: 24px 20px;
	}

	/* FAQ ---------------------------------------------------------------- */

	.clp-faq__q {
		padding: 18px 20px;
		font-size: 18px;
	}

	.clp-faq__a {
		padding: 0 20px 18px;
		font-size: 16px;
		line-height: 24px;
	}

	/* Final CTA ---------------------------------------------------------- */

	.clp-final {
		padding-block: 64px;
	}

	.clp-final .clp-btn {
		width: 100%;
	}
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.clp *,
	.clp *::before,
	.clp *::after {
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
