/**
 * VA Debt Buster — Hughston light theme.
 *
 * Every color resolves through the approved semantic tokens with a literal
 * fallback, so once --color-* ships globally this file inherits it for free.
 * Everything is namespaced .hhdb to stay clear of Salient and WPBakery.
 */

.hhdb {
	--hhdb-canvas: var(--color-bg-canvas, #f5f0e8);
	--hhdb-surface: var(--color-bg-surface-raised, #fbf8f2);
	--hhdb-subtle: var(--color-bg-surface-subtle, #e4e0da);
	--hhdb-inverse: var(--color-bg-inverse, #22443e);

	--hhdb-text: var(--color-text-primary, #08090f);
	--hhdb-muted: var(--color-text-muted, #5c6e70);
	--hhdb-on-inverse: var(--color-text-inverse, #f5f0e8);

	--hhdb-action: var(--color-action-primary-bg, #277253);
	--hhdb-action-fg: var(--color-action-primary-fg, #f5f0e8);
	--hhdb-action-active: var(--color-action-primary-active-bg, #22443e);

	--hhdb-border: var(--color-border-subtle, #d5d2cd);
	--hhdb-border-strong: var(--color-border-strong, #22443e);
	--hhdb-focus: var(--color-focus-ring, #22443e);
	--hhdb-focus-inverse: var(--color-focus-ring-inverse, #f5f0e8);

	--hhdb-mint: var(--color-selection-bg, #a1d2b9);
	--hhdb-success-bg: var(--color-status-success-bg, #e8f5ec);
	--hhdb-success-fg: var(--color-status-success-fg, #1f6b3a);
	--hhdb-success-border: var(--color-status-success-border, #3e8e5a);
	--hhdb-warning-bg: var(--color-status-warning-bg, #fff4d6);
	--hhdb-warning-fg: var(--color-status-warning-fg, #7a4b00);
	--hhdb-warning-border: var(--color-status-warning-border, #b7791f);
	--hhdb-error-bg: var(--color-status-error-bg, #fdebec);
	--hhdb-error-fg: var(--color-status-error-fg, #9f1d24);
	--hhdb-error-border: var(--color-status-error-border, #c53a44);

	/*
	 * Which part of the hero video survives the crop. The hero is far wider
	 * than 16:9, so cover always discards height — at 1920 with a ~620px hero
	 * that is about 43% of the frame, split top and bottom. This picks what
	 * is kept: lower the second value to favour the top of the frame (sky,
	 * rooflines), raise it to favour the bottom (ground, foreground).
	 */
	--hhdb-hero-video-pos: 50% 50%;

	--hhdb-radius: 4px;
	--hhdb-radius-card: 12px;
	--hhdb-max: 1120px;

	background: var(--hhdb-canvas);
	color: var(--hhdb-text);
	font-size: 16px;
	line-height: 1.65;
}

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

.hhdb-wrap {
	width: 100%;
	max-width: var(--hhdb-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* Numerals never jitter while a figure is being edited. */
.hhdb-paycard-amount,
.hhdb-metric-v,
.hhdb-line span:last-child,
.hhdb-fundfigures b,
.hhdb-elim b,
.hhdb-breakline-v,
.hhdb-home-price,
.hhdb-dfig {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

/* ---------------------------------------------------------------- headings */

.hhdb-h1,
.hhdb-h2,
.hhdb-h3,
.hhdb-h4 {
	margin: 0;
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.18;
	color: inherit;
}

.hhdb-h1 {
	font-size: clamp(2.1rem, 5.2vw, 3.4rem);
	letter-spacing: -0.028em;
}

.hhdb-h2 {
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.hhdb-h3 {
	font-size: 1.2rem;
}

.hhdb-h4 {
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hhdb-muted);
}

/* ------------------------------------------------------------------- hero */

/*
 * The hero, CTA band, and both logo lockups all sit on Deep Green on
 * purpose: the NorthStar assets are built light-on-dark, so they would
 * disappear against Pearl. Keeping them on the inverse surface solves the
 * asset problem instead of working around it.
 */
.hhdb-hero {
	background: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
	padding: 40px 0 52px;
}

.hhdb-lockup {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

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

/*
 * Intrinsic dimensions live on the img attributes (1920x248) so the browser
 * reserves the right box and there is no layout shift; display width is set
 * here. The mark is 7.74:1, so it reads as a wordmark rather than a badge.
 */
.hhdb-lockup-ns {
	width: 268px;
}

/*
 * Add hhdb-lockup-plate to the wordmark ONLY if the artwork is dark-on-light.
 * Both lockups sit on Deep Green, where a dark mark would disappear; the
 * plate gives it a Pearl field to sit on, matching the Hughston logo.
 */
.hhdb-lockup-plate {
	background: var(--hhdb-canvas);
	border-radius: var(--hhdb-radius);
	padding: 9px 14px;
}

.hhdb-lockup-x {
	font-size: 1.1rem;
	color: var(--hhdb-mint);
}

.hhdb-lockup-partner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hhdb-lockup-hh {
	width: 168px;
	background: var(--hhdb-canvas);
	border-radius: var(--hhdb-radius);
	padding: 8px 12px;
}

.hhdb-lockup-label {
	font-size: 0.66rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--hhdb-mint);
	line-height: 1.3;
	max-width: 5.5em;
}

.hhdb-kicker {
	margin: 0 0 14px;
	font-size: 0.74rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--hhdb-mint);
}

.hhdb-lede {
	margin: 18px 0 28px;
	max-width: 56ch;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	color: #d8e2da;
}

.hhdb-lede strong {
	color: var(--hhdb-mint);
	font-weight: 500;
}

.hhdb-pills {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 34px 0 0;
	padding: 0;
}

/*
 * Salient styles bare <ul> elements, so the marker and its indent are killed
 * explicitly here rather than relying on list-style alone — otherwise a
 * bullet sits outside each pill with the theme's list padding between them.
 */
.hhdb-pills > li {
	list-style: none;
	margin: 0;
	padding-left: 16px;
	text-indent: 0;
	background: none;
}

.hhdb-pills > li::marker,
.hhdb-pills > li::before {
	content: none;
	display: none;
}

.hhdb-pill {
	background: rgba(245, 240, 232, 0.08);
	border: 1px solid rgba(245, 240, 232, 0.24);
	border-radius: var(--hhdb-radius);
	padding: 10px 25px;
	font-size: 0.85rem;
	line-height: 1.4;
}

.hhdb-pill b {
	color: var(--hhdb-mint);
	font-weight: 500;
	margin-right: 1px;
}

/* ---------------------------------------------------------------- buttons */

.hhdb-cta,
.hhdb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1;
	padding: 15px 26px;
	border-radius: var(--hhdb-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease,
		transform 0.16s ease, box-shadow 0.16s ease;
}

.hhdb-cta,
.hhdb-btn-primary {
	background: var(--hhdb-action);
	color: var(--hhdb-action-fg);
}

.hhdb-cta:hover,
.hhdb-cta:focus,
.hhdb-btn-primary:hover,
.hhdb-btn-primary:focus {
	background: var(--hhdb-action-active);
	color: var(--hhdb-action-fg);
}

/*
 * The hero and CTA band are painted in Deep Green, which is also
 * --color-action-primary-active-bg. The default primary hover therefore
 * resolved to the band color and the button vanished on hover (1.00:1).
 * On dark bands the hover goes to Mint with Ink text instead — the approved
 * selection-bg / selection-fg pairing, 6.33:1 against the band and 11.77:1
 * for the label — plus a small lift.
 */
.hhdb-hero .hhdb-cta:hover,
.hhdb-hero .hhdb-cta:focus,
.hhdb-ctaband .hhdb-cta:hover,
.hhdb-ctaband .hhdb-cta:focus {
	background: var(--hhdb-mint);
	color: var(--color-selection-fg, #08090f);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px var(--color-shadow, rgb(8 9 15 / 16%));
}

.hhdb-hero .hhdb-cta:active,
.hhdb-ctaband .hhdb-cta:active {
	transform: translateY(0);
	box-shadow: none;
}

.hhdb-btn {
	padding: 12px 20px;
	font-size: 0.9rem;
}

.hhdb-btn-secondary {
	background: transparent;
	color: var(--color-action-secondary-fg, #22443e);
	border-color: var(--color-action-secondary-border, #22443e);
}

.hhdb-btn-secondary:hover,
.hhdb-btn-secondary:focus {
	background: var(--color-action-secondary-active-bg, #e4e0da);
}

.hhdb :is(a, button, input):focus-visible {
	outline: 2px solid var(--hhdb-focus);
	outline-offset: 2px;
}

.hhdb-hero :is(a, button):focus-visible,
.hhdb-ctaband :is(a, button):focus-visible {
	outline-color: var(--hhdb-focus-inverse);
}

/* ------------------------------------------------------------ mint bands */

/*
 * Alternating section fills. Mint is a selection token rather than a surface
 * token, so a full-width mint band needs three corrections to stay legible:
 * muted text steps up to Deep Green (muted measures 3.17 on mint and fails
 * the 4.5 minimum), card edges become a Deep Green hairline (the warm border
 * measures 1.12 on mint and disappears), and the selected-home badge flips
 * off mint so it does not vanish into the band behind it.
 */
.hhdb-step--mint {
	background: var(--hhdb-mint);
}

.hhdb-step--mint .hhdb-stepsub,
.hhdb-step--mint .hhdb-note,
.hhdb-step--mint .hhdb-capline,
.hhdb-step--mint .hhdb-count,
.hhdb-step--mint .hhdb-breakline-k,
.hhdb-step--mint .hhdb-metric-k,
.hhdb-step--mint .hhdb-metric-s,
.hhdb-step--mint .hhdb-h4,
.hhdb-step--mint .hhdb-hint,
.hhdb-step--mint .hhdb-resulthome,
.hhdb-step--mint .hhdb-resultsub,
.hhdb-step--mint .hhdb-fundfigures,
.hhdb-step--mint .hhdb-elim,
.hhdb-step--mint .hhdb-dcol label,
.hhdb-step--mint .hhdb-rentfield label,
.hhdb-step--mint .hhdb-prefix,
.hhdb-step--mint .hhdb-suffix {
	color: var(--hhdb-inverse);
}

.hhdb-step--mint .hhdb-paycard,
.hhdb-step--mint .hhdb-buster,
.hhdb-step--mint .hhdb-result,
.hhdb-step--mint .hhdb-home {
	border-color: var(--hhdb-border-strong);
}

.hhdb-step--mint .hhdb-home-check {
	background: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
}

.hhdb-step--mint .hhdb-metric,
.hhdb-step--mint .hhdb-col {
	background: var(--hhdb-canvas);
}

.hhdb-step--mint .hhdb-chip {
	border-color: var(--hhdb-inverse);
}

/* A divider between two differently filled bands reads as an artifact. */
.hhdb-step--mint,
.hhdb-step--mint + .hhdb-step {
	border-bottom-color: transparent;
}

/* ------------------------------------------------------------ hero video */

.hhdb-hero {
	position: relative;
	overflow: hidden;
}

.hhdb-hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--hhdb-hero-video-pos);
	z-index: 0;
	/* Full opacity — the scrim below does the contrast work, not this. */
}

/*
 * Tie the hero's height to viewport width when a video is present, so the
 * band keeps a roughly constant aspect instead of getting proportionally
 * wider — and therefore more heavily cropped — on every larger screen.
 * At 46vw the crop holds near 18% from 1440 through 1920, against 23% and
 * 43% at a fixed height. Raise this to see more frame, at the cost of a
 * taller hero.
 */
.hhdb-hero.has-video {
	min-height: clamp(520px, 46vw, 820px);
	display: flex;
	align-items: center;
}

.hhdb-hero.has-video > .hhdb-wrap {
	width: 100%;
}

/*
 * With a video behind it the scrim sits at 0.82, where Mint drops to 3.71:1.
 * The accents step up to Pearl so the band can stay light. Without a video
 * the hero is solid Deep Green and Mint keeps its 6.33:1, so this only
 * applies to the video case.
 */
.hhdb-hero.has-video .hhdb-kicker,
.hhdb-hero.has-video .hhdb-lede strong,
.hhdb-hero.has-video .hhdb-pill b,
.hhdb-hero.has-video .hhdb-lockup-label,
.hhdb-hero.has-video .hhdb-lockup-x {
	color: var(--hhdb-on-inverse);
}

.hhdb-hero.has-video .hhdb-lede strong,
.hhdb-hero.has-video .hhdb-pill b {
	font-weight: 600;
}

@media (max-width: 640px) {
	/* No video below this width, so the height boost is just dead space. */
	.hhdb-hero.has-video {
		min-height: 0;
		display: block;
	}
}

/*
 * Directional scrim between the video and the copy.
 *
 * Dimming the video with opacity alone cannot work here: at any setting
 * bright enough for the footage to read, a white video frame drops the mint
 * kicker under 4.5:1 against it. Even 20% opacity measures 3.50. So the video
 * plays at full strength and a Deep Green scrim sits over it, dense on the
 * left where the copy lives and thinning to the right where nothing overlaps.
 *
 * Measured against a worst-case white frame: at 0.94 the video contributes
 * 6%, giving Pearl 7.90:1 and Mint 5.30:1. Do not lower the left stop below
 * 0.90 — Mint fails at 0.86.
 */
.hhdb-hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	/*
	 * Uniform rather than directional. The wrap is 1120px centred, so on a
	 * 1440px screen the copy spans 11%-89% of the viewport — a gradient that
	 * thins toward either edge puts text over thin cover.
	 *
	 * 0.82 lets 18% of the video through. Mint fails past 0.90 (4.43:1 at
	 * 0.88), so hero accent text is Pearl rather than Mint while a video is
	 * present — see .hhdb-hero.has-video below. At 0.82 Pearl measures
	 * 5.53:1 and the lede grey 4.72:1. Do not go past 0.82 without also
	 * changing the lede colour: it fails at 0.80.
	 */
	background: rgb(34 68 62 / 82%);
}

.hhdb-hero > .hhdb-wrap {
	position: relative;
	z-index: 2;
}

/*
 * WCAG 2.2.2: motion that starts automatically and runs past five seconds
 * needs a way to stop it. A looping background video qualifies.
 */
.hhdb-hero-videobtn {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgb(245 240 232 / 45%);
	background: rgb(34 68 62 / 70%);
	color: var(--hhdb-on-inverse);
	font-size: 0.7rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.hhdb-hero-videobtn:hover,
.hhdb-hero-videobtn:focus-visible {
	background: var(--hhdb-inverse);
	border-color: var(--hhdb-on-inverse);
}

@media (max-width: 640px) {
	/*
	 * Mobile stacks the copy full width, so a left-to-right scrim leaves the
	 * right edge of the text over thin cover. Switch to vertical.
	 */
	.hhdb-hero-videobtn {
		right: 14px;
		bottom: 14px;
	}
}

/*
 * The video is 720p and letterboxes badly on a tall phone viewport, where it
 * would be cropped to a narrow strip of the frame for a lot of bytes. Under
 * 640px the poster or the flat band is the better trade.
 */
@media (max-width: 640px) {
	.hhdb-hero-video {
		display: none;
	}

	.hhdb-hero-videobtn {
		display: none;
	}

	.hhdb-hero.has-video .hhdb-hero-scrim {
		background: var(--hhdb-inverse);
	}
}

@media (prefers-reduced-motion: reduce) {
	/* The script also pauses playback; this covers a no-JS render. */
	.hhdb-hero-video {
		display: none;
	}

	.hhdb-hero-videobtn {
		display: none;
	}

	.hhdb-hero.has-video .hhdb-hero-scrim {
		background: var(--hhdb-inverse);
	}
}

/* ------------------------------------------------------------------ steps */

.hhdb-step {
	padding: 56px 0;
	border-bottom: 1px solid var(--hhdb-border);
}

.hhdb-stephead {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hhdb-stepnum {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hhdb-action);
	color: var(--hhdb-action-fg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	line-height: 1;
}

.hhdb-stepsub {
	margin: 12px 0 26px 46px;
	max-width: 68ch;
	color: var(--hhdb-muted);
	font-size: 0.95rem;
}

.hhdb-note,
.hhdb-capline {
	margin: 18px 0 0;
	font-size: 0.8rem;
	color: var(--hhdb-muted);
	max-width: 76ch;
}

/* ------------------------------------------------------------- home cards */

/* ---------------------------------------------------- filters + carousel */

.hhdb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
}

.hhdb-chip {
	font: inherit;
	font-size: 0.85rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	border-radius: 999px;
	border: 1px solid var(--hhdb-border-strong);
	background: transparent;
	color: var(--hhdb-text);
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.hhdb-chip:hover {
	background: var(--hhdb-subtle);
}

.hhdb-chip.is-active {
	background: var(--hhdb-inverse);
	border-color: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
}

.hhdb-chip-n {
	font-size: 0.75rem;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

.hhdb-carousel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.hhdb-count {
	margin: 0;
	font-size: 0.82rem;
	color: var(--hhdb-muted);
	font-variant-numeric: tabular-nums;
}

.hhdb-arrows {
	display: flex;
	gap: 8px;
}

.hhdb-arrow {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--hhdb-border-strong);
	background: transparent;
	color: var(--hhdb-text);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.16s ease, opacity 0.16s ease;
}

.hhdb-arrow:hover:not(:disabled) {
	background: var(--hhdb-subtle);
}

.hhdb-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

/*
 * Scroll-snap rather than a JS carousel: no dependency, keyboard and
 * touch work natively, and it degrades to a plain scroller if scripts fail.
 */
.hhdb-homes {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding: 4px 4px 14px;
	margin: 0 -4px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.hhdb-homes::-webkit-scrollbar {
	height: 6px;
}

.hhdb-homes::-webkit-scrollbar-thumb {
	background: var(--hhdb-border);
	border-radius: 999px;
}

.hhdb-homes > .hhdb-home {
	flex: 0 0 clamp(230px, 24vw, 268px);
	scroll-snap-align: start;
}

.hhdb-home-flag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
}

.hhdb-home-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--hhdb-subtle);
}

.hhdb-home {
	position: relative;
	background: var(--hhdb-surface);
	border: 1px solid var(--hhdb-border);
	border-radius: var(--hhdb-radius-card);
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.16s ease, transform 0.16s ease;
}

.hhdb-home:hover {
	border-color: var(--hhdb-border-strong);
	transform: translateY(-2px);
}

.hhdb-home.is-selected {
	border-color: var(--color-selection-border, #22443e);
	border-width: 2px;
}

.hhdb-home-figure {
	margin: 0;
	aspect-ratio: 16 / 10;
	background: var(--hhdb-subtle);
	position: relative;
	overflow: hidden;
}

.hhdb-home-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hhdb-home-check {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--hhdb-mint);
	color: var(--color-selection-fg, #08090f);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	padding: 4px 11px;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.hhdb-home.is-selected .hhdb-home-check {
	opacity: 1;
	transform: none;
}

.hhdb-home-body {
	padding: 16px 18px 18px;
}

.hhdb-home-name {
	margin: 0 0 4px;
	font-size: 1.02rem;
	font-weight: 500;
}

.hhdb-home-meta {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: var(--hhdb-muted);
}

.hhdb-home-price {
	margin: 0;
	font-size: 1.28rem;
	font-weight: 500;
}

.hhdb-home-specs {
	margin: 5px 0 0;
	font-size: 0.8rem;
	color: var(--hhdb-muted);
}

/* ----------------------------------------------------------- payment card */

.hhdb-paycard {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	background: var(--hhdb-surface);
	border: 1px solid var(--hhdb-border);
	border-radius: var(--hhdb-radius-card);
	overflow: hidden;
}

.hhdb-paycard-lead {
	background: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
	padding: 30px 28px;
}

.hhdb-paycard-label {
	margin: 0 0 10px;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hhdb-mint);
}

.hhdb-paycard-amount {
	margin: 0;
	font-size: clamp(2rem, 4vw, 2.7rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.hhdb-paycard-amount small {
	font-size: 0.42em;
	font-weight: 400;
	letter-spacing: 0;
	color: #d8e2da;
	margin-left: 4px;
}

.hhdb-paycard-zero {
	margin: 12px 0 0;
	font-size: 0.82rem;
	color: #d8e2da;
}

.hhdb-paycard-break {
	padding: 26px 28px;
}

.hhdb-breakline {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hhdb-border);
	font-size: 0.9rem;
}

.hhdb-breakline-k {
	color: var(--hhdb-muted);
}

.hhdb-breakline-v {
	text-align: right;
	white-space: nowrap;
}

.hhdb-breakline--free .hhdb-breakline-v {
	color: var(--hhdb-success-fg);
}

.hhdb-breakline--total {
	border-bottom: 0;
	padding-top: 14px;
	font-size: 1rem;
	font-weight: 500;
}

.hhdb-breakline--total .hhdb-breakline-k {
	color: var(--hhdb-text);
}

/* ----------------------------------------------------------- input fields */

.hhdb-ratefield,
.hhdb-rentfield {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 0.82rem;
}

.hhdb-ratefield {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(245, 240, 232, 0.22);
}

.hhdb-ratefield label {
	color: var(--hhdb-mint);
	margin: 0;
}

.hhdb-rentfield {
	margin-top: 26px;
}

.hhdb-rentfield label {
	color: var(--hhdb-muted);
	margin: 0;
}

.hhdb-inputwrap {
	display: inline-flex;
	align-items: center;
	background: var(--hhdb-canvas);
	border: 1px solid var(--color-border-control, #5c6e70);
	border-radius: var(--hhdb-radius);
	padding: 0 10px;
	color: var(--hhdb-text);
}

.hhdb-inputwrap input {
	font: inherit;
	font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
	width: 6.2em;
	padding: 9px 2px;
	border: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.hhdb-inputwrap input::-webkit-outer-spin-button,
.hhdb-inputwrap input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hhdb-inputwrap input:focus {
	outline: none;
}

.hhdb-inputwrap:focus-within {
	outline: 2px solid var(--hhdb-focus);
	outline-offset: 1px;
}

.hhdb-prefix,
.hhdb-suffix {
	color: var(--hhdb-muted);
	font-size: 0.9rem;
}

.hhdb-hint {
	color: var(--hhdb-muted);
	font-size: 0.76rem;
}

.hhdb-ratefield .hhdb-hint {
	color: rgba(245, 240, 232, 0.72);
}

/* ------------------------------------------------------------ debt buster */

.hhdb-buster {
	background: var(--hhdb-surface);
	border: 1px solid var(--hhdb-border);
	border-radius: var(--hhdb-radius-card);
	overflow: hidden;
}

.hhdb-fundhead {
	background: var(--hhdb-subtle);
	border-bottom: 1px solid var(--hhdb-border);
	padding: 20px 24px;
}

.hhdb-fundrow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 12px;
}

.hhdb-fundtitle {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.hhdb-fundfigures {
	margin: 0;
	font-size: 0.85rem;
	color: var(--hhdb-muted);
	display: flex;
	gap: 8px;
}

.hhdb-fundfigures b {
	color: var(--hhdb-text);
	font-weight: 500;
}

.hhdb-bar {
	height: 9px;
	background: var(--hhdb-canvas);
	border: 1px solid var(--hhdb-border);
	border-radius: 999px;
	overflow: hidden;
}

.hhdb-barfill {
	height: 100%;
	width: 0;
	background: var(--hhdb-action);
	transition: width 0.24s ease;
}

.hhdb-alert {
	display: none;
	margin: 0;
	padding: 14px 24px;
	background: var(--hhdb-warning-bg);
	color: var(--hhdb-warning-fg);
	border-bottom: 1px solid var(--hhdb-warning-border);
	font-size: 0.87rem;
}

.hhdb-alert.is-visible {
	display: block;
}

.hhdb-busterbody {
	padding: 8px 24px 24px;
}

.hhdb-debt {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px 18px;
	padding: 15px 24px;
	margin: 0 -24px;
	border-bottom: 1px solid var(--hhdb-border);
	transition: background-color 0.16s ease;
}

.hhdb-debt.is-paid {
	background: var(--hhdb-success-bg);
}

.hhdb-debt-check {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--hhdb-action);
	cursor: pointer;
	flex: 0 0 auto;
}

.hhdb-debt-name {
	margin: 0;
	font-size: 0.98rem;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hhdb-paidtag {
	display: none;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hhdb-success-fg);
}

.hhdb-debt.is-paid .hhdb-paidtag {
	display: inline;
}

.hhdb-best {
	display: none;
	background: var(--hhdb-warning-bg);
	color: var(--hhdb-warning-fg);
	border: 1px solid var(--hhdb-warning-border);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 2px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

.hhdb-best.is-visible {
	display: inline-block;
}

.hhdb-dcol {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hhdb-dcol label {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hhdb-muted);
}

.hhdb-dcol .hhdb-inputwrap input {
	width: 5.4em;
	padding: 7px 2px;
	font-size: 0.9rem;
}

.hhdb-debt.is-paid .hhdb-inputwrap {
	background: var(--hhdb-surface);
}

.hhdb-busterfoot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 22px;
}

.hhdb-btnrow {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hhdb-elim {
	margin: 0;
	font-size: 0.88rem;
	color: var(--hhdb-muted);
}

.hhdb-elim b {
	color: var(--hhdb-success-fg);
	font-size: 1.22rem;
	font-weight: 500;
	margin-left: 4px;
}

.hhdb-capline.is-tight {
	color: var(--hhdb-error-fg);
}

/* ----------------------------------------------------------------- result */

.hhdb-result {
	background: var(--hhdb-surface);
	border: 1px solid var(--hhdb-border);
	border-radius: var(--hhdb-radius-card);
	padding: 30px 28px;
}

.hhdb-resulthead {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.hhdb-resulthead .hhdb-h3::before {
	content: "\2713";
	color: var(--hhdb-success-fg);
	margin-right: 9px;
}

.hhdb-resulthome {
	margin: 0;
	font-size: 0.92rem;
	color: var(--hhdb-muted);
}

.hhdb-resulthome a {
	color: var(--color-link, #22443e);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hhdb-resultsub {
	margin: 12px 0 28px;
	max-width: 72ch;
	color: var(--hhdb-muted);
	font-size: 0.93rem;
}

.hhdb-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 14px;
	margin-bottom: 30px;
}

.hhdb-metric {
	background: var(--hhdb-canvas);
	border-radius: var(--hhdb-radius);
	padding: 18px 20px;
}

.hhdb-metric-k {
	margin: 0 0 8px;
	font-size: 0.74rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--hhdb-muted);
}

.hhdb-metric-v {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.hhdb-metric-v--good {
	color: var(--hhdb-success-fg);
}

.hhdb-metric-s {
	margin: 8px 0 0;
	font-size: 0.76rem;
	color: var(--hhdb-muted);
	line-height: 1.45;
}

.hhdb-compare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 18px;
}

.hhdb-col {
	background: var(--hhdb-canvas);
	border-radius: var(--hhdb-radius);
	padding: 20px 22px;
}

.hhdb-col .hhdb-h4 {
	margin-bottom: 12px;
}

.hhdb-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	padding: 8px 0;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--hhdb-border);
}

.hhdb-line--total {
	border-bottom: 0;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 2px solid var(--hhdb-border-strong);
	font-size: 1rem;
	font-weight: 500;
}

.hhdb-gone {
	color: var(--hhdb-success-fg);
}

.hhdb-verdict {
	margin: 26px 0 0;
	padding: 18px 20px;
	background: var(--hhdb-success-bg);
	border-left: 3px solid var(--hhdb-success-border);
	border-radius: 0;
	font-size: 0.95rem;
	color: var(--hhdb-text);
}

.hhdb-verdict b {
	font-weight: 500;
}

.hhdb-verdict.is-idle {
	background: var(--hhdb-subtle);
	border-left-color: var(--hhdb-muted);
	color: var(--hhdb-muted);
}

/* ------------------------------------------------------------ results gate */

/*
 * Blur is visual friction only — the results are in the DOM either way. The
 * accessibility side is handled properly: the template ships the content with
 * `inert` and `aria-hidden`, and the script removes both on unlock, so a
 * screen reader does not read through the blur and tab order does not walk
 * into invisible controls.
 */
.hhdb-gate {
	position: relative;
}

.hhdb-gate.is-locked {
	min-height: 520px;
}

.hhdb-gate-content {
	transition: filter 0.45s ease, opacity 0.45s ease;
}

.hhdb-gate.is-locked .hhdb-gate-content {
	filter: blur(9px);
	opacity: 0.65;
	pointer-events: none;
	user-select: none;
}

.hhdb-gate-panel {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hhdb-gate:not(.is-locked) .hhdb-gate-panel {
	display: none;
}

.hhdb-gate-card {
	width: 100%;
	max-width: 460px;
	background: var(--hhdb-surface);
	border: 1px solid var(--hhdb-border-strong);
	border-radius: var(--hhdb-radius-card);
	padding: 30px 30px 26px;
	box-shadow: 0 18px 46px var(--color-shadow, rgb(8 9 15 / 16%));
}

.hhdb-gate-kicker {
	margin: 0 0 8px;
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--hhdb-action);
}

.hhdb-gate-copy {
	margin: 10px 0 22px;
	font-size: 0.9rem;
	color: var(--hhdb-muted);
}

/* ---- Gravity Forms, scoped to the gate card only ---- */

.hhdb-gate-form .gform_wrapper {
	margin: 0;
}

.hhdb-gate-form .gform_wrapper form {
	margin: 0;
}

.hhdb-gate-form .gform_fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Name and email take the full width; phone and zip share a row. */
.hhdb-gate-form .gfield {
	grid-column: span 2;
	margin: 0;
	padding: 0;
}

.hhdb-gate-form .gfield--width-half {
	grid-column: span 1;
}

.hhdb-gate-form .gfield_label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hhdb-muted);
}

.hhdb-gate-form .gfield_required {
	color: var(--hhdb-error-fg);
	margin-left: 3px;
}

.hhdb-gate-form input[type="text"],
.hhdb-gate-form input[type="email"],
.hhdb-gate-form input[type="tel"],
.hhdb-gate-form input[type="number"] {
	width: 100%;
	font: inherit;
	font-size: 0.95rem;
	padding: 11px 13px;
	background: var(--hhdb-canvas);
	border: 1px solid var(--color-border-control, #5c6e70);
	border-radius: var(--hhdb-radius);
	color: var(--hhdb-text);
	box-shadow: none;
}

.hhdb-gate-form input:focus {
	outline: 2px solid var(--hhdb-focus);
	outline-offset: 1px;
	border-color: var(--hhdb-focus);
}

/*
 * Consent field. Sized down and set in muted text so it reads as a disclosure
 * rather than another form field, but the control itself stays a full 18px
 * target and the label is clickable across its whole width.
 */
.hhdb-gate-form .gfield--type-consent,
.hhdb-gate-form .gfield--type-checkbox {
	grid-column: span 2;
	margin-top: 2px;
}

.hhdb-gate-form .gfield--type-consent .gfield_label,
.hhdb-gate-form .gfield--type-checkbox .gfield_label {
	display: none;
}

.hhdb-gate-form .ginput_container_consent,
.hhdb-gate-form .gfield_checkbox li,
.hhdb-gate-form .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.hhdb-gate-form .ginput_container_consent input[type="checkbox"],
.hhdb-gate-form .gfield_checkbox input[type="checkbox"],
.hhdb-gate-form .gchoice input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--hhdb-action);
	cursor: pointer;
}

.hhdb-gate-form .ginput_container_consent label,
.hhdb-gate-form .gfield_checkbox label,
.hhdb-gate-form .gchoice label {
	margin: 0;
	font-size: 0.76rem;
	line-height: 1.5;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--hhdb-muted);
	cursor: pointer;
}

.hhdb-gate-form .ginput_container_consent label a,
.hhdb-gate-form .gchoice label a {
	color: var(--color-link, #22443e);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hhdb-gate-form .gfield_consent_description {
	margin: 8px 0 0;
	max-height: 110px;
	overflow-y: auto;
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--hhdb-muted);
	background: var(--hhdb-canvas);
	border-radius: var(--hhdb-radius);
	padding: 10px 12px;
}

.hhdb-gate-form .gform_footer {
	margin: 20px 0 0;
	padding: 0;
}

.hhdb-gate-form .gform_button {
	width: 100%;
	font: inherit;
	font-size: 0.95rem;
	line-height: 1;
	padding: 15px 24px;
	border: 0;
	border-radius: var(--hhdb-radius);
	background: var(--hhdb-action);
	color: var(--hhdb-action-fg);
	cursor: pointer;
	transition: background-color 0.16s ease;
}

.hhdb-gate-form .gform_button:hover,
.hhdb-gate-form .gform_button:focus {
	background: var(--hhdb-action-active);
}

.hhdb-gate-form .gfield_description.validation_message,
.hhdb-gate-form .gform_validation_errors {
	background: var(--hhdb-error-bg);
	border: 1px solid var(--hhdb-error-border);
	border-radius: var(--hhdb-radius);
	color: var(--hhdb-error-fg);
	font-size: 0.82rem;
	padding: 9px 12px;
	margin-top: 8px;
}

.hhdb-gate-form .gform_confirmation_message {
	background: var(--hhdb-success-bg);
	border-left: 3px solid var(--hhdb-success-border);
	color: var(--hhdb-text);
	font-size: 0.92rem;
	padding: 16px 18px;
}

.hhdb-gate-form .gform_hidden,
.hhdb-gate-form .gfield_visibility_hidden {
	display: none;
}

@media (max-width: 640px) {
	.hhdb-gate.is-locked {
		min-height: 600px;
	}

	.hhdb-gate-card {
		padding: 22px 20px;
	}

	.hhdb-gate-form .gfield--width-half {
		grid-column: span 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhdb-gate-content {
		transition: none;
	}
}

/* --------------------------------------------------------------- cta band */

.hhdb-ctaband {
	background: var(--hhdb-inverse);
	color: var(--hhdb-on-inverse);
	padding: 52px 0 36px;
}

.hhdb-ctain {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
}

.hhdb-ctacopy {
	flex: 1 1 400px;
}

.hhdb-ctacopy p {
	margin: 12px 0 0;
	max-width: 58ch;
	color: #d8e2da;
	font-size: 0.95rem;
}

.hhdb-cta--onDark {
	background: var(--hhdb-canvas);
	color: var(--hhdb-inverse);
}

.hhdb-ctaform {
	flex: 1 1 320px;
}

.hhdb-badges {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
	margin-top: 44px;
	padding-top: 26px;
	border-top: 1px solid rgba(245, 240, 232, 0.2);
}

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

.hhdb-badge-ns {
	width: 210px;
}

/* ------------------------------------------------------------ disclosures */

.hhdb-disclosure {
	background: var(--hhdb-subtle);
	padding: 34px 0 40px;
}

.hhdb-disclosure p {
	margin: 0 0 14px;
	font-size: 0.74rem;
	line-height: 1.6;
	color: var(--hhdb-muted);
	max-width: 92ch;
}

.hhdb-disclosure p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- responsive */

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

@media (max-width: 640px) {
	.hhdb-wrap {
		padding: 0 18px;
	}

	.hhdb-hero {
		padding: 30px 0 40px;
	}

	.hhdb-step {
		padding: 40px 0;
	}

	.hhdb-stepsub {
		margin-left: 0;
	}

	.hhdb-cta {
		width: 100%;
	}

	.hhdb-paycard-lead,
	.hhdb-paycard-break,
	.hhdb-result {
		padding: 22px 20px;
	}

	.hhdb-busterbody {
		padding: 8px 18px 20px;
	}

	.hhdb-fundhead {
		padding: 18px;
	}

	/* Stack the debt row: checkbox and name on top, both figures beneath. */
	.hhdb-debt {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 16px 18px;
		margin: 0 -18px;
	}

	.hhdb-dcol {
		grid-column: 2;
	}

	.hhdb-btnrow,
	.hhdb-btn {
		width: 100%;
	}

	.hhdb-homes > .hhdb-home {
		flex-basis: 78vw;
	}

	.hhdb-arrows {
		display: none;
	}

	.hhdb-busterfoot {
		align-items: stretch;
	}
}

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

	.hhdb-home:hover,
	.hhdb-hero .hhdb-cta:hover,
	.hhdb-hero .hhdb-cta:focus,
	.hhdb-ctaband .hhdb-cta:hover,
	.hhdb-ctaband .hhdb-cta:focus {
		transform: none;
	}
}